From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/zh_cn/dataphin-public/2023-06-30/api-docs.php | 88393 ++++++------------- 1 file changed, 28817 insertions(+), 59576 deletions(-) (limited to 'data/zh_cn/dataphin-public') diff --git a/data/zh_cn/dataphin-public/2023-06-30/api-docs.php b/data/zh_cn/dataphin-public/2023-06-30/api-docs.php index 4a8d6fd..55ef2fb 100644 --- a/data/zh_cn/dataphin-public/2023-06-30/api-docs.php +++ b/data/zh_cn/dataphin-public/2023-06-30/api-docs.php @@ -1,356 +1,145 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'dataphin-public', - 'version' => '2023-06-30', - ], + 'info' => ['style' => 'RPC', 'product' => 'dataphin-public', 'version' => '2023-06-30'], 'directories' => [ [ - 'id' => 198270, - 'title' => '平台管理', - 'type' => 'directory', 'children' => [ [ - 'id' => 243566, - 'title' => '项目', + 'children' => ['CheckProjectHasDependency', 'GetProject', 'GetProjectByName', 'AddProjectMember', 'GetProjectWhiteLists', 'ListProjectMembers', 'ListProjects', 'RemoveProjectMember', 'ReplaceProjectWhiteLists', 'UpdateProjectMember', 'UpdateTenantComputeEngine'], 'type' => 'directory', - 'children' => [ - 'CheckProjectHasDependency', - 'GetProject', - 'GetProjectByName', - 'AddProjectMember', - 'GetProjectWhiteLists', - 'ListProjectMembers', - 'ListProjects', - 'RemoveProjectMember', - 'ReplaceProjectWhiteLists', - 'UpdateProjectMember', - 'UpdateTenantComputeEngine', - ], + 'title' => '项目', + 'id' => 449614, ], [ - 'id' => 198271, - 'title' => '数据源', + 'children' => ['GetCheckConnectivityJobs', 'GetDataSourceDependencies', 'CreateDataSource', 'DeleteDataSource', 'UpdateDataSourceBasicInfo', 'UpdateDataSourceConfig', 'ListDataSourceWithConfig', 'CheckDataSourceConnectivity', 'CheckDataSourceConnectivityById'], 'type' => 'directory', - 'children' => [ - 'GetCheckConnectivityJobs', - 'GetDataSourceDependencies', - 'CreateDataSource', - 'DeleteDataSource', - 'UpdateDataSourceBasicInfo', - 'UpdateDataSourceConfig', - 'ListDataSourceWithConfig', - 'CheckDataSourceConnectivity', - 'CheckDataSourceConnectivityById', - ], + 'title' => '数据源', + 'id' => 449615, ], [ - 'id' => 201914, - 'title' => '计算源', + 'children' => ['CheckComputeSourceConnectivity', 'CheckComputeSourceConnectivityById', 'ListComputeSources', 'UpdateComputeSource', 'GetComputeSource', 'DeleteComputeSource', 'CreateComputeSource', 'GetSparkLocalClientInfo'], 'type' => 'directory', + 'title' => '计算源', + 'id' => 449616, + ], + [ 'children' => [ - 'CheckComputeSourceConnectivity', - 'CheckComputeSourceConnectivityById', - 'ListComputeSources', - 'UpdateComputeSource', - 'GetComputeSource', - 'DeleteComputeSource', - 'CreateComputeSource', - 'GetSparkLocalClientInfo', + 'SyncDepartment', 'SyncDepartmentUser', 'TransferOwnershipForAllObject', 'RetryTransferOwnership', 'GetTransferInfo', 'AddTenantMembers', 'AddTenantMembersBySourceUser', 'CreateUserGroup', 'AddUserGroupMember', 'DeleteUserGroup', 'UpdateUserGroup', 'UpdateUserGroupSwitch', 'UpdateTenantMember', 'ListResourcePermissionOperationLog', 'ListResourcePermissions', 'GetProjectProduceUser', 'GetUsers', 'ListAddableUsers', 'ListTenantMembers', 'GetUserGroup', + 'ListAddableRoles', 'ListUserGroups', 'GetMyTenants', 'GetMyRoles', 'ListUserGroupMembers', 'GetUserBySourceId', 'GrantResourcePermission', 'RevokeResourcePermission', 'CheckResourcePermission', 'RemoveTenantMember', 'RemoveUserGroupMember', ], + 'type' => 'directory', + 'title' => '用户与授权', + 'id' => 449617, ], [ - 'id' => 198279, - 'title' => '用户与授权', + 'children' => ['GetRowPermissionByTableGuids', 'DeleteRowPermission', 'GetAccountByRowPermissionId', 'ListRowPermission', 'ListRowPermissionByUserId', 'UpdateRowPermission', 'CreateRowPermission'], 'type' => 'directory', - 'children' => [ - 'SyncDepartment', - 'SyncDepartmentUser', - 'TransferOwnershipForAllObject', - 'RetryTransferOwnership', - 'GetTransferInfo', - 'AddTenantMembers', - 'AddTenantMembersBySourceUser', - 'CreateUserGroup', - 'AddUserGroupMember', - 'DeleteUserGroup', - 'UpdateUserGroup', - 'UpdateUserGroupSwitch', - 'UpdateTenantMember', - 'ListResourcePermissionOperationLog', - 'ListResourcePermissions', - 'GetProjectProduceUser', - 'GetUsers', - 'ListAddableUsers', - 'ListTenantMembers', - 'GetUserGroup', - 'ListAddableRoles', - 'ListUserGroups', - 'GetMyTenants', - 'GetMyRoles', - 'ListUserGroupMembers', - 'GetUserBySourceId', - 'GrantResourcePermission', - 'RevokeResourcePermission', - 'CheckResourcePermission', - 'RemoveTenantMember', - 'RemoveUserGroupMember', - ], - ], - [ - 'id' => 205631, 'title' => '行级权限', - 'type' => 'directory', - 'children' => [ - 'DeleteRowPermission', - 'GetAccountByRowPermissionId', - 'ListRowPermission', - 'ListRowPermissionByUserId', - 'UpdateRowPermission', - 'CreateRowPermission', - ], + 'id' => 449618, ], ], + 'type' => 'directory', + 'title' => '平台管理', + 'id' => 449613, ], [ - 'id' => 198307, - 'title' => '研发', - 'type' => 'directory', 'children' => [ [ - 'id' => 200872, - 'title' => '目录树', + 'children' => ['CreateDirectory', 'DeleteDirectory', 'UpdateFileName', 'UpdateFileDirectory', 'GetDirectoryTree', 'ListFiles'], 'type' => 'directory', - 'children' => [ - 'CreateDirectory', - 'DeleteDirectory', - 'UpdateFileName', - 'UpdateFileDirectory', - 'GetDirectoryTree', - 'ListFiles', - ], + 'title' => '目录树', + 'id' => 449620, ], [ - 'id' => 200804, + 'children' => ['GetBizEntityInfoByVersion', 'GetBizEntityInfo', 'UpdateBizUnit', 'ListBizUnits', 'GetBizUnitInfo', 'DeleteBizUnit', 'CreateBizUnit', 'UpdateBizEntity', 'OnlineBizEntity', 'OfflineBizEntity', 'ListBizEntities', 'CreateBizEntity', 'UpdateDataDomain', 'ListDataDomains', 'GetDataDomainInfo', 'DeleteDataDomain', 'CreateDataDomain', 'DeleteBizEntity'], + 'type' => 'directory', 'title' => '数据架构', + 'id' => 449621, + ], + [ + 'children' => ['CreateAdHocFile', 'DeleteAdHocFile', 'UpdateAdHocFile', 'GetAdHocFile', 'StopAdHocTask', 'GetAdHocTaskResult', 'ExecuteAdHocTask', 'GetAdHocTaskLog'], 'type' => 'directory', - 'children' => [ - 'GetBizEntityInfoByVersion', - 'GetBizEntityInfo', - 'UpdateBizUnit', - 'ListBizUnits', - 'GetBizUnitInfo', - 'DeleteBizUnit', - 'CreateBizUnit', - 'UpdateBizEntity', - 'OnlineBizEntity', - 'OfflineBizEntity', - 'ListBizEntities', - 'CreateBizEntity', - 'UpdateDataDomain', - 'ListDataDomains', - 'GetDataDomainInfo', - 'DeleteDataDomain', - 'CreateDataDomain', - 'DeleteBizEntity', - ], - ], - [ - 'id' => 198308, 'title' => '即席查询', - 'type' => 'directory', + 'id' => 449622, + ], + [ 'children' => [ - 'CreateAdHocFile', - 'DeleteAdHocFile', - 'UpdateAdHocFile', - 'GetAdHocFile', - 'StopAdHocTask', - 'GetAdHocTaskResult', - 'ExecuteAdHocTask', - 'GetAdHocTaskLog', + 'ListOperationRecord', 'GetOperationRecordRunCode', 'GetOperationRecordDetail', 'GetOperationRecordById', 'UpdatePipelineByAsync', 'OfflinePipelineByAsync', 'GetPipelineById', 'OfflinePipeline', 'CreatePipeline', 'GetPipelineAsyncResult', 'CreatePipelineByAsync', 'UpdatePipeline', 'CreatePipelineNode', 'UpdateBatchTaskUdfLineages', 'UpdateBatchTask', 'SubmitBatchTask', 'ParseBatchTaskDependency', 'OfflineBatchTask', 'GetBatchTaskUdfLineages', 'GetBatchTaskVersions', + 'GetBatchTaskInfoByVersion', 'GetBatchTaskInfo', 'DeleteBatchTask', 'CreateBatchTask', ], + 'type' => 'directory', + 'title' => '离线计算任务', + 'id' => 449623, ], [ - 'id' => 201111, - 'title' => '离线计算任务', + 'children' => ['ListBatchTemplates', 'GetBatchTemplateVersions'], 'type' => 'directory', - 'children' => [ - 'UpdatePipelineByAsync', - 'OfflinePipelineByAsync', - 'GetPipelineById', - 'OfflinePipeline', - 'CreatePipeline', - 'GetPipelineAsyncResult', - 'CreatePipelineByAsync', - 'UpdatePipeline', - 'CreatePipelineNode', - 'UpdateBatchTaskUdfLineages', - 'UpdateBatchTask', - 'SubmitBatchTask', - 'ParseBatchTaskDependency', - 'OfflineBatchTask', - 'GetBatchTaskUdfLineages', - 'GetBatchTaskVersions', - 'GetBatchTaskInfoByVersion', - 'GetBatchTaskInfo', - 'DeleteBatchTask', - 'CreateBatchTask', - ], - ], - [ - 'id' => 201126, - 'title' => '实时研发任务', + 'title' => '离线计算模板', + 'id' => 456315, + ], + [ + 'children' => ['GetStreamJobs', 'GetQueueEngineVersionByEnv', 'GetClusterQueueInfoByEnv', 'CreateStreamBatchJobMapping'], 'type' => 'directory', - 'children' => [ - 'GetStreamJobs', - 'GetQueueEngineVersionByEnv', - 'GetClusterQueueInfoByEnv', - 'CreateStreamBatchJobMapping', - ], + 'title' => '实时研发任务', + 'id' => 449626, ], [ - 'id' => 243553, - 'title' => '资源', + 'children' => ['GetResource', 'GetResourceByVersion', 'UpdateResource', 'GetFileStorageCredential', 'DeleteResource', 'CreateResource'], 'type' => 'directory', - 'children' => [ - 'GetResource', - 'GetResourceByVersion', - 'UpdateResource', - 'GetFileStorageCredential', - 'DeleteResource', - 'CreateResource', - ], + 'title' => '资源', + 'id' => 449627, ], [ - 'id' => 243557, + 'children' => ['GetUdf', 'GetUdfByVersion', 'UpdateUdf', 'DeleteUdf', 'CreateUdf'], + 'type' => 'directory', 'title' => '函数', + 'id' => 449628, + ], + [ + 'children' => ['UpdateDataset', 'ListDatasets', 'GetDataset', 'DeleteDataset', 'CreateDataset', 'CreateWorkFlowByJson'], 'type' => 'directory', - 'children' => [ - 'GetUdf', - 'GetUdfByVersion', - 'UpdateUdf', - 'DeleteUdf', - 'CreateUdf', - ], + 'title' => '非结构化数据', + 'id' => 449644, ], [ - 'id' => 201062, - 'title' => '发布', + 'children' => ['ListSubmitRecords', 'GetLatestSubmitDetail', 'PublishObjectList', 'ListPublishRecords'], 'type' => 'directory', - 'children' => [ - 'ListSubmitRecords', - 'GetLatestSubmitDetail', - 'PublishObjectList', - 'ListPublishRecords', - ], + 'title' => '发布', + 'id' => 449646, ], ], + 'type' => 'directory', + 'title' => '研发', + 'id' => 449619, ], [ - 'id' => 205628, - 'title' => '资产', - 'type' => 'directory', 'children' => [ [ - 'id' => 376092, - 'title' => '数据标准', + 'children' => [ + 'UpdateStandardWordRoot', 'UpdateStandardTemplate', 'UpdateStandardSet', 'UpdateStandardMappingToInvalid', 'UpdateStandardLookupTable', 'UpdateStandard', 'OfflineStandard', 'PublishStandard', 'ListStandards', 'GetStandardWordRoot', 'GetStandardTemplate', 'GetStandardStatistics', 'GetStandardSet', 'GetStandardLookupTable', 'GetStandard', 'DeleteStandardWordRoot', 'DeleteStandardValidMapping', 'DeleteStandardSet', 'DeleteStandardRelations', 'DeleteStandardLookupTable', + 'DeleteStandardInValidMapping', 'DeleteStandard', 'CreateStandardWordRoot', 'CreateStandardTemplate', 'CreateStandardSet', 'CreateStandardRelations', 'CreateStandardMapping', 'CreateStandardLookupTable', 'CreateStandard', + ], 'type' => 'directory', + 'title' => '数据标准', + 'id' => 449648, + ], + [ 'children' => [ - 'UpdateStandardWordRoot', - 'UpdateStandardTemplate', - 'UpdateStandardSet', - 'UpdateStandardMappingToInvalid', - 'UpdateStandardLookupTable', - 'UpdateStandard', - 'OfflineStandard', - 'PublishStandard', - 'ListStandards', - 'GetStandardWordRoot', - 'GetStandardTemplate', - 'GetStandardStatistics', - 'GetStandardSet', - 'GetStandardLookupTable', - 'GetStandard', - 'DeleteStandardWordRoot', - 'DeleteStandardValidMapping', - 'DeleteStandardSet', - 'DeleteStandardRelations', - 'DeleteStandardLookupTable', - 'DeleteStandardInValidMapping', - 'DeleteStandard', - 'CreateStandardWordRoot', - 'CreateStandardTemplate', - 'CreateStandardSet', - 'CreateStandardRelations', - 'CreateStandardMapping', - 'CreateStandardLookupTable', - 'CreateStandard', - ], - ], - [ - 'id' => 376128, + 'UpsertQualityWatchAlert', 'UpsertQualityWatch', 'UpsertQualityTemplate', 'UpsertQualitySchedule', 'UpsertQualityRule', 'UpdateQualityWatchSwitch', 'UpdateQualityRuleSwitch', 'SubmitQualityWatchTasks', 'SubmitQualityRuleTasks', 'RemoveQualityRuleSchedules', 'ListQualityWatches', 'ListQualityWatchTasks', 'ListQualityTemplates', 'ListQualityRules', 'ListQualityRuleTasks', 'GetQualityWatchTaskLog', 'GetQualityWatchTask', 'GetQualityWatchByObjectId', 'GetQualityWatch', 'GetQualityTemplate', + 'GetQualitySchedulesByWatchId', 'GetQualitySchedule', 'GetQualityRuleTaskLog', 'GetQualityRuleTask', 'GetQualityRule', 'GetQualityAlertOfAllRuleScopeByWatchId', 'DeleteQualityWatches', 'DeleteQualityTemplates', 'DeleteQualitySchedules', 'DeleteQualityRules', 'AssignQualityRuleOfAllRuleScopeSchedules', + ], + 'type' => 'directory', 'title' => '数据质量', + 'id' => 449649, + ], + [ + 'children' => ['UpdateSecurityLevel', 'UpdateSecurityIdentifyResultStatus', 'UpdateSecurityClassifyCatalog', 'UpdateSecurityClassify', 'ListSecurityIdentifyResults', 'ListSecurityIdentifyRecords', 'GetSecuritySecretKey', 'GetSecurityLevel', 'GetSecurityIdentifyResult', 'GetSecurityClassify', 'DeleteSecurityLevel', 'DeleteSecurityIdentifyResults', 'DeleteSecurityClassifyCatalog', 'DeleteSecurityClassify', 'CreateSecurityLevel', 'CreateSecurityIdentifyResult', 'CreateSecurityClassifyCatalog', 'CreateSecurityClassify'], 'type' => 'directory', - 'children' => [ - 'UpsertQualityWatchAlert', - 'UpsertQualityWatch', - 'UpsertQualityTemplate', - 'UpsertQualitySchedule', - 'UpsertQualityRule', - 'UpdateQualityWatchSwitch', - 'UpdateQualityRuleSwitch', - 'SubmitQualityWatchTasks', - 'SubmitQualityRuleTasks', - 'RemoveQualityRuleSchedules', - 'ListQualityWatches', - 'ListQualityWatchTasks', - 'ListQualityTemplates', - 'ListQualityRules', - 'ListQualityRuleTasks', - 'GetQualityWatchTaskLog', - 'GetQualityWatchTask', - 'GetQualityWatchByObjectId', - 'GetQualityWatch', - 'GetQualityTemplate', - 'GetQualitySchedulesByWatchId', - 'GetQualitySchedule', - 'GetQualityRuleTaskLog', - 'GetQualityRuleTask', - 'GetQualityRule', - 'GetQualityAlertOfAllRuleScopeByWatchId', - 'DeleteQualityWatches', - 'DeleteQualityTemplates', - 'DeleteQualitySchedules', - 'DeleteQualityRules', - 'AssignQualityRuleOfAllRuleScopeSchedules', - ], - ], - [ - 'id' => 376161, 'title' => '数据安全', - 'type' => 'directory', - 'children' => [ - 'UpdateSecurityLevel', - 'UpdateSecurityIdentifyResultStatus', - 'UpdateSecurityClassifyCatalog', - 'UpdateSecurityClassify', - 'ListSecurityIdentifyResults', - 'ListSecurityIdentifyRecords', - 'GetSecuritySecretKey', - 'GetSecurityLevel', - 'GetSecurityIdentifyResult', - 'GetSecurityClassify', - 'DeleteSecurityLevel', - 'DeleteSecurityIdentifyResults', - 'DeleteSecurityClassifyCatalog', - 'DeleteSecurityClassify', - 'CreateSecurityLevel', - 'CreateSecurityIdentifyResult', - 'CreateSecurityClassifyCatalog', - 'CreateSecurityClassify', - ], + 'id' => 449650, ], + 'ListCatalogAssets', + 'GetCatalogAssetDetails', 'GetTableLineages', 'GetBelongAssetMapping', 'GetAssetMappingRelations', @@ -366,181 +155,98 @@ 'GetTableLineageByTaskId', 'GetTableColumnLineageByTaskId', ], + 'type' => 'directory', + 'title' => '资产', + 'id' => 449647, ], [ - 'id' => 198318, - 'title' => '运维', - 'type' => 'directory', 'children' => [ [ - 'id' => 198319, - 'title' => '实例运维', + 'children' => ['GetInstanceUpDownStream', 'GetInstanceDownStream', 'GetSupplementDagrunInstance', 'GetPhysicalInstance', 'ListInstances', 'OperateInstance', 'FixData'], 'type' => 'directory', - 'children' => [ - 'GetInstanceUpDownStream', - 'GetInstanceDownStream', - 'GetSupplementDagrunInstance', - 'GetPhysicalInstance', - 'ListInstances', - 'OperateInstance', - 'FixData', - ], + 'title' => '实例运维', + 'id' => 449652, ], [ - 'id' => 198327, - 'title' => '任务运维', + 'children' => ['ExecuteTriggerNode', 'CreateNodeSupplement', 'PausePhysicalNode', 'GetOperationSubmitStatus', 'GetPhysicalInstanceLog', 'GetSupplementDagrun', 'GetPhysicalNode', 'GetPhysicalNodeContent', 'GetNodeUpDownStream', 'ListNodes', 'GetPhysicalNodeOperationLog', 'ListNodeDownStream', 'GetPhysicalNodeByOutputName', 'GetDevObjectDependency', 'ResumePhysicalNode', 'ExecuteManualNode'], 'type' => 'directory', - 'children' => [ - 'ExecuteTriggerNode', - 'CreateNodeSupplement', - 'PausePhysicalNode', - 'GetOperationSubmitStatus', - 'GetPhysicalInstanceLog', - 'GetSupplementDagrun', - 'GetPhysicalNode', - 'GetPhysicalNodeContent', - 'GetNodeUpDownStream', - 'ListNodes', - 'GetPhysicalNodeOperationLog', - 'ListNodeDownStream', - 'GetPhysicalNodeByOutputName', - 'GetDevObjectDependency', - 'ResumePhysicalNode', - 'ExecuteManualNode', - ], + 'title' => '任务运维', + 'id' => 449653, ], ], + 'type' => 'directory', + 'title' => '运维', + 'id' => 449651, ], [ - 'id' => 201065, - 'title' => '告警消息', + 'children' => ['ListAlertNotifications', 'ListAlertEvents', 'GetAlertEvent'], 'type' => 'directory', - 'children' => [ - 'ListAlertNotifications', - 'ListAlertEvents', - 'GetAlertEvent', - ], + 'title' => '告警消息', + 'id' => 449655, ], [ - 'id' => 201918, - 'title' => '数据服务', - 'type' => 'directory', 'children' => [ - 'RevokeDataServiceApi', - 'PublishDataServiceApi', - 'ListDataServicePublishedApis', - 'ListDataServiceMyAppPermissions', - 'ListDataServiceMyApiPermissions', - 'ListDataServiceAuthorizedApps', - 'ListDataServiceApiImpacts', - 'ListDataServiceApiCalls', - 'ListDataServiceApiCallStatistics', - 'GrantDataServiceApi', - 'GetDataServiceProjectAddableUsers', - 'GetDataServiceMyProjects', - 'GetDataServiceAuthorizedProjects', - 'GetDataServiceAuthorizedAppsByGroupId', - 'GetDataServiceAppsByGroupId', - 'GetDataServiceAppGroups', - 'GetDataServiceAppAuthorizedUsers', - 'GetDataServiceApiGroups', - 'GetDataServiceApiErrorImpact', - 'GetDataServiceApiDocument', - 'GetDataServiceApiCallTrend', - 'GetDataServiceApiCallSummary', - 'ApplyDataServiceApp', - 'ApplyDataServiceApi', - 'AddDataServiceProjectMember', - 'CreateDataServiceApi', - 'ListApiByApp', + 'UpdateDataServiceApp', 'UpdateDataServiceAppGroup', 'UpdateDataServiceAppMember', 'ResetDataServiceAppSecret', 'RemoveDataServiceAppMember', 'ListDataServiceApps', 'GetDataServiceAppMembers', 'GetDataServiceApp', 'DeleteDataServiceAppGroup', 'DeleteDataServiceApp', 'CreateDataServiceAppGroup', 'CreateDataServiceApp', 'AddDataServiceAppMember', 'RevokeDataServiceApi', 'PublishDataServiceApi', 'ListDataServicePublishedApis', 'ListDataServiceMyAppPermissions', 'ListDataServiceMyApiPermissions', 'ListDataServiceAuthorizedApps', 'ListDataServiceApiImpacts', + 'ListDataServiceApiCalls', 'ListDataServiceApiCallStatistics', 'GrantDataServiceApi', 'GetDataServiceProjectAddableUsers', 'GetDataServiceMyProjects', 'GetDataServiceAuthorizedProjects', 'GetDataServiceAuthorizedAppsByGroupId', 'GetDataServiceAppsByGroupId', 'GetDataServiceAppGroups', 'GetDataServiceAppAuthorizedUsers', 'GetDataServiceApiGroups', 'GetDataServiceApiErrorImpact', 'GetDataServiceApiDocument', 'GetDataServiceApiCallTrend', 'GetDataServiceApiCallSummary', 'ApplyDataServiceApp', 'ApplyDataServiceApi', 'AddDataServiceProjectMember', 'CreateDataServiceApi', 'ListApiByApp', 'ListAuthorizedDataServiceApiDetails', ], + 'type' => 'directory', + 'title' => '数据服务', + 'id' => 449656, ], ], 'components' => [ - 'schemas' => [ - 'PrivilegeTransferResultEntrie' => [ - 'type' => 'object', - 'properties' => [ - 'Privilege' => [ - 'title' => '需要转交的功能模块', - 'type' => 'string', - ], - 'PrivilegeDisplayName' => [ - 'title' => '需要转交的功能模块', - 'type' => 'string', - ], - 'Status' => [ - 'title' => '转交状态', - 'type' => 'string', - ], - 'ErrMsg' => [ - 'title' => '如果出错,错误信息', - 'type' => 'string', - ], - 'IsLeaf' => [ - 'title' => '是否为叶子节点', - 'type' => 'boolean', - ], - 'Children' => [ - 'title' => '子功能', - 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/PrivilegeTransferResultEntrie', - ], - ], - 'Test' => [ - 'type' => 'string', - ], - ], - ], - ], + 'schemas' => [], ], 'apis' => [ - 'CheckProjectHasDependency' => [ - 'summary' => '校验项目是否被任务等数据依赖。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'AddDataServiceAppMember' => [ + 'summary' => '新增数据服务应用的普通成员,仅应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'AddCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '新增数据服务应用的普通成员', + 'description' => '新增数据服务应用的普通成员', + 'type' => 'object', + 'properties' => [ + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '200000000'], + 'MemberList' => [ + 'title' => '成员列表', + 'description' => '成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '成员信息', + 'description' => '成员信息', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'required' => true, 'example' => '12345'], + 'EffectiveEnd' => ['title' => '授权到期时间', 'description' => '授权到期时间', 'type' => 'string', 'required' => true, 'example' => '2026-12-12'], + ], + 'required' => true, + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => '12356', ], ], ], @@ -548,126 +254,88 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '新增数据服务应用的普通成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '校验项目是否被依赖', + 'ramActions' => [], ], - 'GetProject' => [ - 'summary' => '通过项目Id获取项目详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'AddDataServiceProjectMember' => [ + 'summary' => '添加数据服务项目用户并设置角色。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12356', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'Env', - 'in' => 'query', + 'name' => 'AddCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识, 默认:PROD', - 'description' => '项目环境,支持:'."\n" - .' - DEV:开发环境'."\n" - .' - PROD:生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', + 'title' => '新增项目成员指令', + 'description' => '新增项目成员指令', + 'type' => 'object', + 'properties' => [ + 'ProjectMemberList' => [ + 'title' => '新增项目成员列表', + 'description' => '新增项目成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Role' => ['title' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', 'description' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2'], + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'required' => true, 'example' => '30012011'], + 'DisplayName' => ['title' => '用户昵称', 'description' => '用户昵称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'AccountName' => ['title' => '用户账号', 'description' => '用户账号', 'type' => 'string', 'required' => true, 'example' => 'xx@aliyuncs.com'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, ], ], ], @@ -675,258 +343,93 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ProjectInfo' => [ - 'title' => '项目详情', - 'description' => '项目详情', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '所属业务板块Id', - 'description' => '依赖数据模块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '业务板块Id', - ], - 'BizUnitDisplayName' => [ - 'title' => '所属业务板块展示名', - 'description' => '依赖数据模块显示名', - 'type' => 'string', - 'example' => '业务板块显示名', - ], - 'ComputeSourceId' => [ - 'title' => '绑定计算源Id', - 'description' => '计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '项目依赖计算源Id', - ], - 'ComputeSourceName' => [ - 'title' => '绑定计算源名', - 'description' => '计算源名称', - 'type' => 'string', - 'example' => '项目依赖计算源名', - ], - 'StreamComputeSourceId' => [ - 'title' => '绑定实时计算源Id', - 'description' => '实时计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '项目依赖实时计算源Id', - ], - 'StreamComputeSourceName' => [ - 'title' => '绑定实时计算源名', - 'description' => '实时计算源名称', - 'type' => 'string', - 'example' => '项目依赖实时计算源名', - ], - 'NameSpaceTag' => [ - 'title' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', - 'description' => '项目标签', - 'type' => 'string', - 'example' => 'GENERAL', - ], - 'Env' => [ - 'title' => '环境标识', - 'description' => '环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'WhiteLists' => [ - 'title' => '白名单', - 'description' => '白名单列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '白名单', - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '描述', - 'description' => '白名单描述', - 'type' => 'string', - 'example' => 'whitelist for xxx', - ], - 'Ip' => [ - 'title' => 'Ip', - 'description' => 'ip', - 'type' => 'string', - 'example' => '10.209.47.198', - ], - 'Port' => [ - 'title' => '端口', - 'description' => '端口', - 'type' => 'string', - 'example' => '3306', - ], - ], - ], - ], - 'Mode' => [ - 'title' => '项目模式', - 'description' => '项目模式,支持:'."\n" - .'- BASIC'."\n" - .'- DEV_PROD', - 'type' => 'string', - 'example' => 'BASIC', - ], - 'Type' => [ - 'title' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', - 'description' => '项目类型', - 'type' => 'string', - 'example' => 'GENERAL', - ], - 'Id' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12356', - ], - 'Name' => [ - 'title' => '项目名称', - 'description' => '项目名', - 'type' => 'string', - 'example' => 'dp_test', - ], - 'DisplayName' => [ - 'title' => '项目展示名', - 'description' => '项目显示名', - 'type' => 'string', - 'example' => '项目显示名', - ], - 'Description' => [ - 'title' => '项目描述', - 'description' => '项目描述', - 'type' => 'string', - 'example' => 'project for xxx', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '1703048484000', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '编辑时间', - 'type' => 'string', - 'example' => '1703048484000', - ], - 'Owner' => [ - 'title' => '项目责任人', - 'description' => '项目归属人Id', - 'type' => 'string', - 'example' => '101111', - ], - 'OwnerName' => [ - 'title' => '项目责任人', - 'description' => '项目归属人', - 'type' => 'string', - 'example' => '测试用户', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '新增数据服务项目成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ProjectInfo\\": {\\n \\"BizUnitId\\": 0,\\n \\"BizUnitDisplayName\\": \\"业务板块显示名\\",\\n \\"ComputeSourceId\\": 0,\\n \\"ComputeSourceName\\": \\"项目依赖计算源名\\",\\n \\"StreamComputeSourceId\\": 0,\\n \\"StreamComputeSourceName\\": \\"项目依赖实时计算源名\\",\\n \\"NameSpaceTag\\": \\"GENERAL\\",\\n \\"Env\\": \\"DEV\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"whitelist for xxx\\",\\n \\"Ip\\": \\"10.209.47.198\\",\\n \\"Port\\": \\"3306\\"\\n }\\n ],\\n \\"Mode\\": \\"BASIC\\",\\n \\"Type\\": \\"GENERAL\\",\\n \\"Id\\": 12356,\\n \\"Name\\": \\"dp_test\\",\\n \\"DisplayName\\": \\"项目显示名\\",\\n \\"Description\\": \\"project for xxx\\",\\n \\"GmtCreate\\": \\"1703048484000\\",\\n \\"GmtModified\\": \\"1703048484000\\",\\n \\"Owner\\": \\"101111\\",\\n \\"OwnerName\\": \\"测试用户\\"\\n }\\n}","type":"json"}]', - 'title' => '获取项目详情', + 'ramActions' => [], ], - 'GetProjectByName' => [ - 'summary' => '通过项目名获取项目详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'AddProjectMember' => [ + 'summary' => '增加项目成员。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Name', + 'name' => 'Id', 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + ], + [ + 'name' => 'AddCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目名', - 'description' => '项目名', - 'type' => 'string', + 'title' => '新增成员命令', + 'description' => '新增成员命令', + 'type' => 'object', + 'properties' => [ + 'Env' => ['title' => '环境标识: DEV、PROD', 'description' => '环境标识: DEV、PROD', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'UserList' => [ + 'title' => '用户成员', + 'description' => '用户成员', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '30012011'], + 'RoleList' => [ + 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', + 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', + 'type' => 'array', + 'items' => ['title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'required' => true, + ], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => 'test', ], ], ], @@ -937,217 +440,36 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ProjectInfo' => [ - 'title' => '项目详情', - 'description' => '项目详情', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '所属业务板块Id', - 'description' => '所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101131', - ], - 'BizUnitDisplayName' => [ - 'title' => '所属业务板块展示名', - 'description' => '所属业务板块展示名', - 'type' => 'string', - 'example' => '测试', - ], - 'ComputeSourceId' => [ - 'title' => '绑定计算源Id', - 'description' => '绑定计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101711', - ], - 'ComputeSourceName' => [ - 'title' => '绑定计算源名', - 'description' => '绑定计算源名', - 'type' => 'string', - 'example' => 'ds1', - ], - 'StreamComputeSourceId' => [ - 'title' => '绑定实时计算源Id', - 'description' => '绑定实时计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '201711', - ], - 'StreamComputeSourceName' => [ - 'title' => '绑定实时计算源名', - 'description' => '绑定实时计算源名', - 'type' => 'string', - 'example' => 'ds2', - ], - 'NameSpaceTag' => [ - 'title' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', - 'description' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', - 'type' => 'string', - 'example' => 'BASE', - ], - 'Env' => [ - 'title' => '环境标识', - 'description' => '环境标识', - 'type' => 'string', - 'example' => 'DEV', - ], - 'WhiteLists' => [ - 'title' => '白名单', - 'description' => '白名单', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx 白名单', - ], - 'Ip' => [ - 'title' => 'Ip', - 'description' => 'Ip', - 'type' => 'string', - 'example' => '10.11.1.21', - ], - 'Port' => [ - 'title' => '端口', - 'description' => '端口', - 'type' => 'string', - 'example' => '5432', - ], - ], - ], - ], - 'Mode' => [ - 'title' => '项目模式', - 'description' => '项目模式', - 'type' => 'string', - 'example' => 'BASIC', - ], - 'Type' => [ - 'title' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', - 'description' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', - 'type' => 'string', - 'example' => 'GENERAL', - ], - 'Id' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'Name' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DisplayName' => [ - 'title' => '项目展示名', - 'description' => '项目展示名', - 'type' => 'string', - 'example' => 'xx test', - ], - 'Description' => [ - 'title' => '项目描述', - 'description' => '项目描述', - 'type' => 'string', - 'example' => '测试', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'Owner' => [ - 'title' => '项目责任人', - 'description' => '项目责任人', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '项目责任人', - 'description' => '项目责任人', - 'type' => 'string', - 'example' => '张三', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '增加项目成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectInfo\\": {\\n \\"BizUnitId\\": 101131,\\n \\"BizUnitDisplayName\\": \\"测试\\",\\n \\"ComputeSourceId\\": 101711,\\n \\"ComputeSourceName\\": \\"ds1\\",\\n \\"StreamComputeSourceId\\": 201711,\\n \\"StreamComputeSourceName\\": \\"ds2\\",\\n \\"NameSpaceTag\\": \\"BASE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"xx 白名单\\",\\n \\"Ip\\": \\"10.11.1.21\\",\\n \\"Port\\": \\"5432\\"\\n }\\n ],\\n \\"Mode\\": \\"BASIC\\",\\n \\"Type\\": \\"GENERAL\\",\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"test\\",\\n \\"DisplayName\\": \\"xx test\\",\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', - 'title' => '通过项目名获取项目详情', + 'ramActions' => [], ], - 'AddProjectMember' => [ - 'summary' => '增加项目成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'AddRegisterLineage' => [ + 'summary' => '新增注册血缘,上线版本v5.4.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -1156,86 +478,109 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AddCommand', + 'name' => 'AddRegisterLineageCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '新增成员命令', - 'description' => '新增成员命令', + 'title' => '注册血缘, 增加血缘command', + 'description' => '注册血缘, 增加血缘command', 'type' => 'object', 'properties' => [ - 'Env' => [ - 'title' => '环境标识: DEV、PROD', - 'description' => '环境标识: DEV、PROD', - 'type' => 'string', + 'Source' => [ + 'title' => 'source资产', + 'description' => 'source资产', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => true, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'MetadataSubType' => ['title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'table1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], 'required' => true, - 'example' => 'DEV', ], - 'UserList' => [ - 'title' => '用户成员', - 'description' => '用户成员', + 'Target' => [ + 'title' => 'target资产', + 'description' => 'target资产', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => true, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'MetadataSubType' => ['title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'table1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], + 'required' => true, + ], + 'DetailedLineages' => [ + 'title' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘, 如果不想增加字段血缘, 可以为空', + 'description' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘, 如果不想增加字段血缘, 可以为空', 'type' => 'array', 'items' => [ - 'title' => '', + 'title' => '子对象血缘关系', + 'description' => '子对象血缘关系', 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', + 'Source' => [ + 'title' => 'source资产引用', + 'description' => 'source资产引用', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => false, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1.column1'], + 'ParentGuid' => ['title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => false, 'example' => 'COLUMN'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], 'required' => true, - 'example' => '30012011', ], - 'RoleList' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'type' => 'array', - 'items' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', + 'Target' => [ + 'title' => 'target资产引用', + 'description' => 'target资产引用', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => false, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1.column1'], + 'ParentGuid' => ['title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => false, 'example' => 'COLUMN'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], ], 'required' => true, ], + 'IsDirect' => ['title' => '是否是直接血缘, 默认为true', 'description' => '是否是直接血缘, 默认为true', 'type' => 'boolean', 'required' => false, 'default' => 'true'], ], 'required' => false, ], - 'required' => true, + 'required' => false, ], + 'CheckAssetExist' => ['title' => '是否需要校验资产本身的存在性, 默认不校验存在性', 'description' => '是否需要校验资产本身的存在性, 默认不校验存在性', 'type' => 'boolean', 'required' => false], + 'RelationProperties' => ['title' => '血缘关系属性', 'description' => '血缘关系属性', 'type' => 'object', 'required' => false], + 'TenantId' => ['title' => '租户Id', 'description' => '租户Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '300001234'], + 'UserId' => ['title' => '当前用户Id', 'description' => '当前用户Id', 'type' => 'string', 'required' => false, 'example' => '300004567'], ], 'required' => true, ], @@ -1248,718 +593,341 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '新增注册血缘', + 'extraInfo' => '上线版本:v5.4.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '增加项目成员', + 'ramActions' => [], ], - 'GetProjectWhiteLists' => [ - 'summary' => '获取项目白名单。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'AddTenantMembers' => [ + 'summary' => '批量添加用户至租户,该API仅支持超级管理员(SuperAdmin)和系统管理员能调用。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'AddCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'WhiteLists' => [ - 'title' => '项目白名单', - 'description' => '项目白名单', + 'UserList' => [ + 'title' => '成员列表', + 'description' => '成员列表', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '成员对象', + 'description' => '成员对象', 'type' => 'object', 'properties' => [ - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '测试', - ], - 'Ip' => [ - 'title' => 'ip', - 'description' => 'ip', - 'type' => 'string', - 'example' => '10.1.0.2', - ], - 'Port' => [ - 'title' => '端口', - 'description' => '端口', - 'type' => 'string', - 'example' => '5432', + 'Id' => ['description' => '用户ID', 'type' => 'string', 'required' => false, 'example' => '1323241'], + 'RoleList' => [ + 'title' => '用户Id', + 'description' => '角色列表'."\n" + .'- SYSTEM_ADMIN'."\n" + .'- DATASOURCE_MANAGER'."\n" + .'- SECURITY_ADMIN'."\n" + .'- QUALITY_MANAGER'."\n" + .'- EXPORT_ADMIN'."\n" + .'- DATA_STANDARD_MANAGER'."\n" + .'- LABELS_BUSINESS_PLANNER'."\n" + .'- BUSINESS_MEMBER', + 'type' => 'array', + 'items' => ['title' => '角色列表', 'description' => '角色', 'type' => 'string', 'required' => false, 'example' => 'SECURITY_ADMIN'], + 'required' => false, ], ], + 'required' => false, ], + 'required' => true, ], ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '新增租户成员结果', 'description' => '新增租户成员结果', 'type' => 'boolean'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '添加用户到租户', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"测试\\",\\n \\"Ip\\": \\"10.1.0.2\\",\\n \\"Port\\": \\"5432\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取项目白名单', - ], - 'ListProjectMembers' => [ - 'summary' => '查询项目成员列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddTenantMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'AddTenantMembersBySourceUser' => [ + 'summary' => '通过原始用户添加租户成员。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'AddCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '请求对象', + 'description' => '添加请求', 'type' => 'object', 'properties' => [ - 'Env' => [ - 'title' => '环境标识', - 'description' => '项目环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认:20', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - 'PageNo' => [ - 'title' => '页码, 默认:1', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', + 'SourceUserList' => [ + 'description' => '来源用户列表', + 'type' => 'array', + 'items' => [ + 'description' => '来源用户', + 'type' => 'object', + 'properties' => [ + 'SourceId' => ['title' => '用户原始Id', 'description' => '用户原始Id', 'type' => 'string', 'required' => false, 'example' => '2323131'], + 'DisplayName' => ['title' => '显示名', 'description' => '显示名', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'AccountName' => ['title' => '账号名称', 'description' => '账号名称', 'type' => 'string', 'required' => false, 'example' => '123@xx.com'], + 'MobilePhone' => ['title' => '电话号码', 'description' => '电话号码', 'type' => 'string', 'required' => false, 'example' => '13888888888'], + 'Mail' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'required' => false, 'example' => '123@xx.com'], + 'DingNumber' => ['title' => '钉钉号', 'description' => '钉钉号', 'type' => 'string', 'required' => false, 'example' => '123@dingding'], + ], + 'required' => false, + ], 'required' => false, - 'example' => '1', ], ], - 'required' => true, - 'example' => '1030111021', + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '项目成员总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '101', - ], - 'ProjectMemberList' => [ - 'title' => '分页用户成员列表', - 'description' => '项目成员列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '项目成员', - 'type' => 'object', - 'properties' => [ - 'RoleIdList' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '角色', - 'type' => 'array', - 'items' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '角色编码,编码列表参考新增项目成员', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间戳', - 'type' => 'string', - 'example' => '1702692675000', - ], - 'LastModifier' => [ - 'title' => '最后编辑用户Id', - 'description' => '编辑人Id', - 'type' => 'string', - 'example' => '101111', - ], - 'UserName' => [ - 'title' => '用户名', - 'description' => '成员用户名', - 'type' => 'string', - 'example' => '测试用户', - ], - 'UserId' => [ - 'title' => '用户ID', - 'description' => '成员用户Id', - 'type' => 'string', - 'example' => '101111', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间戳', - 'type' => 'string', - 'example' => '1721720955000', - ], - 'Id' => [ - 'title' => '用户成员ID', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12356', - ], - 'LastModifierName' => [ - 'title' => '最后编辑用户名', - 'description' => '编辑人', - 'type' => 'string', - 'example' => '测试用户', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '添加结果', 'description' => '添加结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '根据认证系统的来源用户ID添加用户到租户', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 101,\\n \\"ProjectMemberList\\": [\\n {\\n \\"RoleIdList\\": [\\n 1\\n ],\\n \\"GmtCreate\\": \\"1702692675000\\",\\n \\"LastModifier\\": \\"101111\\",\\n \\"UserName\\": \\"测试用户\\",\\n \\"UserId\\": \\"101111\\",\\n \\"GmtModified\\": \\"1721720955000\\",\\n \\"Id\\": 12356,\\n \\"LastModifierName\\": \\"测试用户\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询项目成员列表', - ], - 'ListProjects' => [ - 'summary' => '获取项目列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddTenantMembersBySourceUser', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'AddUserGroupMember' => [ + 'summary' => '添加用户组成员。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'AddCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '添加用户组成员', + 'description' => '添加用户组成员', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '关键字模糊匹配', - 'description' => '关键字模糊匹配', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'TagList' => [ - 'title' => '项目标签', - 'description' => '项目标签', + 'UserGroupId' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '132331'], + 'UserIdList' => [ + 'title' => '用户Id列表', + 'description' => '用户Id列表', 'type' => 'array', - 'items' => [ - 'title' => '项目标签', - 'description' => '项目标签', - 'type' => 'string', - 'required' => false, - 'example' => 'GENERAL', - ], - 'required' => false, - ], - 'Mode' => [ - 'title' => '项目模式', - 'description' => '项目模式', - 'type' => 'string', - 'required' => false, - 'example' => 'BASIC', - ], - 'Env' => [ - 'title' => '环境标识', - 'description' => '环境标识', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'PageNo' => [ - 'title' => '页码, 默认:1', - 'description' => '页码, 默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认:20', - 'description' => '分页记录数, 默认:20', - 'type' => 'integer', - 'format' => 'int32', + 'items' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => false, 'example' => '342313'], 'required' => false, - 'example' => '20', ], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'ProjectList' => [ - 'title' => '分页项目列表', - 'description' => '分页项目列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'RealtimeDataSourceName' => [ - 'title' => '实时计算源名', - 'description' => '实时计算源名', - 'type' => 'string', - 'example' => 'ds2', - ], - 'Owner' => [ - 'title' => '项目负责人', - 'description' => '项目负责人', - 'type' => 'string', - 'example' => '30012112', - ], - 'OwnerName' => [ - 'title' => '项目负责人', - 'description' => '项目负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '测试', - ], - 'Mode' => [ - 'title' => '项目模式', - 'description' => '项目模式', - 'type' => 'string', - 'example' => 'BASIC', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'Env' => [ - 'title' => '环境标识', - 'description' => '环境标识', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Name' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'demo', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '162112', - ], - 'Type' => [ - 'title' => '项目类型', - 'description' => '项目类型', - 'type' => 'string', - 'example' => 'GENERAL', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'DataSourceName' => [ - 'title' => '计算源名', - 'description' => '计算源名', - 'type' => 'string', - 'example' => 'ds1', - ], - 'DisplayName' => [ - 'title' => '项目展示名', - 'description' => '项目展示名', - 'type' => 'string', - 'example' => '测试', - ], - 'Id' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'DataSourceId' => [ - 'title' => '计算源Id', - 'description' => '计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'RealtimeDataSourceId' => [ - 'title' => '实时计算源Id', - 'description' => '实时计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1122', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '添加结果', 'description' => '添加结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '添加用户组成员', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ProjectList\\": [\\n {\\n \\"RealtimeDataSourceName\\": \\"ds2\\",\\n \\"Owner\\": \\"30012112\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"测试\\",\\n \\"Mode\\": \\"BASIC\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Name\\": \\"demo\\",\\n \\"BizUnitId\\": 162112,\\n \\"Type\\": \\"GENERAL\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"DataSourceName\\": \\"ds1\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Id\\": 1030111021,\\n \\"DataSourceId\\": 1121,\\n \\"RealtimeDataSourceId\\": 1122\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询项目列表', - ], - 'RemoveProjectMember' => [ - 'summary' => '删除项目成员。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddUserGroupMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ApplyDataServiceApi' => [ + 'summary' => '申请API权限。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -1968,65 +936,86 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'RemoveCommand', + 'name' => 'ApplyCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除成员命令', - 'description' => '删除成员命令', + 'title' => '申请指令', + 'description' => '申请指令', 'type' => 'object', 'properties' => [ - 'Env' => [ - 'title' => '环境标识: DEV、PROD', - 'description' => '环境标识: DEV、PROD', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', + 'ExpireDate' => ['title' => '有效期,日期格式:yyyy-MM-dd', 'description' => '有效期,日期格式:yyyy-MM-dd', 'type' => 'string', 'required' => true, 'example' => '2025-06-30'], + 'Reason' => ['title' => '申请原因', 'description' => '申请原因', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'ApiId' => ['title' => 'API编号', 'description' => 'API编号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1021'], + 'ApplyType' => ['title' => '申请类型:'."\n" + .'- APP:应用'."\n" + .'- USER:个人账号', 'description' => '申请类型:'."\n" + .'- APP:应用'."\n" + .'- USER:个人账号', 'type' => 'string', 'required' => false, 'example' => 'APP', 'default' => 'APP'], + 'AppId' => ['title' => 'AppId', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1203'], + 'ProdFieldList' => [ + 'title' => '查询类API生产环境权限字段列表,basic模式下必填', + 'description' => '查询类API生产环境权限字段列表,basic模式下必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Api权限字段id', 'description' => 'API权限字段ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '22'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, ], - 'UserIdList' => [ - 'title' => '用户Id', - 'description' => '用户Id', + 'DevFieldList' => [ + 'title' => '查询类API开发环境权限字段列表,dev-prod模式下需传,devFieldList、prodFieldList不能都为空', + 'description' => '查询类API开发环境权限字段列表,dev-prod模式下需传,devFieldList、prodFieldList不能都为空', 'type' => 'array', 'items' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Api权限字段id', 'description' => 'API权限字段ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '22'], + ], 'required' => false, - 'example' => '30012011', + 'description' => '', ], 'required' => false, ], + 'ApplyDev' => ['title' => '是否申请操作类API的开发环境权限', 'description' => '是否申请操作类API的开发环境权限', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'ApplyProd' => ['title' => '是否申请操作类API的生产环境权限', 'description' => '是否申请操作类API的生产环境权限', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'AuthTypes' => [ + 'title' => '权限类型列表'."\n" + .'当申请的主体为应用时支持以下类型的权限类型(申请代理权限时必须同时申请使用权限)'."\n" + .'- USE:使用权限'."\n" + .'- DELEGATION:代理权限'."\n" + .'当申请的主体为个人时仅支持USE(使用)权限'."\n" + .'当未传入参数时,默认为USE(使用)权限', + 'description' => '权限类型列表'."\n" + .'- 当申请的主体为应用时支持以下类型的权限类型(申请代理权限时必须同时申请使用权限)'."\n" + ."\n" + .' - USE:使用权限'."\n" + .' - DELEGATION:代理权限'."\n" + .'- 当申请的主体为个人时仅支持USE(使用)权限'."\n" + .'- 当未传入参数时,默认为USE(使用)权限', + 'type' => 'array', + 'items' => ['title' => '权限类型', 'description' => '权限类型', 'type' => 'string', 'required' => false, 'example' => 'USE', 'default' => 'USE'], + 'required' => false, + ], ], 'required' => true, ], @@ -2039,149 +1028,68 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除项目成员', - ], - 'ReplaceProjectWhiteLists' => [ - 'summary' => '更新项目白名单。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'title' => '申请数据服务API权限', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'ApplyDataServiceApp' => [ + 'summary' => '申请应用权限。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'ReplaceCommand', + 'name' => 'ApplyCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑命令', - 'description' => '编辑命令', + 'title' => '申请指令', + 'description' => '申请指令', 'type' => 'object', 'properties' => [ - 'WhiteLists' => [ - 'title' => '项目白名单', - 'description' => '项目白名单', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => '测试', - ], - 'Ip' => [ - 'title' => 'ip', - 'description' => 'ip', - 'type' => 'string', - 'required' => true, - 'example' => '10.1.0.2', - ], - 'Port' => [ - 'title' => '端口', - 'description' => '端口', - 'type' => 'string', - 'required' => true, - 'example' => '5432', - ], - ], - 'required' => false, - ], - 'required' => true, - ], + 'ExpireDate' => ['title' => '有效期,日期格式:yyyy-MM-dd', 'description' => '有效期,日期格式:yyyy-MM-dd', 'type' => 'string', 'required' => true, 'example' => '2025-06-30'], + 'Reason' => ['title' => '申请原因', 'description' => '申请原因', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'AppId' => ['title' => 'appId', 'description' => 'appId', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '2011'], ], 'required' => true, ], @@ -2194,68 +1102,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '替换项目白名单', - ], - 'UpdateProjectMember' => [ - 'summary' => '编辑项目成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'title' => '申请数据服务应用权限', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'AssignQualityRuleOfAllRuleScopeSchedules' => [ + 'summary' => '指定质量规则和调度设置进行绑定。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -2264,84 +1141,35 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'AssignCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑命令', - 'description' => '编辑命令', + 'title' => '分派绑定指令', + 'description' => '分派绑定指令', 'type' => 'object', 'properties' => [ - 'Env' => [ - 'title' => '环境标识', - 'description' => '环境标识', - 'type' => 'string', + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '平均值'], + 'RuleIdList' => [ + 'title' => '规则ID', + 'description' => '规则ID', + 'type' => 'array', + 'items' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], 'required' => true, - 'example' => 'DEV', ], - 'UserList' => [ - 'title' => '用户成员', - 'description' => '用户成员', + 'ScheduleIdList' => [ + 'title' => '调度ID', + 'description' => '调度ID', 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '30012011', - ], - 'RoleList' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'type' => 'array', - 'items' => [ - 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'required' => true, - ], - ], - 'required' => false, - ], + 'items' => ['title' => '调度ID', 'description' => '调度ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], 'required' => true, ], ], @@ -2356,127 +1184,75 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '指定质量规则和调度设置进行绑定', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '编辑项目成员', + 'ramActions' => [], ], - 'UpdateTenantComputeEngine' => [ - 'summary' => '修改租户计算设置。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CheckComputeSourceConnectivity' => [ + 'summary' => '校验连通性校验。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CheckCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑指令', - 'description' => '编辑指令', + 'title' => '校验指令', + 'description' => '校验指令', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MacCompute', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'string', - 'required' => false, - 'example' => '1.0', - ], - 'ClusterUrlList' => [ - 'title' => '集群节点连接列表', - 'description' => '集群节点连接列表', + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + 'ConfigList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', 'type' => 'array', 'items' => [ - 'title' => '集群节点连接列表', - 'description' => '集群节点连接列表', - 'type' => 'string', - 'required' => true, - 'example' => '10.1.11.2', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + ], + 'required' => false, + 'description' => '', ], 'required' => true, ], @@ -2489,72 +1265,40 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '计算源连通性校验', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '修改租户计算设置', + 'ramActions' => [], ], - 'GetCheckConnectivityJobs' => [ - 'summary' => '根据指定数据源ID查询连通性检查任务列表,包含空值校验和租户权限验证,防止跨租户访问。'."\n" - .'发布版本号:v5.5.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CheckComputeSourceConnectivityById' => [ + 'summary' => '通过计算源Id校验已存在计算源连通性。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -2563,163 +1307,57 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DataSourceId', + 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '462935472785', - ], + 'schema' => ['title' => '计算源Id', 'description' => '计算源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12356'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => 'result', - 'description' => 'result', - 'type' => 'array', - 'items' => [ - 'title' => 'CheckConnectivityJobDTO', - 'description' => 'CheckConnectivityJobDTO', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'title' => '任务状态', - 'description' => '任务状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'TenantId' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'string', - 'example' => '30001011', - ], - 'JobType' => [ - 'title' => '任务类型(应用级别或集群级别)', - 'description' => '任务类型(应用级别或集群级别)', - 'type' => 'string', - 'example' => 'application/cluster', - ], - 'ErrorMsg' => [ - 'title' => '错误信息(任务失败时的详细错误描述)', - 'description' => '错误信息(任务失败时的详细错误描述)', - 'type' => 'string', - 'example' => 'notFoundIp', - ], - 'VoldemortTaskId' => [ - 'title' => 'Voldemort任务ID(用于关联底层执行任务)', - 'description' => 'Voldemort任务ID(用于关联底层执行任务)', - 'type' => 'string', - 'example' => 't_7572319950395080706_20251225_7572319950395080707', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => '192', - ], - 'JobId' => [ - 'title' => '任务ID', - 'description' => '任务ID', - 'type' => 'string', - 'example' => '123123', - ], - ], - ], - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '通过计算源Id校验连通性', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TenantId\\": \\"30001011\\",\\n \\"JobType\\": \\"application/cluster\\",\\n \\"ErrorMsg\\": \\"notFoundIp\\",\\n \\"VoldemortTaskId\\": \\"t_7572319950395080706_20251225_7572319950395080707\\",\\n \\"DataSourceId\\": \\"192\\",\\n \\"JobId\\": \\"123123\\"\\n }\\n ],\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '查询数据源检查连通性任务', - 'description' => '可以根据数据源Id查询已测试的连通性任务详细信息', + 'ramActions' => [], ], - 'GetDataSourceDependencies' => [ - 'summary' => '查询数据源变更影响的集成任务及数据库SQL任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'CheckDataSourceConnectivity' => [ + 'summary' => '校验数据源连通性。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -2727,347 +1365,306 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1023211', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'CheckCommand', + 'in' => 'formData', + 'allowEmptyValue' => false, + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '校验对象', + 'description' => '校验对象', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', + 'Type' => [ + 'title' => '数据源类型', + 'description' => '数据源类型,可支持数据源见新建数据源', 'type' => 'string', - 'example' => 'internal error', + 'required' => true, + 'example' => 'MAX_COMPUTE', + 'enum' => [], ], - 'DependencyList' => [ - 'title' => '引用记录', - 'description' => '引用记录', + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '连接配置项', + 'description' => '连接配置项', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '依赖记录类型', - 'description' => '依赖记录类型', - 'type' => 'string', - 'example' => 'pipeline', - ], - 'TypeCode' => [ - 'title' => '依赖记录类型code', - 'description' => '依赖记录类型code', - 'type' => 'string', - 'example' => 'pipeline', - ], - 'Id' => [ - 'title' => '依赖记录id', - 'description' => '依赖记录id', - 'type' => 'string', - 'example' => '1', - ], - 'Name' => [ - 'title' => '依赖记录名称', - 'description' => '依赖记录名称', - 'type' => 'string', - 'example' => 'jytest', - ], + 'Key' => ['title' => '配置项keyId', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置值', 'description' => '配置值', 'type' => 'string', 'required' => true, 'example' => 'v1'], ], + 'required' => true, ], + 'required' => true, ], ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '数据源连接校验结果', 'description' => '数据源连接校验结果', 'type' => 'boolean', 'example' => 'true'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '校验数据源连通性', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DependencyList\\": [\\n {\\n \\"Type\\": \\"pipeline\\",\\n \\"TypeCode\\": \\"pipeline\\",\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"jytest\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取数据源依赖列表', - ], - 'CreateDataSource' => [ - 'summary' => '新建数据源:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckDataSourceConnectivity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CheckDataSourceConnectivityById' => [ + 'summary' => '校验数据源连通性。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '新建数据源请求', - 'description' => '请求对象', - 'type' => 'object', + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', 'properties' => [ - 'ProdDataSourceCreate' => [ - 'title' => '数据源创建', - 'description' => '生成环境数据源', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型:'."\n" - .'- MAX_COMPUTE'."\n" - .'- HDFS'."\n" - .'- LOG_HUB'."\n" - .'- POLARDB'."\n" - .'- HBASE_0_9_4'."\n" - .'- HBASE_1_1_X'."\n" - .'- DRDS'."\n" - .'- HIVE'."\n" - .'- FTP'."\n" - .'- ELASTIC_SEARCH'."\n" - .'- MYSQL'."\n" - .'- MONGODB'."\n" - .'- OSS'."\n" - .'- HANA'."\n" - .'- SQL_SERVER'."\n" - .'- POSTGRE_SQL'."\n" - .'- ANALYTICDB'."\n" - .'- ADB_FOR_MYSQL_V3'."\n" - .'- ADB_FOR_PG'."\n" - .'- ORACLE'."\n" - .'- VERTICA'."\n" - .'- DB2'."\n" - .'- TERA_DATA 等', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - ], - 'Name' => [ - 'title' => '名字', - 'description' => '数据源名', - 'type' => 'string', - 'required' => true, - 'example' => 'dp_test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '数据源描述', - 'type' => 'string', - 'required' => false, - 'example' => 'datasource for xx', - ], - 'CheckActivity' => [ - 'title' => '是否校验连通性', - 'description' => '是否联通性校验', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项列表', - 'type' => 'array', - 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项keyId', - 'description' => '配置项,不同数据库需要的Key值请查看文档下方补充说明', - 'type' => 'string', - 'required' => true, - 'example' => 'jdbc.username', - ], - 'Value' => [ - 'title' => '配置值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'username', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - ], - 'required' => false, - ], - 'DevDataSourceCreate' => [ - 'title' => '新建开发环境数据源', - 'description' => '开发环境数据源', - 'type' => 'object', - 'properties' => [ - 'ProdDataSourceId' => [ - 'title' => '关联生产环境数据源ID,如果只新建开发环境计算源时不能为空', - 'description' => '关联生产环境数据源ID,如果只新建开发环境计算源时不能为空', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1011', - ], - 'DataSourceCreate' => [ - 'title' => '数据源创建', - 'description' => '开发环境数据源', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - ], - 'Name' => [ - 'title' => '名字', - 'description' => '数据源名', - 'type' => 'string', - 'required' => true, - 'example' => 'dp_test_dev', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'datasource for xxx in dev ', - ], - 'CheckActivity' => [ - 'title' => '是否校验连通性', - 'description' => '是否连通性校验', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'true', - ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项列表', - 'type' => 'array', - 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项keyId', - 'description' => '配置项,不同数据库需要的Key值请查看文档下方补充说明', - 'type' => 'string', - 'required' => true, - 'example' => 'jdbc.username', - ], - 'Value' => [ - 'title' => '配置值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'username', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - ], - 'required' => false, + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '数据源连接校验结果', 'description' => '数据源连接校验结果', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '通过数据源ID校验连通性', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckDataSourceConnectivityById', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CheckProjectHasDependency' => [ + 'summary' => '校验项目是否被任务等数据依赖。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12356'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '校验项目是否被依赖', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CheckResourcePermission' => [ + 'summary' => '校验用户是否有指定资源权限点。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CheckCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '校验用户资源点权限', + 'description' => '校验用户资源点权限', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '323231'], + 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型'."\n" + .'- PHYSICAL_TABLE:物理表'."\n" + .'- PHYSICAL_FIELD:物理表字段'."\n" + .'- LOGICAL_TABLE:事实逻辑表'."\n" + .'- LOGICAL_FIELD:事实逻辑表字段'."\n" + .'- LABEL_TABLE:标签逻辑表'."\n" + .'- LABEL_FIELD:标签逻辑表字段'."\n" + .'- DATASOURCE:数据源'."\n" + .'- GLOBAL_PARAM:全局参数'."\n" + .'- REALTIME_LOGICAL_TABLE:实时元表'."\n" + .'- REALTIME_LOGICAL_FIELD:实时元表字段'."\n" + .'- REALTIME_MIRROR_TABLE:镜像表'."\n" + .'- REALTIME_MIRROR_FIELD:实时镜像表字段'."\n" + .'- FUNCTION:函数'."\n" + .'- FEATURE:功能权限'."\n" + .'- PHYSICAL_VIEW:物理视图'."\n" + .'- LOGICAL_VIEW:逻辑视图'."\n" + .'- QD_SERVICE_FEATURE:服务标签'."\n" + .'- QD_ADVANCED_FEATURE:高级标签'."\n" + .'- QD_CLUSTER:群组'."\n" + .'- QD_EVENT:事件'."\n" + .'- QD_OFFLINE_SERVICE:标签离线服务任务'."\n" + .'- PHYSICAL_MATERIALIZED_VIEW:物化视图', 'type' => 'string', 'required' => true, 'example' => 'PHYSICAL_TABLE'], + 'ResourceList' => [ + 'title' => '权限资源列表', + 'description' => '权限资源列表', + 'type' => 'array', + 'items' => [ + 'title' => '权限资源', + 'description' => '权限资源', + 'type' => 'object', + 'properties' => [ + 'ResourceId' => ['title' => '资源Id', 'description' => '资源Id', 'type' => 'string', 'required' => true, 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01'], ], + 'required' => false, ], - 'required' => false, + 'required' => true, ], + 'Operate' => ['title' => '操作类型', 'description' => '操作类型', 'type' => 'string', 'required' => true, 'example' => 'UPDATE'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -3078,55 +1675,22 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ - 'title' => '数据源新建结果', - 'description' => '数据源新建结果', - 'type' => 'object', - 'properties' => [ - 'DevDataSourceId' => [ - 'title' => '开发环境数据源ID', - 'description' => '开发环境数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'ProdDataSourceId' => [ - 'description' => '生产环境数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ResourcePermissionList' => [ + 'title' => '资源权限列表', + 'description' => '资源权限列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ResourceId' => ['title' => '资源Id', 'description' => '资源Id', 'type' => 'string', 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01'."\n"], + 'HasPermission' => ['title' => '是否有指定资源点权限', 'description' => '是否有指定资源点权限', 'type' => 'boolean', 'example' => 'true'], ], + 'description' => '', ], ], ], @@ -3135,279 +1699,64 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ResourcePermissionList\\": [\\n {\\n \\"ResourceId\\": \\"hadoop.300000806.data_distill.behavior_gameinfor_01\\\\n\\",\\n \\"HasPermission\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '校验用户是否有指定资源权限点', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"DevDataSourceId\\": 123,\\n \\"ProdDataSourceId\\": 12345\\n }\\n}","type":"json"}]', - 'title' => '新建数据源', - 'requestParamsDescription' => '## ConfigItemList参数Key说明'."\n" - .'### MAX_COMPUTE'."\n" - ."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|maxcompute.endpoint | 是 | |'."\n" - .'|maxcompute.project | 是 | |'."\n" - .'|maxcompute.access.id | 是 | |'."\n" - .'|maxcompute.access.key | 是 | |'."\n" - ."\n\n" - ."\n" - .'### HDFS'."\n" - ."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|hadoop.kdc.address | 否 | 如果有.krb5.config.file,可以不写|'."\n" - .'|hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写|'."\n" - .'|hadoop.kerberos.krb5.config.filename | 是 | krb5.config文件名称|'."\n" - .'|hdfs.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示HDFS是否开启kerberos认证,|'."\n" - .'|hdfs.kerberos.keytab.file | kerberos开启时必填 | HDFS principal认证文件ID,需要通过dataphin文件系统上传|'."\n" - .'|hdfs.kerberos.keytab.filename | kerberos开启时必填 | HDFS principal认证文件名称|'."\n" - .'|hdfs.kerberos.principal | kerberos开启时必填 | HDFS principal名称,如 xxx/master@DATAPHIN.COM|'."\n" - .'|hdfs.defaultFs | 是 | defaultFs地址,如 namenode:8020|'."\n" - ."\n\n" - ."\n" - .'### LOG_HUB'."\n" - ."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|endPoint | 是 | |'."\n" - .'|accessId | 是 | |'."\n" - .'|accessKey | 是 | |'."\n" - .'|projectName | 是 | |'."\n" - ."\n\n" - ."\n" - .'### POLARDB'."\n" - ."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|jdbc.url | 是 | |'."\n" - .'|jdbc.username | 是 | |'."\n" - .'|jdbc.password | 是 | |'."\n" - .'|jdbc.database.schema | 是 | |'."\n" - .'|deploy.type | 是 | 部署类型:PUBLIC(公网),RDS(阿里云),ECS(自建);|'."\n" - .'|如果是云上数据库,需要打通反向VPC网络,根据实际部署形态选择,其他情况为PUBLIC|'."\n" - .'|access.type | 是 | 访问方式:PUBLIC,VPC,公共云环境需要反向VPC打通使用VPC,其他情况为PUBLIC|'."\n" - .'|vpc.id | 否 | VPC环境下需要|'."\n" - .'|vpc.region.id | 否 | VPC环境下需要|'."\n" - .'|vpc.instance.id | 否 | VPC环境下需要|'."\n" - .'|backend.db.type | 是 | backend数据库类型,MYSQL or POSTGRE_SQL|'."\n" - ."\n\n" - ."\n" - .'### HBASE_0_9_4/HBASE_1_1_X'."\n" - ."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|hadoop.kdc.address | 否 | 如果有.krb5.config.file,可以不写|'."\n" - .'|hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写|'."\n" - .'|hbase.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示HDFS是否开启·kerberos认证,|'."\n" - .'|hbase.kerberos.keytab.file | 否 | HDFS principal认证文件ID,需要通过dataphin文件系统上传|'."\n" - .'|hbase.kerberos.principal | 否 | HDFS principal认证文件名称|'."\n" - .'|hbase.cluster | 是 | Hbase集群连接串,支持Zk|'."\n" - .'|hbase.connection.param | 否 | 连接参数|'."\n" - ."\n\n" - ."\n" - .'### DRDS/POSTGRE_SQL/ORACLE/VERTICA/DRDS/ANALYTICDB/ADB_FOR_MYSQL_V3'."\n" - .'|key | 是否必填 | 说明|'."\n" - .'|:----------------------|:--------|:-------|'."\n" - .'|jdbc.url | 是 | |'."\n" - .'|jdbc.username | 是 | |'."\n" - .'|jdbc.password | 是 | |'."\n" - .'|jdbc.database.schema | 否 | 如果有schema,该项最好填写,或者在URL中加上schema参数,否则元数据服务可能报错|'."\n" - .'|deploy.type | 是 | 部署类型:PUBLIC(公网),RDS(阿里云),ECS(自建);|'."\n" - .'|如果是云上数据库,需要打通反向VPC网络,根据实际部署形态选择,其他情况为PUBLIC|'."\n" - .'|access.type | 是 | 访问方式:PUBLIC,VPC,公共云环境需要反向VPC打通使用VPC,其他情况为PUBLIC|'."\n" - .'|vpc.id | 是 | VPC环境下需要|'."\n" - .'|vpc.region.id | 是 | VPC环境下需要|'."\n" - .'|vpc.instance.id | 是 | VPC环境下需要|'."\n" - ."\n" - .'### HIVE'."\n" - ."\n" - .'| key | 是否必填 | 说明 |'."\n" - .'|:---------------------------------|:-----|:-------------------------------------------------------------------|'."\n" - .'| hive.version | 是 | hive版本,如CDH5_HIVE_1_1_0,CDH6_HIVE_2_1_1,CDP7_HIVE_3_1_300等 |'."\n" - .'| hadoop.namenode | 是 | namenode,支持host,IP例子:host=192.168.1.1,webUiPort=50070,ipcPort=8020 |'."\n" - .'| hadoop.kerberos.switch | 是 | hadoop集群是否开启kerberos认证 |'."\n" - .'| kerberos.config | 是 | Kerberos配置方式: kdc或krb |'."\n" - .'| hadoop.kdc.address | 否 | kerberos Server地址,如果有.krb5.config.file,可以不写 |'."\n" - .'| hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写 |'."\n" - .'| hive.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示hive是否开启kerberos认证, |'."\n" - .'| hive.kerberos.keytab.file | 否 | hive principal认证文件ID,需要通过dataphin文件系统上传 |'."\n" - .'| hive.kerberos.keytab.filename | 否 | hive principal认证文件名称 |'."\n" - .'| hive.kerberos.principal | 否 | hive principal |'."\n" - .'| hive.jdbc.url | 是 | hive 连接串,暂不支持ZK方式( [ - 'summary' => '删除数据源。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], + ], + 'CreateAdHocFile' => [ + 'summary' => '创建即席查询文件。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除数据源请求', - 'description' => '删除数据源请求', + 'title' => '新建即席查询请求', + 'description' => '新建即席查询请求', 'type' => 'object', 'properties' => [ - 'Mode' => [ - 'title' => '删除模式:'."\n" - .'DEV:只删除开发环境数据源'."\n" - .'DEV_PROD:同时删除开发和生产环境数据源', - 'description' => '删除模式:'."\n" - .'- DEV:只删除开发环境数据源'."\n" - .'- DEV_PROD:同时删除开发和生产环境数据源', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [], - 'example' => 'DEV', - 'enum' => [ - 'DEV', - 'DEV_PROD', - ], - ], - 'ProdDataSourceId' => [ - 'title' => '生成环境数据源ID', - 'description' => '生产环境数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '13121', - ], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11212133'], + 'Name' => ['title' => '文件名', 'description' => '文件名', 'type' => 'string', 'required' => true, 'example' => 'test_xx'], + 'Directory' => ['title' => '文件所在目录', 'description' => '文件所在目录', 'type' => 'string', 'required' => true, 'example' => '/xx1/xx2/'], + 'Content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'required' => true, 'example' => 'select 1;'], ], 'required' => true, ], @@ -3420,81 +1769,54 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'FileId' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1212313222'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileId\\": 1212313222\\n}","type":"json"}]', + 'title' => '创建即席查询文件', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '删除数据源', - ], - 'UpdateDataSourceBasicInfo' => [ - 'summary' => '编辑数据源基础信息:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateBatchTask' => [ + 'summary' => '创建离线计算任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -3502,53 +1824,87 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '数据源基础信息编辑', - 'description' => '数据源基础信息编辑', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '23231', - ], - 'Name' => [ - 'title' => '数据源名', - 'description' => '数据源名', - 'type' => 'string', - 'required' => true, - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '数据源描述', - 'description' => '数据源描述', - 'type' => 'string', - 'required' => true, - 'example' => 'xx', + 'Directory' => ['title' => '任务所属菜单树目录', 'description' => '任务所属菜单树目录', 'type' => 'string', 'required' => true, 'example' => '/a/b'], + 'Name' => ['title' => '离线任务名', 'description' => '离线任务名', 'type' => 'string', 'required' => true, 'example' => 'test111'], + 'ProjectId' => ['title' => '任务所属项目Id', 'description' => '任务所属项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10121101'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => true, 'example' => 'xx test.'], + 'ScheduleType' => ['title' => '调度类型: 周期任务:1、手动任务:3', 'description' => '调度类型'."\n" + .'- 周期任务:1'."\n" + .'- 手动任务:3', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '3'], + 'TaskType' => ['title' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', 'description' => '任务类型'."\n" + .'- Hive_SQL: 1'."\n" + .'- Hive_SQL_23X: 101'."\n" + .'- HIVE_SQL_FUSION_INSIGHT_80X: 111'."\n" + .'- COMMON_HIVE_SQL: 131'."\n" + .'- HADOOP_MR: 2'."\n" + .'- MaxCompute_SQL: 5'."\n" + .'- MaxCompute_MR: 6'."\n" + .'- SPARK_SQL_ON_MAX_COMPUTE: 7'."\n" + .'- SPARK_JAR_ON_MAX_COMPUTE: 8'."\n" + .'- SPARK_SQL_ON_HIVE: 17'."\n" + .'- Spark_JAR_ON_HIVE: 18'."\n" + .'- Shell: 10'."\n" + .'- PAI_DESIGNER: 71'."\n" + .'- DataX: 15'."\n" + .'- Merge: 16'."\n" + .'- Python: 21'."\n" + .'- Python37x: 22'."\n" + .'- Perl: 23'."\n" + .'- Python311x: 24'."\n" + .'- OneService_SQL: 25'."\n" + .'- ONE_SERVICE_SQL_ADB_FOR_PG: 26'."\n" + .'- OneService_SQL_Hive11x: 27'."\n" + .'- OneService_SQL_Hive23x: 29'."\n" + .'- ONE_SERVICE_SQL_TDH_INCEPTOR: 75'."\n" + .'- ONE_SERVICE_SQL_HIVE_CDP: 91'."\n" + .'- ONE_SERVICE_SQL_HIVE_ASIA_INFO_DP_53X: 92'."\n" + .'- Dlink: 30'."\n" + .'- ONE_SERVICE_SQL_ADB_FOR_MYSQL: 33'."\n" + .'- Logical: 31'."\n" + .'- Flink_Streaming: 41'."\n" + .'- Flink_Batch: 42'."\n" + .'- ADB_FOR_PG: 51'."\n" + .'- DryRun: 100'."\n" + .'- CHECK: 902'."\n" + .'- VIRTUAL: 999'."\n" + .'- INCEPTOR_SQL: 10000'."\n" + .'- HOLOGRES_SQL: 28'."\n" + .'- ARGODB_SQL: 76'."\n" + .'- IMPALA_SQL: 78'."\n" + .'- STARROCKS_SQL: 79'."\n" + .'- SPARK_SQL: 80'."\n" + .'- GAUSS_SQL: 81'."\n" + .'- DATABASE_SQL: 998'."\n" + .'- EXTERNAL_TRIGGER: 997', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '5'], + 'Engine' => ['title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', 'description' => '任务执行引擎,如Python任务'."\n" + .'- 1. PYTHON2_7'."\n" + .'- 2. PYTHON3_7'."\n" + .'- 3. PYTHON3_11', 'type' => 'string', 'required' => false, 'example' => 'PYTHON3_7'], + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'string', 'required' => false, 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'erp'], + 'PythonModuleList' => [ + 'title' => '任务依赖python三方包', + 'description' => '任务依赖python三方包', + 'type' => 'array', + 'items' => ['title' => 'python三方包', 'description' => 'python三方包', 'type' => 'string', 'required' => true, 'example' => 'numpy'], + 'required' => false, ], ], 'required' => true, @@ -3562,42 +1918,18 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '数据源基础信息编辑结果.', - 'description' => '数据源基础信息编辑结果.', - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '新建结果', + 'description' => '新建结果', + 'type' => 'object', + 'properties' => [ + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], + ], ], ], ], @@ -3605,107 +1937,132 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"FileId\\": 12113111\\n }\\n}","type":"json"}]', + 'title' => '创建离线计算任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '编辑数据源基础信息', - ], - 'UpdateDataSourceConfig' => [ - 'summary' => '编辑数据源链接配置项:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateBizEntity' => [ + 'summary' => '创建业务实体。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '数据源配置项变更', - 'description' => '数据源配置项变更', + 'title' => '创建请求', + 'description' => '创建请求', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '13231313', + 'BizObject' => [ + 'title' => '业务对象', + 'description' => '业务对象', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'type' => 'string', 'required' => true, 'example' => 'create_object_code_name'], + 'DisplayName' => ['title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'type' => 'string', 'required' => true, 'example' => 'create_object_name'], + 'Description' => ['title' => '业务对象描述信息,128字符以内', 'description' => '业务对象描述信息,128字符以内', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人用户Id', 'description' => '业务对象负责人用户Id', 'type' => 'string', 'required' => false, 'example' => '30010010'], + 'Type' => ['title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', 'description' => '业务对象类型'."\n" + .'- 普通对象 NORMAL'."\n" + .'- 枚举对象 ENUM'."\n" + .'- 虚拟对象 VIRTUAL'."\n" + .'- 层级对象 HIERARCHY', 'type' => 'string', 'required' => true, 'example' => 'NORMAL'], + 'ParentId' => ['title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '116306'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '116106'], + 'required' => false, + ], + ], + 'required' => false, ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'array', - 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项keyId', - 'description' => '配置项keyId', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置值', - 'description' => '配置值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - ], + 'BizProcess' => [ + 'title' => '业务活动', + 'description' => '业务活动', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'description' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'type' => 'string', 'required' => true, 'example' => 'create_process_code_name'], + 'DisplayName' => ['title' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'description' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'type' => 'string', 'required' => true, 'example' => 'create_process_name'], + 'Description' => ['title' => '业务活动描述信息,128字符以内', 'description' => '业务活动描述信息,128字符以内', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务活动负责人用户Id', 'description' => '业务活动负责人用户Id', 'type' => 'string', 'required' => false, 'example' => '30010010'], + 'Type' => ['title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', 'description' => '业务活动类型'."\n" + .'- 业务事件 BIZ_EVENT'."\n" + .'- 业务快照 BIZ_SNAPSHOT'."\n" + .'- 业务流程 BIZ_PROCESS', 'type' => 'string', 'required' => true, 'example' => 'BIZ_EVENT'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '116106'], + 'required' => false, + ], + 'BizEventEntityIdList' => [ + 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'type' => 'array', + 'items' => ['title' => '业务流程活动包含的业务事件活动', 'description' => '业务流程活动包含的业务事件活动', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1016106'], + 'required' => false, + ], + 'PreBizProcessIdList' => [ + 'title' => '业务流程活动的前序业务流程活动', + 'description' => '业务流程活动的前序业务流程活动', + 'type' => 'array', + 'items' => ['title' => '业务流程活动的前序业务流程活动', 'description' => '业务流程活动的前序业务流程活动', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1016106'], + 'required' => false, ], - 'required' => true, ], - 'required' => true, + 'required' => false, ], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务类型: '."\n" + .'- BIZ_OBJECT:业务对象'."\n" + .'- BIZ_PROCESS:业务活动', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + 'DataDomainId' => ['title' => '业务活动所属主题域Id', 'description' => '业务活动所属主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '20101011'], + 'BizUnitId' => ['title' => '业务活动所属业务板块Id', 'description' => '业务活动所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], ], 'required' => true, ], @@ -3718,42 +2075,18 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '数据源连接配置项编辑结果.', - 'description' => '数据源连接配置项编辑结果.', - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '新建结果', + 'description' => '新建结果', + 'type' => 'object', + 'properties' => [ + 'BizEntityId' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], + ], ], ], ], @@ -3761,153 +2094,171 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"BizEntityId\\": 12113111\\n }\\n}","type":"json"}]', + 'title' => '创建业务实体', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:15:09.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '编辑数据源链接配置项', - ], - 'ListDataSourceWithConfig' => [ - 'summary' => '搜索数据源,所属结果包含数据源配置项。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CreateBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateBizMetric' => [ + 'summary' => '创建业务指标。'."\n" + .'发布版本号:v5.5.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'CreateBizMetricCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询', - 'description' => '分页查询', + 'title' => '创建请求', + 'description' => '创建请求', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '数据源名字', - 'description' => '数据源名字', - 'type' => 'string', + 'Name' => ['title' => '业务指标名称,需要在租户内唯一。仅支持输入英文字母、数字及部分特殊符号(-_/\\·#$^&*()%+=),最多256字符。', 'description' => '业务指标名称,需要在租户内唯一。仅支持输入英文字母、数字及部分特殊符号(-_/\\·#$^&*()%+=),最多256字符。', 'type' => 'string', 'required' => true, 'example' => 'Metric1', 'maxLength' => 256], + 'DisplayName' => ['title' => '展示名称', 'description' => '展示名称', 'type' => 'string', 'required' => false, 'example' => 'MetricDisplayName', 'maxLength' => 256], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'MetricDesc', 'maxLength' => 1000], + 'Labels' => [ + 'title' => '资产标签', + 'description' => '资产标签', + 'type' => 'array', + 'items' => ['description' => '资产标签', 'type' => 'string', 'required' => false, 'example' => 'Label1'], 'required' => false, - 'example' => 'vcns-test', ], - 'TypeList' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', + 'CatalogIds' => [ + 'title' => '归属目录ID', + 'description' => '归属目录ID', + 'type' => 'array', + 'items' => ['description' => '归属目录ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1234567890'], + 'required' => false, + ], + 'BizOwnerName' => ['title' => '业务负责人名称,请填写负责人账号的用户名', 'description' => '业务负责人名称,请填写负责人账号的用户名', 'type' => 'string', 'required' => false, 'example' => 'SuperAdmin'], + 'MetricDefinition' => ['title' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', 'description' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', 'type' => 'string', 'required' => false, 'example' => '[Metric1]+[Metric2]', 'maxLength' => 2000], + 'RelatedBizMetrics' => [ + 'title' => '相关业务指标列表,请填写相关业务指标名称及其关联关系', + 'description' => '相关业务指标列表,请填写相关业务指标名称及其关联关系', 'type' => 'array', 'items' => [ - 'description' => '数据源类型', - 'type' => 'string', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '指标名称', 'description' => '指标名称', 'type' => 'string', 'required' => false, 'example' => 'Metric2'], + 'RelationType' => [ + 'title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', + 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', + 'type' => 'string', + 'required' => false, + 'example' => 'POSITIVE', + 'enum' => ['POSITIVE', 'NEGATIVE', 'OTHER'], + ], + ], 'required' => false, - 'example' => 'MAX_COMPUTE', + 'description' => '', ], 'required' => false, ], - 'ScopeList' => [ - 'title' => '数据源使用范围,支持如下:'."\n" - .'STREAMING 实时'."\n" - .'OFFLINE 离线'."\n" - .'DIP_META_SYNC 元仓初始化'."\n" - .'DATA_DISTILL 数据萃取'."\n" - .'CUMPUTE_SOURCE_SHADOW 影子计算源'."\n" - .'LABEL 标签'."\n" - .'ALL 离线+实时', - 'description' => '数据源使用范围,支持如下:'."\n" - .'- STREAMING 实时'."\n" - .'- OFFLINE 离线'."\n" - .'- DIP_META_SYNC 元仓初始化'."\n" - .'- DATA_DISTILL 数据萃取'."\n" - .'- CUMPUTE_SOURCE_SHADOW 影子计算源'."\n" - .'- LABEL 标签'."\n" - .'- ALL 离线+实时', + 'AssociatedTechMetricFullNames' => [ + 'title' => '关联技术指标全名列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', + 'description' => '关联技术指标全名列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', 'type' => 'array', - 'items' => [ - 'description' => '数据源使用范围', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', + 'items' => ['description' => '关联技术指标全名', 'type' => 'string', 'required' => false, 'example' => 'LD_bizunit.table1.index1'], + 'required' => false, + ], + 'MetricRelationDiagramSwitchOpen' => ['title' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', 'description' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'MetricRelationDiagramExpression' => ['title' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', 'description' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', 'type' => 'string', 'required' => false, 'example' => '[Metric1]+[Metric2]'], + 'OperateInstructionEnabled' => ['title' => '操作说明是否开启:true开启;false关闭', 'description' => '操作说明是否开启:true开启;false关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'OperateInstructionContent' => ['title' => '操作说明内容,仅支持文本格式', 'description' => '操作说明内容,仅支持文本格式', 'type' => 'string', 'required' => false, 'example' => 'content'], + 'ViewScope' => [ + 'title' => '可见范围', + 'description' => '可见范围', + 'type' => 'object', + 'properties' => [ + 'ScopeType' => [ + 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'type' => 'string', + 'required' => false, + 'example' => 'PART_USERS_CAN_VIEW', + 'enum' => ['ALL_USERS_CAN_VIEW', 'PART_USERS_CAN_VIEW', 'PART_USERS_CAN_NOT_VIEW'], + ], + 'UserNames' => [ + 'title' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'description' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'type' => 'array', + 'items' => ['description' => '个人账号用户名', 'type' => 'string', 'required' => false, 'example' => 'SuperAdmin'], + 'required' => false, + ], + 'UserGroupNames' => [ + 'title' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', + 'description' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', + 'type' => 'array', + 'items' => ['description' => '用户组名称', 'type' => 'string', 'required' => false, 'example' => 'UserGroup1'], + 'required' => false, + ], ], 'required' => false, ], - 'OwnerList' => [ - 'title' => '数据源负责人', - 'description' => '数据源负责人', + 'CustomAttribute' => [ + 'title' => '自定义属性', + 'description' => '自定义属性', 'type' => 'array', 'items' => [ - 'description' => '用户ID', - 'type' => 'string', + 'title' => '自定义属性列表,请分别填写属性的编码及属性值', + 'description' => '自定义属性列表,请分别填写属性的编码及属性值', + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '自定义属性编码', 'description' => '自定义属性编码', 'type' => 'string', 'required' => false, 'example' => 'CustomAttributeCode'], + 'Values' => [ + 'title' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', + 'description' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', + 'type' => 'array', + 'items' => ['title' => '自定义属性值', 'description' => '自定义属性值', 'type' => 'string', 'required' => false, 'example' => 'CustomAttributeValue'], + 'required' => false, + ], + ], 'required' => false, - 'example' => '2323131', ], 'required' => false, ], - 'Tag' => [ - 'title' => '创建数据源时标记的tag', - 'description' => '创建数据源时标记的标签', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Page' => [ - 'title' => '页码,起始页是1', - 'description' => '页码,起始页是1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - 'default' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', - 'default' => '20', - ], ], 'required' => true, ], @@ -3916,273 +2267,22 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'description' => '查询结果。', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['description' => '后端响应码', 'type' => 'string', 'example' => 'success'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '操作结果', + 'description' => '操作结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '39', - ], - 'DataSourceList' => [ - 'description' => '分页列表', - 'type' => 'array', - 'items' => [ - 'description' => '数据源', - 'type' => 'object', - 'properties' => [ - 'ProdDataSourceInfo' => [ - 'description' => '生产环境数据源', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '300000028799', - ], - 'Name' => [ - 'title' => '数据源名', - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Scope' => [ - 'title' => '数据源使用范围', - 'description' => '数据源使用范围', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1708303959000', - ], - 'ModifyTime' => [ - 'title' => '编辑时间', - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1708303959000', - ], - 'Creator' => [ - 'title' => '创建者ID', - 'description' => '创建者ID', - 'type' => 'string', - 'example' => '212211111', - ], - 'CreatorName' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '张三', - ], - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '212211111', - ], - 'OwnerName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx 测试', - ], - 'Env' => [ - 'title' => '数据源所属环境', - 'description' => '数据源所属环境', - 'type' => 'string', - 'example' => 'PROD', - ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'array', - 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项Id', - 'description' => '配置项Id', - 'type' => 'string', - 'example' => 'param1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'value1', - ], - ], - ], - ], - ], - ], - 'DevDataSourceInfo' => [ - 'description' => '开发环境数据源', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12313123131', - ], - 'Name' => [ - 'title' => '数据源名', - 'description' => '数据源名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Scope' => [ - 'title' => '数据源使用范围', - 'description' => '数据源使用范围', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1710209552704', - ], - 'ModifyTime' => [ - 'title' => '编辑时间', - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1710209552704', - ], - 'Creator' => [ - 'title' => '创建者ID', - 'description' => '创建者ID', - 'type' => 'string', - 'example' => '212211111', - ], - 'CreatorName' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '张三', - ], - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '212211111', - ], - 'OwnerName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx 项目', - ], - 'Env' => [ - 'title' => '数据源所属环境', - 'description' => '数据源所属环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'array', - 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项Id', - 'description' => '配置项Id', - 'type' => 'string', - 'example' => 'param1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'value1', - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'Success' => ['title' => '是否创建成功:true成功;false失败', 'description' => '是否创建成功:true成功;false失败', 'type' => 'boolean', 'example' => 'true'], + 'Message' => ['title' => '异常信息', 'description' => '异常信息', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -4191,103 +2291,79 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"success\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n }\\n}","type":"json"}]', + 'title' => '创建业务指标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 39,\\n \\"DataSourceList\\": [\\n {\\n \\"ProdDataSourceInfo\\": {\\n \\"Id\\": 300000028799,\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Scope\\": \\"ALL\\",\\n \\"CreateTime\\": 1708303959000,\\n \\"ModifyTime\\": 1708303959000,\\n \\"Creator\\": \\"212211111\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"Owner\\": \\"212211111\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Env\\": \\"PROD\\",\\n \\"ConfigItemList\\": [\\n {\\n \\"Key\\": \\"param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n },\\n \\"DevDataSourceInfo\\": {\\n \\"Id\\": 12313123131,\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Scope\\": \\"ALL\\",\\n \\"CreateTime\\": 1710209552704,\\n \\"ModifyTime\\": 1710209552704,\\n \\"Creator\\": \\"212211111\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"Owner\\": \\"212211111\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"xx 项目\\",\\n \\"Env\\": \\"DEV\\",\\n \\"ConfigItemList\\": [\\n {\\n \\"Key\\": \\"param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询数据源列表', + 'ramActions' => [], ], - 'CheckDataSourceConnectivity' => [ - 'summary' => '校验数据源连通性。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateBizUnit' => [ + 'summary' => '创建数据板块。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CheckCommand', + 'name' => 'CreateCommand', 'in' => 'formData', - 'allowEmptyValue' => false, 'style' => 'json', 'schema' => [ - 'title' => '校验对象', - 'description' => '校验对象', + 'title' => '创建请求', + 'description' => '创建请求', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '数据源类型', - 'description' => '数据源类型,可支持数据源见新建数据源', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - 'enum' => [], - ], - 'ConfigItemList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', + 'Name' => ['title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'type' => 'string', 'required' => true, 'example' => 'create_object_code_name'], + 'DisplayName' => ['title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'type' => 'string', 'required' => true, 'example' => 'create_object_name'], + 'Description' => ['title' => '业务对象描述信息,128字符以内', 'description' => '业务对象描述信息,128字符以内', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Icon' => ['title' => '预制icon'."\n" + .' 电商:icon-e-commerce, 金融:icon-finance, 云计算:con-cloud-computing, 广告营销:icon-advertisement, 物流:icon-logistics, 文娱:icon-entertainment, 出行:icon-traffic, 健康:icon-health, 社交&通信:icon-social-contact, 餐饮:con-dining, 教育:icon-education, 环境:icon-environment 等', 'description' => '预制icon'."\n" + .'- 电商:icon-e-commerce'."\n" + .'- 金融:icon-finance'."\n" + .'- 云计算:con-cloud-computing'."\n" + .'- 广告营销:icon-advertisement'."\n" + .'- 物流:icon-logistics'."\n" + .'- 文娱:icon-entertainment'."\n" + .'- 出行:icon-traffic'."\n" + .'- 健康:icon-health'."\n" + .'- 社交&通信:icon-social-contact'."\n" + .'- 餐饮:con-dining'."\n" + .'- 教育:icon-education'."\n" + .'- 环境:icon-environment', 'type' => 'string', 'required' => true, 'example' => 'icon-environment'], + 'Mode' => ['title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'type' => 'string', 'required' => false, 'example' => 'DEV_PROD'], + 'BizUnitAccountList' => [ + 'title' => '板块架构师', + 'description' => '板块架构师', 'type' => 'array', 'items' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', + 'title' => '板块架构师', + 'description' => '板块架构师', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '配置项keyId', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置值', - 'description' => '配置值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - ], + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '20001201'], ], 'required' => true, ], @@ -4305,42 +2381,18 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '数据源连接校验结果', - 'description' => '数据源连接校验结果', - 'type' => 'boolean', - 'example' => 'true', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '新建结果', + 'description' => '新建结果', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '新建的数据板块ID', 'description' => '新建的数据板块ID', 'type' => 'integer', 'format' => 'int64', 'example' => '545844456'], + ], ], ], ], @@ -4348,117 +2400,109 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"BizUnitId\\": 545844456\\n }\\n}","type":"json"}]', + 'title' => '创建数据板块', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '校验数据源连通性', - ], - 'CheckDataSourceConnectivityById' => [ - 'summary' => '校验数据源连通性。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateComputeSource' => [ + 'summary' => '新建计算源:业务板块管理员、项目管理员 有权限操作。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建命令', + 'description' => '创建命令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '计算源名', 'description' => '计算源名', 'type' => 'string', 'required' => true, 'example' => 'test1011'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'required' => true, 'example' => 'MacCompute'], + 'ConfigList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => '123', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', + 'title' => 'Schema of Response', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '数据源连接校验结果', - 'description' => '数据源连接校验结果', - 'type' => 'boolean', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'True'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '创建结果', + 'description' => '新建结果', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '计算源Id', 'description' => '计算源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12356'], + ], ], ], ], @@ -4466,107 +2510,383 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '通过数据源ID校验连通性', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"Id\\": 12356\\n }\\n}","type":"json"}]', + 'title' => '新建计算源', + 'changeSet' => [], + 'ramActions' => [], ], - 'CheckComputeSourceConnectivity' => [ - 'summary' => '校验连通性校验。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'CreateDataDomain' => [ + 'summary' => '创建主题域。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建请求', + 'description' => '创建请求', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '所属数据板块Id', 'description' => '所属数据板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '545844456'], + 'Name' => ['title' => '主题域编码', 'description' => '主题域编码', 'type' => 'string', 'required' => true, 'example' => 'dm_code_name'], + 'DisplayName' => ['title' => '主题域名称', 'description' => '主题域名称', 'type' => 'string', 'required' => true, 'example' => '主题域测试'], + 'Abbreviation' => ['title' => '主题域缩写', 'description' => '主题域缩写', 'type' => 'string', 'required' => true, 'example' => 'dm_code_name'], + 'Description' => ['title' => '主题域描述', 'description' => '主题域描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ParentId' => ['title' => '上级主题域Id', 'description' => '上级主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10232311'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '新建结果', + 'description' => '新建结果', + 'type' => 'object', + 'properties' => [ + 'DataDomainId' => ['title' => '主题域Id', 'description' => '主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1241844456'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"DataDomainId\\": 1241844456\\n }\\n}","type":"json"}]', + 'title' => '创建主题域', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'CreateDataServiceApi' => [ + 'summary' => '创建新的数据服务API并提交。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'CheckCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '校验指令', - 'description' => '校验指令', + 'title' => 'API信息', + 'description' => '新建API请求', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', + 'ApiName' => ['title' => 'Api的名称', 'description' => 'Api的名称', 'type' => 'string', 'required' => true, 'example' => 'API_01'], + 'Version' => ['title' => 'api初始版本名称', 'description' => 'Api的版本', 'type' => 'string', 'required' => true, 'example' => 'V1'], + 'ApiType' => [ + 'title' => 'Api的类型:'."\n" + .'- 3:数据源SQL模式', + 'description' => 'Api的类型:'."\n" + ."\n" + .'- 3:数据源SQL模式', + 'type' => 'integer', + 'format' => 'int32', 'required' => true, - 'example' => 'MAX_COMPUTE', + 'enumValueTitles' => [], + 'example' => '3', ], - 'ConfigList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', + 'Mode' => ['title' => 'Api的开发模式:'."\n" + .'- 0:Basic模式 '."\n" + .'- 1:Dev-Prod模式', 'description' => 'Api的开发模式:'."\n" + ."\n" + .'- 0:Basic模式 '."\n" + .'- 1:Dev-Prod模式', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + 'ProjectId' => ['title' => '数据服务项目ID', 'description' => '数据服务项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'ApiGroupId' => ['title' => 'Api分组ID', 'description' => 'Api的分组ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101'], + 'ApiGroupName' => ['title' => 'Api分组名称', 'description' => 'Api的分组名称', 'type' => 'string', 'required' => true, 'example' => '默认API分组'], + 'Description' => ['title' => 'Api的描述信息', 'description' => 'Api的描述信息', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'RequestType' => ['title' => 'api的请求方式,可选枚举值包括 :'."\n" + .'0(GET):仅返回单条,查询结果唯一 '."\n" + .'1(LIST):返回多条'."\n" + .'2(CREATE):创建对象,可支持单条或批量创建'."\n" + .'3(UPDATE):更新对象,可支持单条或批量更新'."\n" + .'4(DELETE):删除对象,可支持单条或批量删除', 'description' => 'Api的请求方式:'."\n" + ."\n" + .'- 0(GET):仅返回单条,查询结果唯一 '."\n" + .'- 1(LIST):返回多条'."\n" + .'- 2(CREATE):创建对象,可支持单条或批量创建'."\n" + .'- 3(UPDATE):更新对象,可支持单条或批量更新'."\n" + .'- 4(DELETE):删除对象,可支持单条或批量删除', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'BizProtocol' => [ + 'title' => '协议,不同的网关类型可支持的协议不同,请查看帮助文档,枚举值:0:HTTP 1:HTTPS', + 'description' => '协议,不同的网关类型可支持的协议不同,请查看帮助文档,枚举值:'."\n" + .'- 0:HTTP '."\n" + .'- 1:HTTPS', 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', + 'items' => ['title' => '0:HTTP 1:HTTPS', 'description' => '0:HTTP 1:HTTPS', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + 'required' => true, + ], + 'Timeout' => ['title' => '超时时间,单位为秒', 'description' => '超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '30'], + 'CacheTimeout' => ['title' => '查询类API结果缓存时间,单位为秒', 'description' => '缓存超时时间,单位为秒', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '600'], + 'UpdateRate' => ['title' => '更新频次(默认值为1):'."\n" + .'0: 自定义'."\n" + .'1:天'."\n" + .'2:小时'."\n" + .'3:分钟', 'description' => '更新频次(默认值为1):'."\n" + ."\n" + .'- 0: 自定义'."\n" + .'- 1: 天'."\n" + .'- 2: 小时'."\n" + .'- 3: 分钟', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'CustomUpdateRate' => ['title' => '自定义更新频率,当更新频率(update_rate)为自定义时为必填', 'description' => '自定义更新频率,当更新频率为自定义时为必填', 'type' => 'string', 'required' => false, 'example' => '每天8点'], + 'CallMode' => ['title' => 'API的调用模式,可枚举值包括(默认值为1):'."\n" + .'1:同步调用'."\n" + .'2:异步调用', 'description' => 'API的调用模式(默认值为1):'."\n" + ."\n" + .'- 1:同步调用'."\n" + .'- 2:异步调用', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ExecutionTimeout' => ['title' => 'API执行超时时间,仅对API异步调用API生效,异步调用时必填', 'description' => '异步调用API执行超时时间,仅对异步调用API生效,异步调用时必填', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30'], + 'ScriptDetails' => [ + 'title' => '脚本API的详情', + 'description' => '脚本API的详情', + 'type' => 'object', + 'properties' => [ + 'Script' => ['title' => 'sql脚本', 'description' => 'SQL脚本', 'type' => 'string', 'required' => true, 'example' => 'select a,b,c from table1 where d = ${d}'], + 'IsPaginated' => ['title' => '结果是否分页,仅当RequestType模式为List时才需要(默认为false)', 'description' => '结果是否分页,仅当RequestType模式为List时才需要(默认为false),且异步调用模式不支持', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'SqlMode' => ['title' => 'SQL模式,枚举值:'."\n" + .'1:基础模式'."\n" + .'2:高级模式', 'description' => 'SQL模式:'."\n" + ."\n" + .'- 1:基础模式'."\n" + .'- 2:高级模式', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'SortPriority' => ['title' => '排序的优先级,仅SQL模式为基础模式时生效(默认值2),枚举值:'."\n" + .'1:SQL脚本 '."\n" + .'2:OrderByList请求参数', 'description' => '排序的优先级,仅SQL模式为基础模式时生效(默认值2):'."\n" + ."\n" + .'- 1:SQL脚本 '."\n" + .'- 2:OrderByList请求参数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'], + 'DatasourceType' => ['title' => '基于的数据源或数据服务单元的类型,枚举值:'."\n" + .'0:数据服务单元 '."\n" + .'1:数据源', 'description' => 'API基于的数据类型 :'."\n" + .'- 1:数据源', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'DatasourceID' => ['title' => '数据源的ID,API模式为直连数据源时必填', 'description' => '数据源的ID,API模式为直连数据源时必填', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '6668888888888812345L'], + 'ScriptRequestParameters' => [ + 'title' => '脚本 API 的请求参数列表', + 'description' => '脚本 API 的请求参数列表', + 'type' => 'array', + 'items' => [ + 'description' => '请求参数', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'required' => true, 'example' => 'd'], + 'ParameterDescription' => ['title' => '描述', 'description' => '参数描述', 'type' => 'string', 'required' => false, 'example' => '字段d'], + 'ParameterValueType' => ['title' => '参数值的类型:'."\n" + .'1-单值:固定值,用于=、>=、<=、>、<、!=、between等操作符 '."\n" + .'2-多值:输入参数为多值,用逗号“,”分隔。用于In、Not In操作符', 'description' => '参数值的类型:'."\n" + ."\n" + .'- 1单值:固定值,用于=、>=、<=、>、<、!=、between等操作符 '."\n" + .'- 2多值:输入参数为多值,用逗号“,”分隔。用于In、Not In操作符', 'type' => 'string', 'required' => true, 'example' => '='], + 'ParameterDataType' => ['title' => '数据类型 "STRING", "DOUBLE", "INT", "DATE", "LONG", "FLOAT", "BOOLEAN", "SHORT", "BYTE", "BIGDECIMAL", "BINARY", "ARRAY", "Array(int)", "Array(string)"', 'description' => '数据类型:'."\n" + .'- "STRING"'."\n" + .'- "DOUBLE"'."\n" + .'- "INT"'."\n" + .'- "DATE"'."\n" + .'- "LONG"'."\n" + .'- "FLOAT"'."\n" + .'- "BOOLEAN"'."\n" + .'- "SHORT"'."\n" + .'- "BYTE"'."\n" + .'- "BIGDECIMAL"'."\n" + .'- "BINARY"'."\n" + .'- "ARRAY"'."\n" + .'- "Array(int)"'."\n" + .'- "Array(string)"', 'type' => 'string', 'required' => true, 'example' => 'STRING'], + 'ExampleValue' => ['title' => '示例值', 'description' => '示例值', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'IsRequiredParameter' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean', 'required' => true, 'example' => 'false'], + 'DefaultValue' => ['title' => '操作类API的入参默认值,非必填时生效,未设置时为null', 'description' => '操作类API的入参默认值,参数为非必填时生效,未设置时为null', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, ], - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', + 'required' => false, + ], + 'ScriptResponseParameters' => [ + 'title' => '脚本 API 的返回参数列表', + 'description' => '脚本 API 的返回参数列表', + 'type' => 'array', + 'items' => [ + 'description' => '返回参数', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'required' => true, 'example' => 'a'], + 'ParameterDescription' => ['title' => '描述', 'description' => '参数描述', 'type' => 'string', 'required' => false, 'example' => '字段a'], + 'ParameterDataType' => ['title' => '数据类型 "STRING", "DOUBLE", "INT", "DATE", "LONG", "FLOAT", "BOOLEAN", "SHORT", "BYTE", "BIGDECIMAL", "BINARY", "ARRAY", "Array(int)", "Array(string)"', 'description' => '数据类型:'."\n" + .'- "STRING"'."\n" + .'- "DOUBLE"'."\n" + .'- "INT"'."\n" + .'- "DATE"'."\n" + .'- "LONG"'."\n" + .'- "FLOAT"'."\n" + .'- "BOOLEAN"'."\n" + .'- "SHORT"'."\n" + .'- "BYTE"'."\n" + .'- "BIGDECIMAL"'."\n" + .'- "BINARY"'."\n" + .'- "ARRAY"'."\n" + .'- "Array(int)"'."\n" + .'- "Array(string)"', 'type' => 'string', 'required' => true, 'example' => 'STRING'], + 'ExampleValue' => ['title' => '示例值', 'description' => '示例值', 'type' => 'string', 'required' => false, 'example' => 'amazing'], + 'ParameterLocation' => ['title' => '操作类API返回参数位置(操作类API且数据量为批量时需设置):'."\n" + .'- success: 操作成功的返回结果数据'."\n" + .'- failed: 操作失败的的返回结果数据', 'description' => '操作类API返回参数位置(操作类API且数据量为批量时需设置):'."\n" + .'- success: 操作成功的返回结果数据'."\n" + .'- failed: 操作失败的的返回结果数据', 'type' => 'string', 'required' => false, 'example' => 'success'], + ], + 'required' => false, ], + 'required' => false, ], - 'required' => false, ], 'required' => true, ], + 'RowPermissionIds' => [ + 'title' => '行级权限ID列表', + 'description' => '行级权限ID列表', + 'type' => 'array', + 'items' => ['title' => '行级权限点ID', 'description' => '行级权限 ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12345'], + 'required' => false, + ], + 'ReturnSqlSwitch' => ['title' => '是否返回SQL', 'description' => '结果是否返回SQL', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], + 'DmlConfig' => [ + 'title' => '操作类API配置信息,新建查询类API时无需配置', + 'description' => '操作类API配置信息,新建查询类API时无需配置', + 'type' => 'object', + 'properties' => [ + 'DataVolumeType' => ['title' => '数据量:'."\n" + .'- 1: 单条'."\n" + .'- 2: 批量', 'description' => '数据量:'."\n" + .'- 1: 单条'."\n" + .'- 2: 批量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'], + 'MaxInputDataSize' => ['title' => '最大输入条数:'."\n" + .'- 单条数据量时,最大输入条数不允许设置'."\n" + .'- 批量数据量时,最大输入条数为1~1000000', 'description' => '最大输入条数:'."\n" + .'- 单条数据量时,最大输入条数不允许设置'."\n" + .'- 批量数据量时,最大输入条数为1~1000000', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10000'], + 'ErrorHandlingType' => ['title' => '错误处理方式:'."\n" + .'- 1: 允许部分成功'."\n" + .'- 2: 全部成功才可成功'."\n" + ."\n" + .'- 单条数据量时,错误处理方式不允许设置'."\n" + .'- 批量数据量时,错误处理方式为1或2', 'description' => '错误处理方式:'."\n" + .'- 1: 允许部分成功'."\n" + .'- 2: 全部成功才可成功'."\n" + ."\n" + .'传参规则:'."\n" + .'- 单条数据量时,错误处理方式不允许设置'."\n" + .'- 批量数据量时,错误处理方式为1或2', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'TransactionType' => ['title' => '事务处理模式:'."\n" + .'- 0: 无事务'."\n" + .'- 1: 不分批'."\n" + .'- 2: 分批处理'."\n" + ."\n" + .'- 单条数据量时,事务处理模式为0'."\n" + .'- 批量数据量时:'."\n" + .' - 错误处理方式为1时,事务处理模式为1或2'."\n" + .' - 错误处理方式为2时,事务处理模式只能为1', 'description' => '事务处理模式:'."\n" + .'- 0: 无事务'."\n" + .'- 1: 不分批'."\n" + .'- 2: 分批处理'."\n" + ."\n" + .'传参规则:'."\n" + .'- 单条数据量时,事务处理模式为0'."\n" + .'- 批量数据量时:'."\n" + .' - 错误处理方式为1时,事务处理模式为1或2'."\n" + .' - 错误处理方式为2时,事务处理模式只能为1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2'], + 'BatchInputDataSize' => ['title' => '单批处理数据量:'."\n" + .'- 单条数据量时,单批处理数据量不允许设置'."\n" + .'- 批量数据量时:'."\n" + .' - 事务处理模式为1时,单批处理数据量不允许设置'."\n" + .' - 事务处理模式为2时,单批处理数据量为1~1000000', 'description' => '单批处理数据量:'."\n" + .'- 单条数据量时,单批处理数据量不允许设置'."\n" + .'- 批量数据量时:'."\n" + .' - 事务处理模式为1时,单批处理数据量不允许设置'."\n" + .' - 事务处理模式为2时,单批处理数据量为1~1000000', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1000'], + 'ParallelNum' => ['title' => '并行度:'."\n" + .'- 单条数据量时,并行度不允许设置'."\n" + .'- 批量数据量时:'."\n" + .' - 事务处理模式为1时,并行度不允许设置'."\n" + .' - 事务处理模式为2时,并行度支持设置1~5', 'description' => '并行度:'."\n" + .'- 单条数据量时,并行度不允许设置'."\n" + .'- 批量数据量时:'."\n" + .' - 事务处理模式为1时,并行度不允许设置'."\n" + .' - 事务处理模式为2时,并行度支持设置1~5', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + 'required' => false, + ], ], 'required' => true, ], @@ -4576,113 +2896,92 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ApiId' => ['title' => '创建的API编号', 'description' => '创建的API编号', 'type' => 'integer', 'format' => 'int64', 'example' => '10086'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '计算源连通性校验', - ], - 'CheckComputeSourceConnectivityById' => [ - 'summary' => '通过计算源Id校验已存在计算源连通性。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ApiId\\": 10086\\n}","type":"json"}]', + 'title' => '创建新的数据服务API并提交', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [ + ['createdAt' => '2025-10-30T01:49:47.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'CreateDataServiceApp' => [ + 'summary' => '创建数据服务应用,仅支持超级管理员或系统管理员可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '计算源Id', - 'description' => '计算源ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建数据服务应用', + 'description' => '创建数据服务应用', + 'type' => 'object', + 'properties' => [ + 'AppGroupId' => ['title' => '应用分组ID', 'description' => '应用分组ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '200000000'], + 'AppKey' => ['title' => '应用Key,需要全局唯一,用于调用 API 时使用。'."\n" + .'长度为8~128个英文字符,可包含数字,下划线(_)和短横线(-)'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'description' => '应用Key,需要全局唯一,用于调用 API 时使用。'."\n" + .'长度为8~128个英文字符,可包含数字,下划线(_)和短横线(-)'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'type' => 'string', 'required' => false, 'example' => '200000001', 'maxLength' => 128, 'minLength' => 8], + 'Scenarios' => ['title' => '应用场景', 'description' => '应用场景', 'type' => 'string', 'required' => true, 'example' => '数据分析'], + 'AppSecret' => ['title' => '应用密钥。'."\n" + .'该参数不填,默认系统会自动生成一个新的 AppSecret 值'."\n" + .'长度为8~127个英文字符,可包含数字,下划线(_)和短横线(-)。'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'description' => '应用密钥。'."\n" + .'该参数不填,默认系统会自动生成一个新的 AppSecret 值'."\n" + .'长度为8~127个英文字符,可包含数字,下划线(_)和短横线(-)。'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'type' => 'string', 'required' => false, 'example' => 'abc123456789', 'maxLength' => 127, 'minLength' => 8], + 'OwnerIds' => [ + 'title' => '负责人ID列表', + 'description' => '负责人ID列表', + 'type' => 'array', + 'items' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'required' => true, 'example' => '12345'], + 'required' => true, + ], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'required' => true, 'example' => '默认应用', 'maxLength' => 64, 'minLength' => 4], + ], 'required' => true, - 'example' => '12356', ], ], ], @@ -4690,151 +2989,60 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'example' => '-809333788831'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": -809333788831,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '创建数据服务应用', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '通过计算源Id校验连通性', + 'ramActions' => [], ], - 'ListComputeSources' => [ - 'summary' => '查询计算源列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateDataServiceAppGroup' => [ + 'summary' => '创建数据服务应用分组,仅超级管理员及系统管理员可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'required' => false, - 'example' => 'MaxCompute', - ], - 'BindProject' => [ - 'title' => '是否绑定项目', - 'description' => '是否绑定项目', - 'type' => 'boolean', - 'required' => false, - ], - 'Keyword' => [ - 'title' => '关键字', - 'description' => '关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => true, - ], + 'name' => 'GroupName', + 'in' => 'query', + 'schema' => ['title' => '分组名称', 'description' => '分组名称', 'type' => 'string', 'required' => true, 'example' => 'default_app_group', 'maxLength' => 64], ], ], 'responses' => [ @@ -4844,180 +3052,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'ComputeSourceList' => [ - 'title' => '分页计算源列表', - 'description' => '分页计算源列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Owner' => [ - 'title' => '计算源归属人', - 'description' => '计算源归属人', - 'type' => 'string', - 'example' => '30012211', - ], - 'OwnerName' => [ - 'title' => '计算源归属人', - 'description' => '计算源归属人', - 'type' => 'string', - 'example' => '张三', - ], - 'BindProjectId' => [ - 'title' => '绑定项目Id', - 'description' => '绑定项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10132131111', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'BindProject' => [ - 'title' => '是否绑定项目', - 'description' => '是否绑定项目', - 'type' => 'boolean', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012211', - ], - 'Name' => [ - 'title' => '计算源名', - 'description' => '计算源名', - 'type' => 'string', - 'example' => 'test1011', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'example' => 'MaxCompute', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'test1011', - ], - 'Id' => [ - 'title' => '计算源Id', - 'description' => '计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102111', - ], - 'BindProjectName' => [ - 'title' => '绑定项目名称', - 'description' => '绑定项目名称', - 'type' => 'string', - 'example' => 'testPrj', - ], - 'CreatorName' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '张三', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => ['title' => '分组ID', 'description' => '分组ID', 'type' => 'integer', 'format' => 'int32', 'example' => '538893915703'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 538893915703,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '创建数据服务应用分组', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ComputeSourceList\\": [\\n {\\n \\"Owner\\": \\"30012211\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"BindProjectId\\": 10132131111,\\n \\"Description\\": \\"test\\",\\n \\"BindProject\\": true,\\n \\"GmtModified\\": \\"2025-06-30 08:00:00\\",\\n \\"Creator\\": \\"30012211\\",\\n \\"Name\\": \\"test1011\\",\\n \\"GmtCreate\\": \\"2025-06-30 08:00:00\\",\\n \\"Type\\": \\"MaxCompute\\",\\n \\"DisplayName\\": \\"test1011\\",\\n \\"Id\\": 102111,\\n \\"BindProjectName\\": \\"testPrj\\",\\n \\"CreatorName\\": \\"张三\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询计算源列表', + 'ramActions' => [], ], - 'UpdateComputeSource' => [ - 'summary' => '编辑计算源:业务板块管理员、项目管理员 有权限操作。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'CreateDataSource' => [ + 'summary' => '新建数据源:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5025,131 +3090,135 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑指令', - 'description' => '编辑指令', + 'title' => '新建数据源请求', + 'description' => '请求对象', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '计算源Id', - 'description' => '计算源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102311', - ], - 'Name' => [ - 'title' => '计算源名称', - 'description' => '计算源名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test1021', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MacCompute', - ], - 'ConfigList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', + 'ProdDataSourceCreate' => [ + 'title' => '数据源创建', + 'description' => '生成环境数据源', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '数据源类型', 'description' => '数据源类型:'."\n" + .'- MAX_COMPUTE'."\n" + .'- HDFS'."\n" + .'- LOG_HUB'."\n" + .'- POLARDB'."\n" + .'- HBASE_0_9_4'."\n" + .'- HBASE_1_1_X'."\n" + .'- DRDS'."\n" + .'- HIVE'."\n" + .'- FTP'."\n" + .'- ELASTIC_SEARCH'."\n" + .'- MYSQL'."\n" + .'- MONGODB'."\n" + .'- OSS'."\n" + .'- HANA'."\n" + .'- SQL_SERVER'."\n" + .'- POSTGRE_SQL'."\n" + .'- ANALYTICDB'."\n" + .'- ADB_FOR_MYSQL_V3'."\n" + .'- ADB_FOR_PG'."\n" + .'- ORACLE'."\n" + .'- VERTICA'."\n" + .'- DB2'."\n" + .'- TERA_DATA 等', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + 'Name' => ['title' => '名字', 'description' => '数据源名', 'type' => 'string', 'required' => true, 'example' => 'dp_test'], + 'Description' => ['title' => '描述', 'description' => '数据源描述', 'type' => 'string', 'required' => false, 'example' => 'datasource for xx'], + 'CheckActivity' => ['title' => '是否校验连通性', 'description' => '是否联通性校验', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项列表', + 'type' => 'array', + 'items' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项keyId', 'description' => '配置项,不同数据库需要的Key值请查看文档下方补充说明', 'type' => 'string', 'required' => true, 'example' => 'jdbc.username'], + 'Value' => ['title' => '配置值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'username'], + ], 'required' => true, - 'example' => 'v1', ], - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', + 'required' => true, + ], + ], + 'required' => false, + ], + 'DevDataSourceCreate' => [ + 'title' => '新建开发环境数据源', + 'description' => '开发环境数据源', + 'type' => 'object', + 'properties' => [ + 'ProdDataSourceId' => ['title' => '关联生产环境数据源ID,如果只新建开发环境计算源时不能为空', 'description' => '关联生产环境数据源ID,如果只新建开发环境计算源时不能为空', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1011'], + 'DataSourceCreate' => [ + 'title' => '数据源创建', + 'description' => '开发环境数据源', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + 'Name' => ['title' => '名字', 'description' => '数据源名', 'type' => 'string', 'required' => true, 'example' => 'dp_test_dev'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'datasource for xxx in dev '], + 'CheckActivity' => ['title' => '是否校验连通性', 'description' => '是否连通性校验', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'true'], + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项列表', + 'type' => 'array', + 'items' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项keyId', 'description' => '配置项,不同数据库需要的Key值请查看文档下方补充说明', 'type' => 'string', 'required' => true, 'example' => 'jdbc.username'], + 'Value' => ['title' => '配置值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'username'], + ], + 'required' => true, + ], + 'required' => true, + ], ], + 'required' => false, ], - 'required' => false, ], - 'required' => true, + 'required' => false, ], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'CreateResult' => [ + 'title' => '数据源新建结果', + 'description' => '数据源新建结果', + 'type' => 'object', + 'properties' => [ + 'DevDataSourceId' => ['title' => '开发环境数据源ID', 'description' => '开发环境数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'ProdDataSourceId' => ['description' => '生产环境数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + ], ], ], ], @@ -5157,234 +3226,227 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '编辑计算源', - ], - 'GetComputeSource' => [ - 'summary' => '通过计算源Id获取计算源详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '计算源Id', - 'description' => '计算源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12356', - ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '响应结果', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ComputeSourceInfo' => [ - 'title' => '计算源详情', - 'description' => '计算源详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '计算源Id', - 'description' => '计算源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12356', - ], - 'Name' => [ - 'title' => '计算源名', - 'description' => '计算源名', - 'type' => 'string', - 'example' => 'dp_test', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '显示名', - 'type' => 'string', - 'example' => 'dp_test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'compute source for xxx.', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间戳', - 'type' => 'string', - 'example' => '1681881607000', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '编辑时间戳', - 'type' => 'string', - 'example' => '1711881607000', - ], - 'Owner' => [ - 'title' => '计算源归属人', - 'description' => '计算源所有者ID', - 'type' => 'string', - 'example' => '101101', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '计算源创建者ID', - 'type' => 'string', - 'example' => '101101', - ], - 'OwnerName' => [ - 'title' => '计算源归属人', - 'description' => '计算源所有者', - 'type' => 'string', - 'example' => 'test', - ], - 'CreatorName' => [ - 'title' => '创建者', - 'description' => '计算源创建者', - 'type' => 'string', - 'example' => 'test', - ], - 'BindProjectName' => [ - 'title' => '绑定项目名称', - 'description' => '绑定项目', - 'type' => 'string', - 'example' => 'dp_mctest', - ], - 'BindProjectId' => [ - 'title' => '绑定项目Id', - 'description' => '绑定项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10101101', - ], - 'BindProject' => [ - 'title' => '是否绑定项目', - 'description' => '是否已绑定项目', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - ], - ], - ], - ], - ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"DevDataSourceId\\": 123,\\n \\"ProdDataSourceId\\": 12345\\n }\\n}","type":"json"}]', + 'title' => '新建数据源', + 'requestParamsDescription' => '## ConfigItemList参数Key说明'."\n" + .'### MAX_COMPUTE'."\n" + ."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|maxcompute.endpoint | 是 | |'."\n" + .'|maxcompute.project | 是 | |'."\n" + .'|maxcompute.access.id | 是 | |'."\n" + .'|maxcompute.access.key | 是 | |'."\n" + ."\n\n" + ."\n" + .'### HDFS'."\n" + ."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|hadoop.kdc.address | 否 | 如果有.krb5.config.file,可以不写|'."\n" + .'|hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写|'."\n" + .'|hadoop.kerberos.krb5.config.filename | 是 | krb5.config文件名称|'."\n" + .'|hdfs.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示HDFS是否开启kerberos认证,|'."\n" + .'|hdfs.kerberos.keytab.file | kerberos开启时必填 | HDFS principal认证文件ID,需要通过dataphin文件系统上传|'."\n" + .'|hdfs.kerberos.keytab.filename | kerberos开启时必填 | HDFS principal认证文件名称|'."\n" + .'|hdfs.kerberos.principal | kerberos开启时必填 | HDFS principal名称,如 xxx/master@DATAPHIN.COM|'."\n" + .'|hdfs.defaultFs | 是 | defaultFs地址,如 namenode:8020|'."\n" + ."\n\n" + ."\n" + .'### LOG_HUB'."\n" + ."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|endPoint | 是 | |'."\n" + .'|accessId | 是 | |'."\n" + .'|accessKey | 是 | |'."\n" + .'|projectName | 是 | |'."\n" + ."\n\n" + ."\n" + .'### POLARDB'."\n" + ."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|jdbc.url | 是 | |'."\n" + .'|jdbc.username | 是 | |'."\n" + .'|jdbc.password | 是 | |'."\n" + .'|jdbc.database.schema | 是 | |'."\n" + .'|deploy.type | 是 | 部署类型:PUBLIC(公网),RDS(阿里云),ECS(自建);|'."\n" + .'|如果是云上数据库,需要打通反向VPC网络,根据实际部署形态选择,其他情况为PUBLIC|'."\n" + .'|access.type | 是 | 访问方式:PUBLIC,VPC,公共云环境需要反向VPC打通使用VPC,其他情况为PUBLIC|'."\n" + .'|vpc.id | 否 | VPC环境下需要|'."\n" + .'|vpc.region.id | 否 | VPC环境下需要|'."\n" + .'|vpc.instance.id | 否 | VPC环境下需要|'."\n" + .'|backend.db.type | 是 | backend数据库类型,MYSQL or POSTGRE_SQL|'."\n" + ."\n\n" + ."\n" + .'### HBASE_0_9_4/HBASE_1_1_X'."\n" + ."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|hadoop.kdc.address | 否 | 如果有.krb5.config.file,可以不写|'."\n" + .'|hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写|'."\n" + .'|hbase.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示HDFS是否开启·kerberos认证,|'."\n" + .'|hbase.kerberos.keytab.file | 否 | HDFS principal认证文件ID,需要通过dataphin文件系统上传|'."\n" + .'|hbase.kerberos.principal | 否 | HDFS principal认证文件名称|'."\n" + .'|hbase.cluster | 是 | Hbase集群连接串,支持Zk|'."\n" + .'|hbase.connection.param | 否 | 连接参数|'."\n" + ."\n\n" + ."\n" + .'### DRDS/POSTGRE_SQL/ORACLE/VERTICA/DRDS/ANALYTICDB/ADB_FOR_MYSQL_V3'."\n" + .'|key | 是否必填 | 说明|'."\n" + .'|:----------------------|:--------|:-------|'."\n" + .'|jdbc.url | 是 | |'."\n" + .'|jdbc.username | 是 | |'."\n" + .'|jdbc.password | 是 | |'."\n" + .'|jdbc.database.schema | 否 | 如果有schema,该项最好填写,或者在URL中加上schema参数,否则元数据服务可能报错|'."\n" + .'|deploy.type | 是 | 部署类型:PUBLIC(公网),RDS(阿里云),ECS(自建);|'."\n" + .'|如果是云上数据库,需要打通反向VPC网络,根据实际部署形态选择,其他情况为PUBLIC|'."\n" + .'|access.type | 是 | 访问方式:PUBLIC,VPC,公共云环境需要反向VPC打通使用VPC,其他情况为PUBLIC|'."\n" + .'|vpc.id | 是 | VPC环境下需要|'."\n" + .'|vpc.region.id | 是 | VPC环境下需要|'."\n" + .'|vpc.instance.id | 是 | VPC环境下需要|'."\n" + ."\n" + .'### HIVE'."\n" + ."\n" + .'| key | 是否必填 | 说明 |'."\n" + .'|:---------------------------------|:-----|:-------------------------------------------------------------------|'."\n" + .'| hive.version | 是 | hive版本,如CDH5_HIVE_1_1_0,CDH6_HIVE_2_1_1,CDP7_HIVE_3_1_300等 |'."\n" + .'| hadoop.namenode | 是 | namenode,支持host,IP例子:host=192.168.1.1,webUiPort=50070,ipcPort=8020 |'."\n" + .'| hadoop.kerberos.switch | 是 | hadoop集群是否开启kerberos认证 |'."\n" + .'| kerberos.config | 是 | Kerberos配置方式: kdc或krb |'."\n" + .'| hadoop.kdc.address | 否 | kerberos Server地址,如果有.krb5.config.file,可以不写 |'."\n" + .'| hadoop.kerberos.krb5.config.file | 否 | 如果有hadoop.kdc.address,可以不写 |'."\n" + .'| hive.kerberos.switch | 是 | 字符型类型:TRUE、FLASE,表示hive是否开启kerberos认证, |'."\n" + .'| hive.kerberos.keytab.file | 否 | hive principal认证文件ID,需要通过dataphin文件系统上传 |'."\n" + .'| hive.kerberos.keytab.filename | 否 | hive principal认证文件名称 |'."\n" + .'| hive.kerberos.principal | 否 | hive principal |'."\n" + .'| hive.jdbc.url | 是 | hive 连接串,暂不支持ZK方式( [ + ['createdAt' => '2025-04-16T01:56:27.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDataSource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ComputeSourceInfo\\": {\\n \\"Id\\": 12356,\\n \\"Name\\": \\"dp_test\\",\\n \\"DisplayName\\": \\"dp_test\\",\\n \\"Description\\": \\"compute source for xxx.\\",\\n \\"GmtCreate\\": \\"1681881607000\\",\\n \\"GmtModified\\": \\"1711881607000\\",\\n \\"Owner\\": \\"101101\\",\\n \\"Creator\\": \\"101101\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"BindProjectName\\": \\"dp_mctest\\",\\n \\"BindProjectId\\": 10101101,\\n \\"BindProject\\": true,\\n \\"Type\\": \\"MAX_COMPUTE\\"\\n }\\n}","type":"json"}]', - 'title' => '获取计算源详情', ], - 'DeleteComputeSource' => [ - 'summary' => '删除计算源。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateDataset' => [ + 'summary' => '用于在指定项目下创建一个新的数据集,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -5393,189 +3455,162 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '计算源Id', - 'description' => '计算源ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12356', - ], + 'schema' => ['title' => '项目ID', 'description' => '项目 ID'."\n", 'type' => 'string', 'required' => true, 'example' => '7255013756724992'], ], - ], - 'responses' => [ - 200 => [ + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => '创建请求', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除计算源', - ], - 'CreateComputeSource' => [ - 'summary' => '新建计算源:业务板块管理员、项目管理员 有权限操作。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建命令', - 'description' => '创建命令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '计算源名', - 'description' => '计算源名', - 'type' => 'string', - 'required' => true, - 'example' => 'test1011', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '计算源类型', - 'description' => '计算源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MacCompute', - ], - 'ConfigList' => [ - 'title' => '连接配置项', - 'description' => '连接配置项', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', + 'Name' => ['title' => '数据集名称', 'description' => '数据集名称', 'type' => 'string', 'required' => true, 'example' => 'xx测试'], + 'Type' => ['title' => '数据集类型:FILE/TABLE/HYBRID', 'description' => '数据集类型:FILE/TABLE/HYBRID', 'type' => 'string', 'required' => true, 'example' => 'FILE'], + 'StorageType' => ['title' => '数据集存储类型:OSS/S3', 'description' => '存储类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'OSS'], + 'MetadataStorageType' => ['title' => '元数据存储类型:POSTGRESQL/MYSQL/STREAM_TABLE/MILVUS', 'description' => '元数据存储类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'POSTGRESQL'], + 'ContentType' => ['title' => '数据集内容类型:GENERAL/TEXT/AUDIO/VIDEO/IMAGE/TABLE/INDEX', 'description' => '数据集内容类型:GENERAL/TEXT/AUDIO/VIDEO/IMAGE/TABLE/INDEX', 'type' => 'string', 'required' => true, 'example' => 'GENERAL'], + 'DataCellId' => ['title' => '主题域ID', 'description' => '**主题域 ID**'."\n", 'type' => 'string', 'required' => false, 'example' => '78201'], + 'Description' => ['title' => '描述', 'description' => '**描述**'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据集'], + 'Owner' => ['title' => '负责人ID列表,多个用逗号分隔', 'description' => '负责人ID列表,多个用逗号分隔', 'type' => 'string', 'required' => false, 'example' => '300000913'], + 'FileId' => ['title' => '文件ID', 'description' => '**文件 ID**'."\n", 'type' => 'string', 'required' => false, 'example' => '7255018404650688'], + 'DirName' => ['title' => '所在目录位置', 'description' => '**目录(通过 fileId 从文件服务获取)**'."\n", 'type' => 'string', 'required' => true, 'example' => '/'], + 'Scenario' => ['title' => '数据集使用场景:OFFLINE(离线,默认) / REALTIME(实时)', 'description' => '数据集使用场景:OFFLINE(离线,默认) / REALTIME(实时)', 'type' => 'string', 'required' => true, 'example' => 'OFFLINE'], + 'Version' => ['title' => '版本号,不传则使用默认版本V1', 'description' => '版本号,不传则使用默认版本V1', 'type' => 'string', 'required' => false, 'example' => 'V1'], + 'VersionConfig' => [ + 'description' => '版本配置', + 'type' => 'object', + 'properties' => [ + 'VersionDescription' => ['title' => '版本描述', 'description' => '**版本描述**'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据集版本'], + 'FileStorageConfig' => [ + 'description' => '文件存储配置', + 'type' => 'object', + 'properties' => [ + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'required' => true, 'example' => '7445343860022804608'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据源'], + 'DevPath' => ['title' => '开发路径(basic项目不需要)', 'description' => '开发路径 (basic 项目不需要)'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTML正文提取/test423/'], + 'ProdPath' => ['title' => '生产路径', 'description' => '生产路径'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'MountPath' => ['title' => '挂载路径', 'description' => '挂载路径'."\n", 'type' => 'string', 'required' => true, 'example' => '/var/run/openresty/cache/corp'], ], - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', + 'required' => false, + ], + 'MetadataStorageConfig' => [ + 'description' => '元数据存储配置', + 'type' => 'object', + 'properties' => [ + 'MetadataStorageMode' => ['title' => '元数据存储模式:CREATE/EXISTING', 'description' => '存储至(新建表/已有表)'."\n", 'type' => 'string', 'required' => true, 'example' => 'CREATE'], + 'MetadataStorageType' => ['title' => '元数据存储类型,如 MILVUS、POSTGRESQL 等,返回时回填', 'description' => '元数据存储类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'MILVUS'], + 'DataSourceId' => ['title' => '数据源ID,与元数据存储类型一致的数据源', 'description' => '数据源 ID'."\n", 'type' => 'string', 'required' => true, 'example' => '7429133693081710272'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据源'], + 'DevSchema' => ['title' => '开发database/schema,dev-prod项目时必填', 'description' => '开发 database/schema'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTML正文提取/test423/'], + 'ProdSchema' => ['title' => '生产database/schema', 'description' => '生产 database/schema'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'TableName' => ['title' => '表名称,仅允许小写字母、数字和下划线,须以小写字母开头,64位字符以内', 'description' => '表名称'."\n", 'type' => 'string', 'required' => true, 'example' => 's_crm_all_plt_jala_shop'], + 'TableSchema' => [ + 'description' => '表结构', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '列结构', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '字段名称'."\n", 'type' => 'string', 'required' => true, 'example' => 'id'], + 'Type' => ['title' => '字段类型', 'description' => '字段类型'."\n", 'type' => 'string', 'required' => true, 'example' => 'int8'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '数组元素子类型,仅当 type=ARRAY 时有效'."\n", 'type' => 'string', 'required' => false, 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '最大容量', 'description' => '数组最大容量,仅当 type=ARRAY 时有效,默认 4096'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '35'], + 'Pk' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'required' => false, 'example' => 'primary key'], + 'Url' => ['title' => '是否为url', 'description' => '是否为url', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'description' => '向量索引配置'."\n", + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'MultiModal-Embedding'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance:mongodb'], + 'IndexType' => ['title' => '索引类型:AUTOINDEX,FLAT,IVF_FLAT,IVF_SQ8,IVF_PQ,IVF_RABITQ,HNSW,HNSW_SQ,HNSW_PQ,HNSW_PRQ,DISKANN,SCANN,AISAQ,IVFFlat', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型COSINE,L2,IP', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'description' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'type' => 'object', 'required' => false, 'example' => '{M:30, efConstruction:360}'], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], ], + 'required' => false, + ], + 'RealtimeMetaTableConfig' => [ + 'title' => '实时元表配置,metadataStorageType=STREAM_TABLE时生效', + 'description' => '实时元表配置,metadataStorageType=STREAM_TABLE时生效', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '元表所属项目ID(支持跨项目)', 'description' => '元表所属项目 ID(支持跨项目)'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7256391656294144'], + 'MetaTableName' => ['title' => '元表名称', 'description' => '元表名称'."\n", 'type' => 'string', 'required' => true, 'example' => '测试元表'], + 'DatasourceType' => ['title' => '元表数据源类型:KAFKA', 'description' => '元表数据源类型(本期仅开放 KAFKA)'."\n", 'type' => 'string', 'required' => true, 'example' => 'KAFKA'], + 'TableSchema' => [ + 'description' => '表结构', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '列结构', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '字段名称'."\n", 'type' => 'string', 'required' => true, 'example' => 'happen_time'], + 'Type' => ['title' => '字段类型', 'description' => '字段类型'."\n", 'type' => 'string', 'required' => true, 'example' => 'date'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '数组元素子类型,仅当 type=ARRAY 时有效'."\n", 'type' => 'string', 'required' => false, 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '最大容量', 'description' => '数组最大容量,仅当 type=ARRAY 时有效,默认 4096'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '35'], + 'Pk' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'required' => false, 'example' => 'happen time'], + 'Url' => ['title' => '是否为url', 'description' => '是否为url', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'description' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'MultiModal-Embedding'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance:MySQL.monitor'], + 'IndexType' => ['title' => '索引类型:AUTOINDEX,FLAT,IVF_FLAT,IVF_SQ8,IVF_PQ,IVF_RABITQ,HNSW,HNSW_SQ,HNSW_PQ,HNSW_PRQ,DISKANN,SCANN,AISAQ,IVFFlat', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型COSINE,L2,IP', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'description' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'type' => 'object', 'required' => false, 'example' => '{M:30, efConstruction:360}'], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + 'required' => false, ], - 'required' => false, ], - 'required' => true, + 'required' => false, ], ], 'required' => true, @@ -5586,135 +3621,100 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '响应结果', + 'description' => '数据集对象'."\n", 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'True', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ - 'title' => '创建结果', - 'description' => '新建结果', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '计算源Id', - 'description' => '计算源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12356', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'DatasetId' => ['title' => '新建数据集ID', 'description' => '数据集 ID(业务主键)'."\n", 'type' => 'string', 'example' => '7280832407583104'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建数据集', + 'description' => '## 请求说明'."\n" + .'- 该 API 用于在指定的项目中创建一个新的数据集。'."\n" + .'- `ProjectId` 是必填参数,表示要创建数据集的项目 ID。'."\n" + .'- `CreateCommand` 是一个复杂的对象,包含了创建数据集所需的各种配置信息。'."\n" + .'- `Name`、`Type`、`ContentType` 和 `Scenario` 是必填字段,分别表示数据集名称、类型、内容类型和使用场景。'."\n" + .'- `VersionConfig` 中的 `FileStorageConfig` 和 `MetadataStorageConfig` 可以根据实际需求进行配置。'."\n" + .'- 如果需要实时元表配置,请提供 `RealtimeMetaTableConfig` 相关信息。'."\n" + .'- 确保所有必填字段都已正确填写,否则请求将失败。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"Id\\": 12356\\n }\\n}","type":"json"}]', - 'title' => '新建计算源', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DatasetId\\": \\"7280832407583104\\"\\n}","type":"json"}]', ], - 'GetSparkLocalClientInfo' => [ - 'summary' => '获取计算源对应集群的spark客户信息。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateDirectory' => [ + 'summary' => '创建菜单树目录,支持计算任务、数据集成、同步任务等功能。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'string', - 'required' => true, - 'example' => '232432343', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'EnvEnum', - 'in' => 'query', + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识:'."\n" - .'DEV:开发环境'."\n" - .'PROD:生产环境', - 'description' => '环境标识:'."\n" - .'DEV:开发环境'."\n" - .'PROD:生产环境', - 'type' => 'string', + 'title' => '创建请求', + 'description' => '创建请求', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1212344'], + 'Category' => ['title' => '菜单树类目'."\n" + .'即席查询:tempCode'."\n" + .'代码任务:codeManage'."\n" + .'离线管道:offlinePipeline'."\n" + .'管道自定义组件:offlinePipelineCustomPlugin'."\n" + .'同步任务:dataX'."\n" + .'实时元表:streamMeta'."\n" + .'实时自定义源:streamCustomDataSource'."\n" + .'实时计算模板:streamTemplate'."\n" + .'资源管理:resourceManage'."\n" + .'离线函数:udfResource'."\n" + .'实时函数:streamFunction', 'description' => '菜单树类目'."\n" + .'- 即席查询:tempCode'."\n" + .'- 代码任务:codeManage'."\n" + .'- 离线管道:offlinePipeline'."\n" + .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" + .'- 同步任务:dataX'."\n" + .'- 实时元表:streamMeta'."\n" + .'- 实时自定义源:streamCustomDataSource'."\n" + .'- 实时计算模板:streamTemplate'."\n" + .'- 资源管理:resourceManage'."\n" + .'- 离线函数:udfResource'."\n" + .'- 实时函数:streamFunction', 'type' => 'string', 'required' => true, 'example' => 'tempCode'], + 'Name' => ['title' => '新建文件目录名称', 'description' => '新建文件目录名称', 'type' => 'string', 'required' => true, 'example' => 'test_xx'], + 'Directory' => ['title' => '新建文件目录父目录', 'description' => '新建文件目录父目录', 'type' => 'string', 'required' => true, 'example' => '/'], + ], 'required' => true, - 'example' => 'DEV', ], ], ], @@ -5725,104 +3725,56 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'description' => '响应结果', - 'type' => 'array', - 'items' => [ - 'description' => '返回数据', - 'type' => 'object', - 'properties' => [ - 'ClientName' => [ - 'description' => '客户端名称', - 'type' => 'string', - 'example' => 'spark-clinet', - ], - 'ClientFileResourceName' => [ - 'description' => '客户端文件名称', - 'type' => 'string', - 'example' => 'spark-cleint.zip', - ], - 'ClientFileResourceId' => [ - 'description' => '客户端文件id', - 'type' => 'string', - 'example' => 'XXXX-XXXX-XXXX-XXXX', - ], - 'Editable' => [ - 'description' => '可否编辑', - 'type' => 'boolean', - 'example' => 'true/false', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'FileId' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1311113211'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileId\\": 1311113211\\n}","type":"json"}]', + 'title' => '创建菜单树目录', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ClientName\\": \\"spark-clinet\\",\\n \\"ClientFileResourceName\\": \\"spark-cleint.zip\\",\\n \\"ClientFileResourceId\\": \\"XXXX-XXXX-XXXX-XXXX\\",\\n \\"Editable\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取计算源对应集群的spark客户信息', - ], - 'SyncDepartment' => [ - 'summary' => '同步部门信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateNodeSupplement' => [ + 'summary' => '通用补数据接口,支持列表模式补数据和海量模式补数据:'."\n" + .'1.会生成补数据实例运行,影响相关表数据产出。'."\n" + .'2.会进行任务运行,造成计算的费用以及存储的费用。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -5830,153 +3782,224 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SyncDepartmentCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '新建补数据请求', + 'description' => '新建补数据请求', 'type' => 'object', 'properties' => [ - 'DepartmentList' => [ - 'description' => '部门列表(全量组织树)', + 'NodeIdList' => [ + 'title' => '补数据的根节点,支持多个根节点', + 'description' => '补数据的根节点,支持多个根节点', 'type' => 'array', 'items' => [ + 'title' => '根节点', + 'description' => '根节点', 'type' => 'object', 'properties' => [ - 'DepartmentId' => [ - 'title' => '部门ID(部门唯一标识)', - 'description' => '部门ID(部门唯一标识)', - 'type' => 'string', - 'required' => true, - 'example' => '10001', - ], - 'DepartmentName' => [ - 'title' => '部门展示名称', - 'description' => '部门展示名称', - 'type' => 'string', - 'required' => true, - 'example' => '研发中心', - ], - 'ParentDepartmentId' => [ - 'title' => '父部门ID(部门唯一标识,如无则为null)', - 'description' => '父部门ID(部门唯一标识,如无则为null)', - 'type' => 'string', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_1232324'], + 'FieldIdList' => [ + 'title' => '当节点时逻辑表节点id时可以传,不传默认是全表', + 'description' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', + 'type' => 'array', + 'items' => ['description' => '字段ID', 'type' => 'string', 'required' => false, 'example' => '1201'], 'required' => false, - 'example' => '10001', ], ], 'required' => true, ], 'required' => true, ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', + 'StartBizDate' => ['title' => '起始业务日期 ', 'description' => '起始业务日期 ', 'type' => 'string', 'required' => true, 'example' => '2024-05-21'], + 'EndBizDate' => ['title' => '截止业务日期 ', 'description' => '截止业务日期 ', 'type' => 'string', 'required' => true, 'example' => '2024-05-21'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101121'], + 'Name' => ['title' => '补数据名称,不传时系统生成', 'description' => '补数据名称,不传时系统生成', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'DownStreamNodeIdList' => [ + 'title' => '下游节点ID,指定下游节点运行;'."\n" + .'ContainAllDownStream = false 时生效', + 'description' => '下游节点ID,指定下游节点运行', + 'type' => 'array', + 'items' => [ + 'title' => '根节点', + 'description' => '节点ID', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => false, 'example' => '2323232'], + 'FieldIdList' => [ + 'title' => '当节点时逻辑表节点id时可以传,不传默认是全表', + 'description' => '字段ID', + 'type' => 'array', + 'items' => ['description' => '字段iD', 'type' => 'string', 'required' => false, 'example' => '232322211'], + 'required' => false, + ], + ], + 'required' => false, + 'example' => 'n_23243', + ], + 'required' => false, ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', + 'ContainAllDownStream' => ['title' => '海量模式:包含所有下游,默认为false ', 'description' => '海量模式:包含所有下游,默认为false ', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'FilterList' => [ + 'title' => '过滤器,和ContainAllDownStream搭配使用,可以根据项目,节点等进行正选和反选,默认为空', + 'description' => '过滤器列表:和ContainAllDownStream搭配使用,可以根据项目,节点等进行正选和反选,默认为空', + 'type' => 'array', + 'items' => [ + 'description' => '过滤器', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '筛选键,支持:'."\n" + .'- PROJECT: 项目'."\n" + .'- NODE_OUTPUT_NAME: 节点输出名'."\n" + .'- NODE_NAME: 节点名称'."\n" + .'- NODE_ID: 节点ID'."\n" + .'- TARGETS: 指定终点'."\n" + .'- SOURCES:指定起点', 'type' => 'string', 'required' => false, 'example' => 'NODE_OUTPUT_NAME'], + 'ValueList' => [ + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '过滤值', 'type' => 'string', 'required' => false, 'example' => 'xxtest'], + 'required' => false, + ], + 'Exclude' => ['description' => '是否反选,默认:false', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + ], + 'required' => false, + ], + 'required' => false, ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'Parallelism' => ['title' => '并发数,默认为1', 'description' => '并发数,默认为1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'MinDueTime' => ['title' => '最早调起时间(HH:MM),小时任务专用', 'description' => '最早调起时间(HH:MM),小时任务专用', 'type' => 'string', 'required' => false, 'example' => '00:00'], + 'MaxDueTime' => ['title' => '最晚调起时间(HH:MM),小时任务专用', 'description' => '最晚调起时间(HH:MM),小时任务专用', 'type' => 'string', 'required' => false, 'example' => '20:59'], + 'GlobalParamList' => [ + 'title' => '运行时全局参数', + 'description' => '运行时全局参数', + 'type' => 'array', + 'items' => [ + 'description' => '参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '参数', 'type' => 'string', 'required' => false, 'example' => 'param1'], + 'Value' => ['description' => '参数值', 'type' => 'string', 'required' => false, 'example' => 'value1'], + ], + 'required' => false, + ], + 'required' => false, ], - 'Data' => [ - 'description' => '同步结果', - 'type' => 'boolean', - 'example' => 'true', + 'NodeParamsList' => [ + 'title' => '运行时自定义参数, 按照节点进行配置', + 'description' => '运行时自定义参数, 按照节点进行配置', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['description' => '节点ID', 'type' => 'string', 'required' => false, 'example' => 'n_23324'], + 'ParamList' => [ + 'description' => '参数列表', + 'type' => 'array', + 'items' => [ + 'description' => '参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '参数', 'type' => 'string', 'required' => false, 'example' => 'param1'], + 'Value' => ['description' => '参数值', 'type' => 'string', 'required' => false, 'example' => 'value1'], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, ], ], + 'required' => true, + ], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => [ + 'title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', + 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'PROD', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true/false'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'SubmitId' => ['title' => '如果是普通模式,返回的是flowId; 如果是海量模式,返回提交的jobId,可以根据GetOperationSubmitStatus 查询提交的状态,提交成功后会返回flowId', 'description' => '- 普通模式:返回的是FlowId'."\n" + .'- 海量模式,返回提交的JobId,可以根据GetOperationSubmitStatus查询任务提交的状态,提交成功后会返回FlowId', 'type' => 'string', 'example' => 'f_2264518792396800000_20210223_2329354897145659392'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitId\\": \\"f_2264518792396800000_20210223_2329354897145659392\\"\\n}","type":"json"}]', + 'title' => '通用补数据接口', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '同步部门信息', - 'description' => '可以根据appKey查询已发布接口的详细信息', - 'extraInfo' => '接口上线版本:v5.1.0', - ], - 'SyncDepartmentUser' => [ - 'summary' => '同步部门成员信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateNodeSupplement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreatePipeline' => [ + 'summary' => '创建集成管道/非结构化工作流任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -5984,63 +4007,109 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道/工作流任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境(对于工作流,目前仅支持PROD)', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'SyncDepartmentUserCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '创建管道任务配置', + 'description' => '创建管道/工作流任务配置', 'type' => 'object', 'properties' => [ - 'DeptUserMapping' => [ - 'description' => '用户归属部门关系', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'SourceUserId' => [ - 'title' => '用户系统的用户ID(用户唯一标识)', - 'description' => '用户系统的用户ID(用户唯一标识)', - 'type' => 'string', - 'required' => true, - 'example' => '30000001', + 'ScheduleConfig' => ['title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'type' => 'string', 'required' => true, 'example' => '{"cronExpression":"0 0 0 * * ?"}'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'PipelineConfig' => [ + 'title' => '集成管道组件配置', + 'description' => '集成管道组件/工作流算子配置', + 'type' => 'object', + 'properties' => [ + 'Steps' => [ + 'title' => '组件配置:包含所有用到的组件详细配置', + 'description' => '组件/算子配置:包含所有用到的组件/算子详细配置', + 'type' => 'array', + 'items' => [ + 'title' => '组件具体配置', + 'description' => '组件/算子具体配置', + 'type' => 'object', + 'properties' => [ + 'PluginConfig' => ['title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig(工作流算子则为com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.unstructured.BaseOAUnstructuredNeuronConfig)相关子类的toJsonString方法。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与Dataphin页面创建的任务配置结构相同', 'type' => 'string', 'required' => true, 'example' => '{}'], + 'StepType' => ['title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,对于工作流任务则表示算子类型,例如:image-图片,text-文本。参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与Dataphin页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'input'], + 'StepName' => ['title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + 'IsDistribute' => ['title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据。'."\n" + .'如果为工作流任务,则无需关注此值。', 'type' => 'boolean', 'required' => false], + 'Key' => ['title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '插件ID,每个插件/算子都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与Dataphin页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'mysqlinput'], + ], + 'required' => false, ], - 'DepartmentIdList' => [ - 'title' => '用户归属部门ID列表(为空则为删除用户归属关系)', - 'description' => '用户归属部门ID列表(为空则为删除用户归属关系)', - 'type' => 'array', - 'items' => [ - 'description' => '用户归属部门ID', - 'type' => 'string', - 'required' => true, - 'example' => 'DEPT_1', + 'required' => true, + ], + 'Hops' => [ + 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'description' => 'DAG有向无环图链接配置:描述所有组件/算子的连接关系', + 'type' => 'array', + 'items' => [ + 'title' => '集成管道输入输出组件关系配置', + 'description' => '集成管道输入输出组件/工作流算子依赖关系配置', + 'type' => 'object', + 'properties' => [ + 'Target' => ['title' => '输出步骤名称,即Steps[*].StepName', 'description' => '输出步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'odps_writer'], + 'SendTo' => ['title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false。'."\n" + .'如果为工作流任务,则无需关注', 'type' => 'boolean', 'required' => false], + 'Source' => ['title' => '输入步骤名称,即Steps[*].StepName', 'description' => '输入步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], ], 'required' => false, ], + 'required' => true, ], - 'required' => true, ], 'required' => true, ], + 'NodeInfo' => [ + 'title' => '集成管道任务基本信息', + 'description' => '集成管道/工作流 任务基本信息', + 'type' => 'object', + 'properties' => [ + 'NodeName' => ['title' => '集成管道任务名称', 'description' => '集成管道/工作流 任务名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'NodeId' => ['title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 任务调度节点ID,首次创建为空,更新管道/工作流 任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 任务ID,首次创建为空,更新管道/工作流任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 文件ID,首次创建为空,更新管道/工作流 任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'Directory' => ['title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'description' => '集成管道/工作流任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline(工作流则为unstructuredPipeline)的目录', 'type' => 'string', 'required' => false, 'example' => '/'], + ], + 'required' => true, + ], + 'PipelineType' => ['title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', 'description' => '任务类型:0-表示离线集成(默认),1-表示实时集成,14-表示离线工作流任务,15-表示实时工作流', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'Mode' => ['title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式。'."\n" + .'如果为工作流,则无需关注。', 'type' => 'string', 'required' => false, 'example' => 'PIPELINE'], + 'Submit' => ['title' => '是否提交,默认提交', 'description' => '是否提交,默认提交', 'type' => 'boolean', 'required' => false], + 'PipelineJson' => ['title' => '脚本模式下:集成管道配置(json字符串格式)', 'description' => '脚本模式下:集成管道配置(json字符串格式)。'."\n" + .'工作流任务不支持脚本模式', 'type' => 'string', 'required' => false, 'example' => '{}'], + 'Settings' => ['title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'type' => 'string', 'required' => false, 'example' => '{}'], ], 'required' => true, ], @@ -6049,278 +4118,258 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'Data' => [ - 'description' => '响应结果', - 'type' => 'boolean', - 'example' => 'true', + 'title' => '集成管道任务创建结果', + 'description' => '集成管道/工作流 任务创建结果', + 'type' => 'object', + 'properties' => [ + 'SubmitId' => ['title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', 'description' => '提交管道成功后生成的待发布列表提交ID,通过发布域进行发布。'."\n" + .'工作流任务仅支持PROD,因此无此值。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'HostMachine' => ['title' => '服务端执行机器名称和ip', 'description' => '服务端执行机器名称和ip', 'type' => 'string', 'example' => 'hostName:hostIp'], + 'Version' => ['title' => '提交后生成的版本号', 'description' => '管道提交后生成的待发布版本号。'."\n" + .'工作流任务仅支持PROD,因此无此值。', 'type' => 'string', 'example' => '1'], + 'NodeId' => ['title' => '创建成功后的管道任务调度节点Id', 'description' => '创建成功后的管道/工作流任务调度节点Id', 'type' => 'string', 'example' => '123'], + 'PipelineId' => ['title' => '创建成功后的管道ID', 'description' => '创建成功后的管道/工作流 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '创建集成管道/非结构化工作流任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '同步部门成员信息', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'TransferOwnershipForAllObject' => [ - 'summary' => '一键转交负责人。', - 'path' => '', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreatePipelineByAsync' => [ + 'summary' => '异步创建管道/非结构化工作流。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'PrivilegeTransferRecord', + 'name' => 'Context', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'description' => '转交信息', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', 'type' => 'object', 'properties' => [ - 'OldOwner' => [ - 'title' => '转出人用户ID', - 'description' => '转出人用户ID', - 'type' => 'string', - 'required' => true, - 'example' => '30000001', - ], - 'NewOwner' => [ - 'title' => '接收人用户ID', - 'description' => '接收人用户ID', - 'type' => 'string', - 'required' => true, - 'example' => '30000002', - ], - 'TransferComment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道/工作流任务所属项目 ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境 env:DEV-表示操作开发环境,PROD-表示操作生产环境(对于工作流,目前仅支持 PROD)', 'type' => 'string', 'required' => true, 'example' => 'DEV'], ], - 'required' => false, + 'required' => true, ], ], - ], - 'responses' => [ - 200 => [ + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => '创建管道任务配置', + 'description' => '创建管道/工作流任务配置', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'ScheduleConfig' => ['title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'type' => 'string', 'required' => true, 'example' => '{"cronExpression":"0 0 0 * * ?"}'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'PipelineConfig' => [ + 'title' => '集成管道组件配置', + 'description' => '集成管道组件/工作流算子配置', + 'type' => 'object', + 'properties' => [ + 'Steps' => [ + 'title' => '组件配置:包含所有用到的组件详细配置', + 'description' => '组件/算子配置:包含所有用到的组件/算子详细配置', + 'type' => 'array', + 'items' => [ + 'title' => '组件具体配置', + 'description' => '组件/算子具体配置', + 'type' => 'object', + 'properties' => [ + 'PluginConfig' => ['title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '具体组件配置,格式为 JSON 字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig(工作流算子则为 com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.unstructured.BaseOAUnstructuredNeuronConfig)相关子类的 toJsonString 方法。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的任务配置结构相同', 'type' => 'string', 'required' => true, 'example' => '{}'], + 'StepType' => ['title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,对于工作流任务则表示算子类型,例如:image-图片,text-文本。参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'input'], + 'StepName' => ['title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + 'IsDistribute' => ['title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式: true-表示当前组件的数据轮流发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游各有 50 条数据,默认为 true, false-表示当前组件的数据全量发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游都有 100 条数据。 如果为工作流任务,则无需关注此值。', 'type' => 'boolean', 'required' => false], + 'Key' => ['title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '插件 ID,每个插件/算子都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'mysqlinput'], + ], + 'required' => false, + ], + 'required' => true, + ], + 'Hops' => [ + 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'type' => 'array', + 'items' => [ + 'title' => '集成管道输入输出组件关系配置', + 'description' => '集成管道输入输出组件关系配置', + 'type' => 'object', + 'properties' => [ + 'Target' => ['title' => '输出步骤名称,即Steps[*].StepName', 'description' => '输出步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'odps_writer'], + 'SendTo' => ['title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'description' => '针对条件分发组件,连接下游条件为 true 时设置为 true,否则设置为 false。 如果为工作流任务,则无需关注', 'type' => 'boolean', 'required' => false], + 'Source' => ['title' => '输入步骤名称,即Steps[*].StepName', 'description' => '输入步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + 'required' => true, ], - 'Data' => [ - 'title' => '转交记录ID', - 'description' => '转交记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'NodeInfo' => [ + 'title' => '集成管道任务基本信息', + 'description' => '集成管道任务基本信息', + 'type' => 'object', + 'properties' => [ + 'NodeName' => ['title' => '集成管道任务名称', 'description' => '集成管道任务名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'NodeId' => ['title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'Directory' => ['title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'type' => 'string', 'required' => false, 'example' => '/'], + ], + 'required' => true, ], + 'PipelineType' => ['title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', 'description' => '任务类型:0-表示离线集成(默认),1-表示实时集成,14-表示离线工作流任务,15-表示实时工作流', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'Mode' => ['title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式。 如果为工作流,则无需关注。', 'type' => 'string', 'required' => false, 'example' => 'PIPELINE'], + 'Submit' => ['title' => '是否提交,默认提交', 'description' => '是否提交,默认提交', 'type' => 'boolean', 'required' => false], + 'PipelineJson' => ['title' => '脚本模式下:集成管道配置(json字符串格式)', 'description' => '脚本模式下:集成管道配置(json 字符串格式)。 工作流任务不支持脚本模式', 'type' => 'string', 'required' => false, 'example' => '{}'], + 'Settings' => ['title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'type' => 'string', 'required' => false, 'example' => '{}'], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => ['title' => '异步执行查询Id', 'description' => '异步执行查询Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '异步创建管道/非结构化工作流', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '一键转交负责人', + 'ramActions' => [], ], - 'RetryTransferOwnership' => [ - 'summary' => '重新转交运行失败的转交任务。', - 'path' => '', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreatePipelineNode' => [ + 'summary' => '创建数据集成任务。备注:从dataphin v5.3.1版本开始不建议使用,请使用CreatePipeline。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'PrivilegeTransferRecord', + 'name' => 'CreatePipelineNodeCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'description' => '转交信息', + 'title' => '创建pipeline管道,支持离线管道和实时管道', + 'description' => '创建pipeline管道,支持离线管道和实时管道', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '转出任务ID', - 'description' => '转出任务ID', - 'type' => 'integer', - 'format' => 'int64', + 'PipelineName' => ['title' => '管道名称', 'description' => '管道名称', 'type' => 'string', 'required' => true, 'example' => 'test_pipeline'], + 'PipelineType' => [ + 'title' => '管道类型[OFFLINE_PIPELINE,REAL_TIME_PIPELINE]', + 'description' => '管道类型[OFFLINE_PIPELINE,REAL_TIME_PIPELINE]', + 'type' => 'string', 'required' => true, - 'example' => '1', + 'example' => 'REAL_TIME_PIPELINE', + 'enum' => ['OFFLINE_PIPELINE', 'REAL_TIME_PIPELINE'], ], - 'NewOwner' => [ - 'title' => '接收人用户ID', - 'description' => '接收人用户ID', + 'NodeType' => [ + 'title' => '管道类型[NORMAL,MANUAL,REAL_TIME]', + 'description' => '管道类型[NORMAL,MANUAL,REAL_TIME]', 'type' => 'string', 'required' => true, - 'example' => '30000001', + 'example' => 'REAL_TIME', + 'enum' => ['NORMAL', 'MANUAL', 'REAL_TIME'], ], - 'TransferComment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', + 'FileInfo' => [ + 'title' => '任务文件信息', + 'description' => '任务文件信息', + 'type' => 'object', + 'properties' => [ + 'FileName' => ['title' => '文件名称', 'description' => '文件名称', 'type' => 'string', 'required' => true, 'example' => 'test_pipeline'], + 'Directory' => ['title' => '文件父目录全路径(为空,则为根路径\'/\')', 'description' => '文件父目录全路径(为空,则为根路径\'/\')', 'type' => 'string', 'required' => false, 'example' => 'test', 'default' => '/'], + 'Description' => ['title' => '文件描述', 'description' => '文件描述', 'type' => 'string', 'required' => false, 'example' => 'desc'], + ], + 'required' => true, ], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7091124176569088'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -6331,42 +4380,30 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], 'Data' => [ - 'title' => '转交记录ID', - 'description' => '转交记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', + 'title' => '管道节点信息', + 'description' => '管道节点信息', + 'type' => 'object', + 'properties' => [ + 'PipelineId' => ['title' => '创建成功后的管道ID', 'description' => '创建成功后的管道ID', 'type' => 'integer', 'format' => 'int64', 'example' => '33749'], + 'ErrorCodeList' => [ + 'title' => '错误码', + 'description' => '错误码', + 'type' => 'array', + 'items' => ['title' => '错误码', 'description' => '错误码', 'type' => 'string', 'example' => 'DPN.Pipeline.Config.ErrorReason'], + ], + 'ErrorMessageList' => [ + 'title' => '异常信息', + 'description' => '异常信息', + 'type' => 'array', + 'items' => ['title' => '异常消息', 'description' => '异常消息', 'type' => 'string', 'example' => '管道配置错误:{0}'], + ], + ], ], ], ], @@ -6374,307 +4411,348 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"PipelineId\\": 33749,\\n \\"ErrorCodeList\\": [\\n \\"DPN.Pipeline.Config.ErrorReason\\"\\n ],\\n \\"ErrorMessageList\\": [\\n \\"管道配置错误:{0}\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => '创建数据集成管道任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 2\\n}","type":"json"}]', - 'title' => '重新转交运行失败的转交任务', - ], - 'GetTransferInfo' => [ - 'summary' => '根据转交任务ID查询转交任务的进度。', - 'path' => '', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreatePipelineNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateResource' => [ + 'summary' => '创建资源文件。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProposalId', - 'in' => 'query', + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '转交记录ID', - 'description' => '转交记录ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建命令', + 'description' => '创建命令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'required' => true, 'example' => 'udf_sleep.jar'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + 'Directory' => ['title' => '存放目录', 'description' => '存放目录', 'type' => 'string', 'required' => true, 'example' => '/'], + 'ResourceType' => ['title' => '资源类型: FILE: 普通文件、JAR: Jar文件、PYTHON: Python文件、OTHERS: 其他类型文件', 'description' => '资源类型: FILE: 普通文件、JAR: Jar文件、PYTHON: Python文件、OTHERS: 其他类型文件', 'type' => 'string', 'required' => true, 'example' => 'JAR'], + 'StorageAddress' => ['title' => '资源存储地址', 'description' => '资源存储地址', 'type' => 'string', 'required' => true, 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c'], + 'Description' => ['title' => '资源描述', 'description' => '资源描述', 'type' => 'string', 'required' => true, 'example' => 'xx 测试'], + 'Comment' => ['title' => '提交备注', 'description' => '提交备注', 'type' => 'string', 'required' => true, 'example' => 'xx 测试'], + 'ComputeEngineType' => ['title' => '计算引擎类型: MAX_COMPUTE、HADOOP、NONE', 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP、NONE', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + ], 'required' => true, - 'example' => '1', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'ProposalId' => [ - 'title' => '审批单id', - 'description' => '审批单id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FlowId' => [ - 'title' => '审批单flowId', - 'description' => '审批单flowId', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1753669315426', - ], - 'Title' => [ - 'title' => '审批单title', - 'description' => '审批单title', - 'type' => 'string', - 'example' => 'transefer title', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30000001', - ], - 'DisplayName' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'zhangsan', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '资源文件Id', 'description' => '资源文件Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10112101'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 10112101\\n}","type":"json"}]', + 'title' => '创建资源文件', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CreateRowPermission' => [ + 'summary' => '创建行级权限。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateRowPermissionCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '请求命令', + 'description' => '请求命令', + 'type' => 'object', + 'properties' => [ + 'RowPermissionName' => ['title' => '行级权限名称', 'description' => '行级权限名称', 'type' => 'string', 'required' => true, 'example' => '业务管控'], + 'RowPermissionDesc' => ['title' => '行级权限描述', 'description' => '行级权限描述', 'type' => 'string', 'required' => false, 'example' => '管控业务数据'], + 'MappingColumns' => [ + 'title' => '映射字段', + 'description' => '映射字段', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + 'ColumnType' => [ + 'title' => '映射字段类型', + 'description' => '映射字段类型', + 'type' => 'string', + 'required' => true, + 'example' => 'STRING', + 'enum' => ['STRING', 'NUMBER'], ], + 'ColumnDesc' => ['title' => '映射字段描述', 'description' => '映射字段描述', 'type' => 'string', 'required' => false, 'example' => '控制业务ID字段'], ], - 'OldOwner' => [ - 'title' => '旧的owner', - 'description' => '旧的owner', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30000001', - ], - 'DisplayName' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'zhangsan', - ], + 'required' => true, + 'description' => '', + ], + 'required' => true, + ], + 'Rules' => [ + 'title' => '规则', + 'description' => '规则', + 'type' => 'array', + 'items' => [ + 'description' => '规则对象', + 'type' => 'object', + 'properties' => [ + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'required' => true, 'example' => '中台'], + 'ScopeType' => [ + 'title' => '规则范围类型', + 'description' => '规则范围类型', + 'type' => 'string', + 'required' => true, + 'example' => 'SELECT_COLUMN', + 'enum' => ['ALL_COLUMN', 'SELECT_COLUMN'], ], - ], - 'NewOwner' => [ - 'title' => '新的owner', - 'description' => '新的owner', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30000001', - ], - 'DisplayName' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'zhangsan', - ], + 'IsDelete' => [ + 'title' => '是否删除', + 'description' => '是否删除', + 'type' => 'boolean', + 'required' => false, + 'example' => '1', + 'enum' => ['0', '1'], ], - ], - 'PrivilegeTransferMode' => [ - 'title' => '转交模式:一键转交-ONE_STOP,根据功能模块转交-FUNCTION_MODULE_BASED', - 'description' => '转交模式:一键转交-ONE_STOP,根据功能模块转交-FUNCTION_MODULE_BASED', - 'type' => 'string', - 'example' => 'ONE_STOP', - ], - 'TransferComment' => [ - 'title' => '转交描述', - 'description' => '转交描述', - 'type' => 'string', - 'example' => 'comment', - ], - 'TransferStatus' => [ - 'title' => '转交状态', - 'description' => '转交状态', - 'type' => 'string', - 'enumValueTitles' => [ - 'REVOKED' => '已被管理员强行撤回', - 'SUCCESS' => '权限转交成功', - 'FAILED' => '权限转交失败:处理中出错', - 'APPROVING' => '审批中', - 'CANCELED' => '已取消', - 'APPROVED' => '审批人已同意,正在处理中', - 'RETRY' => '已重试', - 'REJECTED' => '审批人已拒绝', + 'Status' => [ + 'title' => '规则状态', + 'description' => '规则状态', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + 'enum' => ['0', '1'], ], - 'example' => 'APPROVED', - ], - 'LastModifier' => [ - 'title' => '最后修改人', - 'description' => '最后修改人', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30000001', - ], - 'DisplayName' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'zhangsan', + 'Expressions' => [ + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'id'], + 'Values' => [ + 'title' => '表达式操作值', + 'description' => '表达式操作值', + 'type' => 'array', + 'items' => ['description' => '表达式操作值', 'type' => 'string', 'required' => true, 'example' => '123'], + 'required' => true, + ], + 'Type' => [ + 'title' => '表达式类型', + 'description' => '表达式类型', + 'type' => 'string', + 'required' => true, + 'example' => 'RELATION', + 'enum' => ['EXPRESSION', 'RELATION'], + ], + 'SubConditions' => [ + 'title' => '子表达式', + 'description' => '子表达式', + 'type' => 'array', + 'items' => ['description' => '子表达式,结构同Expressions', 'type' => 'any', 'required' => true, 'example' => '子表达式,结构同Expressions'], + 'required' => true, + ], + 'Operator' => [ + 'title' => '表达式操作符号', + 'description' => '表达式操作符号', + 'type' => 'string', + 'required' => true, + 'example' => 'EQUAL', + 'enum' => ['EQUAL', 'NOT_EQUAL', 'IN', 'NOT_IN', 'LIKE', 'NOT_LIKE', 'GT', 'LT', 'GE', 'LE', 'OR', 'AND'], + ], + ], + 'required' => true, + 'description' => '', ], + 'required' => true, ], - ], - 'PrivilegeTransferResultEntries' => [ - 'title' => '功能模块的转交详情', - 'description' => '功能模块的转交详情', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'description' => '转交模块状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'PrivilegeDisplayName' => [ - 'description' => '转交模块名称', - 'type' => 'string', - 'example' => 'table owner', - ], - 'ErrMsg' => [ - 'description' => '错误信息', - 'type' => 'string', - 'example' => 'userId is error', + 'UserMappingList' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountType' => [ + 'title' => '规则绑定账号类型', + 'description' => '规则绑定账号类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['PERSONAL' => 'PERSONAL', 'USER_GROUP' => 'USER_GROUP', 'PRODUCE' => 'PRODUCE'], + 'example' => 'PERSONAL', + ], + 'Accounts' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '规则绑定账号ID', 'description' => '规则绑定账号ID', 'type' => 'string', 'required' => true, 'example' => '300001111'], + ], + 'required' => true, + 'description' => '', + ], + 'required' => true, + 'example' => 'PERSONAL', + 'enum' => ['PERSONAL', 'PRODUCE', 'USER_GROUP'], + ], ], + 'required' => true, + 'description' => '', ], + 'required' => false, ], ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '1632036495973809', - ], - 'GmtModified' => [ - 'title' => '最后修改时间', - 'description' => '最后修改时间', - 'type' => 'string', - 'example' => '1632036495973809', + 'required' => false, + ], + 'required' => false, + ], + 'Tables' => [ + 'title' => '相关表', + 'description' => '相关表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + 'ResourceId' => ['title' => '表GUID', 'description' => '表GUID', 'type' => 'string', 'required' => true, 'example' => 'odps.300199897.project_name.table_name'], + 'ColumnName' => ['title' => '表字段', 'description' => '表字段', 'type' => 'string', 'required' => true, 'example' => 'business_id'], ], + 'required' => true, + 'description' => '', ], + 'required' => false, ], ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['description' => '创建结果', 'type' => 'integer', 'format' => 'int64', 'example' => 'true'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"ProposalId\\": 1,\\n \\"FlowId\\": 1753669315426,\\n \\"Title\\": \\"transefer title\\",\\n \\"Creator\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"OldOwner\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"NewOwner\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"PrivilegeTransferMode\\": \\"ONE_STOP\\",\\n \\"TransferComment\\": \\"comment\\",\\n \\"TransferStatus\\": \\"APPROVED\\",\\n \\"LastModifier\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"PrivilegeTransferResultEntries\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"PrivilegeDisplayName\\": \\"table owner\\",\\n \\"ErrMsg\\": \\"userId is error\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"1632036495973809\\",\\n \\"GmtModified\\": \\"1632036495973809\\"\\n }\\n}","type":"json"}]', - 'title' => '根据转交任务ID查询转交任务的进度', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 0\\n}","type":"json"}]', + 'title' => '创建行级权限', + 'description' => '可以根据appKey查询已发布接口的详细信息', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'ramActions' => [], ], - 'AddTenantMembers' => [ - 'summary' => '批量添加用户至租户,该API仅支持超级管理员(SuperAdmin)和系统管理员能调用。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateSecurityClassify' => [ + 'summary' => '新建数据分类。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -6682,73 +4760,78 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AddCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'UserList' => [ - 'title' => '成员列表', - 'description' => '成员列表', + 'Name' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Abbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Description' => ['title' => '分类描述', 'description' => '分类描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ParentPath' => ['title' => '分类路径,可选,未填写或填写/均视为直接归属根目录', 'description' => '分类路径,可选,未填写或填写/均视为直接归属根目录', 'type' => 'string', 'required' => false, 'example' => '/'], + 'LevelName' => ['title' => '数据分级名称', 'description' => '数据分级名称', 'type' => 'string', 'required' => true, 'example' => 'L2'], + 'FeatureNameList' => [ + 'title' => '特征名称', + 'description' => '特征名称', + 'type' => 'array', + 'items' => ['title' => '特征名称', 'description' => '特征名称', 'type' => 'string', 'required' => false, 'example' => '行业'], + 'required' => false, + ], + 'Priority' => ['title' => '优先级,默认: 5', 'description' => '优先级,默认: 5', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + 'AdvancedConditionList' => [ + 'title' => '高级配置', + 'description' => '高级配置', 'type' => 'array', 'items' => [ - 'title' => '成员对象', - 'description' => '成员对象', + 'title' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', + 'ParentId' => ['title' => '特征条件父节点', 'description' => '特征条件父节点', 'type' => 'string', 'required' => false, 'example' => '123'], + 'Id' => ['title' => '特征条件节点id,由业务随机生成且确保唯一', 'description' => '特征条件节点id,由业务随机生成且确保唯一', 'type' => 'string', 'required' => true, 'example' => '234'], + 'Relation' => ['title' => '条件关系: EXPRESSION 表达式、RELATION 关系', 'description' => '条件关系: EXPRESSION 表达式、RELATION 关系', 'type' => 'string', 'required' => true, 'example' => 'EXPRESSION'], + 'Property' => ['title' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', 'description' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', 'type' => 'string', 'required' => false, 'example' => 'TABLE_NAME'], + 'Operate' => ['title' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', 'description' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', 'type' => 'string', 'required' => true, 'example' => 'AND'], + 'ValueList' => [ + 'title' => '条件取值', + 'description' => '条件取值', + 'type' => 'array', + 'items' => ['title' => '条件取值', 'description' => '条件取值', 'type' => 'string', 'required' => false, 'example' => 'abc'], 'required' => false, - 'example' => '1323241', ], - 'RoleList' => [ - 'title' => '用户Id', - 'description' => '角色列表'."\n" - .'- SYSTEM_ADMIN'."\n" - .'- DATASOURCE_MANAGER'."\n" - .'- SECURITY_ADMIN'."\n" - .'- QUALITY_MANAGER'."\n" - .'- EXPORT_ADMIN'."\n" - .'- DATA_STANDARD_MANAGER'."\n" - .'- LABELS_BUSINESS_PLANNER'."\n" - .'- BUSINESS_MEMBER', + 'OptionList' => [ + 'title' => '额外属性,如字段内容', + 'description' => '额外属性,如字段内容', 'type' => 'array', 'items' => [ - 'title' => '角色列表', - 'description' => '角色', - 'type' => 'string', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + ], 'required' => false, - 'example' => 'SECURITY_ADMIN', + 'description' => '', ], 'required' => false, ], ], 'required' => false, + 'description' => '', ], - 'required' => true, + 'required' => false, ], + 'Status' => ['title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'required' => false, 'example' => 'ENABLE'], ], 'required' => true, ], @@ -6757,84 +4840,43 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '新增租户成员结果', - 'description' => '新增租户成员结果', - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '数据分类ID', 'description' => '数据分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建数据分类', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '添加用户到租户', + 'ramActions' => [], ], - 'AddTenantMembersBySourceUser' => [ - 'summary' => '通过原始用户添加租户成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateSecurityClassifyCatalog' => [ + 'summary' => '新建数据分类目录。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -6842,172 +4884,77 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AddCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'description' => '添加请求', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'SourceUserList' => [ - 'description' => '来源用户列表', + 'Name' => ['title' => '分类目录名称', 'description' => '分类目录名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'ParentPath' => ['title' => '分类父目录完整路径,默认/', 'description' => '分类父目录完整路径,默认/', 'type' => 'string', 'required' => false, 'example' => '/d1/'], + 'OwnerList' => [ + 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', + 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'type' => 'array', - 'items' => [ - 'description' => '来源用户', - 'type' => 'object', - 'properties' => [ - 'SourceId' => [ - 'title' => '用户原始Id', - 'description' => '用户原始Id', - 'type' => 'string', - 'required' => false, - 'example' => '2323131', - ], - 'DisplayName' => [ - 'title' => '显示名', - 'description' => '显示名', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'AccountName' => [ - 'title' => '账号名称', - 'description' => '账号名称', - 'type' => 'string', - 'required' => false, - 'example' => '123@xx.com', - ], - 'MobilePhone' => [ - 'title' => '电话号码', - 'description' => '电话号码', - 'type' => 'string', - 'required' => false, - 'example' => '13888888888', - ], - 'Mail' => [ - 'title' => '邮箱', - 'description' => '邮箱', - 'type' => 'string', - 'required' => false, - 'example' => '123@xx.com', - ], - 'DingNumber' => [ - 'title' => '钉钉号', - 'description' => '钉钉号', - 'type' => 'string', - 'required' => false, - 'example' => '123@dingding', - ], - ], - 'required' => false, - ], + 'items' => ['title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'type' => 'string', 'required' => false, 'example' => '30001011'], 'required' => false, ], + 'VisibleType' => ['title' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', 'description' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', 'type' => 'string', 'required' => false, 'example' => 'PUBLIC'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '添加结果', - 'description' => '添加结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '新建成功的目录的完整路径', 'description' => '新建成功的目录的完整路径', 'type' => 'string', 'example' => '/d1/d2/'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"/d1/d2/\\"\\n}","type":"json"}]', + 'title' => '新建数据分类目录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '根据认证系统的来源用户ID添加用户到租户', + 'ramActions' => [], ], - 'CreateUserGroup' => [ - 'summary' => '新建用户组。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateSecurityIdentifyResult' => [ + 'summary' => '新建安全识别结果。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7015,152 +4962,76 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'description' => '新建请求', + 'title' => '创建指令', + 'description' => '创建请求', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '用户组名称', - 'description' => '用户组名称', - 'type' => 'string', - 'required' => false, - 'example' => 'xx用户组', - ], - 'Description' => [ - 'title' => '用户组描述', - 'description' => '用户组描述', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'Active' => [ - 'title' => '是否启用用户组', - 'description' => '是否启用用户组', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'AdminUserIdList' => [ - 'title' => '用户组管理员用户Id', - 'description' => '用户组管理员用户Id', - 'type' => 'array', - 'items' => [ - 'title' => '用户组管理员用户Id', - 'description' => '用户组管理员用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '23231', - ], - 'required' => false, - ], + 'IsDatasourceTable' => ['title' => '是否数据源表, 默认否(视为Dataphin表)', 'description' => '是否数据源表, 默认否(视为Dataphin表)', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'DatasourceName' => ['title' => '数据源名称,仅数据源表需要填写', 'description' => '数据源名称,仅数据源表需要填写', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'DatasourceEnv' => ['title' => '数据源环境标识,仅数据源表需要填写', 'description' => '数据源环境标识,仅数据源表需要填写', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'TableCatalog' => ['title' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', 'description' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'required' => true, 'example' => 't_test'], + 'FieldName' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'required' => true, 'example' => 'col1'], + 'ClassifyId' => ['title' => '分类ID', 'description' => '分类ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'Enable' => ['title' => '生效状态: true开启、false关闭, 默认: true', 'description' => '生效状态: true开启、false关闭, 默认: true', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'ConflictStrategy' => ['title' => '去重策略: COVER_ALL 覆盖线上全部打标、COVER_UNLOCKED 仅覆盖线上未锁定打标、NOT_COVER 不覆盖,保留线上打标', 'description' => '去重策略: COVER_ALL 覆盖线上全部打标、COVER_UNLOCKED 仅覆盖线上未锁定打标、', 'type' => 'string', 'required' => true, 'example' => 'COVER_ALL'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', + 'title' => 'Schema of Response', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'UserGroupId' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'example' => '2313131', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '识别结果ID', 'description' => '识别结果ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建安全识别结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserGroupId\\": \\"2313131\\"\\n}","type":"json"}]', - 'title' => '新建用户组', + 'ramActions' => [], ], - 'AddUserGroupMember' => [ - 'summary' => '添加用户组成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateSecurityLevel' => [ + 'summary' => '新建数据分级。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7168,139 +5039,71 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AddCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '添加用户组成员', - 'description' => '添加用户组成员', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'UserGroupId' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'required' => true, - 'example' => '132331', - ], - 'UserIdList' => [ - 'title' => '用户Id列表', - 'description' => '用户Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '342313', - ], - 'required' => false, - ], + 'Name' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Abbreviation' => ['title' => '分级缩写', 'description' => '分级缩写', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Index' => ['title' => '分级顺序,不传递将默认生成当前最大顺序Id', 'description' => '分级顺序,不传递将默认生成当前最大顺序Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Description' => ['title' => '分级描述', 'description' => '分级描述', 'type' => 'string', 'required' => false, 'example' => 'test'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '添加结果', - 'description' => '添加结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '数据分级Index', 'description' => '数据分级ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建数据分级', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '添加用户组成员', + 'ramActions' => [], ], - 'DeleteUserGroup' => [ - 'summary' => '删除用户组。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandard' => [ + 'summary' => '创建标准。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7308,117 +5111,205 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UserGroupId', - 'in' => 'query', - 'schema' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'required' => true, - 'example' => '232131', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', + 'EffectiveTimeConfig' => [ + 'title' => '生效时间配置', + 'description' => '生效时间配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'type' => 'string', 'required' => true, 'example' => 'TIME_PERIOD'], + 'StartTime' => ['title' => '开始生效时间', 'description' => '开始生效时间', 'type' => 'string', 'required' => false, 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '结束生效时间', 'description' => '结束生效时间', 'type' => 'string', 'required' => false, 'example' => '2025-12-30 00:00:00'], + ], + 'required' => false, ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', + 'Description' => ['title' => '描述信息', 'description' => '描述信息', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Owner' => ['title' => '负责人,不传为当前用户', 'description' => '负责人,不传为当前用户', 'type' => 'string', 'required' => false, 'example' => '300000913'], + 'StandardTemplateReference' => [ + 'title' => '标准所属的标准模板', + 'description' => '标准所属的标准模板', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准模板ID', 'description' => '标准模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'Version' => ['title' => '标准模板版本号, 默认去最新版本', 'description' => '标准模板版本号, 默认去最新版本', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'AttributeValueList' => [ + 'title' => '引用模板下属性列表相应属性值, 若为空则使用默认值', + 'description' => '引用模板下属性列表相应属性值, 若为空则使用默认值', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1011'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + ], + 'required' => true, ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'StandardSetReference' => [ + 'title' => '标准集的引用', + 'description' => '标准集的引用', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + ], + 'required' => true, ], - 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'boolean', - 'example' => 'true', + 'StandardGeneralMonitorConfig' => [ + 'title' => '标准监控配置', + 'description' => '标准监控配置', + 'type' => 'object', + 'properties' => [ + 'StandardMonitorConfigList' => [ + 'title' => '标准监控配置列表', + 'description' => '标准监控配置列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Description' => ['title' => '规则描述', 'description' => '规则描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Type' => ['title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'required' => true, 'example' => 'METADATA'], + 'MonitorFrom' => ['title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'type' => 'string', 'required' => true, 'example' => 'BY_SYSTEM_ATTRIBUTE'], + 'AttributeId' => ['title' => '关联的属性Id', 'description' => '关联的属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '112'], + 'AttributeName' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'required' => false, 'example' => 'teset'], + 'AttributeMonitorConfig' => [ + 'title' => '关联属性的监控配置', + 'description' => '关联属性的监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'required' => true, 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean', 'required' => true], + ], + 'required' => false, + ], + 'RuleSubType' => ['title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'type' => 'string', 'required' => false, 'example' => 'CUSTOMIZED'], + 'QualityRuleTemplate' => [ + 'title' => '规则模板, 当监控类型为 QUALITY 时必填', + 'description' => '规则模板, 当监控类型为 QUALITY 时必填', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Type' => ['title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + ], + 'required' => false, + ], + 'RuleConfigList' => [ + 'title' => '规则配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则配置, 当监控类型为 QUALITY 时必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + 'RuleValidateConfigList' => [ + 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '校验配置Id, 由业务随机生成且确保唯一', 'description' => '校验配置Id, 由业务随机生成且确保唯一', 'type' => 'string', 'required' => true, 'example' => 'abc'], + 'ParentId' => ['title' => '父校验配置Id, 父规则校验类型只能是RELATION', 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', 'type' => 'string', 'required' => false, 'example' => 'a'], + 'Type' => ['title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'type' => 'string', 'required' => true, 'example' => 'RELATION'], + 'Operator' => ['title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'type' => 'string', 'required' => true, 'example' => 'AND'], + 'Metric' => ['title' => '指标, 校验类型为 EXPRESSION 时必填', 'description' => '指标, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'required' => false, 'example' => 'a'], + 'MetricName' => ['title' => '指标名称, 校验类型为 EXPRESSION 时必填', 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Value' => ['title' => '比较的值', 'description' => '比较的值', 'type' => 'string', 'required' => false, 'example' => '1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => false, ], + 'NeedGenerateStandardCode' => ['title' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', 'description' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', 'type' => 'boolean', 'required' => false], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1234\\n}","type":"json"}]', + 'title' => '创建标准', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '删除用户组', + 'ramActions' => [], ], - 'UpdateUserGroup' => [ - 'summary' => '编辑用户组。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandardLookupTable' => [ + 'summary' => '创建数据标准码表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7426,153 +5317,98 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑用户组', - 'description' => '编辑用户组', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'required' => true, - 'example' => '13423', - ], - 'Name' => [ - 'title' => '用户组名称', - 'description' => '用户组名称', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'AdminUserIdList' => [ - 'title' => '用户组管理员', - 'description' => '用户组管理员', + 'Name' => ['title' => '码表名称', 'description' => '码表名称', 'type' => 'string', 'required' => true, 'example' => '城市码表'], + 'Code' => ['title' => '码表编码', 'description' => '码表编码', 'type' => 'string', 'required' => true, 'example' => 'CITY'], + 'Description' => ['title' => '码表描述', 'description' => '码表描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Owner' => ['title' => '码表负责人Id,默认为调用者用户Id', 'description' => '码表负责人Id,默认为调用者用户Id', 'type' => 'string', 'required' => false, 'example' => '30012021'], + 'LookupTableValueList' => [ + 'title' => '码表值列表', + 'description' => '码表值列表', 'type' => 'array', 'items' => [ - 'title' => '用户组管理员', - 'description' => '用户组管理员', - 'type' => 'string', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '代码值', 'description' => '代码值', 'type' => 'string', 'required' => true, 'example' => '杭州'], + 'Name' => ['title' => '代码名称', 'description' => '代码名称', 'type' => 'string', 'required' => true, 'example' => 'Hangzhou'], + 'EnglishName' => ['title' => '代码英文名', 'description' => '代码英文名', 'type' => 'string', 'required' => false, 'example' => 'HZ'], + 'Description' => ['title' => '代码描述', 'description' => '代码描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], 'required' => false, - 'example' => '2323131', + 'description' => '', + ], + 'required' => false, + ], + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '归属目录', 'description' => '归属目录', 'type' => 'string', 'required' => true, 'example' => '/dir1/dir2'], ], 'required' => false, ], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '编辑结果', - 'description' => '编辑结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1234\\n}","type":"json"}]', + 'title' => '创建数据标准码表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '更新用户组', + 'ramActions' => [], ], - 'UpdateUserGroupSwitch' => [ - 'summary' => '修改用户组的启用状态。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandardMapping' => [ + 'summary' => '创建标准映射关系, 包括有效映射和无效映射。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7580,128 +5416,90 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'UserGroupId', - 'in' => 'query', - 'schema' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'required' => true, - 'example' => '31323', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Active', - 'in' => 'query', + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '是否启用用户组标识', - 'description' => '是否启用用户组标识', - 'type' => 'boolean', + 'title' => '创建指令', + 'description' => '创建指令', + 'type' => 'object', + 'properties' => [ + 'AssetGuidList' => [ + 'title' => '资产guid列表', + 'description' => '资产guid列表', + 'type' => 'array', + 'items' => ['title' => '资产guid列表', 'description' => '资产guid列表', 'type' => 'string', 'required' => true, 'example' => '1121'], + 'required' => true, + ], + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'RelationType' => ['title' => '映射关系类型: VALID 有效映射、INVALID 无效映射, 默认: VALID', 'description' => '映射关系类型: VALID 有效映射、INVALID 无效映射, 默认: VALID', 'type' => 'string', 'required' => false, 'example' => 'VALID'], + 'InvalidMappingRelationOperationType' => ['title' => '引入映射关系时针对无效映射的处理策略: SET_INVALID_TO_VALID 将无效映射置为有效映射、KEEP_INVALID_AND_SKIP 保留无效映射然后跳过, 默认:SET_INVALID_TO_VALID', 'description' => '引入映射关系时针对无效映射的处理策略: SET_INVALID_TO_VALID 将无效映射置为有效映射、KEEP_INVALID_AND_SKIP 保留无效映射然后跳过, 默认:SET_INVALID_TO_VALID', 'type' => 'string', 'required' => false, 'example' => 'SET_INVALID_TO_VALID'], + ], 'required' => true, - 'example' => 'true', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'Data' => [ - 'title' => '编辑结果', - 'description' => '编辑结果', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], - ], + 'title' => '创建结果', + 'description' => '创建结果', + 'type' => 'object', + 'properties' => [ + 'SuccessCount' => ['title' => '添加成功数目', 'description' => '添加成功数目', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'FailedGuidList' => [ + 'title' => '创建失败资产guid列表', + 'description' => '创建失败资产guid列表', + 'type' => 'array', + 'items' => ['title' => '创建失败资产guid列表', 'description' => '创建失败资产guid列表', 'type' => 'string', 'example' => '1021'], + ], + ], + ], + ], + ], + ], + ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"FailedGuidList\\": [\\n \\"1021\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => '创建标准映射关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '修改用户组的启用状态', + 'ramActions' => [], ], - 'UpdateTenantMember' => [ - 'summary' => '编辑租户成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandardRelations' => [ + 'summary' => '创建标准关联关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -7709,87 +5507,39 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求对象', - 'description' => '请求对象', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'MemberList' => [ - 'title' => '成员列表', - 'description' => '成员列表', + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'StandardRefList' => [ + 'title' => '被引用的标准列表', + 'description' => '被引用的标准列表', 'type' => 'array', 'items' => [ - 'title' => '成员对象', - 'description' => '成员对象', + 'title' => '', 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '2331', - ], - 'MobilePhone' => [ - 'title' => '电话号码', - 'description' => '电话号码', - 'type' => 'string', - 'required' => false, - 'example' => '13888888888', - ], - 'Mail' => [ - 'title' => '邮箱', - 'description' => '邮箱', - 'type' => 'string', - 'required' => false, - 'example' => '123@xx.com', - ], - 'DingNumber' => [ - 'title' => '钉钉号', - 'description' => '钉钉号', - 'type' => 'string', - 'required' => false, - 'example' => '123@dingding', - ], - 'RoleList' => [ - 'title' => '角色列表', - 'description' => '角色列表', - 'type' => 'array', - 'items' => [ - 'title' => '角色', - 'description' => '角色', - 'type' => 'string', - 'required' => false, - 'example' => 'SECURITY_ADMIN', - ], - 'required' => false, - ], + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'], ], 'required' => false, + 'description' => '', ], 'required' => true, ], + 'RelationType' => ['title' => '标准关联关系:RELATIVE', 'description' => '标准关联关系:RELATIVE', 'type' => 'string', 'required' => true, 'example' => 'RELATIVE'], ], 'required' => true, ], @@ -7798,40 +5548,28 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '创建结果', + 'description' => '创建结果', + 'type' => 'object', + 'properties' => [ + 'SuccessCount' => ['title' => '添加成功数目', 'description' => '添加成功数目', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'NotExistStandardIdList' => [ + 'title' => '不存在标准Id列表', + 'description' => '不存在标准Id列表', + 'type' => 'array', + 'items' => ['title' => '不存在标准Id列表', 'description' => '不存在标准Id列表', 'type' => 'integer', 'format' => 'int64', 'example' => '1021'], + ], + ], ], ], ], @@ -7839,101 +5577,124 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"NotExistStandardIdList\\": [\\n 1021\\n ]\\n }\\n}","type":"json"}]', + 'title' => '创建标准关联关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '编辑租户成员', + 'ramActions' => [], ], - 'ListResourcePermissionOperationLog' => [ - 'summary' => '分页获取权限操作列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandardSet' => [ + 'summary' => '创建标准集。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页请求', - 'description' => '分页请求', + 'title' => '创建指令', + 'description' => '创建指令', 'type' => 'object', 'properties' => [ - 'TabType' => [ - 'title' => 'TAB名称:表:TABLE;数据源:DATASOURCE', - 'description' => 'TAB名称:表:TABLE;数据源:DATASOURCE', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', + 'Name' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Code' => ['title' => '标准集编码', 'description' => '标准集编码', 'type' => 'string', 'required' => true, 'example' => 'CITY'], + 'Description' => ['title' => '标准集描述', 'description' => '标准集描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '所属目录', 'description' => '所属目录', 'type' => 'string', 'required' => true, 'example' => '/dir1'], + ], + 'required' => false, ], - 'SearchText' => [ - 'title' => '搜索关键词', - 'description' => '搜索关键词', - 'type' => 'string', + 'MaintainerList' => [ + 'title' => '维护人员', + 'description' => '维护人员', + 'type' => 'array', + 'items' => ['title' => '维护人员', 'description' => '维护人员', 'type' => 'string', 'required' => false, 'example' => '300000913'], 'required' => false, - 'example' => 'xx测试', ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', + 'MemberList' => [ + 'title' => '成员列表', + 'description' => '成员列表', + 'type' => 'array', + 'items' => ['title' => '成员列表', 'description' => '成员列表', 'type' => 'string', 'required' => false, 'example' => '300000913'], + 'required' => false, ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', + 'MemberGroupList' => [ + 'title' => '成员组列表', + 'description' => '成员组列表', + 'type' => 'array', + 'items' => ['title' => '成员组列表', 'description' => '成员组列表', 'type' => 'string', 'required' => false, 'example' => '1121'], + 'required' => false, + ], + 'VisibilityConfig' => [ + 'title' => '可见性配置', + 'description' => '可见性配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'type' => 'string', 'required' => true, 'example' => 'PUBLIC'], + 'SpecifiedUserList' => [ + 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'type' => 'array', + 'items' => ['title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', 'type' => 'string', 'required' => false, 'example' => '1121'], + 'required' => false, + ], + ], + 'required' => false, + ], + 'ApprovalConfig' => [ + 'title' => '上线审批配置', + 'description' => '上线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean', 'required' => true], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean', 'required' => true], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'required' => true, 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + ], + 'required' => false, + ], + 'OfflineApprovalConfig' => [ + 'title' => '下线审批配置', + 'description' => '下线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean', 'required' => true], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean', 'required' => true], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'required' => true, 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + ], + 'required' => false, ], + 'DefaultStandardTemplateId' => ['title' => '默认标准模板ID', 'description' => '默认标准模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1001'], ], 'required' => true, ], @@ -7942,399 +5703,387 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1201'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1201\\n}","type":"json"}]', + 'title' => '创建标准集', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CreateStandardTemplate' => [ + 'summary' => '创建数据标准模板。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '创建指令', + 'description' => '创建指令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '标准模板名称', 'description' => '标准模板名称', 'type' => 'string', 'required' => true, 'example' => '测试模板'], + 'Code' => ['title' => '标准模板编码, 全局唯一;有引用时不可修改', 'description' => '标准模板编码, 全局唯一;有引用时不可修改', 'type' => 'string', 'required' => true, 'example' => 'test01'], + 'Description' => ['title' => '标准模板描述', 'description' => '标准模板描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'MaintainerList' => [ + 'title' => '维护人员', + 'description' => '维护人员', + 'type' => 'array', + 'items' => ['title' => '维护人员', 'description' => '维护人员', 'type' => 'string', 'required' => false, 'example' => '300000913'], + 'required' => false, ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'AttributesConfig' => [ + 'title' => '属性配置', + 'description' => '属性配置', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '121', - ], - 'Data' => [ - 'title' => '分页记录', - 'description' => '分页记录', + 'AttributeList' => [ + 'title' => '属性列表', + 'description' => '属性列表', 'type' => 'array', 'items' => [ - 'title' => '操作日志', - 'description' => '操作日志', + 'title' => '', 'type' => 'object', 'properties' => [ - 'OperateId' => [ - 'title' => '操作Id', - 'description' => '操作Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123133', - ], - 'OperateType' => [ - 'title' => '操作类型: 申请:APPLY;授权:GRANT', - 'description' => '操作类型:'."\n" - .'- APPLY 申请'."\n" - .'- GRANT 授权', - 'type' => 'string', - 'example' => 'APPLY', - ], - 'ResourceInfo' => [ - 'title' => '权限资源', - 'description' => '权限资源', + 'Name' => ['title' => '属性名称', 'description' => '属性名称,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'attr1'], + 'Code' => ['title' => '属性编码', 'description' => '属性编码,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'test_attr'], + 'Type' => ['title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'BIZ_ATTRIBUTE'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填,引用公共属性时非必填', 'type' => 'boolean', 'required' => false], + 'ValueConfig' => [ + 'title' => '取值配置', + 'description' => '取值配置,引用公共属性时非必填', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '权限资源ID', - 'description' => '权限资源ID', - 'type' => 'string', - 'example' => 'a.tb1', - ], - 'Name' => [ - 'title' => '权限资源名称', - 'description' => '权限资源名称', - 'type' => 'string', - 'example' => 'tb1', - ], - 'DisplayName' => [ - 'title' => '资源展示名称', - 'description' => '资源展示名称', - 'type' => 'string', - 'example' => 'tb1', - ], - 'Type' => [ - 'title' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', - 'description' => '资源类型'."\n" - .'- PHYSICAL_TABLE:物理表'."\n" - .'- PHYSICAL_VIEW:物理视图'."\n" - .'- LOGICAL_TABLE:事实逻辑表'."\n" - .'- LOGICAL_VIEW:事实逻辑视图'."\n" - .'- REALTIME_LOGICAL_TABLE:实时元表'."\n" - .'- REALTIME_MIRROR_TABLE:实时元表'."\n" - .'- DATASOURCE:数据源', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'Env' => [ - 'title' => '资源环境类型 开发:DEV;生产:PROD', - 'description' => '资源环境'."\n" - .'- DEV'."\n" - .'- PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'BizUnitInfo' => [ - 'title' => '业务板块', - 'description' => '业务板块', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'Id', - 'description' => 'Id', - 'type' => 'string', - 'example' => '121323', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'xx', - ], - 'Env' => [ - 'title' => '环境标识 开发:DEV;生产:PROD', - 'description' => '环境标识 '."\n" - .'- DEV'."\n" - .'- PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - 'ProjectInfo' => [ - 'title' => '项目', - 'description' => '项目', + 'Type' => ['title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'type' => 'string', 'required' => true, 'example' => 'STRING'], + 'Length' => ['title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ValueRange' => [ + 'title' => '取值范围', + 'description' => '取值范围', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1123131', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'xx', + 'ValueConstraint' => ['title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'type' => 'string', 'required' => true, 'example' => 'NONE'], + 'ValueList' => [ + 'title' => '取值范围,当取值来源取值为 LIST 生效', + 'description' => '取值范围,当取值来源取值为 LIST 生效', + 'type' => 'array', + 'items' => ['title' => '取值范围,当取值来源取值为 LIST 生效', 'description' => '取值范围,当取值来源取值为 LIST 生效', 'type' => 'string', 'required' => false, 'example' => '1'], + 'required' => false, ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'xx', + 'MinMaxValueConfig' => [ + 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'type' => 'object', + 'properties' => [ + 'MinValue' => ['title' => '最小值', 'description' => '最小值', 'type' => 'string', 'required' => true, 'example' => '0'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean', 'required' => true], + 'MaxValue' => ['title' => '最大值', 'description' => '最大值', 'type' => 'string', 'required' => true, 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean', 'required' => true], + ], + 'required' => false, ], - 'Env' => [ - 'title' => '环境标识 开发:DEV;生产:PROD', - 'description' => '环境标识 '."\n" - .'- DEV'."\n" - .'- PROD', - 'type' => 'string', - 'example' => 'DEV', + 'LookupTableReference' => [ + 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'Column' => ['title' => '引用的码表字段', 'description' => '引用的码表字段', 'type' => 'string', 'required' => false, 'example' => 'col1'], + ], + 'required' => false, ], + 'DataphinAttributeType' => ['title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'type' => 'string', 'required' => false, 'example' => 'DATAPHIN_ATTRIBUTE'], ], + 'required' => true, ], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'required' => false, 'example' => 'test'], ], + 'required' => false, ], - 'Account' => [ - 'title' => '操作人', - 'description' => '操作人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '账号ID'."\n" - .'- 个人账号:Dataphin侧userId'."\n" - .'- 生产账号:UserId,通过GetProjectProduceUser接口获取'."\n" - .'- 用户组:用户组Id,通过ListUserGroup接口获取', - 'type' => 'string', - 'example' => '1212131', - ], - 'Name' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '账号名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'Type' => [ - 'title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', - 'description' => '授权账号类型'."\n" - .'- PERSONAL:个人账号'."\n" - .'- PRODUCE:生产账号'."\n" - .'- USER_GROUP:用户组', - 'type' => 'string', - 'example' => 'PERSONAL', - ], - ], - ], - 'TargetAccount' => [ - 'title' => '被授权对象', - 'description' => '被授权对象', + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'RefAttribute' => [ + 'title' => '引用的属性信息', + 'description' => '引用的属性信息', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '账号ID', - 'type' => 'string', - 'example' => '1212131', - ], - 'Name' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '账号名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'Type' => [ - 'title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', - 'description' => '授权账号类型', - 'type' => 'string', - 'example' => 'PERSONAL', + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'AttributeFromInfo' => [ + 'title' => '属性来源', + 'description' => '属性来源', + 'type' => 'object', + 'properties' => [ + 'AttributeFrom' => ['title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'type' => 'string', 'required' => true, 'example' => 'CUSTOM'], + 'StandardReference' => [ + 'title' => '对应的标准,属性来源为 STANDARD 生效', + 'description' => '对应的标准,属性来源为 STANDARD 生效', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + ], + 'required' => false, + ], + ], + 'required' => true, ], ], + 'required' => false, ], - 'Reason' => [ - 'title' => '原因', - 'description' => '原因', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'OperateTime' => [ - 'title' => '操作时间', - 'description' => '操作时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1710012121000', - ], - 'Period' => [ - 'title' => '有效期设置', - 'description' => '有效期设置', + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, + ], + 'PublishInfo' => [ + 'title' => '标准模板发布信息', + 'description' => '标准模板发布信息', + 'type' => 'object', + 'properties' => [ + 'Comment' => ['title' => '发布备注', 'description' => '发布备注', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], + 'CodeRuleConfig' => [ + 'title' => '标准编码自动生成规则配置', + 'description' => '标准编码自动生成规则配置', + 'type' => 'object', + 'properties' => [ + 'GenerateType' => ['title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'AutoConfig' => [ + 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'type' => 'object', + 'properties' => [ + 'NeedStrongValidate' => ['title' => '是否强校验', 'description' => '是否强校验', 'type' => 'boolean', 'required' => true], + 'CodeRuleList' => [ + 'title' => '标准编码规则', + 'description' => '标准编码规则', + 'type' => 'array', + 'items' => [ + 'title' => '', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '有效期类型'."\n" - .'自定义:CUSTOM;长期:LONG_TERM', - 'description' => '有效期类型'."\n" - .'- CUSTOM:自定义'."\n" - .'- LONG_TERM:长期有效'."\n" - .'- DAYS_30:30天有效'."\n" - .'- DAYS_90:90天有效'."\n" - .'- DAYS_180:180天有效', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'EndTime' => [ - 'title' => '到期时间', - 'description' => '到期时间', - 'type' => 'string', - 'example' => '1712000000000', + 'Index' => ['title' => '编码规则位置索引', 'description' => '编码规则位置索引', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'Type' => ['title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'type' => 'string', 'required' => true, 'example' => 'FIXED_STRING'], + 'Value' => ['title' => '编码规则格式/值', 'description' => '编码规则格式/值', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'AutoIncrementSequenceConfig' => [ + 'title' => '自增序列配置', + 'description' => '自增序列配置', + 'type' => 'object', + 'properties' => [ + 'Digit' => ['title' => '位数', 'description' => '位数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '3'], + 'StartValue' => ['title' => '起始值', 'description' => '起始值', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'Step' => ['title' => '步长', 'description' => '步长', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'NeedPaddingZero' => ['title' => '是否补零', 'description' => '是否补零', 'type' => 'boolean', 'required' => true], + ], + 'required' => false, ], ], + 'required' => false, + 'description' => '', ], - 'AuthScope' => [ - 'title' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', - 'description' => '表的授权范围'."\n" - .'- selectTable:指定表'."\n" - .'- projectAllTable:项目下所有表'."\n" - .'- bizUnitAllLogicTable:板块下所有逻辑表', - 'type' => 'string', - 'example' => 'selectTable', - ], + 'required' => true, ], ], + 'required' => false, ], ], + 'required' => false, ], ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 22\\n}","type":"json"}]', + 'title' => '创建数据标准模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"OperateId\\": 123133,\\n \\"OperateType\\": \\"APPLY\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": \\"a.tb1\\",\\n \\"Name\\": \\"tb1\\",\\n \\"DisplayName\\": \\"tb1\\",\\n \\"Type\\": \\"PHYSICAL_TABLE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": \\"121323\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"ProjectInfo\\": {\\n \\"Id\\": 1123131,\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n }\\n },\\n \\"Account\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"TargetAccount\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"Reason\\": \\"xx测试\\",\\n \\"OperateTime\\": 1710012121000,\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n },\\n \\"AuthScope\\": \\"selectTable\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页获取权限操作日志', + 'ramActions' => [], ], - 'ListResourcePermissions' => [ - 'summary' => '分页获取权限授权记录。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CreateStandardWordRoot' => [ + 'summary' => '创建数据标准词根。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建指令', + 'description' => '创建指令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'required' => true, 'example' => '平均值'], + 'FullName' => ['title' => '词根全称', 'description' => '词根全称', 'type' => 'string', 'required' => true, 'example' => 'average'], + 'Abbreviation' => ['title' => '词根缩写', 'description' => '词根缩写', 'type' => 'string', 'required' => true, 'example' => 'avg'], + 'Description' => ['title' => '词根描述', 'description' => '词根描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'example' => 'average'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"average\\"\\n}","type":"json"}]', + 'title' => '创建数据标准词根', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CreateStreamBatchJobMapping' => [ + 'summary' => '创建流批一体任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => ['Dataphin公共云'], + 'security' => [ [ - 'name' => 'ListQuery', + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'StreamBatchJobMappingCreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页请求', - 'description' => '分页请求', + 'title' => '流批一体任务信息', + 'description' => '流批一体任务信息', 'type' => 'object', 'properties' => [ - 'TabType' => [ - 'title' => 'TAB名称:表:TABLE;数据源:DATASOURCE', - 'description' => 'TAB名称:表:TABLE;数据源:DATASOURCE', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', - ], - 'SearchText' => [ - 'title' => '搜索关键词', - 'description' => '搜索关键词', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], + 'Env' => ['title' => '环境', 'description' => '环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'EngineVersion' => ['title' => 'flink引擎版本', 'description' => 'flink引擎版本', 'type' => 'string', 'required' => true, 'example' => 'vvr-8.0.9-flink-1.17'], + 'ClusterId' => ['title' => '集群ID', 'description' => '集群ID', 'type' => 'string', 'required' => true, 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d'], + 'QueueName' => ['title' => '队列名', 'description' => '队列名', 'type' => 'string', 'required' => true, 'example' => 'default-queue'], + 'Directory' => ['title' => '任务生成的目录', 'description' => '任务生成的目录', 'type' => 'string', 'required' => true, 'example' => '/karel'], + 'FileName' => ['title' => '文件名', 'description' => '文件名', 'type' => 'string', 'required' => true, 'example' => 'karel_hover_3'], + 'FileType' => ['title' => '文件类型', 'description' => '文件类型', 'type' => 'string', 'required' => true, 'example' => 'FLINK_SQL'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7081229106458752'], + 'VvpClusterType' => ['title' => 'SESSION 或PREJOB,vvp专用,如果没有就不传或者为空', 'description' => 'SESSION 或PREJOB,vvp专用,如果没有就不传或者为空', 'type' => 'string', 'required' => true, 'example' => 'PREJOB'], + 'Description' => ['title' => '描述信息', 'description' => '描述信息', 'type' => 'string', 'required' => false, 'example' => '这是一段任务的描述信息'], ], 'required' => true, ], @@ -8347,258 +6096,19 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '任务创建成功的返回结果', + 'description' => '任务创建成功的返回结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '121', - ], - 'Data' => [ - 'title' => '分页列表', - 'description' => '分页列表', - 'type' => 'array', - 'items' => [ - 'title' => '资源权限明细', - 'description' => '资源权限明细', - 'type' => 'object', - 'properties' => [ - 'RecordId' => [ - 'title' => '记录ID', - 'description' => '记录ID', - 'type' => 'string', - 'example' => '12123111', - ], - 'ResourceInfo' => [ - 'title' => '权限资源', - 'description' => '权限资源', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '权限资源ID', - 'description' => '权限资源ID', - 'type' => 'string', - 'example' => 'a.tb1', - ], - 'Name' => [ - 'title' => '权限资源名称', - 'description' => '权限资源名称', - 'type' => 'string', - 'example' => 'tb1', - ], - 'DisplayName' => [ - 'title' => '资源展示名称', - 'description' => '资源展示名称', - 'type' => 'string', - 'example' => 'tb1', - ], - 'Type' => [ - 'title' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', - 'description' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'Env' => [ - 'title' => '资源环境类型 开发:DEV;生产:PROD', - 'description' => '资源环境类型 开发:DEV;生产:PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'BizUnitInfo' => [ - 'title' => '业务板块', - 'description' => '业务板块', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'Id', - 'description' => 'Id', - 'type' => 'string', - 'example' => '121323', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'xx', - ], - 'Env' => [ - 'title' => '环境标识 开发:DEV;生产:PROD', - 'description' => '环境标识 开发:DEV;生产:PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - 'ProjectInfo' => [ - 'title' => '项目', - 'description' => '项目', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1123131', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'xx', - ], - 'Env' => [ - 'title' => '环境标识 开发:DEV;生产:PROD', - 'description' => '环境标识 开发:DEV;生产:PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - ], - ], - 'TargetAccount' => [ - 'title' => '被授权对象', - 'description' => '被授权对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'type' => 'string', - 'example' => '1212131', - ], - 'Name' => [ - 'title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'description' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', - 'type' => 'string', - 'example' => 'xx', - ], - 'Type' => [ - 'title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', - 'description' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', - 'type' => 'string', - 'example' => 'PERSONAL', - ], - ], - ], - 'Period' => [ - 'title' => '有效期设置', - 'description' => '有效期设置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '有效期类型'."\n" - .'自定义:CUSTOM;长期:LONG_TERM', - 'description' => '有效期类型'."\n" - .'自定义:CUSTOM;长期:LONG_TERM', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'EndTime' => [ - 'title' => '到期时间', - 'description' => '到期时间', - 'type' => 'string', - 'example' => '1712000000000', - ], - ], - ], - 'AuthScope' => [ - 'title' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', - 'description' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', - 'type' => 'string', - 'example' => 'selectTable', - ], - 'PermissionPeriodList' => [ - 'title' => '不同权限类型有效期列表', - 'description' => '不同权限类型有效期列表', - 'type' => 'array', - 'items' => [ - 'title' => '权限有效期', - 'description' => '权限有效期', - 'type' => 'object', - 'properties' => [ - 'PermissionType' => [ - 'title' => '权限类型', - 'description' => '权限类型', - 'type' => 'string', - 'example' => 'SELECT', - ], - 'Period' => [ - 'title' => '有效期设置', - 'description' => '有效期设置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '有效期类型'."\n" - .'自定义:CUSTOM;长期:LONG_TERM', - 'description' => '有效期类型'."\n" - .'自定义:CUSTOM;长期:LONG_TERM', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'EndTime' => [ - 'title' => '到期时间', - 'description' => '到期时间', - 'type' => 'string', - 'example' => '1712000000000', - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'FileId' => ['title' => '作业文件ID', 'description' => '作业文件ID', 'type' => 'string', 'example' => '7083701105376640'], + 'Url' => ['title' => '跳转相对路径', 'description' => '跳转相对路径', 'type' => 'string', 'example' => '/dev/streamJob/7083701105376640?env=DEV&projectId=7081229106458752&tenantId=300001420'], + 'JobId' => ['description' => 'JobId', 'type' => 'integer', 'format' => 'int64', 'example' => '123123'], ], ], ], @@ -8607,72 +6117,157 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"FileId\\": \\"7083701105376640\\",\\n \\"Url\\": \\"/dev/streamJob/7083701105376640?env=DEV&projectId=7081229106458752&tenantId=300001420\\",\\n \\"JobId\\": 123123\\n }\\n}","type":"json"}]', + 'title' => '创建流批一体任务', + 'changeSet' => [ + ['createdAt' => '2025-08-18T09:35:17.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"RecordId\\": \\"12123111\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": \\"a.tb1\\",\\n \\"Name\\": \\"tb1\\",\\n \\"DisplayName\\": \\"tb1\\",\\n \\"Type\\": \\"PHYSICAL_TABLE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": \\"121323\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"ProjectInfo\\": {\\n \\"Id\\": 1123131,\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n }\\n },\\n \\"TargetAccount\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n },\\n \\"AuthScope\\": \\"selectTable\\",\\n \\"PermissionPeriodList\\": [\\n {\\n \\"PermissionType\\": \\"SELECT\\",\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n }\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页获取权限授权记录', - ], - 'GetProjectProduceUser' => [ - 'summary' => '获得项目生产账号,该API仅支持超级管理员(SuperAdmin)能发起调用。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateStreamBatchJobMapping', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateUdf' => [ + 'summary' => '创建自定义函数。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建命令', + 'description' => '创建命令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => 'udf_sleep', 'description' => '函数名', 'type' => 'string', 'required' => true, 'example' => 'my_udf'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + 'ComputeEngineType' => ['title' => '计算引擎类型: MAX_COMPUTE、HADOOP', 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + 'Directory' => ['title' => '存放目录, 默认:/', 'description' => '存放目录', 'type' => 'string', 'required' => false, 'example' => '/'], + 'RefResourceIdList' => [ + 'title' => '引用资源id', + 'description' => '引用资源id', + 'type' => 'array', + 'items' => ['title' => '引用资源id', 'description' => '引用资源id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10200121011'], + 'required' => true, + ], + 'ClassName' => ['title' => '资源中实现函数的类名', 'description' => '资源中实现函数的类名', 'type' => 'string', 'required' => true, 'example' => 'com.lydaas.SleepTest'], + 'Category' => ['title' => 'UDF的分类标识: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'description' => 'UDF的分类标识: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'CommandHelp' => ['title' => '函数调用的命令格式', 'description' => '函数调用的命令格式', 'type' => 'string', 'required' => true, 'example' => 'udf_sleep(100)'], + 'Comment' => ['title' => '提交备注', 'description' => '提交备注', 'type' => 'string', 'required' => true, 'example' => '测试'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '函数Id', 'description' => '函数Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10212101'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 10212101\\n}","type":"json"}]', + 'title' => '创建自定义函数', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'CreateUserGroup' => [ + 'summary' => '新建用户组。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'ProjectId', + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'CreateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131311111321', + 'description' => '新建请求', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '用户组名称', 'description' => '用户组名称', 'type' => 'string', 'required' => false, 'example' => 'xx用户组'], + 'Description' => ['title' => '用户组描述', 'description' => '用户组描述', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'Active' => ['title' => '是否启用用户组', 'description' => '是否启用用户组', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'AdminUserIdList' => [ + 'title' => '用户组管理员用户Id', + 'description' => '用户组管理员用户Id', + 'type' => 'array', + 'items' => ['title' => '用户组管理员用户Id', 'description' => '用户组管理员用户Id', 'type' => 'string', 'required' => false, 'example' => '23231'], + 'required' => false, + ], + ], + 'required' => false, ], ], ], @@ -8683,125 +6278,100 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'User' => [ - 'title' => '生产者用户', - 'description' => '生产者用户', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '123131', - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'UserGroupId' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'example' => '2313131'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserGroupId\\": \\"2313131\\"\\n}","type":"json"}]', + 'title' => '新建用户组', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"User\\": {\\n \\"Id\\": \\"123131\\"\\n }\\n}","type":"json"}]', - 'title' => '获得项目生产账号', - ], - 'GetUsers' => [ - 'summary' => '根据UserId批量获取用户信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'CreateWorkFlowByJson' => [ + 'summary' => '使用json脚本模式创建非结构化工作流任务,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '工作流任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '789'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境,当前版本仅支持BASIC模式,故需要配置PROD', 'type' => 'string', 'required' => true, 'example' => 'PROD'], + ], 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'UserIdList', + 'name' => 'CreateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '用户Id列表', - 'description' => '用户Id列表', - 'type' => 'array', - 'items' => [ - 'description' => '用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '132313', + 'title' => 'json脚本创建工作流命令', + 'description' => 'json脚本创建工作流命令', + 'type' => 'object', + 'properties' => [ + 'ScheduleConfig' => ['title' => '调度配置(周期任务必填),格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'description' => '调度配置(周期任务必填),格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'type' => 'string', 'required' => false, 'example' => '{"cronExpression":"0 0 0 * * ?"}'], + 'WorkFlowJson' => ['title' => '工作流Json', 'description' => '工作流Json', 'type' => 'string', 'required' => true, 'example' => '{"pipelineDTO":{"hops":[],"steps":[{"name":"xxx","x":305,"y":144,"id":"c404a7c6-8a75-4ed8-b348-0785423ad859","webConfig":{},"type":"text","key":"special_character_removal","pluginConfig":{"neuronParameters":{},"neuronInput":{},"neuronOutput":{},"setting":{}}}]}}'], + 'Description' => ['title' => '任务描述', 'description' => '任务描述', 'type' => 'string', 'required' => false, 'example' => 'cooment'], + 'TaskName' => ['title' => '任务名称', 'description' => '任务名称', 'type' => 'string', 'required' => true, 'example' => 'workflow_name'], + 'TaskType' => ['title' => '节点调度类型:1-周期调度,3-手动调度', 'description' => '节点调度类型:1-周期调度,3-手动调度,5-实时节点', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '5372881'], + 'Submit' => ['title' => '是否提交,默认提交', 'description' => '是否提交,默认提交', 'type' => 'boolean', 'required' => false], + 'Directory' => ['title' => '任务所属目录,为空则为根目录', 'description' => '任务所属目录,为空则为根目录', 'type' => 'string', 'required' => false, 'example' => '/'], ], 'required' => true, ], @@ -8810,262 +6380,157 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'UserList' => [ - 'title' => '用户列表', - 'description' => '用户列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户对象', - 'description' => '用户对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '1233121', - ], - 'ParentId' => [ - 'title' => '用户归属主账号Id', - 'description' => '用户归属主账号Id', - 'type' => 'string', - 'example' => '231231', - ], - 'SourceType' => [ - 'title' => '用户来源', - 'description' => '用户来源', - 'type' => 'string', - 'example' => 'ALIYUN', - ], - 'SourceId' => [ - 'title' => '用户来源Id', - 'description' => '用户来源Id', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'DisplayName' => [ - 'title' => '用户显示名', - 'description' => '用户显示名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'DisplayNameWithoutStatus' => [ - 'title' => '用户显示名(不含状态)', - 'description' => '用户显示名(不含状态)', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'AccountName' => [ - 'title' => '账号名', - 'description' => '账号名', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'RealName' => [ - 'title' => '用户真实名称', - 'description' => '用户真实名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'NickName' => [ - 'title' => '用户昵称', - 'description' => '用户昵称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'MobilePhone' => [ - 'title' => '电话号码', - 'description' => '电话号码', - 'type' => 'string', - 'example' => '1388888888', - ], - 'Mail' => [ - 'title' => '邮箱', - 'description' => '邮箱', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'DingNumber' => [ - 'title' => '钉钉号', - 'description' => '钉钉号', - 'type' => 'string', - 'example' => '123@dingding', - ], - 'WeChatRobot' => [ - 'title' => '企微机器人', - 'description' => '企微机器人', - 'type' => 'string', - 'example' => 'xx', - ], - 'FeiShuRobot' => [ - 'title' => '飞书机器人', - 'description' => '飞书机器人', - 'type' => 'string', - 'example' => 'xx', - ], - 'EnableWhiteIp' => [ - 'title' => '是否开启ip白名单', - 'description' => '是否开启ip白名单', - 'type' => 'string', - 'example' => 'true', - ], - 'WhiteIp' => [ - 'title' => '白名单', - 'description' => '白名单', - 'type' => 'string', - 'example' => '*', - ], - 'GmtModified' => [ - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '集成管道任务创建结果', + 'description' => '工作流任务创建结果', + 'type' => 'object', + 'properties' => [ + 'SubmitId' => ['title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', 'description' => '提交成功后生成的待发布列表的提交ID,通过发布域进行发布(如果为BASIC项目则无需关注此值)', 'type' => 'integer', 'format' => 'int64', 'example' => '7891'], + 'HostMachine' => ['title' => '服务端执行机器名称和ip', 'description' => '服务端执行机器名称和ip', 'type' => 'string', 'example' => 'hostName:hostIp'], + 'Version' => ['title' => '提交后生成的版本号', 'description' => '提交工作流后生成的待发布版本号(如果为BASIC项目,则无需关注此值)', 'type' => 'string', 'example' => '1'], + 'NodeId' => ['title' => '创建成功后的管道任务调度节点Id', 'description' => '创建成功后的工作流任务调度节点Id', 'type' => 'string', 'example' => 'n_123'], + 'PipelineId' => ['title' => '创建成功后的管道ID', 'description' => '创建成功后的工作流ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '使用json脚本模式创建非结构化工作流任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 7891,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"n_123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + ], + 'DeleteAdHocFile' => [ + 'summary' => '删除菜单树即席查询文件。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12132323'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12121111'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除即席查询文件', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:41:31.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"1233121\\",\\n \\"ParentId\\": \\"231231\\",\\n \\"SourceType\\": \\"ALIYUN\\",\\n \\"SourceId\\": \\"123@xx.com\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"DisplayNameWithoutStatus\\": \\"xx测试\\",\\n \\"AccountName\\": \\"123@xx.com\\",\\n \\"RealName\\": \\"xx测试\\",\\n \\"NickName\\": \\"xx测试\\",\\n \\"GmtCreate\\": 1717343597000,\\n \\"MobilePhone\\": \\"1388888888\\",\\n \\"Mail\\": \\"123@xx.com\\",\\n \\"DingNumber\\": \\"123@dingding\\",\\n \\"WeChatRobot\\": \\"xx\\",\\n \\"FeiShuRobot\\": \\"xx\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"*\\",\\n \\"GmtModified\\": 1717343597000\\n }\\n ]\\n}","type":"json"}]', - 'title' => '根据UserId获取用户详情信息', - ], - 'ListAddableUsers' => [ - 'summary' => '查询租户可添加用户,仅限超级管理员(SuperAdmin)和系统管理员能调用。用户需添加到Dataphin实例的用户成员列表中,但尚未添加到租户成员列表中。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteBatchTask' => [ + 'summary' => '删除离线计算任务,如果任务还没下线需要先下线再删除。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求对象', - 'description' => '请求对象', + 'title' => '删除请求', + 'description' => '删除请求', 'type' => 'object', 'properties' => [ - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'SearchText' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], + 'ProjectId' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + 'Comment' => ['title' => '删除操作说明', 'description' => '删除操作说明', 'type' => 'string', 'required' => true, 'example' => 'test task'], ], 'required' => true, ], @@ -9078,597 +6543,164 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '66', - ], - 'UserList' => [ - 'title' => '用户列表', - 'description' => '用户列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户对象', - 'description' => '用户对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '123231', - ], - 'ParentId' => [ - 'title' => '用户归属主账号Id', - 'description' => '用户归属主账号Id', - 'type' => 'string', - 'example' => '231313', - ], - 'SourceType' => [ - 'title' => '用户来源', - 'description' => '用户来源', - 'type' => 'string', - 'example' => 'aliyun', - ], - 'SourceId' => [ - 'title' => '用户来源Id', - 'description' => '用户来源Id', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx', - ], - 'DisplayName' => [ - 'title' => '用户显示名', - 'description' => '用户显示名', - 'type' => 'string', - 'example' => 'xx', - ], - 'DisplayNameWithoutStatus' => [ - 'title' => '用户显示名(不含状态)', - 'description' => '用户显示名(不含状态)', - 'type' => 'string', - 'example' => 'xx', - ], - 'AccountName' => [ - 'title' => '账号名', - 'description' => '账号名', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'RealName' => [ - 'title' => '用户真实名称', - 'description' => '用户真实名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'NickName' => [ - 'title' => '用户昵称', - 'description' => '用户昵称', - 'type' => 'string', - 'example' => 'xx', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'MobilePhone' => [ - 'title' => '电话号码', - 'description' => '电话号码', - 'type' => 'string', - 'example' => '13888888888', - ], - 'Mail' => [ - 'title' => '邮箱', - 'description' => '邮箱', - 'type' => 'string', - 'example' => '123@xx.com', - ], - 'DingNumber' => [ - 'title' => '钉钉号', - 'description' => '钉钉号', - 'type' => 'string', - 'example' => '123@dingding', - ], - 'WeChatRobot' => [ - 'title' => '企微机器人', - 'description' => '企微机器人', - 'type' => 'string', - 'example' => 'xx', - ], - 'FeiShuRobot' => [ - 'title' => '飞书机器人', - 'description' => '飞书机器人', - 'type' => 'string', - 'example' => 'xx', - ], - 'EnableWhiteIp' => [ - 'title' => '是否开启ip白名单', - 'description' => '是否开启ip白名单', - 'type' => 'string', - 'example' => 'true', - ], - 'WhiteIp' => [ - 'title' => '白名单', - 'description' => '白名单', - 'type' => 'string', - 'example' => '*', - ], - 'GmtModified' => [ - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'True'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除离线计算任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:19.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 66,\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"123231\\",\\n \\"ParentId\\": \\"231313\\",\\n \\"SourceType\\": \\"aliyun\\",\\n \\"SourceId\\": \\"123@xx.com\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"DisplayNameWithoutStatus\\": \\"xx\\",\\n \\"AccountName\\": \\"123@xx.com\\",\\n \\"RealName\\": \\"xx\\",\\n \\"NickName\\": \\"xx\\",\\n \\"GmtCreate\\": 1717343597000,\\n \\"MobilePhone\\": \\"13888888888\\",\\n \\"Mail\\": \\"123@xx.com\\",\\n \\"DingNumber\\": \\"123@dingding\\",\\n \\"WeChatRobot\\": \\"xx\\",\\n \\"FeiShuRobot\\": \\"xx\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"*\\",\\n \\"GmtModified\\": 1717343597000\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询租户可添加用户', - ], - 'ListTenantMembers' => [ - 'summary' => '获取租户成员列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteBizEntity' => [ + 'summary' => '删除业务实体。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求对象', - 'description' => '请求对象', - 'type' => 'object', - 'properties' => [ - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', - ], - 'SearchText' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => '测试', - ], - 'UserGroupIdList' => [ - 'title' => '成员归属用户组ID', - 'description' => '成员归属用户组ID', - 'type' => 'array', - 'items' => [ - 'description' => '用户组ID', - 'type' => 'string', - 'required' => false, - 'example' => '1213111', - ], - 'required' => false, - ], - 'RoleList' => [ - 'title' => '成员角色:'."\n" - .'SUPER_ADMIN PROJECT_OPS PROJECT_DEVELOPER等', - 'description' => '成员角色:'."\n" - .'- SUPER_ADMIN:dataphin超级管理员'."\n" - .'- SYSTEM_ADMIN:系统管理员'."\n" - .'- COMMON_USER:dataphin用户'."\n" - .'- DATA_ADMIN:dataphin数据管理员'."\n" - .'- EXPORT_ADMIN:导出管理员'."\n" - .'- SECURITY_ADMIN:安全管理员'."\n" - .'- DATASOURCE_MANAGER:数据源管理员'."\n" - .'- QUALITY_MANAGER:资产质量负责人'."\n" - .'- DATA_STANDARD_MANAGER:数据标准管理员'."\n" - .'- LABELS_BUSINESS_PLANNER:标签业务规划师'."\n" - .'- BUSINESS_MEMBER:普通业务用户'."\n" - .'- DATAPRO_OPERATE_SUPER_ADMIN:运营超级管理员'."\n" - .'- DATAPRO_OPERATE_ADMIN:运营管理员'."\n" - .'- DATAPRO_OPERATE_MEMBER:运营人员'."\n" - .'- DATAPRO_BUSINESS_ANALYST:业务分析师'."\n" - .'- LABELS_BUSINESS_MEMBER:标签业务员'."\n" - .'- DATAPRO_BUSINESS_MEMBER:DATAPRO 普通业务用户', - 'type' => 'array', - 'items' => [ - 'description' => '成员角色', - 'type' => 'string', - 'required' => false, - 'example' => 'DATA_ADMIN', - ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'BizUnitId', + 'in' => 'query', + 'schema' => ['title' => '所属业务板块Id', 'description' => '所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,具体参考“创建业务实体”接口', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '110', - ], - 'UserList' => [ - 'title' => '用户列表', - 'description' => '用户列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户对象', - 'description' => '用户对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '132321', - ], - 'SourceType' => [ - 'title' => '用户来源', - 'description' => '用户来源', - 'type' => 'string', - 'example' => 'aliyun', - ], - 'SourceId' => [ - 'title' => '用户来源Id', - 'description' => '用户来源Id', - 'type' => 'string', - 'example' => '213213232422222', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'DisplayName' => [ - 'title' => '用户显示名', - 'description' => '用户显示名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'DisplayNameWithoutStatus' => [ - 'title' => '用户显示名(不含状态)', - 'description' => '用户显示名(不含状态)', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'AccountName' => [ - 'title' => '账号名', - 'description' => '账号名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'RealName' => [ - 'title' => '用户真实名称', - 'description' => '用户真实名称', - 'type' => 'string', - 'example' => '张三', - ], - 'NickName' => [ - 'title' => '用户昵称', - 'description' => '用户昵称', - 'type' => 'string', - 'example' => 'susan', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1730000000000', - ], - 'MobilePhone' => [ - 'title' => '电话号码', - 'description' => '电话号码', - 'type' => 'string', - 'example' => '13888888888', - ], - 'Mail' => [ - 'title' => '邮箱', - 'description' => '邮箱', - 'type' => 'string', - 'example' => '123@aliyun.com', - ], - 'DingNumber' => [ - 'title' => '钉钉号', - 'description' => '钉钉号', - 'type' => 'string', - 'example' => 'dd123123', - ], - 'EnableWhiteIp' => [ - 'title' => '是否开启ip白名单', - 'description' => '是否开启ip白名单', - 'type' => 'string', - 'example' => 'true', - ], - 'WhiteIp' => [ - 'title' => '白名单', - 'description' => '白名单', - 'type' => 'string', - 'example' => '0.0.0.0/0', - ], - 'GmtModified' => [ - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1730000000000', - ], - 'UserGroupList' => [ - 'title' => '归属资源组', - 'description' => '归属资源组', - 'type' => 'array', - 'items' => [ - 'title' => '用户组', - 'description' => '资源组', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户组ID', - 'description' => '用户组ID', - 'type' => 'string', - 'example' => '121313', - ], - 'Name' => [ - 'title' => '用户组名字', - 'description' => '用户组名字', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '测试', - ], - 'Active' => [ - 'title' => '是否启用', - 'description' => '是否启用', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - 'example' => '232424', - ], - ], - 'RoleList' => [ - 'title' => '成员橘色', - 'description' => '成员角色', - 'type' => 'array', - 'items' => [ - 'description' => '角色', - 'type' => 'string', - 'example' => 'DATA_ADMIN', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除业务实体', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:19.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 110,\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"132321\\",\\n \\"SourceType\\": \\"aliyun\\",\\n \\"SourceId\\": \\"213213232422222\\",\\n \\"Name\\": \\"zhangsan\\",\\n \\"DisplayName\\": \\"zhangsan\\",\\n \\"DisplayNameWithoutStatus\\": \\"zhangsan\\",\\n \\"AccountName\\": \\"zhangsan\\",\\n \\"RealName\\": \\"张三\\",\\n \\"NickName\\": \\"susan\\",\\n \\"GmtCreate\\": 1730000000000,\\n \\"MobilePhone\\": \\"13888888888\\",\\n \\"Mail\\": \\"123@aliyun.com\\",\\n \\"DingNumber\\": \\"dd123123\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"0.0.0.0/0\\",\\n \\"GmtModified\\": 1730000000000,\\n \\"UserGroupList\\": [\\n {\\n \\"Id\\": \\"121313\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"测试\\",\\n \\"Active\\": true\\n }\\n ],\\n \\"RoleList\\": [\\n \\"DATA_ADMIN\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取租户成员列表', - ], - 'GetUserGroup' => [ - 'summary' => '获取用户组详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteBizMetric' => [ + 'summary' => '删除业务指标。'."\n" + .'发布版本号:v5.5.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UserGroupId', - 'in' => 'query', + 'name' => 'DeleteBizMetricCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', + 'title' => '删除请求', + 'description' => '删除请求', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '待删除的业务指标名称', 'description' => '待删除的业务指标名称', 'type' => 'string', 'required' => true, 'example' => 'Metric1', 'maxLength' => 256], + ], 'required' => true, - 'example' => '1313213', ], ], ], @@ -9679,101 +6711,18 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'UserGroupInfo' => [ - 'title' => '用户组详情', - 'description' => '用户组详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '删除结果', + 'description' => '删除结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'example' => '1313213', - ], - 'Name' => [ - 'title' => '用户组名称', - 'description' => '用户组名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '用户组描述', - 'description' => '用户组描述', - 'type' => 'string', - 'example' => 'xx', - ], - 'Active' => [ - 'title' => '是否启用用户组', - 'description' => '是否启用用户组', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AdminList' => [ - 'title' => '用户组管理员', - 'description' => '用户组管理员', - 'type' => 'array', - 'items' => [ - 'description' => '用户组管理员', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '131313', - ], - 'DisplayName' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'AccountName' => [ - 'title' => '用户账号名', - 'description' => '用户账号名', - 'type' => 'string', - 'example' => 'xx', - ], - ], - ], - ], - 'MyRole' => [ - 'title' => '当前用户在用户组角色', - 'description' => '当前用户在用户组角色', - 'type' => 'string', - 'example' => 'xx', - ], + 'Success' => ['title' => '是否删除成功:true成功;false失败', 'description' => '是否删除成功:true成功;false失败', 'type' => 'boolean', 'example' => 'true'], + 'Message' => ['title' => '异常信息', 'description' => '异常信息', 'type' => 'string', 'example' => 'success'], ], ], ], @@ -9782,55 +6731,46 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n }\\n}","type":"json"}]', + 'title' => '删除业务指标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserGroupInfo\\": {\\n \\"Id\\": \\"1313213\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx\\",\\n \\"Active\\": true,\\n \\"AdminList\\": [\\n {\\n \\"Id\\": \\"131313\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"AccountName\\": \\"xx\\"\\n }\\n ],\\n \\"MyRole\\": \\"xx\\"\\n }\\n}","type":"json"}]', - 'title' => '获取用户组详情', + 'ramActions' => [], ], - 'ListAddableRoles' => [ - 'summary' => '获取可配置到租户成员的全局角色。仅限内置的全局角色,不支持自定义全局角色。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteBizUnit' => [ + 'summary' => '删除数据板块。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], ], ], 'responses' => [ @@ -9840,389 +6780,134 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RoleList' => [ - 'title' => '角色列表', - 'description' => '角色列表', - 'type' => 'array', - 'items' => [ - 'title' => '角色', - 'description' => '角色', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'title' => '角色编码', - 'description' => '角色编码', - 'type' => 'string', - 'example' => 'SECURITY_ADMIN', - ], - 'Name' => [ - 'title' => '角色名称', - 'description' => '角色名称', - 'type' => 'string', - 'example' => '安全管理员', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除数据板块', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:18.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"RoleList\\": [\\n {\\n \\"Code\\": \\"SECURITY_ADMIN\\",\\n \\"Name\\": \\"安全管理员\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取可配置用户的全局角色', - ], - 'ListUserGroups' => [ - 'summary' => '用户组列表分页查询。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteComputeSource' => [ + 'summary' => '删除计算源。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '分页查询', - 'description' => '分页查询', - 'type' => 'object', - 'properties' => [ - 'Keyword' => [ - 'title' => '用户组名称关键字', - 'description' => '用户组名称关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Active' => [ - 'title' => '是否启用用户组', - 'description' => '是否启用用户组', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'AdminIdList' => [ - 'title' => '用户组管理员用户Id', - 'description' => '用户组管理员用户Id', - 'type' => 'array', - 'items' => [ - 'title' => '用户组管理员用户Id', - 'description' => '用户组管理员用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '131311', - ], - 'required' => false, - ], - 'FilterMine' => [ - 'title' => '是否过滤当前用户所在用户组', - 'description' => '是否过滤当前用户所在用户组', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'PageNo' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', - ], - ], - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '计算源Id', 'description' => '计算源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12356'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', + 'title' => 'Schema of Response', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '49', - ], - 'UserGroupList' => [ - 'title' => '分页列表', - 'description' => '分页列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户组', - 'description' => '用户组', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'example' => '31313232', - ], - 'Name' => [ - 'title' => '用户组名称', - 'description' => '用户组名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '用户组描述', - 'description' => '用户组描述', - 'type' => 'string', - 'example' => 'xx 测试', - ], - 'Active' => [ - 'title' => '是否启用用户组', - 'description' => '是否启用用户组', - 'type' => 'boolean', - 'example' => 'true', - ], - 'AdminList' => [ - 'title' => '用户组管理员', - 'description' => '用户组管理员', - 'type' => 'array', - 'items' => [ - 'description' => '用户组管理员', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '32313131', - ], - 'DisplayName' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => '张三', - ], - 'AccountName' => [ - 'title' => '用户账号名', - 'description' => '用户账号名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - ], - ], - ], - 'MyRole' => [ - 'title' => '当前用户在用户组角色', - 'description' => '当前用户在用户组角色', - 'type' => 'string', - 'example' => 'SECURITY_ADMIN', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除计算源', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 49,\\n \\"UserGroupList\\": [\\n {\\n \\"Id\\": \\"31313232\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Active\\": true,\\n \\"AdminList\\": [\\n {\\n \\"Id\\": \\"32313131\\",\\n \\"DisplayName\\": \\"张三\\",\\n \\"AccountName\\": \\"zhangsan\\"\\n }\\n ],\\n \\"MyRole\\": \\"SECURITY_ADMIN\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '用户组列表分页查询', + 'ramActions' => [], ], - 'GetMyTenants' => [ - 'summary' => '获取当前用户归属租户。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteDataDomain' => [ + 'summary' => '删除主题域。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FeatureCodeList', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '租户拥有售卖Code', - 'description' => '租户拥有售卖Code', - 'type' => 'array', - 'items' => [ - 'title' => '售卖Code', - 'description' => '售卖Code', - 'type' => 'string', - 'required' => false, - 'example' => 'DATAPHIN_STREAM', - ], - 'required' => false, - ], + 'name' => 'BizUnitId', + 'in' => 'query', + 'schema' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '主题域Id', 'description' => '主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1241844456'], ], ], 'responses' => [ @@ -10232,366 +6917,208 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'TenantList' => [ - 'title' => '租户列表', - 'description' => '租户列表', - 'type' => 'array', - 'items' => [ - 'title' => '租户详情', - 'description' => '租户详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '租户Id', - 'description' => '租户Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '132311', - ], - 'Name' => [ - 'title' => '租户名', - 'description' => '租户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'OwnerId' => [ - 'title' => '租户归属用户Id', - 'description' => '租户归属用户Id', - 'type' => 'string', - 'example' => '21323231', - ], - 'Description' => [ - 'title' => '租户描述', - 'description' => '租户描述', - 'type' => 'string', - 'example' => 'xx 测试', - ], - 'Deleted' => [ - 'title' => '是否被删除标识', - 'description' => '是否被删除标识', - 'type' => 'boolean', - 'example' => 'false', - ], - 'DeleteTime' => [ - 'title' => '删除时间', - 'description' => '删除时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'TitleType' => [ - 'title' => '租户标题类型', - 'description' => '租户标题类型', - 'type' => 'string', - 'example' => 'icon', - ], - 'OpsTenant' => [ - 'title' => '是否运维租户', - 'description' => '是否运维租户', - 'type' => 'boolean', - 'example' => 'false', - ], - 'ResourceLimited' => [ - 'title' => '是否进行资源限额的计算', - 'description' => '是否进行资源限额的计算', - 'type' => 'boolean', - 'example' => 'false', - ], - 'Visible' => [ - 'title' => '是否可以展示', - 'description' => '是否可以展示', - 'type' => 'boolean', - 'example' => 'true', - ], - 'TenantTypeList' => [ - 'title' => '租户类型', - 'description' => '租户类型', - 'type' => 'array', - 'items' => [ - 'title' => '租户类型', - 'description' => '租户类型', - 'type' => 'string', - 'example' => 'application', - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '删除主题域', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:18.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TenantList\\": [\\n {\\n \\"Id\\": 132311,\\n \\"Name\\": \\"xx测试\\",\\n \\"OwnerId\\": \\"21323231\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Deleted\\": false,\\n \\"DeleteTime\\": 1717343597000,\\n \\"TitleType\\": \\"icon\\",\\n \\"OpsTenant\\": false,\\n \\"ResourceLimited\\": false,\\n \\"Visible\\": true,\\n \\"TenantTypeList\\": [\\n \\"application\\"\\n ]\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取当前用户归属租户', - ], - 'GetMyRoles' => [ - 'summary' => '获取用户角色列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteDataServiceApp' => [ + 'summary' => '删除数据服务应用。仅支持超级管理员、系统管理员或应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], - ], + [ + 'name' => 'AppId', + 'in' => 'query', + 'schema' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '-535093682933'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'RoleList' => [ - 'description' => '角色列表', - 'type' => 'array', - 'items' => [ - 'description' => '角色', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '角色Id', - 'description' => '角色Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '300047957', - ], - 'Name' => [ - 'title' => '角色名称', - 'description' => '角色名称', - 'type' => 'string', - 'example' => 'dataphinAdmin', - ], - 'Description' => [ - 'title' => '角色描述', - 'description' => '角色描述', - 'type' => 'string', - 'example' => 'dataphin管理员', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '删除数据服务应用', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteDataServiceAppGroup' => [ + 'summary' => '删除数据服务应用分组,仅超级管理员及系统管理员可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'GroupId', + 'in' => 'query', + 'schema' => ['title' => '分组ID', 'description' => '分组ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '550980364236'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"RoleList\\": [\\n {\\n \\"Id\\": 300047957,\\n \\"Name\\": \\"dataphinAdmin\\",\\n \\"Description\\": \\"dataphin管理员\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取当前用户角色列表', - ], - 'ListUserGroupMembers' => [ - 'summary' => '用户组成员分页查询。', - 'methods' => [ - 'post', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '删除数据服务应用分组', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'DeleteDataSource' => [ + 'summary' => '删除数据源。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询', - 'description' => '分页查询', + 'title' => '删除数据源请求', + 'description' => '删除数据源请求', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '用户名关键字', - 'description' => '用户名关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], - 'UserGroupId' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', + 'Mode' => [ + 'title' => '删除模式:'."\n" + .'DEV:只删除开发环境数据源'."\n" + .'DEV_PROD:同时删除开发和生产环境数据源', + 'description' => '删除模式:'."\n" + .'- DEV:只删除开发环境数据源'."\n" + .'- DEV_PROD:同时删除开发和生产环境数据源', 'type' => 'string', - 'required' => false, - 'example' => '232231', - ], - 'UserIdList' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'array', - 'items' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '2231111', - ], - 'required' => false, - ], - 'PageNo' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', 'required' => true, - 'example' => '20', + 'enumValueTitles' => [], + 'example' => 'DEV', + 'enum' => ['DEV', 'DEV_PROD'], ], + 'ProdDataSourceId' => ['title' => '生成环境数据源ID', 'description' => '生产环境数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '13121'], ], 'required' => true, ], @@ -10604,306 +7131,117 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '217', - ], - 'MemberList' => [ - 'title' => '分页列表', - 'description' => '分页列表', - 'type' => 'array', - 'items' => [ - 'description' => '用户组成员', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户组成员Id', - 'description' => '用户组成员Id', - 'type' => 'string', - 'example' => '2324211', - ], - 'UserGroupId' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'example' => '231111', - ], - 'UserInfo' => [ - 'title' => '用户组成员', - 'description' => '用户组成员', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '13232', - ], - 'DisplayName' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'AccountName' => [ - 'title' => '用户账号名', - 'description' => '用户账号名', - 'type' => 'string', - 'example' => 'atest', - ], - ], - ], - 'UserRole' => [ - 'title' => '用户组成员在用户组角色', - 'description' => '用户组成员在用户组角色', - 'type' => 'string', - 'example' => 'SECURITY_ADMIN', - ], - 'Creator' => [ - 'title' => '添加人', - 'description' => '添加人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '12121111', - ], - 'DisplayName' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - 'AccountName' => [ - 'title' => '用户账号名', - 'description' => '用户账号名', - 'type' => 'string', - 'example' => '12121111', - ], - ], - ], - 'GmtCreate' => [ - 'title' => '用户组成员添加时间', - 'description' => '用户组成员添加时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => 'zhangsan', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '删除结果', 'description' => '删除结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除数据源', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:19.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 217,\\n \\"MemberList\\": [\\n {\\n \\"Id\\": \\"2324211\\",\\n \\"UserGroupId\\": \\"231111\\",\\n \\"UserInfo\\": {\\n \\"Id\\": \\"13232\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"AccountName\\": \\"atest\\"\\n },\\n \\"UserRole\\": \\"SECURITY_ADMIN\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"12121111\\",\\n \\"DisplayName\\": \\"zhangsan\\",\\n \\"AccountName\\": \\"12121111\\"\\n },\\n \\"GmtCreate\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '用户组成员分页查询', - ], - 'GetUserBySourceId' => [ - 'summary' => '通过原始用户ID获取用户详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDataSource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'DeleteDataset' => [ + 'summary' => '删除数据集,发布版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SourceId', + 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '用户来源Id', - 'description' => '用户来源Id', - 'type' => 'string', - 'required' => true, - 'example' => '323131', - ], + 'schema' => ['title' => '数据集ID', 'description' => '数据集ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7280840713415040'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID'."\n", 'description' => '项目ID'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7262419688152064'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'User' => [ - 'title' => '用户对象', - 'description' => '用户对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户id', - 'description' => '用户id', - 'type' => 'string', - 'example' => '23231231', - ], - 'DisplayName' => [ - 'title' => '用户显示名', - 'description' => '用户显示名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除数据集', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"User\\": {\\n \\"Id\\": \\"23231231\\",\\n \\"DisplayName\\": \\"xx测试\\"\\n }\\n}","type":"json"}]', - 'title' => '通过原始用户ID获取用户详情', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', ], - 'GrantResourcePermission' => [ - 'summary' => '通过资源点对用户授权。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteDirectory' => [ + 'summary' => '删除菜单树文件目录。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -10911,103 +7249,22 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'GrantCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '授权请求', - 'description' => '授权请求', - 'type' => 'object', - 'properties' => [ - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'PHYSICAL_TABLE', - 'enum' => [], - ], - 'OperateList' => [ - 'title' => '操作类型', - 'description' => '操作类型', - 'type' => 'array', - 'items' => [ - 'description' => '操作类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SELECT', - ], - 'required' => true, - ], - 'Reason' => [ - 'title' => '授权原因', - 'description' => '授权原因', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'ResourceList' => [ - 'title' => '资源列表', - 'description' => '资源列表', - 'type' => 'array', - 'items' => [ - 'title' => '资源对象', - 'description' => '资源对象', - 'type' => 'object', - 'properties' => [ - 'ResourceId' => [ - 'title' => '资源Id', - 'description' => '资源Id', - 'type' => 'string', - 'required' => false, - 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'EffectiveEnd' => [ - 'title' => '有效期,', - 'description' => '有效期时间戳, 毫秒', - 'type' => 'string', - 'required' => true, - 'example' => '1717343597000', - ], - 'UserIdList' => [ - 'title' => '待授权用户', - 'description' => '待授权用户', - 'type' => 'array', - 'items' => [ - 'title' => '待授权用户', - 'description' => '待授权用户', - 'type' => 'string', - 'required' => false, - 'example' => '23244434', - ], - 'required' => true, - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12132323'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12121111'], ], ], 'responses' => [ @@ -11017,75 +7274,55 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '授权用户资源的权限', - ], - 'RevokeResourcePermission' => [ - 'summary' => '回收用户资源授权。', - 'methods' => [ - 'post', + 'title' => '删除菜单树文件目录', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:19.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'DeleteQualityRules' => [ + 'summary' => '批量删除质量规则对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -11093,83 +7330,28 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RevokeCommand', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '授权回收请求', - 'description' => '授权回收请求', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型', - 'type' => 'string', - 'required' => true, - 'example' => 'PHYSICAL_TABLE', - ], - 'ResourceList' => [ - 'title' => '资源列表', - 'description' => '资源列表', - 'type' => 'array', - 'items' => [ - 'description' => '资源', - 'type' => 'object', - 'properties' => [ - 'ResourceId' => [ - 'description' => '资源ID', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300002102.beginner_test.amin_table', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'OperateList' => [ - 'title' => '操作列表', - 'description' => '操作列表', + 'RuleIdList' => [ + 'title' => '规则ID', + 'description' => '规则ID', 'type' => 'array', - 'items' => [ - 'description' => '操作', - 'type' => 'string', - 'required' => false, - 'example' => 'SELECT', - ], - 'required' => false, - ], - 'Reason' => [ - 'title' => '回收原因', - 'description' => '回收原因', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', + 'items' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], 'required' => true, - 'example' => '13131', ], ], 'required' => true, @@ -11179,175 +7361,72 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除规则个数', 'description' => '删除规则个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量删除质量规则对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '回收用户资源授权', + 'ramActions' => [], ], - 'CheckResourcePermission' => [ - 'summary' => '校验用户是否有指定资源权限点。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteQualitySchedules' => [ + 'summary' => '批量删除质量调度对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CheckCommand', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '校验用户资源点权限', - 'description' => '校验用户资源点权限', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '323231', - ], - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型'."\n" - .'- PHYSICAL_TABLE:物理表'."\n" - .'- PHYSICAL_FIELD:物理表字段'."\n" - .'- LOGICAL_TABLE:事实逻辑表'."\n" - .'- LOGICAL_FIELD:事实逻辑表字段'."\n" - .'- LABEL_TABLE:标签逻辑表'."\n" - .'- LABEL_FIELD:标签逻辑表字段'."\n" - .'- DATASOURCE:数据源'."\n" - .'- GLOBAL_PARAM:全局参数'."\n" - .'- REALTIME_LOGICAL_TABLE:实时元表'."\n" - .'- REALTIME_LOGICAL_FIELD:实时元表字段'."\n" - .'- REALTIME_MIRROR_TABLE:镜像表'."\n" - .'- REALTIME_MIRROR_FIELD:实时镜像表字段'."\n" - .'- FUNCTION:函数'."\n" - .'- FEATURE:功能权限'."\n" - .'- PHYSICAL_VIEW:物理视图'."\n" - .'- LOGICAL_VIEW:逻辑视图'."\n" - .'- QD_SERVICE_FEATURE:服务标签'."\n" - .'- QD_ADVANCED_FEATURE:高级标签'."\n" - .'- QD_CLUSTER:群组'."\n" - .'- QD_EVENT:事件'."\n" - .'- QD_OFFLINE_SERVICE:标签离线服务任务'."\n" - .'- PHYSICAL_MATERIALIZED_VIEW:物化视图', - 'type' => 'string', - 'required' => true, - 'example' => 'PHYSICAL_TABLE', - ], - 'ResourceList' => [ - 'title' => '权限资源列表', - 'description' => '权限资源列表', + 'ScheduleIdList' => [ + 'title' => '调度对象ID', + 'description' => '调度对象ID', 'type' => 'array', - 'items' => [ - 'title' => '权限资源', - 'description' => '权限资源', - 'type' => 'object', - 'properties' => [ - 'ResourceId' => [ - 'title' => '资源Id', - 'description' => '资源Id', - 'type' => 'string', - 'required' => true, - 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'Operate' => [ - 'title' => '操作类型', - 'description' => '操作类型', - 'type' => 'string', + 'items' => ['title' => '调度对象ID', 'description' => '调度对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], 'required' => true, - 'example' => 'UPDATE', ], ], 'required' => true, @@ -11357,101 +7436,43 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ResourcePermissionList' => [ - 'title' => '资源权限列表', - 'description' => '资源权限列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ResourceId' => [ - 'title' => '资源Id', - 'description' => '资源Id', - 'type' => 'string', - 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01'."\n", - ], - 'HasPermission' => [ - 'title' => '是否有指定资源点权限', - 'description' => '是否有指定资源点权限', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除调度个数', 'description' => '删除调度个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量删除质量调度对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ResourcePermissionList\\": [\\n {\\n \\"ResourceId\\": \\"hadoop.300000806.data_distill.behavior_gameinfor_01\\\\n\\",\\n \\"HasPermission\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '校验用户是否有指定资源权限点', + 'ramActions' => [], ], - 'RemoveTenantMember' => [ - 'summary' => '移除租户成员,该API仅支持超级管理员和系统管理员能发起调用。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteQualityTemplates' => [ + 'summary' => '批量删除质量模板对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -11459,38 +7480,28 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RemoveCommand', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'SourceId' => [ - 'title' => '用户来源Id', - 'description' => '用户来源Id', - 'type' => 'string', + 'TemplateIdList' => [ + 'title' => '模板对象ID', + 'description' => '模板对象ID', + 'type' => 'array', + 'items' => ['title' => '模板对象ID', 'description' => '模板对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], 'required' => true, - 'example' => '123@xx.com', ], ], 'required' => true, @@ -11500,130 +7511,71 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除模板个数', 'description' => '删除模板个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量删除质量模板对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '移除租户成员', + 'ramActions' => [], ], - 'RemoveUserGroupMember' => [ - 'summary' => '移除用户组成员。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteQualityWatches' => [ + 'summary' => '批量删除质量监控对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RemoveCommand', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '移除用户组成员', - 'description' => '移除用户组成员', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'UserGroupId' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'required' => true, - 'example' => '2311', - ], - 'UserIdList' => [ - 'title' => '用户Id列表', - 'description' => '用户Id列表', + 'WatchIdList' => [ + 'title' => '监控对象ID', + 'description' => '监控对象ID', 'type' => 'array', - 'items' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '131313', - ], + 'items' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], 'required' => true, ], ], @@ -11634,85 +7586,42 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '移除用户组成员结果', - 'description' => '移除用户组成员结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除监控对象个数', 'description' => '删除监控对象个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量删除质量监控对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '移除用户组成员', + 'ramActions' => [], ], - 'DeleteRowPermission' => [ - 'summary' => '删除行级权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteRegisterLineage' => [ + 'summary' => '删除注册血缘,上线版本 v5.4.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -11720,41 +7629,108 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteRowPermissionCommand', + 'name' => 'DeleteRegisterLineageCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '注册血缘, 删除血缘command', + 'description' => '注册血缘, 删除血缘command', 'type' => 'object', 'properties' => [ - 'RowPermissionId' => [ - 'title' => '行级权限ID', - 'description' => '行级权限ID', - 'type' => 'integer', - 'format' => 'int64', + 'Source' => [ + 'title' => '血缘的source', + 'description' => '血缘的source', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => true, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'MetadataSubType' => ['title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'table1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], + 'required' => true, + ], + 'Target' => [ + 'title' => '血缘的target', + 'description' => '血缘的target', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => true, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'MetadataSubType' => ['title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT,SUM_BIZ_UNIT'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'table1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], 'required' => true, - 'example' => '300001234', ], + 'DetailedLineages' => [ + 'title' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘', + 'description' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘', + 'type' => 'array', + 'items' => [ + 'title' => '子对象血缘关系', + 'description' => '子对象血缘关系', + 'type' => 'object', + 'properties' => [ + 'IsDirect' => ['title' => '是否是直接血缘, 默认为true', 'description' => '是否是直接血缘, 默认为true', 'type' => 'boolean', 'required' => false], + 'Source' => [ + 'title' => 'source资产引用', + 'description' => 'source资产引用', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => false, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'ParentGuid' => ['title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => false, 'example' => 'COLUMN'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], + 'required' => true, + ], + 'Target' => [ + 'title' => 'target资产引用', + 'description' => 'target资产引用', + 'type' => 'object', + 'properties' => [ + 'ReferenceType' => ['title' => '资产引用类型: BY_GUID, BY_PROPERTY', 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', 'type' => 'string', 'required' => false, 'example' => 'BY_GUID, BY_PROPERTY'], + 'Guid' => ['title' => '资产guid, 在referenceType为BY_GUID时必填', 'description' => '资产guid, 在referenceType为BY_GUID时必填', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'ParentGuid' => ['title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', 'type' => 'string', 'required' => false, 'example' => 'odps.300000001.project1.table1'], + 'MetadataType' => ['title' => '资产类型, 按实际情况填写', 'description' => '资产类型, 按实际情况填写', 'type' => 'string', 'required' => false, 'example' => 'COLUMN'], + 'Catalog' => ['title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'dataphin'], + 'Schema' => ['title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'project1, bizUnit1'], + 'Env' => ['title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'DEV, PROD'], + 'Name' => ['title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'ExtProperties' => ['title' => '扩展属性', 'description' => '扩展属性', 'type' => 'object', 'required' => false], + ], + 'required' => true, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + 'CascadeDeleteLineage' => ['title' => '是否在删除完所有detailedLineage后, 自动删除对象血缘, 默认为true', 'description' => '是否在删除完所有detailedLineage后, 自动删除对象血缘, 默认为true', 'type' => 'boolean', 'required' => false, 'default' => 'true'], + 'TenantId' => ['title' => '租户Id', 'description' => '租户Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '300001234'], + 'UserId' => ['title' => '当前用户Id', 'description' => '当前用户Id', 'type' => 'string', 'required' => false, 'example' => '300004567'], ], 'required' => true, ], @@ -11763,281 +7739,181 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'description' => '操作结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '删除注册血缘', + 'extraInfo' => '上线版本:5.4.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '删除行级权限', + 'ramActions' => [], ], - 'GetAccountByRowPermissionId' => [ - 'summary' => '根据行级权限ID获取某一行级权限下的所有授权账号。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteResource' => [ + 'summary' => '删除资源文件。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'GetAccountByRowPermissionIdQuery', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '资源文件Id', 'description' => '资源文件Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10300010201'], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => true, 'example' => '测试'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RowPermissionId' => [ - 'title' => '行级权限ID', - 'description' => '行级权限ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '300001234', - ], - 'RuleIds' => [ - 'description' => '行级权限规则ID', - 'type' => 'array', - 'items' => [ - 'description' => '行级权限规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '300001235', - ], - 'required' => true, - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], - 'required' => true, ], ], ], - 'responses' => [ + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除资源文件', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteRowPermission' => [ + 'summary' => '删除行级权限。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteRowPermissionCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '请求命令', + 'description' => '请求命令', + 'type' => 'object', + 'properties' => [ + 'RowPermissionId' => ['title' => '行级权限ID', 'description' => '行级权限ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '300001234'], + ], + 'required' => true, + ], + ], + ], + 'responses' => [ 200 => [ 'schema' => [ 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'description' => '查询结果', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '行级权限规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '300001235', - ], - 'UserMappingList' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountType' => [ - 'title' => '规则绑定账号类型', - 'description' => '规则绑定账号类型', - 'type' => 'string', - 'enumValueTitles' => [ - 'PERSONAL' => 'PERSONAL', - 'USER_GROUP' => 'USER_GROUP', - 'PRODUCE' => 'PRODUCE', - ], - 'example' => 'PERSONAL', - ], - 'Accounts' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '规则绑定账号ID', - 'description' => '规则绑定账号ID', - 'type' => 'string', - 'example' => '300901111', - ], - 'AccountName' => [ - 'title' => '规则绑定账号名称', - 'description' => '规则绑定账号名称', - 'type' => 'string', - 'example' => '张三', - ], - ], - ], - 'enum' => [ - 'PERSONAL', - 'PRODUCE', - 'USER_GROUP', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['description' => '操作结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除行级权限', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": 300001235,\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"300901111\\",\\n \\"AccountName\\": \\"张三\\"\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', - 'title' => '根据行级权限ID获取某一行级权限下的所有授权账号', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'ListRowPermission' => [ - 'summary' => '分页查询行级权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteSecurityClassify' => [ + 'summary' => '删除数据分类。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -12045,55 +7921,95 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '分类ID, 不传递时按照分类名称+分类父路径匹配分类进行删除', 'description' => '分类ID, 不传递时按照分类名称+分类父路径匹配分类进行删除', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ParentPath' => ['title' => '分类路径,默认/', 'description' => '分类路径,默认/', 'type' => 'string', 'required' => false, 'example' => '/'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除结果', 'description' => '删除结果', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除数据分类', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteSecurityClassifyCatalog' => [ + 'summary' => '删除数据分类目录。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'PageRowPermissionQuery', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => '业务', - ], - 'PageNum' => [ - 'title' => '分页页码', - 'description' => '分页页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '分页条数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], + 'Path' => ['title' => '原目录的完整路径', 'description' => '原目录的完整路径', 'type' => 'string', 'required' => true, 'example' => '/d1/d2/'], + 'ReturnRemovedDetails' => ['title' => '是否返回删除详情,默认: true', 'description' => '是否返回删除详情,默认: true', 'type' => 'boolean', 'required' => false], ], 'required' => true, ], @@ -12102,314 +8018,32 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '删除结果详情', + 'description' => '删除结果详情', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', + 'Success' => ['title' => '是否删除成功', 'description' => '是否删除成功', 'type' => 'boolean'], + 'ChildCatalogFullPathList' => [ + 'title' => '被连带删除的子目录完整路径列表', + 'description' => '被连带删除的子目录完整路径列表', + 'type' => 'array', + 'items' => ['title' => '被连带删除的子目录完整路径列表', 'description' => '被连带删除的子目录完整路径列表', 'type' => 'string', 'example' => '/d1/d2/d3/'], ], - 'Data' => [ - 'description' => '查询结果', + 'ClassifyIdList' => [ + 'title' => '被连带删除的分类ID列表', + 'description' => '被连带删除的分类ID列表', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RowPermissionId' => [ - 'title' => '行级权限ID', - 'description' => '行级权限ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30008888', - ], - 'RowPermissionDesc' => [ - 'title' => '行级权限描述', - 'description' => '行级权限描述', - 'type' => 'string', - 'example' => '管控业务数据', - ], - 'RowPermissionName' => [ - 'title' => '行级权限名称', - 'description' => '行级权限名称', - 'type' => 'string', - 'example' => '业务管控', - ], - 'MappingColumns' => [ - 'title' => '映射字段', - 'description' => '映射字段', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'example' => 'business_id', - ], - 'ColumnType' => [ - 'title' => '映射字段类型', - 'description' => '映射字段类型', - 'type' => 'string', - 'example' => 'string', - 'enum' => [ - 'STRING', - 'NUMBER', - ], - ], - 'ColumnDesc' => [ - 'title' => '映射字段描述', - 'description' => '映射字段描述', - 'type' => 'string', - 'example' => '业务ID', - ], - ], - ], - ], - 'Rules' => [ - 'title' => '规则', - 'description' => '规则', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'example' => '管控ID 100以内数据', - ], - 'ScopeType' => [ - 'title' => '规则范围类型', - 'description' => '规则范围类型', - 'type' => 'string', - 'example' => 'SELECT_COLUMN', - 'enum' => [ - 'ALL_COLUMN', - 'SELECT_COLUMN', - ], - ], - 'IsDelete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'enum' => [ - '0', - '1', - ], - ], - 'Status' => [ - 'title' => '规则状态', - 'description' => '规则状态', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'enum' => [ - '0', - '1', - ], - ], - 'Expressions' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'example' => 'business_id', - ], - 'Values' => [ - 'title' => '表达式操作值', - 'description' => '表达式操作值', - 'type' => 'array', - 'items' => [ - 'description' => '表达式操作值', - 'type' => 'string', - 'example' => '123', - ], - ], - 'Type' => [ - 'title' => '表达式类型', - 'description' => '表达式类型', - 'type' => 'string', - 'example' => 'EXPRESSION', - 'enum' => [ - 'EXPRESSION', - 'RELATION', - ], - ], - 'SubConditions' => [ - 'title' => '子表达式', - 'description' => '子表达式', - 'type' => 'array', - 'items' => [ - 'description' => '子表达式,同Expressions', - 'type' => 'any', - 'example' => '同Expressions', - ], - ], - 'Operator' => [ - 'title' => '表达式操作符号', - 'description' => '表达式操作符号', - 'type' => 'string', - 'example' => '30008888', - 'enum' => [ - 'EQUAL', - 'NOT_EQUAL', - 'IN', - 'NOT_IN', - 'LIKE', - 'NOT_LIKE', - 'GT', - 'LT', - 'GE', - 'LE', - 'OR', - 'AND', - ], - ], - ], - ], - ], - 'UserMappingList' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountType' => [ - 'title' => '规则绑定账号类型', - 'description' => '规则绑定账号类型', - 'type' => 'string', - 'example' => 'PERSONAL', - ], - 'Accounts' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '规则绑定账号ID', - 'description' => '规则绑定账号ID', - 'type' => 'string', - 'example' => '30008888', - ], - ], - ], - 'enum' => [ - 'PERSONAL', - 'PRODUCE', - 'USER_GROUP', - ], - ], - ], - ], - ], - ], - ], - ], - 'Tables' => [ - 'title' => '相关表', - 'description' => '相关表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'example' => 'business_id', - ], - 'ResourceId' => [ - 'title' => '表GUID', - 'description' => '表GUID', - 'type' => 'string', - 'example' => 'odps.300199897.project_name.table_name', - ], - 'ColumnName' => [ - 'title' => '表字段', - 'description' => '表字段', - 'type' => 'string', - 'example' => 'business_id', - ], - ], - ], - ], - 'GmtCreate' => [ - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '2023-08-23T08:01:44Z', - ], - 'GmtModified' => [ - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2025-02-12T02:16:45Z', - ], - 'Creator' => [ - 'description' => '创建者', - 'type' => 'string', - 'example' => '30008888', - ], - 'Modifier' => [ - 'description' => '修改者', - 'type' => 'string', - 'example' => '30008888', - ], - 'TenantId' => [ - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30000001', - ], - ], - ], + 'items' => ['title' => '被连带删除的分类ID列表', 'description' => '被连带删除的分类ID列表', 'type' => 'integer', 'format' => 'int64', 'example' => '5'], ], ], ], @@ -12419,39 +8053,27 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"ChildCatalogFullPathList\\": [\\n \\"/d1/d2/d3/\\"\\n ],\\n \\"ClassifyIdList\\": [\\n 5\\n ]\\n }\\n}","type":"json"}]', + 'title' => '删除数据分类目录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 10,\\n \\"Data\\": [\\n {\\n \\"RowPermissionId\\": 30008888,\\n \\"RowPermissionDesc\\": \\"管控业务数据\\",\\n \\"RowPermissionName\\": \\"业务管控\\",\\n \\"MappingColumns\\": [\\n {\\n \\"ColumnName\\": \\"business_id\\",\\n \\"ColumnType\\": \\"string\\",\\n \\"ColumnDesc\\": \\"业务ID\\"\\n }\\n ],\\n \\"Rules\\": [\\n {\\n \\"RuleName\\": \\"管控ID 100以内数据\\",\\n \\"ScopeType\\": \\"SELECT_COLUMN\\",\\n \\"IsDelete\\": true,\\n \\"Status\\": 1,\\n \\"Expressions\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"Values\\": [\\n \\"123\\"\\n ],\\n \\"Type\\": \\"EXPRESSION\\",\\n \\"SubConditions\\": [\\n \\"同Expressions\\"\\n ],\\n \\"Operator\\": \\"30008888\\"\\n }\\n ],\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"30008888\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Tables\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"ResourceId\\": \\"odps.300199897.project_name.table_name\\",\\n \\"ColumnName\\": \\"business_id\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2023-08-23T08:01:44Z\\",\\n \\"GmtModified\\": \\"2025-02-12T02:16:45Z\\",\\n \\"Creator\\": \\"30008888\\",\\n \\"Modifier\\": \\"30008888\\",\\n \\"TenantId\\": 30000001\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询行级权限', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'ListRowPermissionByUserId' => [ - 'summary' => '分页查询指定用户行级权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteSecurityIdentifyResults' => [ + 'summary' => '批量删除安全识别结果。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -12459,56 +8081,99 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '删除指令', + 'description' => '删除指令', + 'type' => 'object', + 'properties' => [ + 'IdentifyResultIdList' => [ + 'title' => '识别结果ID列表', + 'description' => '识别结果ID列表', + 'type' => 'array', + 'items' => ['title' => '识别结果ID列表', 'description' => '识别结果ID列表', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'required' => false, + ], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '删除结果', 'description' => '删除结果', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '批量删除安全识别结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteSecurityLevel' => [ + 'summary' => '删除数据分级。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'ListRowPermissionByUserIdQuery', + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'Operator' => [ - 'title' => '指定操作人', - 'description' => '指定操作人', - 'type' => 'string', - 'required' => true, - 'example' => '30008888', - ], - 'PageNum' => [ - 'title' => '分页页码', - 'description' => '分页页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页大小', - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], + 'Index' => ['title' => '分级敏感等级,当不传递时将按照分级名称进行精确匹配删除', 'description' => '分级敏感等级,当不传递时将按照分级名称进行精确匹配删除', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => true, ], @@ -12517,264 +8182,27 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'DeleteResult' => [ + 'title' => '删除结果', + 'description' => '删除结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '121', - ], - 'Data' => [ - 'description' => '查询结果', + 'Success' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean'], + 'ErrorCode' => ['title' => '异常代码', 'description' => '异常代码', 'type' => 'string', 'example' => 'E10012011'], + 'RelatedClassifyIdList' => [ + 'title' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', + 'description' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Rules' => [ - 'title' => '规则', - 'description' => '规则', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'example' => '业务管控', - ], - 'ScopeType' => [ - 'title' => '规则范围类型', - 'description' => '规则范围类型', - 'type' => 'string', - 'example' => 'SELECT_COLUMN', - 'enum' => [ - 'ALL_COLUMN', - 'SELECT_COLUMN', - ], - ], - 'IsDelete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'example' => '0', - 'enum' => [ - '0', - '1', - ], - ], - 'Status' => [ - 'title' => '规则状态', - 'description' => '规则状态', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'enum' => [ - '0', - '1', - ], - ], - 'Expressions' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'example' => 'business_id', - ], - 'Values' => [ - 'title' => '表达式操作值', - 'description' => '表达式操作值', - 'type' => 'array', - 'items' => [ - 'description' => '表达式操作值', - 'type' => 'string', - 'example' => '123', - ], - ], - 'Type' => [ - 'title' => '表达式类型', - 'description' => '表达式类型', - 'type' => 'string', - 'example' => 'EXPRESSION', - 'enum' => [ - 'EXPRESSION', - 'RELATION', - ], - ], - 'SubConditions' => [ - 'title' => '子表达式', - 'description' => '子表达式', - 'type' => 'array', - 'items' => [ - 'description' => '子表达式,同Expressions', - 'type' => 'any', - 'example' => '同Expressions', - ], - ], - 'Operator' => [ - 'title' => '表达式操作符号', - 'description' => '表达式操作符号', - 'type' => 'string', - 'example' => 'EQUAL', - 'enum' => [ - 'EQUAL', - 'NOT_EQUAL', - 'IN', - 'NOT_IN', - 'LIKE', - 'NOT_LIKE', - 'GT', - 'LT', - 'GE', - 'LE', - 'OR', - 'AND', - ], - ], - ], - ], - ], - 'UserMappingList' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountType' => [ - 'title' => '规则绑定账号类型', - 'description' => '规则绑定账号类型', - 'type' => 'string', - 'example' => 'PERSONAL', - ], - 'Accounts' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '规则绑定账号ID', - 'description' => '规则绑定账号ID', - 'type' => 'string', - 'example' => '30008888', - ], - ], - ], - 'enum' => [ - 'PERSONAL', - 'PRODUCE', - 'USER_GROUP', - ], - ], - ], - ], - ], - ], - ], - ], - 'Tables' => [ - 'title' => '相关表', - 'description' => '相关表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'example' => '拦截规则', - ], - 'ResourceId' => [ - 'title' => '表GUID', - 'description' => '表GUID', - 'type' => 'string', - 'example' => 'odps.300199897.project_name.table_name', - ], - 'ColumnName' => [ - 'title' => '表字段', - 'description' => '表字段', - 'type' => 'string', - 'example' => 'business_id', - ], - ], - ], - ], - 'GmtCreate' => [ - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2023-03-30T21:37:23Z', - ], - 'GmtModified' => [ - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2025-03-03T10:14Z', - ], - 'Creator' => [ - 'description' => '创建者', - 'type' => 'string', - 'example' => '30008888', - ], - 'Modifier' => [ - 'description' => '修改者', - 'type' => 'string', - 'example' => '30008888', - ], - 'TenantId' => [ - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30000001', - ], - ], - ], + 'items' => ['title' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', 'description' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], @@ -12784,39 +8212,27 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DeleteResult\\": {\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"E10012011\\",\\n \\"RelatedClassifyIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', + 'title' => '删除数据分级', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"Rules\\": [\\n {\\n \\"RuleName\\": \\"业务管控\\",\\n \\"ScopeType\\": \\"SELECT_COLUMN\\",\\n \\"IsDelete\\": true,\\n \\"Status\\": 1,\\n \\"Expressions\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"Values\\": [\\n \\"123\\"\\n ],\\n \\"Type\\": \\"EXPRESSION\\",\\n \\"SubConditions\\": [\\n \\"同Expressions\\"\\n ],\\n \\"Operator\\": \\"EQUAL\\"\\n }\\n ],\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"30008888\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Tables\\": [\\n {\\n \\"MappingColumnName\\": \\"拦截规则\\",\\n \\"ResourceId\\": \\"odps.300199897.project_name.table_name\\",\\n \\"ColumnName\\": \\"business_id\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2023-03-30T21:37:23Z\\",\\n \\"GmtModified\\": \\"2025-03-03T10:14Z\\",\\n \\"Creator\\": \\"30008888\\",\\n \\"Modifier\\": \\"30008888\\",\\n \\"TenantId\\": 30000001\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询指定用户行级权限', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'UpdateRowPermission' => [ - 'summary' => '更新行级权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteStandard' => [ + 'summary' => '删除标准。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -12824,295 +8240,104 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '删除指令', + 'description' => '删除指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除标准', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteStandardInValidMapping' => [ + 'summary' => '删除无效映射关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'UpdateRowPermissionCommand', + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'RowPermissionId' => [ - 'title' => '行级权限ID', - 'description' => '行级权限ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30009999', - ], - 'RowPermissionName' => [ - 'title' => '行级权限名称', - 'description' => '行级权限名称', - 'type' => 'string', - 'required' => true, - 'example' => '业务管控', - ], - 'RowPermissionDesc' => [ - 'title' => '行级权限描述', - 'description' => '行级权限描述', - 'type' => 'string', + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'GuidList' => [ + 'title' => 'guid列表,上限为1000', + 'description' => 'guid列表,上限为1000', + 'type' => 'array', + 'items' => ['title' => 'guid列表,上限为1000', 'description' => 'guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1022'], 'required' => false, - 'example' => '管控业务数据', ], - 'MappingColumns' => [ - 'title' => '映射字段', - 'description' => '映射字段', + 'BelongGuidList' => [ + 'title' => '所属guid列表,上限为1000', + 'description' => '所属guid列表,上限为1000', 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - 'ColumnType' => [ - 'title' => '映射字段类型', - 'description' => '映射字段类型', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - 'enum' => [ - 'STRING', - 'NUMBER', - ], - ], - 'ColumnDesc' => [ - 'title' => '映射字段描述', - 'description' => '映射字段描述', - 'type' => 'string', - 'required' => false, - 'example' => '业务ID', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - 'Rules' => [ - 'title' => '规则', - 'description' => '规则', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'required' => true, - 'example' => '管控业务ID大于100', - ], - 'ScopeType' => [ - 'title' => '规则范围类型', - 'description' => '规则范围类型', - 'type' => 'string', - 'required' => true, - 'example' => 'SELECT_COLUMN', - 'enum' => [ - 'ALL_COLUMN', - 'SELECT_COLUMN', - ], - ], - 'IsDelete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'required' => false, - 'example' => '0', - 'enum' => [ - '0', - '1', - ], - ], - 'Status' => [ - 'title' => '规则状态', - 'description' => '规则状态', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - 'enum' => [ - '0', - '1', - ], - ], - 'Expressions' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - 'Values' => [ - 'title' => '表达式操作值', - 'description' => '表达式操作值', - 'type' => 'array', - 'items' => [ - 'description' => '表达式操作值', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], - 'required' => true, - ], - 'Type' => [ - 'title' => '表达式类型', - 'description' => '表达式类型', - 'type' => 'string', - 'required' => true, - 'example' => 'EXPRESSION', - 'enum' => [ - 'EXPRESSION', - 'RELATION', - ], - ], - 'SubConditions' => [ - 'title' => '子表达式', - 'description' => '子表达式', - 'type' => 'array', - 'items' => [ - 'description' => '子表达式,同Expressions', - 'type' => 'any', - 'required' => true, - 'example' => '同Expressions', - ], - 'required' => true, - ], - 'Operator' => [ - 'title' => '表达式操作符号', - 'description' => '表达式操作符号', - 'type' => 'string', - 'required' => true, - 'example' => 'OR', - 'enum' => [ - 'EQUAL', - 'NOT_EQUAL', - 'IN', - 'NOT_IN', - 'LIKE', - 'NOT_LIKE', - 'GT', - 'LT', - 'GE', - 'LE', - 'OR', - 'AND', - ], - ], - ], - 'required' => true, - ], - 'required' => true, - ], - 'UserMappingList' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountType' => [ - 'title' => '规则绑定账号类型', - 'description' => '规则绑定账号类型', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [ - 'PERSONAL' => 'PERSONAL', - 'USER_GROUP' => 'USER_GROUP', - 'PRODUCE' => 'PRODUCE', - ], - 'example' => 'PERSONAL', - ], - 'Accounts' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '规则绑定账号ID', - 'description' => '规则绑定账号ID', - 'type' => 'string', - 'required' => true, - 'example' => '30001011', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'required' => false, - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'Tables' => [ - 'title' => '相关表', - 'description' => '相关表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - 'ResourceId' => [ - 'title' => '表GUID', - 'description' => '表GUID', - 'type' => 'string', - 'required' => true, - 'example' => 'odps.300199897.project_name.table_name'."\n", - ], - 'ColumnName' => [ - 'title' => '表字段', - 'description' => '表字段', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - ], - 'required' => true, - ], - 'required' => false, + 'items' => ['title' => '所属guid列表,上限为1000', 'description' => '所属guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1023'], + 'required' => false, ], ], 'required' => true, @@ -13122,85 +8347,42 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'description' => '更新结果', - 'type' => 'boolean', - 'example' => 'true', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除无效映射关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '更新行级权限', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'CreateRowPermission' => [ - 'summary' => '创建行级权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteStandardLookupTable' => [ + 'summary' => '删除数据标准码表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -13208,295 +8390,98 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除数据标准码表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'DeleteStandardRelations' => [ + 'summary' => '批量删除标准关联关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'CreateRowPermissionCommand', + 'name' => 'DeleteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '请求命令', - 'description' => '请求命令', + 'title' => '删除指令', + 'description' => '删除指令', 'type' => 'object', 'properties' => [ - 'RowPermissionName' => [ - 'title' => '行级权限名称', - 'description' => '行级权限名称', - 'type' => 'string', - 'required' => true, - 'example' => '业务管控', - ], - 'RowPermissionDesc' => [ - 'title' => '行级权限描述', - 'description' => '行级权限描述', - 'type' => 'string', - 'required' => false, - 'example' => '管控业务数据', - ], - 'MappingColumns' => [ - 'title' => '映射字段', - 'description' => '映射字段', + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'StandardRefList' => [ + 'title' => '被引用的标准列表', + 'description' => '被引用的标准列表', 'type' => 'array', 'items' => [ + 'title' => '', 'type' => 'object', 'properties' => [ - 'ColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - 'ColumnType' => [ - 'title' => '映射字段类型', - 'description' => '映射字段类型', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - 'enum' => [ - 'STRING', - 'NUMBER', - ], - ], - 'ColumnDesc' => [ - 'title' => '映射字段描述', - 'description' => '映射字段描述', - 'type' => 'string', - 'required' => false, - 'example' => '控制业务ID字段', - ], + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'], ], - 'required' => true, + 'required' => false, + 'description' => '', ], 'required' => true, ], - 'Rules' => [ - 'title' => '规则', - 'description' => '规则', - 'type' => 'array', - 'items' => [ - 'description' => '规则对象', - 'type' => 'object', - 'properties' => [ - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'required' => true, - 'example' => '中台', - ], - 'ScopeType' => [ - 'title' => '规则范围类型', - 'description' => '规则范围类型', - 'type' => 'string', - 'required' => true, - 'example' => 'SELECT_COLUMN', - 'enum' => [ - 'ALL_COLUMN', - 'SELECT_COLUMN', - ], - ], - 'IsDelete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'required' => false, - 'example' => '1', - 'enum' => [ - '0', - '1', - ], - ], - 'Status' => [ - 'title' => '规则状态', - 'description' => '规则状态', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - 'enum' => [ - '0', - '1', - ], - ], - 'Expressions' => [ - 'title' => '规则表达式', - 'description' => '规则表达式', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'id', - ], - 'Values' => [ - 'title' => '表达式操作值', - 'description' => '表达式操作值', - 'type' => 'array', - 'items' => [ - 'description' => '表达式操作值', - 'type' => 'string', - 'required' => true, - 'example' => '123', - ], - 'required' => true, - ], - 'Type' => [ - 'title' => '表达式类型', - 'description' => '表达式类型', - 'type' => 'string', - 'required' => true, - 'example' => 'RELATION', - 'enum' => [ - 'EXPRESSION', - 'RELATION', - ], - ], - 'SubConditions' => [ - 'title' => '子表达式', - 'description' => '子表达式', - 'type' => 'array', - 'items' => [ - 'description' => '子表达式,结构同Expressions', - 'type' => 'any', - 'required' => true, - 'example' => '子表达式,结构同Expressions', - ], - 'required' => true, - ], - 'Operator' => [ - 'title' => '表达式操作符号', - 'description' => '表达式操作符号', - 'type' => 'string', - 'required' => true, - 'example' => 'EQUAL', - 'enum' => [ - 'EQUAL', - 'NOT_EQUAL', - 'IN', - 'NOT_IN', - 'LIKE', - 'NOT_LIKE', - 'GT', - 'LT', - 'GE', - 'LE', - 'OR', - 'AND', - ], - ], - ], - 'required' => true, - ], - 'required' => true, - ], - 'UserMappingList' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountType' => [ - 'title' => '规则绑定账号类型', - 'description' => '规则绑定账号类型', - 'type' => 'string', - 'required' => true, - 'enumValueTitles' => [ - 'PERSONAL' => 'PERSONAL', - 'USER_GROUP' => 'USER_GROUP', - 'PRODUCE' => 'PRODUCE', - ], - 'example' => 'PERSONAL', - ], - 'Accounts' => [ - 'title' => '规则绑定账号', - 'description' => '规则绑定账号', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'AccountId' => [ - 'title' => '规则绑定账号ID', - 'description' => '规则绑定账号ID', - 'type' => 'string', - 'required' => true, - 'example' => '300001111', - ], - ], - 'required' => true, - ], - 'required' => true, - 'example' => 'PERSONAL', - 'enum' => [ - 'PERSONAL', - 'PRODUCE', - 'USER_GROUP', - ], - ], - ], - 'required' => true, - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'Tables' => [ - 'title' => '相关表', - 'description' => '相关表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'MappingColumnName' => [ - 'title' => '映射字段名称', - 'description' => '映射字段名称', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - 'ResourceId' => [ - 'title' => '表GUID', - 'description' => '表GUID', - 'type' => 'string', - 'required' => true, - 'example' => 'odps.300199897.project_name.table_name', - ], - 'ColumnName' => [ - 'title' => '表字段', - 'description' => '表字段', - 'type' => 'string', - 'required' => true, - 'example' => 'business_id', - ], - ], - 'required' => true, - ], - 'required' => false, - ], + 'RelationType' => ['title' => '标准关联关系:RELATIVE', 'description' => '标准关联关系:RELATIVE', 'type' => 'string', 'required' => true, 'example' => 'RELATIVE'], ], 'required' => true, ], @@ -13505,46 +8490,28 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'Data' => [ - 'description' => '创建结果', - 'type' => 'integer', - 'format' => 'int64', - 'example' => 'true', + 'title' => '删除结果', + 'description' => '删除结果', + 'type' => 'object', + 'properties' => [ + 'SuccessCount' => ['title' => '添加成功数目', 'description' => '添加成功数目', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'NotExistStandardIdList' => [ + 'title' => '不存在标准Id列表', + 'description' => '不存在标准Id列表', + 'type' => 'array', + 'items' => ['title' => '不存在标准Id列表', 'description' => '不存在标准Id列表', 'type' => 'integer', 'format' => 'int64', 'example' => '1021'], + ], + ], ], ], ], @@ -13552,40 +8519,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"NotExistStandardIdList\\": [\\n 1021\\n ]\\n }\\n}","type":"json"}]', + 'title' => '批量删除标准关联关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 0\\n}","type":"json"}]', - 'title' => '创建行级权限', - 'description' => '可以根据appKey查询已发布接口的详细信息', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'CreateDirectory' => [ - 'summary' => '创建菜单树目录,支持计算任务、数据集成、同步任务等功能。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteStandardSet' => [ + 'summary' => '删除标准集。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -13594,171 +8547,58 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1212344', - ], - 'Category' => [ - 'title' => '菜单树类目'."\n" - .'即席查询:tempCode'."\n" - .'代码任务:codeManage'."\n" - .'离线管道:offlinePipeline'."\n" - .'管道自定义组件:offlinePipelineCustomPlugin'."\n" - .'同步任务:dataX'."\n" - .'实时元表:streamMeta'."\n" - .'实时自定义源:streamCustomDataSource'."\n" - .'实时计算模板:streamTemplate'."\n" - .'资源管理:resourceManage'."\n" - .'离线函数:udfResource'."\n" - .'实时函数:streamFunction', - 'description' => '菜单树类目'."\n" - .'- 即席查询:tempCode'."\n" - .'- 代码任务:codeManage'."\n" - .'- 离线管道:offlinePipeline'."\n" - .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" - .'- 同步任务:dataX'."\n" - .'- 实时元表:streamMeta'."\n" - .'- 实时自定义源:streamCustomDataSource'."\n" - .'- 实时计算模板:streamTemplate'."\n" - .'- 资源管理:resourceManage'."\n" - .'- 离线函数:udfResource'."\n" - .'- 实时函数:streamFunction', - 'type' => 'string', - 'required' => true, - 'example' => 'tempCode', - ], - 'Name' => [ - 'title' => '新建文件目录名称', - 'description' => '新建文件目录名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test_xx', - ], - 'Directory' => [ - 'title' => '新建文件目录父目录', - 'description' => '新建文件目录父目录', - 'type' => 'string', - 'required' => true, - 'example' => '/', - ], - ], - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'FileId' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1311113211', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除标准集', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileId\\": 1311113211\\n}","type":"json"}]', - 'title' => '创建菜单树目录', + 'ramActions' => [], ], - 'DeleteDirectory' => [ - 'summary' => '删除菜单树文件目录。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteStandardValidMapping' => [ + 'summary' => '删除有效映射关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -13766,123 +8606,81 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12132323', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FileId', - 'in' => 'query', + 'name' => 'DeleteCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '删除指令', + 'description' => '删除指令', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'GuidList' => [ + 'title' => 'guid列表,上限为1000', + 'description' => 'guid列表,上限为1000', + 'type' => 'array', + 'items' => ['title' => 'guid列表,上限为1000', 'description' => 'guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1022'], + 'required' => false, + ], + 'BelongGuidList' => [ + 'title' => '所属guid列表,上限为1000', + 'description' => '所属guid列表,上限为1000', + 'type' => 'array', + 'items' => ['title' => '所属guid列表,上限为1000', 'description' => '所属guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1023'], + 'required' => false, + ], + ], 'required' => true, - 'example' => '12121111', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除有效映射关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除菜单树文件目录', + 'ramActions' => [], ], - 'UpdateFileName' => [ - 'summary' => '更新文件名。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteStandardWordRoot' => [ + 'summary' => '删除数据标准词根。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -13890,134 +8688,57 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12132323', - ], - ], - [ - 'name' => 'FileId', - 'in' => 'query', - 'schema' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12121111', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'title' => '更改后文件名', - 'description' => '更改后文件名', - 'type' => 'string', - 'required' => true, - 'example' => 'xxNew', - ], + 'schema' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'required' => true, 'example' => '平均值'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除数据标准词根', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '更新文件名', + 'ramActions' => [], ], - 'UpdateFileDirectory' => [ - 'summary' => '移动菜单树文件位置。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteUdf' => [ + 'summary' => '删除自定义函数。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -14025,196 +8746,84 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12132323', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], ], [ - 'name' => 'FileId', + 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12121111', - ], + 'schema' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10300010201'], ], [ - 'name' => 'Directory', + 'name' => 'Comment', 'in' => 'query', - 'schema' => [ - 'title' => '更改后文件目录', - 'description' => '更改后文件目录', - 'type' => 'string', - 'required' => true, - 'example' => '/xx测试/目录new', - ], + 'schema' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => true, 'example' => '测试'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除自定义函数', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '移动菜单树文件位置', + 'ramActions' => [], ], - 'GetDirectoryTree' => [ - 'summary' => '获取文件夹目录树。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [ - 'Dataphin公共云', - ], + 'DeleteUserGroup' => [ + 'summary' => '删除用户组。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Category', - 'in' => 'query', - 'schema' => [ - 'title' => '目录名称;'."\n" - ."\n" - .'部分根目录枚举值如下:实时计算表:streamMeta;离线物理表:PhysicalTable;计算任务:codeManage;实时计算模板:streamTemplate;离线计算模板:batchTaskTemplate;资源:resourceManage;FLINK函数:streamFunction;MAXC函数:udfResource;', - 'description' => '目录类型;'."\n" - .'- 即席查询:tempCode'."\n" - .'- 代码任务:codeManage'."\n" - .'- 离线管道:offlinePipeline'."\n" - .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" - .'- 同步任务:dataX'."\n" - .'- 实时元表:streamMeta'."\n" - .'- 实时自定义源:streamCustomDataSource'."\n" - .'- 实时计算模板:streamTemplate'."\n" - .'- 资源管理:resourceManage'."\n" - .'- 离线函数:udfResource'."\n" - .'- 实时函数:streamFunction', - 'type' => 'string', - 'required' => true, - 'example' => 'codeManage', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', + 'name' => 'UserGroupId', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7081229106458752', - ], + 'schema' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '232131'], ], ], 'responses' => [ @@ -14224,374 +8833,99 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '目录树信息(返回目录树,边的所有信息,层次遍历,从根节点逐层遍历返回);', - 'description' => '目录树信息(返回目录树,边的所有信息,层次遍历,从根节点逐层遍历返回);', - 'type' => 'array', - 'items' => [ - 'title' => '树节点二元组', - 'description' => '树节点二元组', - 'type' => 'object', - 'properties' => [ - 'Parent' => [ - 'title' => '父节点', - 'description' => '父节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '目录ID', - 'description' => '目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'StringId' => [ - 'title' => '目录StringID', - 'description' => '目录StringID', - 'type' => 'string', - 'example' => '3', - 'default' => 'null', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '7081229106458752', - ], - 'CategoryType' => [ - 'title' => '目录类型', - 'description' => '目录类型', - 'type' => 'string', - 'example' => 'codeManage', - ], - 'DataCellId' => [ - 'title' => '数据单元ID', - 'description' => '数据单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3213', - 'default' => 'null', - ], - 'DirName' => [ - 'title' => '所在目录路径 仅对文件/资源节点有效', - 'description' => '所在目录路径 仅对文件/资源节点有效', - 'type' => 'string', - 'example' => '/', - ], - 'Name' => [ - 'title' => '对象显示名称', - 'description' => '对象显示名称', - 'type' => 'string', - 'example' => '代码管理', - ], - 'Type' => [ - 'title' => '对象类型', - 'description' => '对象类型', - 'type' => 'string', - 'example' => 'codeManage', - ], - 'Creator' => [ - 'title' => '创建人ID', - 'description' => '创建人ID', - 'type' => 'string', - 'example' => '300000907', - ], - 'CreatorName' => [ - 'title' => '创建人名称', - 'description' => '创建人名称', - 'type' => 'string', - 'example' => 'John', - ], - 'GmtCreate' => [ - 'title' => '创建时间 非实体对象节点为空', - 'description' => '创建时间 非实体对象节点为空', - 'type' => 'string', - 'example' => '2024-11-01 18:08:17', - ], - 'GmtModified' => [ - 'title' => '修改时间 非实体对象节点为空', - 'description' => '修改时间 非实体对象节点为空', - 'type' => 'string', - 'example' => '2024-11-01 18:08:17', - ], - 'LastModifier' => [ - 'title' => '修改人ID', - 'description' => '修改人ID', - 'type' => 'string', - 'example' => '300000907', - ], - 'LastModifierName' => [ - 'title' => '修改人名称'."\n" - ."\n", - 'description' => '修改人名称'."\n" - ."\n", - 'type' => 'string', - 'example' => 'John', - ], - ], - ], - 'Children' => [ - 'title' => '子节点', - 'description' => '子节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '目录ID', - 'description' => '目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'StringId' => [ - 'title' => '目录StringID', - 'description' => '目录StringID', - 'type' => 'string', - 'example' => '3', - 'default' => 'null', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '7081229106458752', - ], - 'CategoryType' => [ - 'title' => '目录类型', - 'description' => '目录类型', - 'type' => 'string', - 'example' => 'codeManage', - ], - 'DataCellId' => [ - 'title' => '数据单元ID', - 'description' => '数据单元ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '41342', - ], - 'DirName' => [ - 'title' => '所在目录路径 仅对文件/资源节点有效', - 'description' => '所在目录路径 仅对文件/资源节点有效', - 'type' => 'string', - 'example' => '/', - ], - 'Name' => [ - 'title' => '对象显示名称', - 'description' => '对象显示名称', - 'type' => 'string', - 'example' => '代码管理', - ], - 'Type' => [ - 'title' => '对象类型', - 'description' => '对象类型', - 'type' => 'string', - 'example' => 'codeManage', - ], - 'Creator' => [ - 'title' => '创建人ID', - 'description' => '创建人ID', - 'type' => 'string', - 'example' => '300000907', - ], - 'CreatorName' => [ - 'title' => '创建人名称', - 'description' => '创建人名称', - 'type' => 'string', - 'example' => 'John', - ], - 'GmtCreate' => [ - 'title' => '创建时间 非实体对象节点为空', - 'description' => '创建时间 非实体对象节点为空', - 'type' => 'string', - 'example' => '2024-11-01 18:08:17', - ], - 'GmtModified' => [ - 'title' => '修改时间 非实体对象节点为空', - 'description' => '修改时间 非实体对象节点为空', - 'type' => 'string', - 'example' => '2024-11-01 18:08:17', - ], - 'LastModifier' => [ - 'title' => '修改人ID', - 'description' => '修改人ID', - 'type' => 'string', - 'example' => '300000907', - ], - 'LastModifierName' => [ - 'title' => '修改人名称'."\n" - ."\n", - 'description' => '修改人名称'."\n" - ."\n", - 'type' => 'string', - 'example' => 'John', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '删除结果', 'description' => '删除结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '删除用户组', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:19.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"Parent\\": {\\n \\"Id\\": 3,\\n \\"StringId\\": \\"3\\",\\n \\"ProjectId\\": 7081229106458752,\\n \\"CategoryType\\": \\"codeManage\\",\\n \\"DataCellId\\": 3213,\\n \\"DirName\\": \\"/\\",\\n \\"Name\\": \\"代码管理\\",\\n \\"Type\\": \\"codeManage\\",\\n \\"Creator\\": \\"300000907\\",\\n \\"CreatorName\\": \\"John\\",\\n \\"GmtCreate\\": \\"2024-11-01 18:08:17\\",\\n \\"GmtModified\\": \\"2024-11-01 18:08:17\\",\\n \\"LastModifier\\": \\"300000907\\",\\n \\"LastModifierName\\": \\"John\\"\\n },\\n \\"Children\\": {\\n \\"Id\\": 3,\\n \\"StringId\\": \\"3\\",\\n \\"ProjectId\\": 7081229106458752,\\n \\"CategoryType\\": \\"codeManage\\",\\n \\"DataCellId\\": 41342,\\n \\"DirName\\": \\"/\\",\\n \\"Name\\": \\"代码管理\\",\\n \\"Type\\": \\"codeManage\\",\\n \\"Creator\\": \\"300000907\\",\\n \\"CreatorName\\": \\"John\\",\\n \\"GmtCreate\\": \\"2024-11-01 18:08:17\\",\\n \\"GmtModified\\": \\"2024-11-01 18:08:17\\",\\n \\"LastModifier\\": \\"300000907\\",\\n \\"LastModifierName\\": \\"John\\"\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取文件夹目录树', - ], - 'ListFiles' => [ - 'summary' => '查询目录树文件列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ExecuteAdHocTask' => [ + 'summary' => '执行即席查询任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'ExecuteCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询条件', - 'description' => '查询条件', + 'title' => '执行命令', + 'description' => '执行命令', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11112311', - ], - 'Category' => [ - 'title' => '菜单树类目'."\n" - .'即席查询:tempCode'."\n" - .'代码任务:codeManage'."\n" - .'离线管道:offlinePipeline'."\n" - .'管道自定义组件:offlinePipelineCustomPlugin'."\n" - .'同步任务:dataX'."\n" - .'实时元表:streamMeta'."\n" - .'实时自定义源:streamCustomDataSource'."\n" - .'实时计算模板:streamTemplate'."\n" - .'资源管理:resourceManage'."\n" - .'离线函数:udfResource'."\n" - .'实时函数:streamFunction', - 'description' => '菜单树类目'."\n" - .'- 即席查询:tempCode'."\n" - .'- 代码任务:codeManage'."\n" - .'- 离线管道:offlinePipeline'."\n" - .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" - .'- 同步任务:dataX'."\n" - .'- 实时元表:streamMeta'."\n" - .'- 实时自定义源:streamCustomDataSource'."\n" - .'- 实时计算模板:streamTemplate'."\n" - .'- 资源管理:resourceManage'."\n" - .'- 离线函数:udfResource'."\n" - .'- 实时函数:streamFunction', - 'type' => 'string', - 'required' => true, - 'example' => 'tempCode', - ], - 'Recursive' => [ - 'title' => '是否递归遍历查询'."\n" - .'true:是, 返回目录下的所有节点'."\n" - .'false:否,返回目录下第一层级节点', - 'description' => '是否递归遍历查询'."\n" - .'- true:是, 返回目录下的所有节点'."\n" - .'- false:否,返回目录下第一层级节点', - 'type' => 'boolean', - 'required' => true, - 'example' => 'true', - ], - 'Directory' => [ - 'title' => '文件目录', - 'description' => '文件目录', - 'type' => 'string', - 'required' => true, - 'example' => '/xx/x', - ], - 'Env' => [ - 'title' => '环境标识'."\n" - .'DEV'."\n" - .'PROD', - 'description' => '环境标识'."\n" - .'- DEV'."\n" - .'- PROD', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', + 'Code' => ['title' => '任务脚本', 'description' => '任务脚本', 'type' => 'string', 'required' => true, 'example' => 'show tables;'], + 'ParamList' => [ + 'title' => '运行参数列表', + 'description' => '运行参数', + 'type' => 'array', + 'items' => [ + 'title' => '运行参数', + 'description' => '运行参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '运行参数名称', 'description' => '参数', 'type' => 'string', 'required' => true, 'example' => 'param1'], + 'Value' => ['title' => '运行参数值', 'description' => '参数值', 'type' => 'string', 'required' => true, 'example' => 'value1'], + ], + 'required' => true, + ], + 'required' => false, ], + 'OperatorType' => ['title' => '任务类型', 'description' => '任务类型', 'type' => 'string', 'required' => true, 'example' => 'MaxCompute_SQL'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123222121'], + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'erp'], ], 'required' => true, ], @@ -14604,608 +8938,384 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ExecuteResult' => [ + 'title' => '执行结果', + 'description' => '执行结果', + 'type' => 'object', + 'properties' => [ + 'TaskId' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'example' => 'MaxCompute_SQL_300000843_1611548758327'], + 'SubTaskCount' => ['title' => '任务解析, 拆分出来子任务个数', 'description' => '任务解析, 拆分出来子任务个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], - 'FileList' => [ - 'title' => '文件列表', - 'description' => '文件列表', + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ExecuteResult\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"SubTaskCount\\": 1\\n }\\n}","type":"json"}]', + 'title' => '执行即席查询任务', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dataphin:ExecuteAdHocTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ExecuteManualNode' => [ + 'summary' => '运行手动调度节点。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ExecuteCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '运行手动任务请求', + 'description' => '运行手动任务请求', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_12132'], + 'FlowName' => ['title' => '工作流名字', 'description' => '工作流名字', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123324'], + 'StartBizDate' => ['title' => '起始业务日期', 'description' => '起始业务日期', 'type' => 'string', 'required' => true, 'example' => '2024-05-01'], + 'EndBizDate' => ['title' => '终止业务日期', 'description' => '终止业务日期', 'type' => 'string', 'required' => true, 'example' => '2024-05-07'], + 'ParamList' => [ + 'title' => '运行参数', + 'description' => '运行参数', 'type' => 'array', 'items' => [ - 'title' => '文件', - 'description' => '文件', + 'title' => '运行参数', + 'description' => '运行参数', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '111231112', - ], - 'Name' => [ - 'title' => '文件名', - 'description' => '文件名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '312112121', - ], - 'Category' => [ - 'title' => '文件类目', - 'description' => '文件类目', - 'type' => 'string', - 'example' => 'tempCode', - ], - 'FileType' => [ - 'title' => '文件类型, 如 directory', - 'description' => '文件类型, 如 directory', - 'type' => 'string', - 'example' => 'directory', - ], - 'Directory' => [ - 'title' => '文件目录', - 'description' => '文件目录', - 'type' => 'string', - 'example' => '/xx/x', - ], - 'Content' => [ - 'title' => '文件内容', - 'description' => '文件内容', - 'type' => 'string', - 'example' => 'select 1;', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717483193830', - ], - 'GmtModified' => [ - 'title' => '编辑时间', - 'description' => '编辑时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717483193830', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '1212111', - ], - 'LastModifier' => [ - 'title' => '修改者', - 'description' => '修改者', - 'type' => 'string', - 'example' => '1212111', - ], + 'Key' => ['title' => '参数', 'description' => '参数', 'type' => 'string', 'required' => false, 'example' => 'param1'], + 'Value' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'required' => false, 'example' => '1'], ], + 'required' => false, ], + 'required' => false, ], ], + 'required' => true, + ], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'FlowId' => ['title' => '工作流ID', 'description' => '工作流ID', 'type' => 'string', 'example' => 'f_1231_121324'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FlowId\\": \\"f_1231_121324\\"\\n}","type":"json"}]', + 'title' => '运行手动任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:40:18.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileList\\": [\\n {\\n \\"Id\\": 111231112,\\n \\"Name\\": \\"xx测试\\",\\n \\"ProjectId\\": 312112121,\\n \\"Category\\": \\"tempCode\\",\\n \\"FileType\\": \\"directory\\",\\n \\"Directory\\": \\"/xx/x\\",\\n \\"Content\\": \\"select 1;\\",\\n \\"GmtCreate\\": 1717483193830,\\n \\"GmtModified\\": 1717483193830,\\n \\"Creator\\": \\"1212111\\",\\n \\"LastModifier\\": \\"1212111\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询文件列表', - ], - 'GetBizEntityInfoByVersion' => [ - 'summary' => '查询指定版本的业务实体的详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dataphin:ExecuteManualNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ExecuteTriggerNode' => [ + 'summary' => '运行触发式节点。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Type', + 'name' => 'NodeId', 'in' => 'query', - 'schema' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], + 'schema' => ['title' => '节点id', 'description' => '节点id', 'type' => 'string', 'required' => true, 'example' => 'n_12345678'], ], [ - 'name' => 'Id', + 'name' => 'BizDate', 'in' => 'query', - 'schema' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], + 'schema' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'required' => true, 'example' => '2025-06-01'], ], [ - 'name' => 'VersionId', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '版本', - 'description' => '版本', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10110201'], + ], + [ + 'name' => 'Index', + 'in' => 'query', + 'schema' => ['title' => '如果节点ID为小时或分钟节点,一天会有多个实例,index代表实例的序号', 'description' => '如果节点ID为小时或分钟节点,一天会有多个实例,index代表实例的序号', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '开发或生产环境:DEV 开发、PROD 生产,默认PROD', 'description' => '开发或生产环境:DEV 开发、PROD 生产,默认PROD', 'type' => 'string', 'required' => false, 'example' => 'DEV'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'BizEntityInfo' => [ - 'title' => '新建结果', - 'description' => '新建结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '运行触发式节点', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'FixData' => [ + 'summary' => '重跑下游(修复链路数据), 支持强制重跑下游;影响范围:会产生计算成本、影响数据产出。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'FixDataCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '重跑下游(修复链路数据),可以选择强制重跑', + 'description' => '重跑下游(修复链路数据),可以选择强制重跑', + 'type' => 'object', + 'properties' => [ + 'RootInstanceId' => [ + 'title' => '根实例', + 'description' => '根实例', 'type' => 'object', 'properties' => [ - 'BizObject' => [ - 'title' => '业务对象', - 'description' => '业务对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '业务对象Id', - 'description' => '业务对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - 'Name' => [ - 'title' => '业务对象编码名称', - 'description' => '业务对象编码名称', - 'type' => 'string', - 'example' => 'create_object_code_name', - ], - 'DisplayName' => [ - 'title' => '业务对象名称', - 'description' => '业务对象名称', - 'type' => 'string', - 'example' => 'create_object_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Type' => [ - 'title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', - 'description' => '业务对象类型,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'ParentId' => [ - 'title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116306', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116106', - ], - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'RefDimTableCount' => [ - 'title' => '关联维度逻辑表数量', - 'description' => '关联维度逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RefSummaryTableCount' => [ - 'title' => '关联汇总逻辑表数量', - 'description' => '关联汇总逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ChildBizEntityIdList' => [ - 'title' => '业务对象的子业务对象', - 'description' => '业务对象的子业务对象', - 'type' => 'array', - 'items' => [ - 'title' => '子业务对象', - 'description' => '子业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1015', - ], - ], - 'OnlineStatus' => [ - 'title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '上线状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => '1', - ], - 'Status' => [ - 'title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', - 'description' => '状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => '100', - ], - 'ApprovalId' => [ - 'title' => '审批流程Id', - 'description' => '审批流程Id', - 'type' => 'string', - 'example' => '221323121212', - ], - 'ApprovalStatus' => [ - 'title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', - 'description' => '审批状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => 'APPROVING', - ], - ], + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 't_2323111'], + 'FieldInstanceIdList' => [ + 'title' => '当节点时逻辑表实例id时可以传,不传默认是全表', + 'description' => '字段ID:当节点是逻辑表实例id时可以传,不传默认是全表', + 'type' => 'array', + 'items' => ['description' => '字段ID', 'type' => 'string', 'required' => false, 'example' => '121'], + 'required' => false, ], - 'BizProcess' => [ - 'title' => '业务活动', - 'description' => '业务活动', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '业务活动Id', - 'description' => '业务活动Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - 'Name' => [ - 'title' => '业务活动名称', - 'description' => '业务活动名称', - 'type' => 'string', - 'example' => 'create_process_code_name', - ], - 'DisplayName' => [ - 'title' => '业务活动展示名', - 'description' => '业务活动展示名', - 'type' => 'string', - 'example' => '业务活动测试', - ], - 'Description' => [ - 'title' => '业务活动描述', - 'description' => '业务活动描述', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Type' => [ - 'title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', - 'description' => '业务活动类型,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => 'BIZ_EVENT', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116106', - ], - ], - 'BizEventEntityIdList' => [ - 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动包含的业务事件活动', - 'description' => '业务流程活动包含的业务事件活动', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1016106', - ], - ], - 'PreBizProcessIdList' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1016106', - ], - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'HasDependent' => [ - 'title' => '是否被依赖', - 'description' => '是否被依赖', - 'type' => 'boolean', - ], - 'OnlineStatus' => [ - 'title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '上线状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => '1', - ], - 'Status' => [ - 'title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', - 'description' => '状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => '100', - ], - 'ApprovalId' => [ - 'title' => '审批流程Id', - 'description' => '审批流程Id', - 'type' => 'string', - 'example' => '221323121212', - ], - 'ApprovalStatus' => [ - 'title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', - 'description' => '审批状态,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => 'APPROVING', - ], - 'RefFactTableCount' => [ - 'title' => '关联事实逻辑表数量', - 'description' => '关联事实逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + ], + 'required' => true, + ], + 'DownStreamInstanceIdList' => [ + 'title' => '下游实例(如果选择了下游范围,则此处可不传,否则需要传入下游实例列表) ', + 'description' => '下游实例(如果选择了下游范围,则此处可不传,否则需要传入下游实例列表) ', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '实例ID', 'type' => 'string', 'required' => false, 'example' => 't_2323421'], + 'FieldInstanceIdList' => [ + 'description' => '字段实例ID', + 'type' => 'array', + 'items' => ['description' => '字段实例ID', 'type' => 'string', 'required' => false, 'example' => 't_2311'], + 'required' => false, ], ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,参考“查询业务实体详情”接口', - 'type' => 'string', - 'example' => 'BIZ_OBJECT', - ], - 'DataDomainId' => [ - 'title' => '所属主题域', - 'description' => '所属主题域', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20101011', - ], - 'BizUnitId' => [ - 'title' => '业务对象业务板块Id', - 'description' => '业务对象业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '6798087749072704', - ], + 'required' => false, + 'description' => '', ], + 'required' => false, ], + 'ContainRootInstance' => ['title' => '根实例是否重跑,不选默认为是', 'description' => '根实例是否重跑,不选默认为是', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'DownstreamRange' => ['title' => '下游范围(快捷选项:ALL_FAILED_INSTANCE:所有失败实例; ALL_INSTANCE: 所有实例; ALL_FINAL_INSTANCE: 所有终态实例;) 不传默认需要根据传入的下游进行重跑', 'description' => '下游范围'."\n" + .'- ALL_FAILED_INSTANCE:所有失败实例'."\n" + .'- ALL_INSTANCE: 所有实例'."\n" + .'- ALL_FINAL_INSTANCE: 所有终态实例'."\n" + .'- 不传默认需要根据传入的下游进行重跑', 'type' => 'string', 'required' => false, 'example' => 'ALL_INSTANCE'], + 'ForceRerun' => ['title' => '释放强制重跑', 'description' => '是否强制重跑', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '132344'], + ], + 'required' => true, + ], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'SubmitId' => ['title' => '本次提交的提交id,如果选择downstreamRange为快捷模式,则此处会返回提交id,需要通过提交状态查询接口([QueryOperationSubmitJobStatus]),查询本次提交的状态。人为选择下游实例可忽略该返回', 'description' => '本次提交的提交ID', 'type' => 'string', 'example' => '12324234'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitId\\": \\"12324234\\"\\n}","type":"json"}]', + 'title' => '修复性数据重跑', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:10.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizEntityInfo\\": {\\n \\"BizObject\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_object_code_name\\",\\n \\"DisplayName\\": \\"create_object_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"NORMAL\\",\\n \\"ParentId\\": 116306,\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"RefDimTableCount\\": 1,\\n \\"RefSummaryTableCount\\": 1,\\n \\"ChildBizEntityIdList\\": [\\n 1015\\n ],\\n \\"OnlineStatus\\": \\"1\\",\\n \\"Status\\": \\"100\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\"\\n },\\n \\"BizProcess\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_EVENT\\",\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"BizEventEntityIdList\\": [\\n 1016106\\n ],\\n \\"PreBizProcessIdList\\": [\\n 1016106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"HasDependent\\": true,\\n \\"OnlineStatus\\": \\"1\\",\\n \\"Status\\": \\"100\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\",\\n \\"RefFactTableCount\\": 1\\n },\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704\\n }\\n}","type":"json"}]', - 'title' => '查询指定版本业务实体详情', - ], - 'GetBizEntityInfo' => [ - 'summary' => '获取业务实体详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:FixData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetAccountByRowPermissionId' => [ + 'summary' => '根据行级权限ID获取某一行级权限下的所有授权账号。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -15213,44 +9323,31 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Type', - 'in' => 'query', - 'schema' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,具体参考“创建业务实体”接口', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'GetAccountByRowPermissionIdQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求命令', + 'description' => '请求命令', + 'type' => 'object', + 'properties' => [ + 'RowPermissionId' => ['title' => '行级权限ID', 'description' => '行级权限ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '300001234'], + 'RuleIds' => [ + 'description' => '行级权限规则ID', + 'type' => 'array', + 'items' => ['description' => '行级权限规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '300001235'], + 'required' => true, + ], + ], 'required' => true, - 'example' => '101001201', ], ], ], @@ -15261,382 +9358,52 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'BizEntityInfo' => [ - 'title' => '业务实体详情', - 'description' => '业务实体详情', - 'type' => 'object', - 'properties' => [ - 'BizObject' => [ - 'title' => '业务对象', - 'description' => '业务对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '业务对象Id', - 'description' => '业务对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - 'Name' => [ - 'title' => '业务对象编码名称', - 'description' => '业务对象编码名称', - 'type' => 'string', - 'example' => 'create_object_code_name', - ], - 'DisplayName' => [ - 'title' => '业务对象名称', - 'description' => '业务对象名称', - 'type' => 'string', - 'example' => 'create_object_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Type' => [ - 'title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', - 'description' => '业务对象类型,具体参考“创建业务实体”接口', - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'ParentId' => [ - 'title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116306', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116106', - ], - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'RefDimTableCount' => [ - 'title' => '关联维度逻辑表数量', - 'description' => '关联维度逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RefSummaryTableCount' => [ - 'title' => '关联汇总逻辑表数量', - 'description' => '关联汇总逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ChildBizEntityIdList' => [ - 'title' => '业务对象的子业务对象', - 'description' => '业务对象的子业务对象', - 'type' => 'array', - 'items' => [ - 'title' => '子业务对象', - 'description' => '子业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1015', - ], - ], - 'OnlineStatus' => [ - 'title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '上线状态 '."\n" - .'- 未上线 SUBMITTED'."\n" - .'- 审批中 APPROVING'."\n" - .'- 已上线 PUBLISHED'."\n" - .'- 上线失败 REJECT', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'Status' => [ - 'title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', - 'description' => '状态:'."\n" - .'- 草稿态/未上线 DRAFT'."\n" - .'- 提交中 SUBMITTING'."\n" - .'- 已提交 SUBMITTED'."\n" - .'- 开发中 DEVELOPING'."\n" - .'- 发布中 PUBLISHING'."\n" - .'- 已发布 PUBLISHED', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'ApprovalId' => [ - 'title' => '审批流程Id', - 'description' => '审批流程Id', - 'type' => 'string', - 'example' => '221323121212', - ], - 'ApprovalStatus' => [ - 'title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', - 'description' => '审批状态:'."\n" - .'- 未提交 INIT'."\n" - .'- 审批中 APPROVING'."\n" - .'- 已通过 AGREE'."\n" - .'- 已拒绝 REJECT'."\n" - .'- 校验失败 FAILED'."\n" - .'- 主动撤回 REVOKE', - 'type' => 'string', - 'example' => 'APPROVING', - ], - ], - ], - 'BizProcess' => [ - 'title' => '业务活动', - 'description' => '业务活动', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '业务活动Id', - 'description' => '业务活动Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - 'Name' => [ - 'title' => '业务活动名称', - 'description' => '业务活动名称', - 'type' => 'string', - 'example' => 'create_process_code_name', - ], - 'DisplayName' => [ - 'title' => '业务活动展示名', - 'description' => '业务活动展示名', - 'type' => 'string', - 'example' => '业务活动测试', - ], - 'Description' => [ - 'title' => '业务活动描述', - 'description' => '业务活动描述', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Type' => [ - 'title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', - 'description' => '业务活动类型,具体参考“创建业务实体”接口', - 'type' => 'string', - 'example' => 'BIZ_EVENT', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '116106', - ], - ], - 'BizEventEntityIdList' => [ - 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动包含的业务事件活动', - 'description' => '业务流程活动包含的业务事件活动', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1016106', - ], - ], - 'PreBizProcessIdList' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1016106', - ], - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'HasDependent' => [ - 'title' => '是否被依赖', - 'description' => '是否被依赖', - 'type' => 'boolean', - ], - 'OnlineStatus' => [ - 'title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '上线状态 '."\n" - .'- 未上线 SUBMITTED'."\n" - .'- 审批中 APPROVING'."\n" - .'- 已上线 PUBLISHED'."\n" - .'- 上线失败 REJECT', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'Status' => [ - 'title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', - 'description' => '状态:'."\n" - .'- 草稿态/未上线 DRAFT'."\n" - .'- 提交中 SUBMITTING'."\n" - .'- 已提交 SUBMITTED'."\n" - .'- 开发中 DEVELOPING'."\n" - .'- 发布中 PUBLISHING'."\n" - .'- 已发布 PUBLISHED', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'ApprovalId' => [ - 'title' => '审批流程Id', - 'description' => '审批流程Id', - 'type' => 'string', - 'example' => '221323121212', - ], - 'ApprovalStatus' => [ - 'title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', - 'description' => '审批状态'."\n" - .'- 未提交 INIT'."\n" - .'- 审批中 APPROVING'."\n" - .'- 已通过 AGREE'."\n" - .'- 已拒绝 REJECT'."\n" - .'- 校验失败 FAILED'."\n" - .'- 主动撤回 REVOKE', - 'type' => 'string', - 'example' => 'APPROVING', - ], - 'RefFactTableCount' => [ - 'title' => '关联事实逻辑表数量', - 'description' => '关联事实逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'description' => '查询结果', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '行级权限规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '300001235'], + 'UserMappingList' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountType' => [ + 'title' => '规则绑定账号类型', + 'description' => '规则绑定账号类型', + 'type' => 'string', + 'enumValueTitles' => ['PERSONAL' => 'PERSONAL', 'USER_GROUP' => 'USER_GROUP', 'PRODUCE' => 'PRODUCE'], + 'example' => 'PERSONAL', + ], + 'Accounts' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '规则绑定账号ID', 'description' => '规则绑定账号ID', 'type' => 'string', 'example' => '300901111'], + 'AccountName' => ['title' => '规则绑定账号名称', 'description' => '规则绑定账号名称', 'type' => 'string', 'example' => '张三'], + ], + 'description' => '', + ], + 'enum' => ['PERSONAL', 'PRODUCE', 'USER_GROUP'], + ], + ], + 'description' => '', ], ], ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,具体参考“创建业务实体”接口', - 'type' => 'string', - 'example' => 'BIZ_OBJECT', - ], - 'DataDomainId' => [ - 'title' => '业务活动所属主题域Id', - 'description' => '业务活动所属主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20101011', - ], - 'BizUnitId' => [ - 'title' => '业务活动所属业务板块Id', - 'description' => '业务活动所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '6798087749072704', - ], + 'description' => '', ], ], ], @@ -15645,132 +9412,52 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"Id\\": 300001235,\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"300901111\\",\\n \\"AccountName\\": \\"张三\\"\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据行级权限ID获取某一行级权限下的所有授权账号', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizEntityInfo\\": {\\n \\"BizObject\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_object_code_name\\",\\n \\"DisplayName\\": \\"create_object_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"NORMAL\\",\\n \\"ParentId\\": 116306,\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"RefDimTableCount\\": 1,\\n \\"RefSummaryTableCount\\": 1,\\n \\"ChildBizEntityIdList\\": [\\n 1015\\n ],\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\"\\n },\\n \\"BizProcess\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_EVENT\\",\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"BizEventEntityIdList\\": [\\n 1016106\\n ],\\n \\"PreBizProcessIdList\\": [\\n 1016106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"HasDependent\\": true,\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\",\\n \\"RefFactTableCount\\": 1\\n },\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704\\n }\\n}","type":"json"}]', - 'title' => '查询业务实体详情', + 'ramActions' => [], ], - 'UpdateBizUnit' => [ - 'summary' => '更新数据板块。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetAdHocFile' => [ + 'summary' => '查询目录树即席查询文件。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '数据板块ID', - 'description' => '数据板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '545844456', - ], - 'Name' => [ - 'title' => '数据板块编码', - 'description' => '数据板块编码', - 'type' => 'string', - 'required' => true, - 'example' => 'bz_code_name', - ], - 'DisplayName' => [ - 'title' => '数据板块展示名', - 'description' => '数据板块展示名', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Icon' => [ - 'title' => '预制icon'."\n" - .' 电商:icon-e-commerce, 金融:icon-finance, 云计算:con-cloud-computing, 广告营销:icon-advertisement, 物流:icon-logistics, 文娱:icon-entertainment, 出行:icon-traffic, 健康:icon-health, 社交&通信:icon-social-contact, 餐饮:con-dining, 教育:icon-education, 环境:icon-environment 等', - 'description' => '预制icon,具体可参考”创建数据板块“接口', - 'type' => 'string', - 'required' => true, - 'example' => 'icon-environment', - ], - 'BizUnitAccountList' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'array', - 'items' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '20001201', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12132323'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12121111'], ], ], 'responses' => [ @@ -15780,35 +9467,24 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'FileInfo' => [ + 'title' => '即席查询文件详情', + 'description' => '即席查询文件详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12121111'], + 'Name' => ['title' => '文件名', 'description' => '文件名', 'type' => 'string', 'example' => 'xx测试'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12132323'], + 'Directory' => ['title' => '文件所在目录', 'description' => '文件所在目录', 'type' => 'string', 'example' => '/xx1/xx2/'], + 'Content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'example' => 'select 1;'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '12121'], + 'LastModifier' => ['title' => '编辑者', 'description' => '编辑者', 'type' => 'string', 'example' => '12121'], + ], ], ], ], @@ -15816,38 +9492,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileInfo\\": {\\n \\"Id\\": 12121111,\\n \\"Name\\": \\"xx测试\\",\\n \\"ProjectId\\": 12132323,\\n \\"Directory\\": \\"/xx1/xx2/\\",\\n \\"Content\\": \\"select 1;\\",\\n \\"Creator\\": \\"12121\\",\\n \\"LastModifier\\": \\"12121\\"\\n }\\n}","type":"json"}]', + 'title' => '查询即席查询文件', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '更新数据板块', - ], - 'ListBizUnits' => [ - 'summary' => '获取当前租户下的所有数据板块。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetAdHocTaskLog' => [ + 'summary' => '获取即席查询任务运行日志。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -15855,22 +9535,32 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'required' => true, 'example' => 'MaxCompute_SQL_300000843_1611548758327'], + ], + [ + 'name' => 'SubTaskId', + 'in' => 'query', + 'schema' => ['title' => '子任务ID, 从0开始', 'description' => '子任务ID, 从0开始', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + ], + [ + 'name' => 'Offset', + 'in' => 'query', + 'schema' => ['title' => '查询日志的偏移量, 根据返回的结果递增 初始值传0', 'description' => '查询日志的偏移量, 根据返回的结果递增 初始值传0', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1021'], ], ], 'responses' => [ @@ -15880,151 +9570,24 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'BizUnitList' => [ - 'title' => '数据板块详情', - 'description' => '数据板块详情', - 'type' => 'array', - 'items' => [ - 'title' => '数据板块详情', - 'description' => '数据板块详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据板块Id', - 'description' => '数据板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101001201', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'test01', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => '测试', - ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'Icon' => [ - 'title' => '数据板块图标', - 'description' => '数据板块图标', - 'type' => 'string', - 'example' => 'icon-e-commerce', - ], - 'Env' => [ - 'title' => '环境标识: DEV:开发环境,PROD:生产环境', - 'description' => '环境标识: DEV:开发环境,PROD:生产环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Mode' => [ - 'title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'type' => 'string', - 'example' => 'DEV_PROD', - ], - 'AccountList' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'array', - 'items' => [ - 'title' => '用户', - 'description' => '用户', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '20001201', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'LogInfo' => [ + 'title' => '日志详情', + 'description' => '日志详情', + 'type' => 'object', + 'properties' => [ + 'TaskId' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'example' => 'MaxCompute_SQL_300000843_1611548758327'], + 'SubTaskId' => ['title' => '子任务ID', 'description' => '子任务ID', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'TaskStatus' => ['title' => '任务运行状态: 等待资源 WAIT_RESOURCE', 'description' => '任务运行状态: 等待资源 WAIT_RESOURCE', 'type' => 'string', 'example' => 'WAIT_RESOURCE'], + 'HasNext' => ['title' => '是否有下一条日志', 'description' => '是否有下一条日志', 'type' => 'boolean'], + 'HasResult' => ['title' => '当前查询是否会产生结果', 'description' => '当前查询是否会产生结果', 'type' => 'boolean'], + 'NextOffset' => ['title' => '下条日志的起始位置', 'description' => '下条日志的起始位置', 'type' => 'integer', 'format' => 'int32', 'example' => '2021'], + 'Content' => ['title' => '运行日志', 'description' => '运行日志', 'type' => 'string', 'example' => 'test'], + ], ], ], ], @@ -16032,38 +9595,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"LogInfo\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"SubTaskId\\": 0,\\n \\"TaskStatus\\": \\"WAIT_RESOURCE\\",\\n \\"HasNext\\": true,\\n \\"HasResult\\": true,\\n \\"NextOffset\\": 2021,\\n \\"Content\\": \\"test\\"\\n }\\n}","type":"json"}]', + 'title' => '获取即席查询任务运行日志', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"BizUnitList\\": [\\n {\\n \\"Id\\": 101001201,\\n \\"Name\\": \\"test01\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"Icon\\": \\"icon-e-commerce\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Mode\\": \\"DEV_PROD\\",\\n \\"AccountList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询当前租户下的所有数据板块', - ], - 'GetBizUnitInfo' => [ - 'summary' => '获取数据板块详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocTaskLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetAdHocTaskResult' => [ + 'summary' => '获取即席查询的任务运行结果。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -16071,34 +9638,27 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '数据板块Id', - 'description' => '数据板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'TaskId', + 'in' => 'query', + 'schema' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'required' => true, 'example' => 'MaxCompute_SQL_300000843_1611548758327'], + ], + [ + 'name' => 'SubTaskId', + 'in' => 'query', + 'schema' => ['title' => '子任务ID', 'description' => '子任务ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], ], ], 'responses' => [ @@ -16108,219 +9668,19 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'BizUnitInfo' => [ - 'title' => '数据板块详情', - 'description' => '数据板块详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ExecuteResult' => [ + 'title' => '运行结果', + 'description' => '运行结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '数据板块Id', - 'description' => '数据板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101001201', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'test01', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => '测试', - ], - 'EnvList' => [ - 'title' => '生产/开发 2个环境对应的板块英文名', - 'description' => '生产/开发 2个环境对应的板块英文名', - 'type' => 'array', - 'items' => [ - 'title' => '生产/开发 2个环境对应的板块英文名', - 'description' => '生产/开发 2个环境对应的板块英文名', - 'type' => 'object', - 'properties' => [ - 'EnvName' => [ - 'title' => '环境标识: PROD / DEV', - 'description' => '环境标识: PROD / DEV', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Name' => [ - 'title' => '英文名', - 'description' => '英文名', - 'type' => 'string', - 'example' => 'LD_test001_dev', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => '测试数据板块001_开发', - ], - ], - ], - ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'Icon' => [ - 'title' => '数据板块图标', - 'description' => '数据板块图标', - 'type' => 'string', - 'example' => 'icon-e-commerce', - ], - 'Mode' => [ - 'title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'type' => 'string', - 'example' => 'DEV_PROD', - ], - 'AccountList' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'array', - 'items' => [ - 'title' => '用户', - 'description' => '用户', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '20001201', - ], - ], - ], - ], - 'BusinessLeaderList' => [ - 'title' => '业务负责人', - 'description' => '业务负责人', - 'type' => 'array', - 'items' => [ - 'title' => '用户', - 'description' => '用户', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '20001201', - ], - ], - ], - ], - 'DataLeaderList' => [ - 'title' => '数据负责人', - 'description' => '数据负责人', - 'type' => 'array', - 'items' => [ - 'title' => '用户', - 'description' => '用户', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '20001201', - ], - ], - ], - ], - 'DataDomainCount' => [ - 'title' => '主题域个数', - 'description' => '主题域个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'BizObjectCount' => [ - 'title' => '业务对象个数', - 'description' => '业务对象个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'BizProcessCount' => [ - 'title' => '业务活动个数', - 'description' => '业务活动个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], + 'TaskId' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'example' => 'MaxCompute_SQL_300000843_1611548758327'], + 'ScheduleTaskId' => ['title' => '对应调度任务ID', 'description' => '对应调度任务ID', 'type' => 'string', 'example' => 't_2242892326444990464_20210125_2242892326444990465'], + 'Result' => ['title' => '任务执行结果', 'description' => '任务执行结果', 'type' => 'string', 'example' => '1'], ], ], ], @@ -16329,73 +9689,60 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ExecuteResult\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"ScheduleTaskId\\": \\"t_2242892326444990464_20210125_2242892326444990465\\",\\n \\"Result\\": \\"1\\"\\n }\\n}","type":"json"}]', + 'title' => '获取即席查询的任务运行结果', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": 101001201,\\n \\"Name\\": \\"test01\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"EnvList\\": [\\n {\\n \\"EnvName\\": \\"DEV\\",\\n \\"Name\\": \\"LD_test001_dev\\",\\n \\"DisplayName\\": \\"测试数据板块001_开发\\"\\n }\\n ],\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"Icon\\": \\"icon-e-commerce\\",\\n \\"Mode\\": \\"DEV_PROD\\",\\n \\"AccountList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"BusinessLeaderList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"DataLeaderList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"DataDomainCount\\": 1,\\n \\"BizObjectCount\\": 1,\\n \\"BizProcessCount\\": 1\\n }\\n}","type":"json"}]', - 'title' => '查询数据板块详情', - ], - 'DeleteBizUnit' => [ - 'summary' => '删除数据板块。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocTaskResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetAlertEvent' => [ + 'summary' => '获取告警事件详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], + 'schema' => ['title' => '告警事件Id', 'description' => '告警事件Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12345'], ], ], 'responses' => [ @@ -16405,229 +9752,410 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除数据板块', - ], - 'CreateBizUnit' => [ - 'summary' => '创建数据板块。', - 'methods' => [ - 'post', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'True'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'AlertEventInfo' => [ + 'title' => '请求结果', + 'description' => '请求结果', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '告警事件id', 'description' => '告警事件id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'AlertObject' => [ + 'title' => '告警对象', + 'description' => '告警对象', + 'type' => 'object', + 'properties' => [ + 'SourceSystemType' => ['title' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'description' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'ALL'], + 'Name' => ['title' => '告警对象名称', 'description' => '告警对象名称', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'description' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH_PYTHON37'], + ], + ], + 'LatestAlertTime' => ['title' => '最新告警时间', 'description' => '最新告警时间', 'type' => 'string', 'example' => '2024-11-05 16:19:33'], + 'FirstAlertTime' => ['title' => '首次告警时间', 'description' => '首次告警时间', 'type' => 'string', 'example' => '2024-11-05 16:19:33'], + 'AlertReceiverList' => [ + 'title' => '告警接收人列表', + 'description' => '告警接收人列表', + 'type' => 'array', + 'items' => [ + 'title' => '告警接收人', + 'description' => '告警接收人', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'description' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'type' => 'string', 'example' => 'OWNER'], + 'AlertChannelTypeList' => [ + 'title' => '告警渠道类型列表', + 'description' => '告警渠道类型列表', + 'type' => 'array', + 'items' => ['title' => '告警渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'description' => '告警渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'type' => 'string', 'example' => 'SMS'], + ], + 'CustomAlertChannelIdList' => [ + 'title' => '自定义告警渠道id列表', + 'description' => '自定义告警渠道id列表', + 'type' => 'array', + 'items' => ['title' => '自定义告警渠道id', 'description' => '自定义告警渠道id', 'type' => 'string', 'example' => '12345'], + ], + 'UserList' => [ + 'title' => '告警用户列表', + 'description' => '告警用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户信息', + 'description' => '用户信息', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'Admin'], + ], + ], + ], + 'OnCallTableName' => ['title' => '值班表名称', 'description' => '值班表名称', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'AlertReason' => [ + 'title' => '告警原因', + 'description' => '告警原因', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'description' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH_FINISH'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2024-11-05 16:19:32'], + 'UniqueKey' => ['title' => '唯一标识', 'description' => '唯一标识', 'type' => 'string', 'example' => 't_6340131422711644160_20241104_6340142'], + 'AlertReasonParamList' => [ + 'title' => '告警原因参数列表', + 'description' => '告警原因参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '告警原因参数', + 'description' => '告警原因参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '告警原因参数名', 'description' => '告警原因参数名', 'type' => 'string', 'example' => 'biz_date'], + 'Value' => ['title' => '告警原因参数值', 'description' => '告警原因参数值', 'type' => 'string', 'example' => '2024-11-04 00:00:00'], + ], + ], + ], + ], + ], + 'BelongProject' => [ + 'title' => '所属项目', + 'description' => '所属项目', + 'type' => 'object', + 'properties' => [ + 'ProjectName' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'example' => 'project_1'], + 'BizName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'biz_1'], + ], + ], + 'Status' => ['title' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'description' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'type' => 'string', 'example' => 'FINISH'], + 'AlertFrequency' => ['title' => '告警频率:'."\n" + .'- ONCE:即时告警'."\n" + .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', 'description' => '告警频率:'."\n" + .'- ONCE:即时告警'."\n" + .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', 'type' => 'string', 'example' => 'ONCE'], + 'TotalAlertTimes' => ['title' => '告警次数', 'description' => '告警次数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DoNotDisturbEndTime' => ['title' => '消息免打扰到期时间', 'description' => '消息免打扰到期时间', 'type' => 'string', 'example' => '2024-11-05 00:00:00'], + 'UrlConfig' => [ + 'title' => 'Url信息', + 'description' => 'Url信息', + 'type' => 'object', + 'properties' => [ + 'ObjectUrl' => ['title' => '告警对象页面Url', 'description' => '告警对象页面Url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test1'], + 'LogUrl' => ['title' => '日志页面Url', 'description' => '日志页面Url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test2'], + 'AlertConfigUrl' => ['title' => '告警配置页面url', 'description' => '告警配置页面url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test3'], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"AlertEventInfo\\": {\\n \\"Id\\": 12345,\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"ALL\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"VDM_BATCH_PYTHON37\\"\\n },\\n \\"LatestAlertTime\\": \\"2024-11-05 16:19:33\\",\\n \\"FirstAlertTime\\": \\"2024-11-05 16:19:33\\",\\n \\"AlertReceiverList\\": [\\n {\\n \\"Type\\": \\"OWNER\\",\\n \\"AlertChannelTypeList\\": [\\n \\"SMS\\"\\n ],\\n \\"CustomAlertChannelIdList\\": [\\n \\"12345\\"\\n ],\\n \\"UserList\\": [\\n {\\n \\"Name\\": \\"Admin\\"\\n }\\n ],\\n \\"OnCallTableName\\": \\"test\\"\\n }\\n ],\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"2024-11-05 16:19:32\\",\\n \\"UniqueKey\\": \\"t_6340131422711644160_20241104_6340142\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-04 00:00:00\\"\\n }\\n ]\\n },\\n \\"BelongProject\\": {\\n \\"ProjectName\\": \\"project_1\\",\\n \\"BizName\\": \\"biz_1\\"\\n },\\n \\"Status\\": \\"FINISH\\",\\n \\"AlertFrequency\\": \\"ONCE\\",\\n \\"TotalAlertTimes\\": 1,\\n \\"DoNotDisturbEndTime\\": \\"2024-11-05 00:00:00\\",\\n \\"UrlConfig\\": {\\n \\"ObjectUrl\\": \\"https://dataphin.com/ops/test1\\",\\n \\"LogUrl\\": \\"https://dataphin.com/ops/test2\\",\\n \\"AlertConfigUrl\\": \\"https://dataphin.com/ops/test3\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '获取告警事件详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAlertEvent', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetAssetMappingRelations' => [ + 'summary' => '根据资产对象GUID查询映射关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'AssetMappingQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', + 'title' => '查询指令', + 'description' => '查询指令', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_code_name', - ], - 'DisplayName' => [ - 'title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息,128字符以内', - 'description' => '业务对象描述信息,128字符以内', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Icon' => [ - 'title' => '预制icon'."\n" - .' 电商:icon-e-commerce, 金融:icon-finance, 云计算:con-cloud-computing, 广告营销:icon-advertisement, 物流:icon-logistics, 文娱:icon-entertainment, 出行:icon-traffic, 健康:icon-health, 社交&通信:icon-social-contact, 餐饮:con-dining, 教育:icon-education, 环境:icon-environment 等', - 'description' => '预制icon'."\n" - .'- 电商:icon-e-commerce'."\n" - .'- 金融:icon-finance'."\n" - .'- 云计算:con-cloud-computing'."\n" - .'- 广告营销:icon-advertisement'."\n" - .'- 物流:icon-logistics'."\n" - .'- 文娱:icon-entertainment'."\n" - .'- 出行:icon-traffic'."\n" - .'- 健康:icon-health'."\n" - .'- 社交&通信:icon-social-contact'."\n" - .'- 餐饮:con-dining'."\n" - .'- 教育:icon-education'."\n" - .'- 环境:icon-environment', - 'type' => 'string', - 'required' => true, - 'example' => 'icon-environment', - ], - 'Mode' => [ - 'title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV_PROD', - ], - 'BizUnitAccountList' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'array', - 'items' => [ - 'title' => '板块架构师', - 'description' => '板块架构师', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '20001201', - ], - ], - 'required' => true, - ], - 'required' => true, - ], + 'Guid' => ['title' => '资产对象guid', 'description' => '资产对象guid', 'type' => 'string', 'required' => true, 'example' => '1121'], + 'AssetType' => ['title' => '资产对象类型: COLUMN 字段、INDEX 指标', 'description' => '资产对象类型: COLUMN 字段、INDEX 指标', 'type' => 'string', 'required' => true, 'example' => 'INDEX'], + 'RelationType' => ['title' => '映射关系类型: VALID 已映射、INVALID 无效映射', 'description' => '映射关系类型: VALID 已映射、INVALID 无效映射', 'type' => 'string', 'required' => true, 'example' => 'VALID'], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ - 'title' => '新建结果', - 'description' => '新建结果', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '新建的数据板块ID', - 'description' => '新建的数据板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '545844456', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'MappingRelationList' => [ + 'title' => '映射关系列表', + 'description' => '映射关系列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ModifyTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Guid' => ['title' => '资产guid', 'description' => '资产guid', 'type' => 'string', 'example' => '1122'], + 'Name' => ['title' => '资产名称', 'description' => '资产名称', 'type' => 'string', 'example' => 'test'], + 'AssetType' => ['title' => '资产类型: COLUMN 字段、INDEX 指标', 'description' => '资产类型: COLUMN 字段、INDEX 指标', 'type' => 'string', 'example' => 'COLUMN'], + 'StandardId' => ['title' => '标准id', 'description' => '标准id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'StandardName' => ['title' => '标准名称', 'description' => '标准名称', 'type' => 'string', 'example' => 'test'], + 'StandardCode' => ['title' => '标准编码', 'description' => '标准编码', 'type' => 'string', 'example' => 'cc'], + 'StandardSetId' => ['title' => '标准集id', 'description' => '标准集id', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'StandardSetName' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'example' => 'test'], + 'StandardSetDirectory' => ['title' => '标准集所在的文件夹', 'description' => '标准集所在的文件夹', 'type' => 'string', 'example' => '/dir1'], + 'StandardStage' => ['title' => '标准阶段', 'description' => '标准阶段', 'type' => 'string', 'example' => 'PROD'], ], ], ], @@ -16637,243 +10165,274 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"MappingRelationList\\": [\\n {\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Guid\\": \\"1122\\",\\n \\"Name\\": \\"test\\",\\n \\"AssetType\\": \\"COLUMN\\",\\n \\"StandardId\\": 1,\\n \\"StandardName\\": \\"test\\",\\n \\"StandardCode\\": \\"cc\\",\\n \\"StandardSetId\\": 2,\\n \\"StandardSetName\\": \\"test\\",\\n \\"StandardSetDirectory\\": \\"/dir1\\",\\n \\"StandardStage\\": \\"PROD\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据资产对象GUID查询映射关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"BizUnitId\\": 545844456\\n }\\n}","type":"json"}]', - 'title' => '创建数据板块', + 'ramActions' => [], ], - 'UpdateBizEntity' => [ - 'summary' => '更新业务实体。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetBatchTaskInfo' => [ + 'summary' => '获取离线计算任务详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识: dev、prod,默认值为dev', 'description' => '环境标识: dev、prod,默认值为dev', 'type' => 'string', 'required' => false, 'example' => 'dev'], + ], + [ + 'name' => 'IncludeAllUpStreams', + 'in' => 'query', + 'schema' => ['title' => '是否包含完整的上游节点(包括无效依赖),默认false', 'description' => '是否包含完整的上游节点(包括无效依赖),默认false', 'type' => 'boolean', 'required' => false], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '变更请求', - 'description' => '变更请求', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,参考”创建业务实体“接口', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], - 'DataDomainId' => [ - 'title' => '业务活动所属主题域Id', - 'description' => '业务活动所属主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '20101011', - ], - 'BizUnitId' => [ - 'title' => '业务活动所属业务板块Id', - 'description' => '业务活动所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], - 'BizObject' => [ - 'title' => '业务对象', - 'description' => '业务对象', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'TaskInfo' => [ + 'title' => '任务详情', + 'description' => '任务详情', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_code_name', - ], - 'DisplayName' => [ - 'title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息,128字符以内', - 'description' => '业务对象描述信息,128字符以内', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人用户Id', - 'description' => '业务对象负责人用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '30010010', - ], - 'ParentId' => [ - 'title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '116306', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', - 'description' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], + 'Name' => ['title' => '任务名称', 'description' => '任务名称', 'type' => 'string', 'example' => '测试任务1'], + 'Status' => ['title' => '发布状态: 草稿0、已提交1、开发中100', 'description' => '发布状态: 草稿0、已提交1、开发中100', 'type' => 'string', 'example' => '测试任务1'], + 'Published' => ['title' => '是否已发布', 'description' => '是否已发布', 'type' => 'boolean'], + 'NeedPublish' => ['title' => '是否需要发布', 'description' => '是否需要发布', 'type' => 'boolean'], + 'HasDevNode' => ['title' => '是否有开发环境节点', 'description' => '是否有开发环境节点', 'type' => 'boolean'], + 'NodeId' => ['title' => '节点Id', 'description' => '节点Id', 'type' => 'string', 'example' => 'n_1011_21232132322'], + 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => '测试任务1'], + 'NodeOutputNameList' => [ + 'title' => '节点输出名称列表', + 'description' => '节点输出名称列表', 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '116106', + 'items' => ['title' => '节点输出名称', 'description' => '节点输出名称', 'type' => 'string', 'example' => 'xx测试'], + ], + 'OwnerUserId' => ['title' => '节点负责人用户id', 'description' => '节点负责人用户id', 'type' => 'string', 'example' => '30231123'], + 'OwnerName' => ['title' => '节点负责人名称', 'description' => '节点负责人名称', 'type' => 'string', 'example' => '张三'], + 'OperatorUserId' => ['title' => '当前操作的用户id', 'description' => '当前操作的用户id', 'type' => 'string', 'example' => '30231123'], + 'NodeDescription' => ['title' => '任务描述', 'description' => '任务描述', 'type' => 'string', 'example' => 'xx测试'], + 'TaskType' => ['title' => '任务类型: MaxCompute_SQL 5、Shell 10、Python 21', 'description' => '任务类型,可参见创建离线计算任务接口', 'type' => 'integer', 'format' => 'int32', 'example' => '21'], + 'ScheduleType' => ['title' => '节点类型: 周期任务1、手动任务3', 'description' => '节点类型: '."\n" + .'- 周期任务:1'."\n" + .'- 手动任务:3', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'SchedulePeriod' => ['title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', 'description' => '调度周期'."\n" + .'- 年:YEARLY'."\n" + .'- 月:MONTHLY'."\n" + .'- 周:WEEKLY'."\n" + .'- 日:DAILY'."\n" + .'- 小时:HOURLY'."\n" + .'- 分钟:MINUTELY', 'type' => 'string', 'example' => 'DAILY'], + 'CronExpression' => ['title' => '自动调度的cron表达式, 可参考Linux cron表达式', 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', 'type' => 'string', 'example' => '0 0 1 * * ?'], + 'CustomScheduleConfig' => [ + 'title' => '自定义调度间隔配置', + 'description' => '自定义调度间隔配置', + 'type' => 'object', + 'properties' => [ + 'SchedulePeriod' => ['title' => '调度周期', 'description' => '调度周期', 'type' => 'string', 'example' => 'DAILY'], + 'Interval' => ['title' => '自定义间隔', 'description' => '自定义间隔', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'IntervalUnit' => ['title' => '间隔单位:MINUTE、HOUR', 'description' => '间隔单位:MINUTE、HOUR', 'type' => 'string', 'example' => 'HOUR'], + 'StartTime' => ['title' => '开始时间: HH:mm', 'description' => '开始时间: HH:mm', 'type' => 'string', 'example' => '08:00'], + 'EndTime' => ['title' => '结束时间: HH:mm', 'description' => '结束时间: HH:mm', 'type' => 'string', 'example' => '20:59'], ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'BizProcess' => [ - 'title' => '业务活动', - 'description' => '业务活动', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'description' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'type' => 'string', - 'required' => true, - 'example' => 'create_process_code_name', - ], - 'DisplayName' => [ - 'title' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'description' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'type' => 'string', - 'required' => true, - 'example' => 'create_process_name', - ], - 'Description' => [ - 'title' => '业务活动描述信息,128字符以内', - 'description' => '业务活动描述信息,128字符以内', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务活动负责人用户Id', - 'description' => '业务活动负责人用户Id', - 'type' => 'string', - 'required' => true, - 'example' => '30010010', ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', - 'description' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'Code' => ['title' => '任务代码', 'description' => '任务代码', 'type' => 'string', 'example' => 'show tables;'], + 'Remark' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'test xx'], + 'DagId' => ['title' => '所属的dagId', 'description' => '所属的dagId', 'type' => 'string', 'example' => 'dag_102121211'], + 'ParamList' => [ + 'title' => '节点自定义参数列表', + 'description' => '节点自定义参数列表', 'type' => 'array', 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '116106', + 'title' => '节点自定义参数', + 'description' => '节点自定义参数', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'example' => 'Value'], + 'Key' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'key'], + ], ], - 'required' => false, ], - 'BizEventEntityIdList' => [ - 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'Rerunable' => ['title' => '是否可以重跑', 'description' => '是否可以重跑', 'type' => 'boolean'], + 'Priority' => ['title' => '任务调度优先级, 1-9值越大表示优先级越低', 'description' => '任务调度优先级, 1-9值越大表示优先级越低', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NodeStatus' => ['title' => '节点状态: 正常 1、暂停 2、空跑 3', 'description' => '节点状态: 正常 1、暂停 2、空跑 3', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Paused' => ['title' => '节点是否被暂停调度', 'description' => '节点是否被暂停调度', 'type' => 'boolean'], + 'NodeFrom' => ['title' => '节点来源,节点由某个组织或应用创建的', 'description' => '节点来源,节点由某个组织或应用创建的', 'type' => 'string', 'example' => 'openapi'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '131211211'], + 'UpStreamList' => [ + 'title' => '上游依赖', + 'description' => '上游依赖', 'type' => 'array', 'items' => [ - 'title' => '业务流程活动包含的业务事件活动', - 'description' => '业务流程活动包含的业务事件活动', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1016106', + 'title' => '节点关联', + 'description' => '节点关联', + 'type' => 'object', + 'properties' => [ + 'SourceTableName' => ['title' => '输入表名称', 'description' => '输入表名称', 'type' => 'string', 'example' => 't_input1'], + 'SourceNodeId' => ['title' => '上游节点Id', 'description' => '上游节点Id', 'type' => 'string', 'example' => 'n_2001'], + 'PeriodDiff' => ['title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NodeType' => ['title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', 'description' => '上游依赖节点类型'."\n" + .'- PHYSICAL:物理节点'."\n" + .'- LOGICAL:逻辑表依赖', 'type' => 'string', 'example' => 'PHYSICAL'], + 'SourceNodeName' => ['title' => '上游节点名', 'description' => '上游节点名', 'type' => 'string', 'example' => 't_input1'], + 'DependPeriod' => [ + 'title' => '依赖周期', + 'description' => '依赖周期', + 'type' => 'object', + 'properties' => [ + 'PeriodType' => ['title' => '依赖周期类型: CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', 'description' => '依赖周期类型: '."\n" + .'- CURRENT_PERIOD'."\n" + .'- LAST_PERIOD'."\n" + .'- LAST_N_PERIOD'."\n" + .'- LAST_24_HOUR', 'type' => 'string', 'example' => 'CURRENT_PERIOD'], + 'PeriodOffset' => ['title' => '周期偏移量, LAST_N_PERIOD时须传值', 'description' => '周期偏移量, LAST_N_PERIOD时须传值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'SourceNodeUserName' => ['title' => '上游的用户名', 'description' => '上游的用户名', 'type' => 'string', 'example' => '张三'], + 'SourceNodeEnabled' => ['title' => '上游节点是否生效', 'description' => '上游节点是否生效', 'type' => 'boolean'], + 'SourceNodeOutputName' => ['title' => '上游节点的输出名称', 'description' => '上游节点的输出名称', 'type' => 'string', 'example' => 't_input1'], + 'DependStrategy' => ['title' => '依赖策略: ALL,FIRST,LAST,NEAR', 'description' => '依赖策略: ALL,FIRST,LAST,NEAR', 'type' => 'string', 'example' => 'LAST'], + 'FieldList' => [ + 'title' => '依赖的逻辑表字段', + 'description' => '依赖的逻辑表字段', + 'type' => 'array', + 'items' => ['title' => '依赖的逻辑表字段', 'description' => '依赖的逻辑表字段', 'type' => 'string', 'example' => 'column1'], + ], + ], ], - 'required' => false, ], - 'PreBizProcessIdList' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1016106', + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'string', 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'example' => 'erp'], + 'SparkClientInfo' => [ + 'title' => 'spark客户端信息', + 'description' => 'spark客户端信息', + 'type' => 'object', + 'properties' => [ + 'SparkClientVersion' => ['title' => 'spark客户端版本名称', 'description' => 'spark客户端版本名称', 'type' => 'string', 'example' => 'abc'], ], - 'required' => false, ], + 'DevelopOwnerId' => ['title' => '开发负责人用户id', 'description' => '开发负责人用户id', 'type' => 'string', 'example' => '30231123'], + 'DevelopOwnerName' => ['title' => '开发负责人名称', 'description' => '开发负责人名称', 'type' => 'string', 'example' => '张三'], + 'OpsOwnerId' => ['title' => '运维负责人用户id', 'description' => '运维负责人用户id', 'type' => 'string', 'example' => '30231123'], + 'OpsOwnerName' => ['title' => '运维负责人名称', 'description' => '运维负责人名称', 'type' => 'string', 'example' => '张三'], ], - 'required' => false, ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskInfo\\": {\\n \\"FileId\\": 12113111,\\n \\"Name\\": \\"测试任务1\\",\\n \\"Status\\": \\"测试任务1\\",\\n \\"Published\\": true,\\n \\"NeedPublish\\": true,\\n \\"HasDevNode\\": true,\\n \\"NodeId\\": \\"n_1011_21232132322\\",\\n \\"NodeName\\": \\"测试任务1\\",\\n \\"NodeOutputNameList\\": [\\n \\"xx测试\\"\\n ],\\n \\"OwnerUserId\\": \\"30231123\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OperatorUserId\\": \\"30231123\\",\\n \\"NodeDescription\\": \\"xx测试\\",\\n \\"TaskType\\": 21,\\n \\"ScheduleType\\": 3,\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"CronExpression\\": \\"0 0 1 * * ?\\",\\n \\"CustomScheduleConfig\\": {\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"Interval\\": 1,\\n \\"IntervalUnit\\": \\"HOUR\\",\\n \\"StartTime\\": \\"08:00\\",\\n \\"EndTime\\": \\"20:59\\"\\n },\\n \\"Code\\": \\"show tables;\\",\\n \\"Remark\\": \\"test xx\\",\\n \\"DagId\\": \\"dag_102121211\\",\\n \\"ParamList\\": [\\n {\\n \\"Value\\": \\"Value\\",\\n \\"Key\\": \\"key\\"\\n }\\n ],\\n \\"Rerunable\\": true,\\n \\"Priority\\": 1,\\n \\"NodeStatus\\": 1,\\n \\"Paused\\": true,\\n \\"NodeFrom\\": \\"openapi\\",\\n \\"ProjectId\\": 131211211,\\n \\"UpStreamList\\": [\\n {\\n \\"SourceTableName\\": \\"t_input1\\",\\n \\"SourceNodeId\\": \\"n_2001\\",\\n \\"PeriodDiff\\": 1,\\n \\"NodeType\\": \\"PHYSICAL\\",\\n \\"SourceNodeName\\": \\"t_input1\\",\\n \\"DependPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"SourceNodeUserName\\": \\"张三\\",\\n \\"SourceNodeEnabled\\": true,\\n \\"SourceNodeOutputName\\": \\"t_input1\\",\\n \\"DependStrategy\\": \\"LAST\\",\\n \\"FieldList\\": [\\n \\"column1\\"\\n ]\\n }\\n ],\\n \\"DataSourceId\\": \\"12131111\\",\\n \\"DataSourceCatalog\\": \\"mysql_catalog\\",\\n \\"DataSourceSchema\\": \\"erp\\",\\n \\"SparkClientInfo\\": {\\n \\"SparkClientVersion\\": \\"abc\\"\\n },\\n \\"DevelopOwnerId\\": \\"30231123\\",\\n \\"DevelopOwnerName\\": \\"张三\\",\\n \\"OpsOwnerId\\": \\"30231123\\",\\n \\"OpsOwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', + 'title' => '查询离线计算任务详情', + 'changeSet' => [ + ['createdAt' => '2025-06-24T11:51:44.000Z', 'description' => '响应参数发生变更'], + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'GetBatchTaskInfoByVersion' => [ + 'summary' => '获取离线计算任务指定版本任务详情。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + ], + [ + 'name' => 'VersionId', + 'in' => 'query', + 'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ @@ -16881,35 +10440,135 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'TaskInfo' => [ + 'title' => '任务详情', + 'description' => '任务详情', + 'type' => 'object', + 'properties' => [ + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], + 'Name' => ['title' => '任务名称', 'description' => '任务名称', 'type' => 'string', 'example' => '测试任务1'], + 'Status' => ['title' => '发布状态: 草稿0、已提交1、开发中100', 'description' => '发布状态: 草稿0、已提交1、开发中100', 'type' => 'string', 'example' => '测试任务1'], + 'Published' => ['title' => '是否已发布', 'description' => '是否已发布', 'type' => 'boolean'], + 'NeedPublish' => ['title' => '是否需要发布', 'description' => '是否需要发布', 'type' => 'boolean'], + 'HasDevNode' => ['title' => '是否有开发环境节点', 'description' => '是否有开发环境节点', 'type' => 'boolean'], + 'NodeId' => ['title' => '节点Id', 'description' => '节点Id', 'type' => 'string', 'example' => 'n_1011_21232132322'], + 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => '测试任务1'], + 'NodeOutputNameList' => [ + 'title' => '节点输出名称列表', + 'description' => '节点输出名称列表', + 'type' => 'array', + 'items' => ['title' => '节点输出名称', 'description' => '节点输出名称', 'type' => 'string', 'example' => 'xx测试'], + ], + 'OwnerUserId' => ['title' => '节点负责人用户id', 'description' => '节点负责人用户id', 'type' => 'string', 'example' => '30231123'], + 'OwnerName' => ['title' => '节点负责人名称', 'description' => '节点负责人名称', 'type' => 'string', 'example' => '张三'], + 'OperatorUserId' => ['title' => '当前操作的用户id', 'description' => '当前操作的用户id', 'type' => 'string', 'example' => '30231123'], + 'NodeDescription' => ['title' => '任务描述', 'description' => '任务描述', 'type' => 'string', 'example' => 'xx测试'], + 'TaskType' => ['title' => '任务类型: MaxCompute_SQL 5、Shell 10、Python 21', 'description' => '任务类型,可参见创建离线计算任务接口', 'type' => 'integer', 'format' => 'int32', 'example' => '21'], + 'ScheduleType' => ['title' => '节点类型: 周期任务1、手动任务3', 'description' => '节点类型'."\n" + .'- 周期任务:1'."\n" + .'- 手动任务:3', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'SchedulePeriod' => ['title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', 'description' => '调度周期'."\n" + .'- 年:YEARLY'."\n" + .'- 月:MONTHLY'."\n" + .'- 周:WEEKLY'."\n" + .'- 日:DAILY'."\n" + .'- 小时:HOURLY'."\n" + .'- 分钟:MINUTELY', 'type' => 'string', 'example' => 'DAILY'], + 'CronExpression' => ['title' => '自动调度的cron表达式, 可参考Linux cron表达式', 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', 'type' => 'string', 'example' => '0 0 1 * * ?'], + 'CustomScheduleConfig' => [ + 'title' => '自定义调度间隔配置', + 'description' => '自定义调度间隔配置', + 'type' => 'object', + 'properties' => [ + 'SchedulePeriod' => ['title' => '调度周期', 'description' => '调度周期', 'type' => 'string', 'example' => 'DAILY'], + 'Interval' => ['title' => '自定义间隔', 'description' => '自定义间隔', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'IntervalUnit' => ['title' => '间隔单位:MINUTE、HOUR', 'description' => '间隔单位:MINUTE、HOUR', 'type' => 'string', 'example' => 'HOUR'], + 'StartTime' => ['title' => '开始时间: HH:mm', 'description' => '开始时间: HH:mm', 'type' => 'string', 'example' => '08:00'], + 'EndTime' => ['title' => '结束时间: HH:mm', 'description' => '结束时间: HH:mm', 'type' => 'string', 'example' => '20:59'], + ], + ], + 'Code' => ['title' => '任务代码', 'description' => '任务代码', 'type' => 'string', 'example' => 'show tables;'], + 'Remark' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'example' => 'test xx'], + 'DagId' => ['title' => '所属的dagId', 'description' => '所属的dagId', 'type' => 'string', 'example' => 'dag_102121211'], + 'ParamList' => [ + 'title' => '节点自定义参数列表', + 'description' => '节点自定义参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '节点自定义参数', + 'description' => '节点自定义参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'key'], + 'Value' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'example' => 'Value'], + ], + ], + ], + 'Rerunable' => ['title' => '是否可以重跑', 'description' => '是否可以重跑', 'type' => 'boolean'], + 'Priority' => ['title' => '任务调度优先级, 1-9值越大表示优先级越低', 'description' => '任务调度优先级, 1-9值越大表示优先级越低', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NodeStatus' => ['title' => '节点状态: 正常 1、暂停 2、空跑 3', 'description' => '节点状态: 正常 1、暂停 2、空跑 3', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Paused' => ['title' => '节点是否被暂停调度', 'description' => '节点是否被暂停调度', 'type' => 'boolean'], + 'NodeFrom' => ['title' => '节点来源,节点由某个组织或应用创建的', 'description' => '节点来源,节点由某个组织或应用创建的', 'type' => 'string', 'example' => 'openapi'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '131211211'], + 'UpStreamList' => [ + 'title' => '上游依赖', + 'description' => '上游依赖', + 'type' => 'array', + 'items' => [ + 'title' => '节点关联', + 'description' => '节点关联', + 'type' => 'object', + 'properties' => [ + 'NodeType' => ['title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', 'description' => '上游依赖节点类型'."\n" + .'- PHYSICAL:物理节点'."\n" + .'- LOGICAL:逻辑表依赖', 'type' => 'string', 'example' => 'PHYSICAL'], + 'SourceNodeId' => ['title' => '上游节点Id', 'description' => '上游节点Id', 'type' => 'string', 'example' => 'n_2001'], + 'SourceNodeName' => ['title' => '上游节点名', 'description' => '上游节点名', 'type' => 'string', 'example' => 't_input1'], + 'SourceNodeUserName' => ['title' => '上游的用户名', 'description' => '上游的用户名', 'type' => 'string', 'example' => '张三'], + 'SourceNodeOutputName' => ['title' => '上游节点的输出名称', 'description' => '上游节点的输出名称', 'type' => 'string', 'example' => 't_input1'], + 'SourceTableName' => ['title' => '输入表名称', 'description' => '输入表名称', 'type' => 'string', 'example' => 't_input1'], + 'PeriodDiff' => ['title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'FieldList' => [ + 'title' => '依赖的逻辑表字段', + 'description' => '依赖的逻辑表字段', + 'type' => 'array', + 'items' => ['title' => '依赖的逻辑表字段', 'description' => '依赖的逻辑表字段', 'type' => 'string', 'example' => 'column1'], + ], + 'DependPeriod' => [ + 'title' => '依赖周期', + 'description' => '依赖周期', + 'type' => 'object', + 'properties' => [ + 'PeriodType' => ['title' => '依赖周期类型: CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', 'description' => '依赖周期类型'."\n" + .'- CURRENT_PERIOD'."\n" + .'- LAST_PERIOD'."\n" + .'- LAST_N_PERIOD'."\n" + .'- LAST_24_HOUR', 'type' => 'string', 'example' => 'CURRENT_PERIOD'], + 'PeriodOffset' => ['title' => '周期偏移量, LAST_N_PERIOD时须传值', 'description' => '周期偏移量, LAST_N_PERIOD时须传值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'DependStrategy' => ['title' => '依赖策略: ALL,FIRST,LAST,NEAR', 'description' => '依赖策略: ALL,FIRST,LAST,NEAR', 'type' => 'string', 'example' => 'LAST'], + 'SourceNodeEnabled' => ['title' => '上游节点是否生效', 'description' => '上游节点是否生效', 'type' => 'boolean'], + ], + ], + ], + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'string', 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'example' => 'erp'], + 'SparkClientInfo' => [ + 'title' => 'spark客户端信息', + 'description' => 'spark客户端', + 'type' => 'object', + 'properties' => [ + 'SparkClientVersion' => ['title' => 'spark客户端版本名称', 'description' => 'spark客户端名称', 'type' => 'string', 'example' => 'abc'], + ], + ], + ], ], ], ], @@ -16917,104 +10576,65 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskInfo\\": {\\n \\"FileId\\": 12113111,\\n \\"Name\\": \\"测试任务1\\",\\n \\"Status\\": \\"测试任务1\\",\\n \\"Published\\": true,\\n \\"NeedPublish\\": true,\\n \\"HasDevNode\\": true,\\n \\"NodeId\\": \\"n_1011_21232132322\\",\\n \\"NodeName\\": \\"测试任务1\\",\\n \\"NodeOutputNameList\\": [\\n \\"xx测试\\"\\n ],\\n \\"OwnerUserId\\": \\"30231123\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OperatorUserId\\": \\"30231123\\",\\n \\"NodeDescription\\": \\"xx测试\\",\\n \\"TaskType\\": 21,\\n \\"ScheduleType\\": 3,\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"CronExpression\\": \\"0 0 1 * * ?\\",\\n \\"CustomScheduleConfig\\": {\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"Interval\\": 1,\\n \\"IntervalUnit\\": \\"HOUR\\",\\n \\"StartTime\\": \\"08:00\\",\\n \\"EndTime\\": \\"20:59\\"\\n },\\n \\"Code\\": \\"show tables;\\",\\n \\"Remark\\": \\"test xx\\",\\n \\"DagId\\": \\"dag_102121211\\",\\n \\"ParamList\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"Value\\"\\n }\\n ],\\n \\"Rerunable\\": true,\\n \\"Priority\\": 1,\\n \\"NodeStatus\\": 1,\\n \\"Paused\\": true,\\n \\"NodeFrom\\": \\"openapi\\",\\n \\"ProjectId\\": 131211211,\\n \\"UpStreamList\\": [\\n {\\n \\"NodeType\\": \\"PHYSICAL\\",\\n \\"SourceNodeId\\": \\"n_2001\\",\\n \\"SourceNodeName\\": \\"t_input1\\",\\n \\"SourceNodeUserName\\": \\"张三\\",\\n \\"SourceNodeOutputName\\": \\"t_input1\\",\\n \\"SourceTableName\\": \\"t_input1\\",\\n \\"PeriodDiff\\": 1,\\n \\"FieldList\\": [\\n \\"column1\\"\\n ],\\n \\"DependPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"DependStrategy\\": \\"LAST\\",\\n \\"SourceNodeEnabled\\": true\\n }\\n ],\\n \\"DataSourceId\\": \\"12131111\\",\\n \\"DataSourceCatalog\\": \\"mysql_catalog\\",\\n \\"DataSourceSchema\\": \\"erp\\",\\n \\"SparkClientInfo\\": {\\n \\"SparkClientVersion\\": \\"abc\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '查询指定版本离线计算任务详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '更新业务实体', - ], - 'OnlineBizEntity' => [ - 'summary' => '上线业务实体。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskInfoByVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetBatchTaskUdfLineages' => [ + 'summary' => '获取离线任务自定义血缘。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OnlineCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '上线请求', - 'description' => '上线请求', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '所属业务板块Id', - 'description' => '所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], - 'Id' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], - 'Comment' => [ - 'title' => '下线备注', - 'description' => '下线备注', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], ], ], 'responses' => [ @@ -17024,35 +10644,115 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '请求结果', + 'description' => '请求结果', + 'type' => 'object', + 'properties' => [ + 'LineageGroupList' => [ + 'title' => '血缘组列表', + 'description' => '血缘组列表', + 'type' => 'array', + 'items' => [ + 'title' => '血缘组', + 'description' => '血缘组', + 'type' => 'object', + 'properties' => [ + 'InputLineageList' => [ + 'title' => '血缘输入表集合', + 'description' => '血缘输入表集合', + 'type' => 'array', + 'items' => [ + 'title' => '血缘表', + 'description' => '血缘表', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_input'], + 'DisplayName' => ['title' => '表显示名', 'description' => '表显示名', 'type' => 'string', 'example' => 't_input'], + 'Guid' => ['title' => '全局Id', 'description' => '全局Id', 'type' => 'string', 'example' => 'Guid_101121'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test xx'], + 'OwnerName' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'example' => '张三'], + 'OwnerUserId' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'example' => '20112101'], + 'ProjectName' => ['title' => '所属项目', 'description' => '所属项目', 'type' => 'string', 'example' => 'prj_test'], + 'ProjectId' => ['title' => '所属项目', 'description' => '所属项目', 'type' => 'string', 'example' => '131211211'], + 'BizUnitId' => ['title' => '板块ID', 'description' => '板块ID', 'type' => 'string', 'example' => '103111231'], + 'BizUnitName' => ['title' => '板块名称', 'description' => '板块名称', 'type' => 'string', 'example' => 'xx测试'], + 'Env' => ['title' => '环境 prod/dev', 'description' => '环境 prod/dev', 'type' => 'string', 'example' => 'dev'], + 'SubType' => ['title' => '表子类型: 维度逻辑表 dim', 'description' => '表子类型: 维度逻辑表 dim', 'type' => 'string', 'example' => 'dim'], + 'FullTable' => ['title' => '是否选择全表', 'description' => '是否选择全表', 'type' => 'boolean'], + 'ColumnList' => [ + 'title' => '血缘字段列表', + 'description' => '血缘字段列表', + 'type' => 'array', + 'items' => [ + 'title' => '血缘字段', + 'description' => '血缘字段', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '字段Id', 'description' => '字段Id', 'type' => 'string', 'example' => 'c011'], + 'Name' => ['title' => '字段名称', 'description' => '字段名称', 'type' => 'string', 'example' => 'c011'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx'], + 'DataType' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'example' => 'varchar'], + 'PartitionKey' => ['title' => '是否分区键', 'description' => '是否分区键', 'type' => 'boolean'], + 'PrimaryKey' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], + 'OutputLineageList' => [ + 'title' => '血缘输出表集合', + 'description' => '血缘输出表集合', + 'type' => 'array', + 'items' => [ + 'title' => '血缘表', + 'description' => '血缘表', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_input'], + 'DisplayName' => ['title' => '表显示名', 'description' => '表显示名', 'type' => 'string', 'example' => 't_input'], + 'Guid' => ['title' => '全局Id', 'description' => '全局Id', 'type' => 'string', 'example' => 'Guid_101121'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test xx'], + 'OwnerName' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'example' => '张三'], + 'OwnerUserId' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'example' => '20112101'], + 'ProjectName' => ['title' => '所属项目', 'description' => '所属项目', 'type' => 'string', 'example' => 'prj_test'], + 'ProjectId' => ['title' => '所属项目', 'description' => '所属项目', 'type' => 'string', 'example' => '131211211'], + 'BizUnitId' => ['title' => '板块ID', 'description' => '板块ID', 'type' => 'string', 'example' => '103111231'], + 'BizUnitName' => ['title' => '板块名称', 'description' => '板块名称', 'type' => 'string', 'example' => 'xx测试'], + 'Env' => ['title' => '环境 prod/dev', 'description' => '环境 prod/dev', 'type' => 'string', 'example' => 'dev'], + 'SubType' => ['title' => '表子类型: 维度逻辑表 dim', 'description' => '表子类型: 维度逻辑表 dim', 'type' => 'string', 'example' => 'dim'], + 'FullTable' => ['title' => '是否选择全表', 'description' => '是否选择全表', 'type' => 'boolean'], + 'ColumnList' => [ + 'title' => '血缘字段列表', + 'description' => '血缘字段列表', + 'type' => 'array', + 'items' => [ + 'title' => '血缘字段', + 'description' => '血缘字段', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '字段Id', 'description' => '字段Id', 'type' => 'string', 'example' => 'c011'], + 'Name' => ['title' => '字段名称', 'description' => '字段名称', 'type' => 'string', 'example' => 'c011'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx'], + 'DataType' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'example' => 'varchar'], + 'PartitionKey' => ['title' => '是否分区键', 'description' => '是否分区键', 'type' => 'boolean'], + 'PrimaryKey' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -17060,104 +10760,65 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"LineageGroupList\\": [\\n {\\n \\"InputLineageList\\": [\\n {\\n \\"Name\\": \\"t_input\\",\\n \\"DisplayName\\": \\"t_input\\",\\n \\"Guid\\": \\"Guid_101121\\",\\n \\"Description\\": \\"test xx\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OwnerUserId\\": \\"20112101\\",\\n \\"ProjectName\\": \\"prj_test\\",\\n \\"ProjectId\\": \\"131211211\\",\\n \\"BizUnitId\\": \\"103111231\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Env\\": \\"dev\\",\\n \\"SubType\\": \\"dim\\",\\n \\"FullTable\\": true,\\n \\"ColumnList\\": [\\n {\\n \\"Id\\": \\"c011\\",\\n \\"Name\\": \\"c011\\",\\n \\"Description\\": \\"xx\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"PartitionKey\\": true,\\n \\"PrimaryKey\\": true\\n }\\n ]\\n }\\n ],\\n \\"OutputLineageList\\": [\\n {\\n \\"Name\\": \\"t_input\\",\\n \\"DisplayName\\": \\"t_input\\",\\n \\"Guid\\": \\"Guid_101121\\",\\n \\"Description\\": \\"test xx\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OwnerUserId\\": \\"20112101\\",\\n \\"ProjectName\\": \\"prj_test\\",\\n \\"ProjectId\\": \\"131211211\\",\\n \\"BizUnitId\\": \\"103111231\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Env\\": \\"dev\\",\\n \\"SubType\\": \\"dim\\",\\n \\"FullTable\\": true,\\n \\"ColumnList\\": [\\n {\\n \\"Id\\": \\"c011\\",\\n \\"Name\\": \\"c011\\",\\n \\"Description\\": \\"xx\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"PartitionKey\\": true,\\n \\"PrimaryKey\\": true\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询离线计算任务自定义血缘', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '上线业务实体', - ], - 'OfflineBizEntity' => [ - 'summary' => '下线业务实体。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskUdfLineages', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetBatchTaskVersions' => [ + 'summary' => '获取离线计算任务版本列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OfflineCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '下线请求', - 'description' => '下线请求', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '所属业务板块Id', - 'description' => '所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,参考”创建业务实体“接口', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], - 'Id' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], - 'Comment' => [ - 'title' => '下线备注', - 'description' => '下线备注', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], ], ], 'responses' => [ @@ -17167,35 +10828,38 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '请求结果', + 'description' => '请求结果', + 'type' => 'object', + 'properties' => [ + 'BatchTaskVersionList' => [ + 'title' => '离线计算任务版本列表', + 'description' => '离线计算任务版本列表', + 'type' => 'array', + 'items' => [ + 'title' => '离线计算任务版本', + 'description' => '离线计算任务版本', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '节点Id', 'description' => '节点Id', 'type' => 'string', 'example' => 'n_10231001'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'example' => '1'], + 'UserId' => ['title' => '提交人', 'description' => '提交人', 'type' => 'string', 'example' => '20110110'], + 'UserName' => ['title' => '提交人', 'description' => '提交人', 'type' => 'string', 'example' => '张三'], + 'Comment' => ['title' => '提交备注', 'description' => '提交备注', 'type' => 'string', 'example' => 'test'], + 'Published' => ['title' => '是否已经发布到线上', 'description' => '是否已经发布到线上', 'type' => 'boolean'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10232111011'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:10:10'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:10:10'], + ], + ], + ], + ], ], ], ], @@ -17203,38 +10867,43 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"BatchTaskVersionList\\": [\\n {\\n \\"NodeId\\": \\"n_10231001\\",\\n \\"Version\\": \\"1\\",\\n \\"UserId\\": \\"20110110\\",\\n \\"UserName\\": \\"张三\\",\\n \\"Comment\\": \\"test\\",\\n \\"Published\\": true,\\n \\"ProjectId\\": 10232111011,\\n \\"GmtCreate\\": \\"2024-10-10 10:10:10\\",\\n \\"GmtModified\\": \\"2024-10-10 10:10:10\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取离线计算任务版本列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '下线业务实体', - ], - 'ListBizEntities' => [ - 'summary' => '查询业务实体列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskVersions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetBatchTemplateVersions' => [ + 'summary' => '获取指定离线模板ID版本列表,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -17242,401 +10911,166 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456'], + ], + [ + 'name' => 'TemplateId', + 'in' => 'query', + 'schema' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1001'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境:DEV 开发环境、PROD 生产环境,dev_prod 项目默认取值DEV', 'description' => '环境:DEV 开发环境、PROD 生产环境,dev_prod 项目默认取值DEV', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'object_', - ], - 'Page' => [ - 'title' => '页码, 默认 1', - 'description' => '页码, 默认 1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认 10', - 'description' => '分页记录数, 默认 10', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - 'FilterCriteria' => [ - 'title' => '查询过滤条件', - 'description' => '查询过滤条件', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '响应数据', + 'description' => '响应数据', 'type' => 'object', 'properties' => [ - 'BizUnitIdList' => [ - 'title' => '所属业务板块', - 'description' => '所属业务板块', + 'TemplateVersionList' => [ + 'title' => '模板版本列表', + 'description' => '模板版本列表', 'type' => 'array', 'items' => [ - 'title' => '所属业务板块', - 'description' => '所属业务板块', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102323411', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板ID, 和菜单树节点ID一致', 'description' => '模板ID, 和菜单树节点ID一致', 'type' => 'integer', 'format' => 'int64', 'example' => '1001'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '数据处理模板'], + 'OperatorType' => ['title' => '节点类型: 10(Shell) / 21(Python)', 'description' => '节点类型: 10(Shell) / 21(Python)', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'Engine' => ['title' => '计算引擎的版本,目前支持python:Python 2.7,Python 3.7', 'description' => '计算引擎的版本,目前支持python:Python 2.7,Python 3.7', 'type' => 'string', 'example' => 'Python 3.7'], + 'Content' => ['title' => '模板内容', 'description' => '模板内容', 'type' => 'string', 'example' => '#!/bin/bash'."\n" + .'echo \'hello world\''], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Status' => ['title' => '模板状态:0(草稿态) / 2(已提交) / 100(开发中)', 'description' => '模板状态:0(草稿态) / 2(已提交) / 100(开发中)', 'type' => 'string', 'example' => '2'], + 'Description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => '用于数据处理的Shell模板'], + 'Owner' => ['title' => '模板负责人', 'description' => '模板负责人', 'type' => 'string', 'example' => '张三'], + 'OwnerId' => ['title' => '模板负责人ID', 'description' => '模板负责人ID', 'type' => 'string', 'example' => '100001'], + 'Comment' => ['title' => '模板提交备注', 'description' => '模板提交备注', 'type' => 'string', 'example' => '初始化提交'], + 'Modifier' => ['title' => '模板最后更新人', 'description' => '模板最后更新人', 'type' => 'string', 'example' => '李四'], + 'ModifierId' => ['title' => '模板最后更新人ID', 'description' => '模板最后更新人ID', 'type' => 'string', 'example' => '100002'], + 'GmtCreate' => ['title' => '模板创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '模板创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2026-01-01 10:00:00'], + 'GmtModified' => ['title' => '模板更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '模板更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2026-05-28 15:30:00'], + ], ], - 'required' => false, - ], - 'BizUnitNameList' => [ - 'title' => '所属业务板块', - 'description' => '所属业务板块', - 'type' => 'array', - 'items' => [ - 'title' => '所属业务板块', - 'description' => '所属业务板块', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'required' => false, - ], - 'DataDomainIdList' => [ - 'title' => '所属主题域', - 'description' => '所属主题域', - 'type' => 'array', - 'items' => [ - 'title' => '所属业务板块', - 'description' => '所属业务板块', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102323411', - ], - 'required' => false, - ], - 'DataDomainNameList' => [ - 'title' => '所属主题域', - 'description' => '所属主题域', - 'type' => 'array', - 'items' => [ - 'title' => '所属主题域', - 'description' => '所属主题域', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'required' => false, - ], - 'SubTypeList' => [ - 'title' => '业务实体细分类型: 普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY、业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', - 'description' => '业务实体细分类型,参考”查询业务实体详情“接口', - 'type' => 'array', - 'items' => [ - 'title' => '所属主题域', - 'description' => '所属主题域', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'required' => false, - ], - 'OwnerUserIdList' => [ - 'title' => '所属负责人Id', - 'description' => '所属负责人Id', - 'type' => 'array', - 'items' => [ - 'title' => '所属负责人Id', - 'description' => '所属负责人Id', - 'type' => 'string', - 'required' => true, - 'example' => '30001326', - ], - 'required' => false, - ], - 'HasTableRef' => [ - 'title' => '是否有逻辑表关联', - 'description' => '是否有逻辑表关联', - 'type' => 'boolean', - 'required' => false, - ], - 'StatusList' => [ - 'title' => '业务实体状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '业务实体状态,参考”查询业务实体详情“接口', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体状态', - 'description' => '业务实体状态', - 'type' => 'string', - 'required' => true, - 'example' => 'PUBLISHED', - ], - 'required' => false, ], ], - 'required' => false, ], ], - 'required' => true, + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取指定离线模板ID版本列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"TemplateVersionList\\": [\\n {\\n \\"Id\\": 1001,\\n \\"ProjectId\\": 123456,\\n \\"Name\\": \\"数据处理模板\\",\\n \\"OperatorType\\": 10,\\n \\"Engine\\": \\"Python 3.7\\",\\n \\"Content\\": \\"#!/bin/bash\\\\necho \'hello world\'\\",\\n \\"Version\\": 1,\\n \\"Status\\": \\"2\\",\\n \\"Description\\": \\"用于数据处理的Shell模板\\",\\n \\"Owner\\": \\"张三\\",\\n \\"OwnerId\\": \\"100001\\",\\n \\"Comment\\": \\"初始化提交\\",\\n \\"Modifier\\": \\"李四\\",\\n \\"ModifierId\\": \\"100002\\",\\n \\"GmtCreate\\": \\"2026-01-01 10:00:00\\",\\n \\"GmtModified\\": \\"2026-05-28 15:30:00\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetBelongAssetMapping' => [ + 'summary' => '根据归属资产GUID查询映射关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'AssetMappingQuery', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '查询指令', + 'description' => '查询指令', + 'type' => 'object', + 'properties' => [ + 'BelongGuid' => ['title' => '归属资产Guid', 'description' => '归属资产Guid', 'type' => 'string', 'required' => true, 'example' => '1121'], + 'RelationType' => ['title' => '映射关系类型: VALID 已映射、INVALID 无效映射', 'description' => '映射关系类型: VALID 已映射、INVALID 无效映射', 'type' => 'string', 'required' => false, 'example' => 'VALID'], + ], + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页结果', - 'description' => '分页结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '66', - ], - 'BizEntityList' => [ - 'title' => '业务实体列表', - 'description' => '业务实体列表', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体', - 'description' => '业务实体', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12121111', - ], - 'Name' => [ - 'title' => '业务实体名称', - 'description' => '业务实体名称', - 'type' => 'string', - 'example' => 'create_process_code_name', - ], - 'DisplayName' => [ - 'title' => '业务实体展示名', - 'description' => '业务实体展示名', - 'type' => 'string', - 'example' => '业务活动测试', - ], - 'Description' => [ - 'title' => '业务实体描述', - 'description' => '业务实体描述', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务实体负责人', - 'description' => '业务实体负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务实体负责人', - 'description' => '业务实体负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'Type' => [ - 'title' => '业务实体类型:业务对象 BIZ_OBJECT、业务活动 BIZ_PROCESS', - 'description' => '业务实体类型:业务对象 BIZ_OBJECT、业务活动 BIZ_PROCESS', - 'type' => 'string', - 'example' => 'BIZ_OBJECT', - ], - 'SubType' => [ - 'title' => '业务实体细分类型', - 'description' => '业务实体细分类型', - 'type' => 'string', - 'example' => 'NORMAL', - ], - 'DataDomainId' => [ - 'title' => '业务活动所属主题域Id', - 'description' => '业务活动所属主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '20101011', - ], - 'BizUnitId' => [ - 'title' => '业务活动所属业务板块Id', - 'description' => '业务活动所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '6798087749072704', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'OnlineStatus' => [ - 'title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', - 'description' => '上线状态 '."\n" - .'- 未上线 SUBMITTED'."\n" - .'- 审批中 APPROVING'."\n" - .'- 已上线 PUBLISHED'."\n" - .'- 上线失败 REJECT', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'Status' => [ - 'title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', - 'description' => '状态:'."\n" - .'- 草稿态/未上线 DRAFT'."\n" - .'- 提交中 SUBMITTING'."\n" - .'- 已提交 SUBMITTED'."\n" - .'- 开发中 DEVELOPING'."\n" - .'- 发布中 PUBLISHING'."\n" - .'- 已发布 PUBLISHED', - 'type' => 'string', - 'example' => 'SUBMITTED', - ], - 'RefTableCount' => [ - 'title' => '关联逻辑表数量', - 'description' => '关联逻辑表数量', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'HasChildBizEntity' => [ - 'title' => '是否子业务对象', - 'description' => '是否子业务对象', - 'type' => 'boolean', - ], - 'LevelSubBizObject' => [ - 'title' => '是否层级维度的子层级', - 'description' => '是否层级维度的子层级', - 'type' => 'boolean', - ], - 'RefBizEntityIdList' => [ - 'title' => '被关联的中心业务实体列表', - 'description' => '被关联的中心业务实体列表', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11023', - ], - ], - 'BelongToBizEntityIdList' => [ - 'title' => '被从属的业务流程, 当前类型是业务活动时有效', - 'description' => '被从属的业务流程, 当前类型是业务活动时有效', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11023', - ], - ], - 'ChildBizEntityIdList' => [ - 'title' => '子业务对象Id列表, 当前类型是业务对象时有效', - 'description' => '子业务对象Id列表, 当前类型是业务对象时有效', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11023', - ], - ], - 'SuffixBizEntityIdList' => [ - 'title' => '后续业务流程, 当前类型是业务活动时有效', - 'description' => '后续业务流程, 当前类型是业务活动时有效', - 'type' => 'array', - 'items' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11023', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'MappingRelationList' => [ + 'title' => '映射关系列表', + 'description' => '映射关系列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ModifyTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Guid' => ['title' => '资产guid', 'description' => '资产guid', 'type' => 'string', 'example' => '1122'], + 'Name' => ['title' => '资产名称', 'description' => '资产名称', 'type' => 'string', 'example' => 'test'], + 'AssetType' => ['title' => '资产类型: COLUMN 字段、INDEX 指标', 'description' => '资产类型: COLUMN 字段、INDEX 指标', 'type' => 'string', 'example' => 'COLUMN'], + 'StandardId' => ['title' => '标准id', 'description' => '标准id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'StandardName' => ['title' => '标准名称', 'description' => '标准名称', 'type' => 'string', 'example' => 'test'], + 'StandardCode' => ['title' => '标准编码', 'description' => '标准编码', 'type' => 'string', 'example' => 'cc'], + 'StandardSetId' => ['title' => '标准集id', 'description' => '标准集id', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'StandardSetName' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'example' => 'test'], + 'StandardSetDirectory' => ['title' => '标准集所在的文件夹', 'description' => '标准集所在的文件夹', 'type' => 'string', 'example' => '/dir1'], + 'StandardStage' => ['title' => '标准阶段', 'description' => '标准阶段', 'type' => 'string', 'example' => 'PROD'], ], ], ], @@ -17646,38 +11080,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"MappingRelationList\\": [\\n {\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Guid\\": \\"1122\\",\\n \\"Name\\": \\"test\\",\\n \\"AssetType\\": \\"COLUMN\\",\\n \\"StandardId\\": 1,\\n \\"StandardName\\": \\"test\\",\\n \\"StandardCode\\": \\"cc\\",\\n \\"StandardSetId\\": 2,\\n \\"StandardSetName\\": \\"test\\",\\n \\"StandardSetDirectory\\": \\"/dir1\\",\\n \\"StandardStage\\": \\"PROD\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据归属资产GUID查询映射关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 66,\\n \\"BizEntityList\\": [\\n {\\n \\"Id\\": 12121111,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"SubType\\": \\"NORMAL\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704,\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"RefTableCount\\": 1,\\n \\"HasChildBizEntity\\": true,\\n \\"LevelSubBizObject\\": true,\\n \\"RefBizEntityIdList\\": [\\n 11023\\n ],\\n \\"BelongToBizEntityIdList\\": [\\n 11023\\n ],\\n \\"ChildBizEntityIdList\\": [\\n 11023\\n ],\\n \\"SuffixBizEntityIdList\\": [\\n 11023\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询业务实体列表', + 'ramActions' => [], ], - 'CreateBizEntity' => [ - 'summary' => '创建业务实体。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetBizEntityInfo' => [ + 'summary' => '获取业务实体详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -17685,219 +11106,229 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Type', + 'in' => 'query', + 'schema' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,具体参考“创建业务实体”接口', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'BizObject' => [ - 'title' => '业务对象', - 'description' => '业务对象', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'BizEntityInfo' => [ + 'title' => '业务实体详情', + 'description' => '业务实体详情', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_code_name', - ], - 'DisplayName' => [ - 'title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'type' => 'string', - 'required' => true, - 'example' => 'create_object_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息,128字符以内', - 'description' => '业务对象描述信息,128字符以内', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人用户Id', - 'description' => '业务对象负责人用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '30010010', - ], - 'Type' => [ - 'title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', - 'description' => '业务对象类型'."\n" - .'- 普通对象 NORMAL'."\n" - .'- 枚举对象 ENUM'."\n" - .'- 虚拟对象 VIRTUAL'."\n" - .'- 层级对象 HIERARCHY', - 'type' => 'string', - 'required' => true, - 'example' => 'NORMAL', - ], - 'ParentId' => [ - 'title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '116306', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '116106', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'BizProcess' => [ - 'title' => '业务活动', - 'description' => '业务活动', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'description' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', - 'type' => 'string', - 'required' => true, - 'example' => 'create_process_code_name', - ], - 'DisplayName' => [ - 'title' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'description' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', - 'type' => 'string', - 'required' => true, - 'example' => 'create_process_name', - ], - 'Description' => [ - 'title' => '业务活动描述信息,128字符以内', - 'description' => '业务活动描述信息,128字符以内', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务活动负责人用户Id', - 'description' => '业务活动负责人用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '30010010', - ], - 'Type' => [ - 'title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', - 'description' => '业务活动类型'."\n" - .'- 业务事件 BIZ_EVENT'."\n" - .'- 业务快照 BIZ_SNAPSHOT'."\n" - .'- 业务流程 BIZ_PROCESS', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_EVENT', - ], - 'RefBizEntityIdList' => [ - 'title' => '关联已上线业务实体Id列表', - 'description' => '关联已上线业务实体Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '关联已上线业务实体Id', - 'description' => '关联已上线业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '116106', - ], - 'required' => false, - ], - 'BizEventEntityIdList' => [ - 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动包含的业务事件活动', - 'description' => '业务流程活动包含的业务事件活动', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1016106', + 'BizObject' => [ + 'title' => '业务对象', + 'description' => '业务对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '业务对象Id', 'description' => '业务对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + 'Name' => ['title' => '业务对象编码名称', 'description' => '业务对象编码名称', 'type' => 'string', 'example' => 'create_object_code_name'], + 'DisplayName' => ['title' => '业务对象名称', 'description' => '业务对象名称', 'type' => 'string', 'example' => 'create_object_name'], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'Type' => ['title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', 'description' => '业务对象类型,具体参考“创建业务实体”接口', 'type' => 'string', 'example' => 'NORMAL'], + 'ParentId' => ['title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'type' => 'integer', 'format' => 'int64', 'example' => '116306'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '116106'], + ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'RefDimTableCount' => ['title' => '关联维度逻辑表数量', 'description' => '关联维度逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'RefSummaryTableCount' => ['title' => '关联汇总逻辑表数量', 'description' => '关联汇总逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ChildBizEntityIdList' => [ + 'title' => '业务对象的子业务对象', + 'description' => '业务对象的子业务对象', + 'type' => 'array', + 'items' => ['title' => '子业务对象', 'description' => '子业务对象', 'type' => 'integer', 'format' => 'int64', 'example' => '1015'], + ], + 'OnlineStatus' => ['title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', 'description' => '上线状态 '."\n" + .'- 未上线 SUBMITTED'."\n" + .'- 审批中 APPROVING'."\n" + .'- 已上线 PUBLISHED'."\n" + .'- 上线失败 REJECT', 'type' => 'string', 'example' => 'SUBMITTED'], + 'Status' => ['title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', 'description' => '状态:'."\n" + .'- 草稿态/未上线 DRAFT'."\n" + .'- 提交中 SUBMITTING'."\n" + .'- 已提交 SUBMITTED'."\n" + .'- 开发中 DEVELOPING'."\n" + .'- 发布中 PUBLISHING'."\n" + .'- 已发布 PUBLISHED', 'type' => 'string', 'example' => 'SUBMITTED'], + 'ApprovalId' => ['title' => '审批流程Id', 'description' => '审批流程Id', 'type' => 'string', 'example' => '221323121212'], + 'ApprovalStatus' => ['title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', 'description' => '审批状态:'."\n" + .'- 未提交 INIT'."\n" + .'- 审批中 APPROVING'."\n" + .'- 已通过 AGREE'."\n" + .'- 已拒绝 REJECT'."\n" + .'- 校验失败 FAILED'."\n" + .'- 主动撤回 REVOKE', 'type' => 'string', 'example' => 'APPROVING'], ], - 'required' => false, ], - 'PreBizProcessIdList' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'array', - 'items' => [ - 'title' => '业务流程活动的前序业务流程活动', - 'description' => '业务流程活动的前序业务流程活动', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1016106', + 'BizProcess' => [ + 'title' => '业务活动', + 'description' => '业务活动', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '业务活动Id', 'description' => '业务活动Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + 'Name' => ['title' => '业务活动名称', 'description' => '业务活动名称', 'type' => 'string', 'example' => 'create_process_code_name'], + 'DisplayName' => ['title' => '业务活动展示名', 'description' => '业务活动展示名', 'type' => 'string', 'example' => '业务活动测试'], + 'Description' => ['title' => '业务活动描述', 'description' => '业务活动描述', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'Type' => ['title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', 'description' => '业务活动类型,具体参考“创建业务实体”接口', 'type' => 'string', 'example' => 'BIZ_EVENT'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '116106'], + ], + 'BizEventEntityIdList' => [ + 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'type' => 'array', + 'items' => ['title' => '业务流程活动包含的业务事件活动', 'description' => '业务流程活动包含的业务事件活动', 'type' => 'integer', 'format' => 'int64', 'example' => '1016106'], + ], + 'PreBizProcessIdList' => [ + 'title' => '业务流程活动的前序业务流程活动', + 'description' => '业务流程活动的前序业务流程活动', + 'type' => 'array', + 'items' => ['title' => '业务流程活动的前序业务流程活动', 'description' => '业务流程活动的前序业务流程活动', 'type' => 'integer', 'format' => 'int64', 'example' => '1016106'], + ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'HasDependent' => ['title' => '是否被依赖', 'description' => '是否被依赖', 'type' => 'boolean'], + 'OnlineStatus' => ['title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', 'description' => '上线状态 '."\n" + .'- 未上线 SUBMITTED'."\n" + .'- 审批中 APPROVING'."\n" + .'- 已上线 PUBLISHED'."\n" + .'- 上线失败 REJECT', 'type' => 'string', 'example' => 'SUBMITTED'], + 'Status' => ['title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', 'description' => '状态:'."\n" + .'- 草稿态/未上线 DRAFT'."\n" + .'- 提交中 SUBMITTING'."\n" + .'- 已提交 SUBMITTED'."\n" + .'- 开发中 DEVELOPING'."\n" + .'- 发布中 PUBLISHING'."\n" + .'- 已发布 PUBLISHED', 'type' => 'string', 'example' => 'SUBMITTED'], + 'ApprovalId' => ['title' => '审批流程Id', 'description' => '审批流程Id', 'type' => 'string', 'example' => '221323121212'], + 'ApprovalStatus' => ['title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', 'description' => '审批状态'."\n" + .'- 未提交 INIT'."\n" + .'- 审批中 APPROVING'."\n" + .'- 已通过 AGREE'."\n" + .'- 已拒绝 REJECT'."\n" + .'- 校验失败 FAILED'."\n" + .'- 主动撤回 REVOKE', 'type' => 'string', 'example' => 'APPROVING'], + 'RefFactTableCount' => ['title' => '关联事实逻辑表数量', 'description' => '关联事实逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], - 'required' => false, ], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,具体参考“创建业务实体”接口', 'type' => 'string', 'example' => 'BIZ_OBJECT'], + 'DataDomainId' => ['title' => '业务活动所属主题域Id', 'description' => '业务活动所属主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '20101011'], + 'BizUnitId' => ['title' => '业务活动所属业务板块Id', 'description' => '业务活动所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '6798087749072704'], ], - 'required' => false, - ], - 'Type' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务类型: '."\n" - .'- BIZ_OBJECT:业务对象'."\n" - .'- BIZ_PROCESS:业务活动', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], - 'DataDomainId' => [ - 'title' => '业务活动所属主题域Id', - 'description' => '业务活动所属主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '20101011', - ], - 'BizUnitId' => [ - 'title' => '业务活动所属业务板块Id', - 'description' => '业务活动所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizEntityInfo\\": {\\n \\"BizObject\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_object_code_name\\",\\n \\"DisplayName\\": \\"create_object_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"NORMAL\\",\\n \\"ParentId\\": 116306,\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"RefDimTableCount\\": 1,\\n \\"RefSummaryTableCount\\": 1,\\n \\"ChildBizEntityIdList\\": [\\n 1015\\n ],\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\"\\n },\\n \\"BizProcess\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_EVENT\\",\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"BizEventEntityIdList\\": [\\n 1016106\\n ],\\n \\"PreBizProcessIdList\\": [\\n 1016106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"HasDependent\\": true,\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\",\\n \\"RefFactTableCount\\": 1\\n },\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704\\n }\\n}","type":"json"}]', + 'title' => '查询业务实体详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBizEntityInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'GetBizEntityInfoByVersion' => [ + 'summary' => '查询指定版本的业务实体的详情。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Type', + 'in' => 'query', + 'schema' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + ], + [ + 'name' => 'VersionId', + 'in' => 'query', + 'schema' => ['title' => '版本', 'description' => '版本', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ @@ -17905,48 +11336,98 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'BizEntityInfo' => [ 'title' => '新建结果', 'description' => '新建结果', 'type' => 'object', 'properties' => [ - 'BizEntityId' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12113111', + 'BizObject' => [ + 'title' => '业务对象', + 'description' => '业务对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '业务对象Id', 'description' => '业务对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + 'Name' => ['title' => '业务对象编码名称', 'description' => '业务对象编码名称', 'type' => 'string', 'example' => 'create_object_code_name'], + 'DisplayName' => ['title' => '业务对象名称', 'description' => '业务对象名称', 'type' => 'string', 'example' => 'create_object_name'], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'Type' => ['title' => '业务对象类型:普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY', 'description' => '业务对象类型,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => 'NORMAL'], + 'ParentId' => ['title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'type' => 'integer', 'format' => 'int64', 'example' => '116306'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '116106'], + ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'RefDimTableCount' => ['title' => '关联维度逻辑表数量', 'description' => '关联维度逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'RefSummaryTableCount' => ['title' => '关联汇总逻辑表数量', 'description' => '关联汇总逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ChildBizEntityIdList' => [ + 'title' => '业务对象的子业务对象', + 'description' => '业务对象的子业务对象', + 'type' => 'array', + 'items' => ['title' => '子业务对象', 'description' => '子业务对象', 'type' => 'integer', 'format' => 'int64', 'example' => '1015'], + ], + 'OnlineStatus' => ['title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', 'description' => '上线状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => '1'], + 'Status' => ['title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', 'description' => '状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => '100'], + 'ApprovalId' => ['title' => '审批流程Id', 'description' => '审批流程Id', 'type' => 'string', 'example' => '221323121212'], + 'ApprovalStatus' => ['title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', 'description' => '审批状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => 'APPROVING'], + ], + ], + 'BizProcess' => [ + 'title' => '业务活动', + 'description' => '业务活动', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '业务活动Id', 'description' => '业务活动Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + 'Name' => ['title' => '业务活动名称', 'description' => '业务活动名称', 'type' => 'string', 'example' => 'create_process_code_name'], + 'DisplayName' => ['title' => '业务活动展示名', 'description' => '业务活动展示名', 'type' => 'string', 'example' => '业务活动测试'], + 'Description' => ['title' => '业务活动描述', 'description' => '业务活动描述', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'Type' => ['title' => '业务活动类型:业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', 'description' => '业务活动类型,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => 'BIZ_EVENT'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表', + 'description' => '关联已上线业务实体Id列表', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '116106'], + ], + 'BizEventEntityIdList' => [ + 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'type' => 'array', + 'items' => ['title' => '业务流程活动包含的业务事件活动', 'description' => '业务流程活动包含的业务事件活动', 'type' => 'integer', 'format' => 'int64', 'example' => '1016106'], + ], + 'PreBizProcessIdList' => [ + 'title' => '业务流程活动的前序业务流程活动', + 'description' => '业务流程活动的前序业务流程活动', + 'type' => 'array', + 'items' => ['title' => '业务流程活动的前序业务流程活动', 'description' => '业务流程活动的前序业务流程活动', 'type' => 'integer', 'format' => 'int64', 'example' => '1016106'], + ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'HasDependent' => ['title' => '是否被依赖', 'description' => '是否被依赖', 'type' => 'boolean'], + 'OnlineStatus' => ['title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', 'description' => '上线状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => '1'], + 'Status' => ['title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', 'description' => '状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => '100'], + 'ApprovalId' => ['title' => '审批流程Id', 'description' => '审批流程Id', 'type' => 'string', 'example' => '221323121212'], + 'ApprovalStatus' => ['title' => '审批状态: 未提交 INIT、审批中 APPROVING、已通过 AGREE、已拒绝 REJECT、校验失败 FAILED、主动撤回 REVOKE', 'description' => '审批状态,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => 'APPROVING'], + 'RefFactTableCount' => ['title' => '关联事实逻辑表数量', 'description' => '关联事实逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,参考“查询业务实体详情”接口', 'type' => 'string', 'example' => 'BIZ_OBJECT'], + 'DataDomainId' => ['title' => '所属主题域', 'description' => '所属主题域', 'type' => 'integer', 'format' => 'int64', 'example' => '20101011'], + 'BizUnitId' => ['title' => '业务对象业务板块Id', 'description' => '业务对象业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '6798087749072704'], ], ], ], @@ -17955,123 +11436,68 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizEntityInfo\\": {\\n \\"BizObject\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_object_code_name\\",\\n \\"DisplayName\\": \\"create_object_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"NORMAL\\",\\n \\"ParentId\\": 116306,\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"RefDimTableCount\\": 1,\\n \\"RefSummaryTableCount\\": 1,\\n \\"ChildBizEntityIdList\\": [\\n 1015\\n ],\\n \\"OnlineStatus\\": \\"1\\",\\n \\"Status\\": \\"100\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\"\\n },\\n \\"BizProcess\\": {\\n \\"Id\\": 1011,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_EVENT\\",\\n \\"RefBizEntityIdList\\": [\\n 116106\\n ],\\n \\"BizEventEntityIdList\\": [\\n 1016106\\n ],\\n \\"PreBizProcessIdList\\": [\\n 1016106\\n ],\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"HasDependent\\": true,\\n \\"OnlineStatus\\": \\"1\\",\\n \\"Status\\": \\"100\\",\\n \\"ApprovalId\\": \\"221323121212\\",\\n \\"ApprovalStatus\\": \\"APPROVING\\",\\n \\"RefFactTableCount\\": 1\\n },\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704\\n }\\n}","type":"json"}]', + 'title' => '查询指定版本业务实体详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:38:06.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"BizEntityId\\": 12113111\\n }\\n}","type":"json"}]', - 'title' => '创建业务实体', - ], - 'UpdateDataDomain' => [ - 'summary' => '更新主题域。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBizEntityInfoByVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetBizMetricByName' => [ + 'summary' => '根据名称查询业务指标详情。'."\n" + .'发布版本号:v5.5.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', 'tenantRelevance' => 'tenant'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'BizMetricByNameQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', + 'title' => '查询请求', + 'description' => '查询请求', 'type' => 'object', 'properties' => [ - 'BizUnitId' => [ - 'title' => '数据板块ID', - 'description' => '数据板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '545844456', - ], - 'DataDomainId' => [ - 'title' => '主题域ID', - 'description' => '主题域ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1241844456', - ], - 'Name' => [ - 'title' => '主题域编码', - 'description' => '主题域编码', - 'type' => 'string', - 'required' => true, - 'example' => 'dm_code_name', - ], - 'DisplayName' => [ - 'title' => '主题域展示名', - 'description' => '主题域展示名', - 'type' => 'string', - 'required' => true, - 'example' => '主题域测试', - ], - 'Abbreviation' => [ - 'title' => '主题域缩写', - 'description' => '主题域缩写', - 'type' => 'string', - 'required' => true, - 'example' => 'dm_code_name', - ], - 'Description' => [ - 'title' => '主题域描述', - 'description' => '主题域描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ParentId' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10232311', - ], + 'Name' => ['title' => '业务指标名称', 'description' => '业务指标名称', 'type' => 'string', 'required' => true, 'example' => 'Metric1'], + 'Draft' => ['title' => '查询草稿态或已发布资产详情:True草稿态;False已发布', 'description' => '查询草稿态或已发布资产详情:True草稿态;False已发布', 'type' => 'boolean', 'required' => true, 'example' => 'True'], ], 'required' => true, ], @@ -18080,39 +11506,133 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['description' => '后端相应异常详情', 'type' => 'string', 'example' => 'SUCCESS'], + 'Data' => [ + 'title' => '业务指标详情', + 'description' => '业务指标详情', + 'type' => 'object', + 'properties' => [ + 'TenantId' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '30001011'], + 'Guid' => ['title' => '业务指标GUID', 'description' => '业务指标GUID', 'type' => 'string', 'example' => 'guid'], + 'Name' => ['title' => '业务指标名称', 'description' => '业务指标名称', 'type' => 'string', 'example' => 'Metric1'], + 'DisplayName' => ['title' => '展示名称', 'description' => '展示名称', 'type' => 'string', 'example' => 'Metric Display Name'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'Metric Desc'], + 'Labels' => [ + 'title' => '标签列表', + 'description' => '标签列表', + 'type' => 'array', + 'items' => ['title' => '标签', 'description' => '标签', 'type' => 'string', 'example' => 'Label'], + ], + 'Catalogs' => [ + 'title' => '归属目录列表', + 'description' => '归属目录列表', + 'type' => 'array', + 'items' => [ + 'description' => '指标归属目录详情', + 'type' => 'object', + 'properties' => [ + 'TopicId' => ['title' => '目录所属专题ID', 'description' => '目录所属专题ID', 'type' => 'integer', 'format' => 'int64', 'example' => '43297700'], + 'TopicName' => ['title' => '目录所属专题名称', 'description' => '目录所属专题名称', 'type' => 'string', 'example' => 'test topic'], + 'CatalogId' => ['title' => '目录ID', 'description' => '目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1561740764851842'], + 'CatalogName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'example' => 'test catalog'], + 'CatalogDesc' => ['title' => '目录描述', 'description' => '目录描述', 'type' => 'string', 'example' => 'catalog desc'], + 'ParentCatalogId' => ['title' => '目录所属父目录ID', 'description' => '目录所属父目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1561740764851841'], + 'ParentPath' => ['title' => '目录所属父路径', 'description' => '目录所属父路径', 'type' => 'string', 'example' => '/catalog1/'], + ], + ], + ], + 'BizOwnerName' => ['title' => '业务负责人名称', 'description' => '业务负责人名称', 'type' => 'string', 'example' => 'SuperAdmin'], + 'MetricDefinition' => ['title' => '指标口径', 'description' => '指标口径', 'type' => 'string', 'example' => '[Metric1]+[Metric2]'], + 'RelatedBizMetrics' => [ + 'title' => '相关业务指标列表', + 'description' => '相关业务指标列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '相关业务指标详情', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => 'guid', 'description' => 'guid', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'Metric2'], + 'DisplayName' => ['title' => '展示名称', 'description' => '展示名称', 'type' => 'string', 'example' => 'display name'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'desc'], + 'RelationType' => ['title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', 'type' => 'string', 'example' => 'POSITIVE'], + ], + ], + ], + 'AssociatedTechMetrics' => [ + 'title' => '关联技术指标列表', + 'description' => '关联技术指标列表', + 'type' => 'array', + 'items' => [ + 'description' => '关联的技术指标详情', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => 'guid', 'description' => 'guid', 'type' => 'string', 'example' => 'table1.a.b'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'metric3'], + 'DisplayName' => ['title' => '展示名称', 'description' => '展示名称', 'type' => 'string', 'example' => 'display name'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'desc'], + 'SubType' => ['title' => '技术指标类型:INDEX建模指标;CUSTOM_INDEX自定义指标', 'description' => '技术指标类型:INDEX建模指标;CUSTOM_INDEX自定义指标', 'type' => 'string', 'example' => 'CUSTOM_INDEX'], + ], + ], + ], + 'MetricRelationDiagramSwitchOpen' => ['title' => '指标关系图是否开启:true开启;false关闭', 'description' => '指标关系图是否开启:true开启;false关闭', 'type' => 'boolean', 'example' => 'true'], + 'MetricRelationDiagramExpression' => ['title' => '指标关系图表达式', 'description' => '指标关系图表达式', 'type' => 'string', 'example' => '[Metric2]*10'], + 'OperateInstructionEnabled' => ['title' => '使用说明是否开启:true开启;false关闭', 'description' => '使用说明是否开启:true开启;false关闭', 'type' => 'boolean', 'example' => 'true'], + 'OperateInstructionContent' => ['title' => '使用说明文本内容', 'description' => '使用说明文本内容', 'type' => 'string', 'example' => 'content'], + 'ViewScope' => [ + 'title' => '可见范围', + 'description' => '可见范围', + 'type' => 'object', + 'properties' => [ + 'ScopeType' => [ + 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'type' => 'string', + 'example' => 'PART_USERS_CAN_NOT_VIEW', + 'enum' => ['ALL_USERS_CAN_VIEW', 'PART_USERS_CAN_VIEW', 'PART_USERS_CAN_NOT_VIEW'], + ], + 'UserNames' => [ + 'title' => '个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'description' => '个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'type' => 'array', + 'items' => ['description' => '个人账号的用户名', 'type' => 'string', 'example' => 'SuperAdmin'], + ], + 'UserGroupNames' => [ + 'title' => '用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时生效', + 'description' => '用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时生效', + 'type' => 'array', + 'items' => ['description' => '用户组名称', 'type' => 'string', 'example' => 'UserGroup1'], + ], + ], + ], + 'CustomAttribute' => [ + 'title' => '自定义属性列表', + 'description' => '自定义属性列表', + 'type' => 'array', + 'items' => [ + 'description' => '自定义属性项', + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '自定义属性编码', 'description' => '自定义属性编码', 'type' => 'string', 'example' => 'CustomAttributeCode'], + 'Values' => [ + 'title' => '属性值列表:1、自定义输入和下拉单选属性,取列表第一个属性值;2、下拉多选属性,取列表全部属性值;3、超链接属性,列表第一个属性值是展示文本,第二个属性值是跳转链接。', + 'description' => '属性值列表:1、自定义输入和下拉单选属性,取列表第一个属性值;2、下拉多选属性,取列表全部属性值;3、超链接属性,列表第一个属性值是展示文本,第二个属性值是跳转链接。', + 'type' => 'array', + 'items' => ['title' => '自定义属性值', 'description' => '自定义属性值', 'type' => 'string', 'example' => 'CustomAttributeValue'], + ], + ], + ], + ], + ], ], ], ], @@ -18120,38 +11640,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TenantId\\": 30001011,\\n \\"Guid\\": \\"guid\\",\\n \\"Name\\": \\"Metric1\\",\\n \\"DisplayName\\": \\"Metric Display Name\\",\\n \\"Description\\": \\"Metric Desc\\",\\n \\"Labels\\": [\\n \\"Label\\"\\n ],\\n \\"Catalogs\\": [\\n {\\n \\"TopicId\\": 43297700,\\n \\"TopicName\\": \\"test topic\\",\\n \\"CatalogId\\": 1561740764851842,\\n \\"CatalogName\\": \\"test catalog\\",\\n \\"CatalogDesc\\": \\"catalog desc\\",\\n \\"ParentCatalogId\\": 1561740764851841,\\n \\"ParentPath\\": \\"/catalog1/\\"\\n }\\n ],\\n \\"BizOwnerName\\": \\"SuperAdmin\\",\\n \\"MetricDefinition\\": \\"[Metric1]+[Metric2]\\",\\n \\"RelatedBizMetrics\\": [\\n {\\n \\"Guid\\": \\"test\\",\\n \\"Name\\": \\"Metric2\\",\\n \\"DisplayName\\": \\"display name\\",\\n \\"Description\\": \\"desc\\",\\n \\"RelationType\\": \\"POSITIVE\\"\\n }\\n ],\\n \\"AssociatedTechMetrics\\": [\\n {\\n \\"Guid\\": \\"table1.a.b\\",\\n \\"Name\\": \\"metric3\\",\\n \\"DisplayName\\": \\"display name\\",\\n \\"Description\\": \\"desc\\",\\n \\"SubType\\": \\"CUSTOM_INDEX\\"\\n }\\n ],\\n \\"MetricRelationDiagramSwitchOpen\\": true,\\n \\"MetricRelationDiagramExpression\\": \\"[Metric2]*10\\",\\n \\"OperateInstructionEnabled\\": true,\\n \\"OperateInstructionContent\\": \\"content\\",\\n \\"ViewScope\\": {\\n \\"ScopeType\\": \\"PART_USERS_CAN_NOT_VIEW\\",\\n \\"UserNames\\": [\\n \\"SuperAdmin\\"\\n ],\\n \\"UserGroupNames\\": [\\n \\"UserGroup1\\"\\n ]\\n },\\n \\"CustomAttribute\\": [\\n {\\n \\"Code\\": \\"CustomAttributeCode\\",\\n \\"Values\\": [\\n \\"CustomAttributeValue\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '根据名称查询业务指标详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '更新主题域', + 'ramActions' => [], ], - 'ListDataDomains' => [ - 'summary' => '获取主题域列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetBizUnitInfo' => [ + 'summary' => '获取数据板块详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -18159,70 +11666,17 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', - 'type' => 'object', - 'properties' => [ - 'BizUnitIdList' => [ - 'title' => '所属数据板块Id', - 'description' => '所属数据板块Id', - 'type' => 'array', - 'items' => [ - 'title' => '所属数据板块Id', - 'description' => '所属数据板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '545844456', - ], - 'required' => false, - ], - 'ParentIdList' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'array', - 'items' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10232311', - ], - 'required' => false, - ], - 'Keyword' => [ - 'title' => '搜索关键词: 主题名称/编码/描述', - 'description' => '搜索关键词: 主题名称/编码/描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '数据板块Id', 'description' => '数据板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], ], ], 'responses' => [ @@ -18232,134 +11686,85 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '查询结果', - 'description' => '查询结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'BizUnitInfo' => [ + 'title' => '数据板块详情', + 'description' => '数据板块详情', 'type' => 'object', 'properties' => [ - 'DataDomainList' => [ - 'title' => '主题域详情', - 'description' => '主题域详情', + 'Id' => ['title' => '数据板块Id', 'description' => '数据板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '101001201'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'test01'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => '测试'], + 'EnvList' => [ + 'title' => '生产/开发 2个环境对应的板块英文名', + 'description' => '生产/开发 2个环境对应的板块英文名', 'type' => 'array', 'items' => [ - 'title' => '主题域详情', - 'description' => '主题域详情', + 'title' => '生产/开发 2个环境对应的板块英文名', + 'description' => '生产/开发 2个环境对应的板块英文名', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '主题域Id', - 'description' => '主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1241844456', - ], - 'BizUnitId' => [ - 'title' => '所属数据板块', - 'description' => '所属数据板块', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '545844456', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'dm_code_name', - ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => '测试', - ], - 'Abbreviation' => [ - 'title' => '主题域缩写', - 'description' => '主题域缩写', - 'type' => 'string', - 'example' => 'dm_code_name', - ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', - ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', - ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', - ], - 'ParentId' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10232311', - ], + 'EnvName' => ['title' => '环境标识: PROD / DEV', 'description' => '环境标识: PROD / DEV', 'type' => 'string', 'example' => 'DEV'], + 'Name' => ['title' => '英文名', 'description' => '英文名', 'type' => 'string', 'example' => 'LD_test001_dev'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => '测试数据板块001_开发'], + ], + ], + ], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'Icon' => ['title' => '数据板块图标', 'description' => '数据板块图标', 'type' => 'string', 'example' => 'icon-e-commerce'], + 'Mode' => ['title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'type' => 'string', 'example' => 'DEV_PROD'], + 'AccountList' => [ + 'title' => '板块架构师', + 'description' => '板块架构师', + 'type' => 'array', + 'items' => [ + 'title' => '用户', + 'description' => '用户', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '20001201'], + ], + ], + ], + 'BusinessLeaderList' => [ + 'title' => '业务负责人', + 'description' => '业务负责人', + 'type' => 'array', + 'items' => [ + 'title' => '用户', + 'description' => '用户', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '20001201'], + ], + ], + ], + 'DataLeaderList' => [ + 'title' => '数据负责人', + 'description' => '数据负责人', + 'type' => 'array', + 'items' => [ + 'title' => '用户', + 'description' => '用户', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '20001201'], ], ], ], + 'DataDomainCount' => ['title' => '主题域个数', 'description' => '主题域个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'BizObjectCount' => ['title' => '业务对象个数', 'description' => '业务对象个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'BizProcessCount' => ['title' => '业务活动个数', 'description' => '业务活动个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], @@ -18368,35 +11773,37 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": 101001201,\\n \\"Name\\": \\"test01\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"EnvList\\": [\\n {\\n \\"EnvName\\": \\"DEV\\",\\n \\"Name\\": \\"LD_test001_dev\\",\\n \\"DisplayName\\": \\"测试数据板块001_开发\\"\\n }\\n ],\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"Icon\\": \\"icon-e-commerce\\",\\n \\"Mode\\": \\"DEV_PROD\\",\\n \\"AccountList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"BusinessLeaderList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"DataLeaderList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ],\\n \\"DataDomainCount\\": 1,\\n \\"BizObjectCount\\": 1,\\n \\"BizProcessCount\\": 1\\n }\\n}","type":"json"}]', + 'title' => '查询数据板块详情', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBizUnitInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"DataDomainList\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"BizUnitId\\": 545844456,\\n \\"Name\\": \\"dm_code_name\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Abbreviation\\": \\"dm_code_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"ParentId\\": 10232311\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询主题域列表', ], - 'GetDataDomainInfo' => [ - 'summary' => '获取主题域详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetCatalogAssetDetails' => [ + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -18404,158 +11811,280 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'GetCatalogAssetDetailsQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '主题域Id', - 'description' => '主题域Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '分页查询已上架资产目录列表', + 'description' => '分页查询已上架资产目录列表', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => '资产GUID', 'description' => '资产GUID', 'type' => 'string', 'required' => true, 'example' => 'dp_ds_table.300023201.7311626611751680256.load_test.abc'], + 'IncludeDetailedAttributes' => ['title' => '是否包含详细数据。默认为false。false:不包含;true:包含。', 'description' => '是否包含详细数据。默认为false。false:不包含;true:包含。', 'type' => 'boolean', 'required' => false], + 'IncludeColumns' => ['title' => '是否包含字段列表。默认为false。false:不包含;true:包含。', 'description' => '是否包含字段列表。默认为false。false:不包含;true:包含。', 'type' => 'boolean', 'required' => false], + ], 'required' => true, - 'example' => '1241844456', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'DataDomainInfo' => [ - 'title' => '主题域详情', - 'description' => '主题域详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端响应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '数据目录资产详情', + 'description' => '数据目录资产详情', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '主题域Id', - 'description' => '主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1241844456', - ], - 'BizUnitId' => [ - 'title' => '所属数据板块', - 'description' => '所属数据板块', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '545844456', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'dm_code_name', + 'Guid' => ['title' => '资产GUID,作为资产的唯一标识;', 'description' => '资产GUID,作为资产的唯一标识;', 'type' => 'string', 'example' => 'dp_ds_table.300023201.7311626611751680256.load_test.abc'], + 'AssetType' => ['title' => '资产类型;TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'description' => '资产类型;TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'type' => 'string', 'example' => 'TABLE'], + 'IsDeleted' => ['title' => '是否已删除;', 'description' => '是否已删除;', 'type' => 'boolean'], + 'AssetName' => ['title' => '资产名称;', 'description' => '资产名称;', 'type' => 'string', 'example' => 'abc'], + 'AssetDisplayName' => ['title' => '资产展示名;当资产类型为TABLE / INDEX / BIZ_INDEX时返回。', 'description' => '资产展示名;当资产类型为TABLE / INDEX / BIZ_INDEX时返回。', 'type' => 'string', 'example' => 'abc表'], + 'AssetFullName' => ['title' => '资产全名;当资产类型为TABLE / INDEX时返回。', 'description' => '资产全名;当资产类型为TABLE / INDEX时返回。', 'type' => 'string', 'example' => 'dwd_all.abc'], + 'MaxSecurityLevel' => ['title' => '最高敏感等级;当资产类型为TABLE时返回。', 'description' => '最高敏感等级;当资产类型为TABLE时返回。', 'type' => 'string', 'example' => 'L3'], + 'AssetTags' => [ + 'title' => '资产标签;', + 'description' => '资产标签;', + 'type' => 'array', + 'items' => ['title' => '资产标签;', 'description' => '资产标签;', 'type' => 'string', 'example' => '["标签1", "标签2"]'], + ], + 'AssetDescription' => ['title' => '资产描述;', 'description' => '资产描述;', 'type' => 'string', 'example' => 'abc'], + 'AssetFrom' => ['title' => '资产来源。TABLE(物理表)返回"Dataphin-空间类型-项目中文名(项目英文名)";TABLE(逻辑表)返回"Dataphin-空间类型-数据板块中文名(数据板块英文名)";TABLE(数据源表)返回"来源系统名-数据源名-Database/schema名";INDEX(规范建模指标)返回所属汇总逻辑表的资产来源;INDEX(自定义指标)返回来源表的资产来源;API返回"数据服务项目名";PAGE返回"应用系统名"', 'description' => '资产来源。TABLE(物理表)返回"Dataphin-空间类型-项目中文名(项目英文名)";TABLE(逻辑表)返回"Dataphin-空间类型-数据板块中文名(数据板块英文名)";TABLE(数据源表)返回"来源系统名-数据源名-Database/schema名";INDEX(规范建模指标)返回所属汇总逻辑表的资产来源;INDEX(自定义指标)返回来源表的资产来源;API返回"数据服务项目名";PAGE返回"应用系统名"', 'type' => 'string', 'example' => 'Dataphin-中间层-服饰零售 (LD_Fashion)'], + 'BizUnitId' => ['title' => '所属数据板块ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属数据板块ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '6865277495315392'], + 'BizUnitName' => ['title' => '所属数据板块名称:当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属数据板块名称:当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '服饰零售(LD_Fashion)'], + 'ProjectId' => ['title' => '所属项目ID;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'description' => '所属项目ID;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '6865331517728384'], + 'ProjectName' => ['title' => '所属项目名称;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'description' => '所属项目名称;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'type' => 'string', 'example' => 'train'], + 'DatasourceId' => ['title' => '所属数据源ID;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'description' => '所属数据源ID;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '7305549302863001856'], + 'DataSourceName' => ['title' => '所属数据源名称;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'description' => '所属数据源名称;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'type' => 'string', 'example' => 'demo_mysql'], + 'SubType' => ['title' => '子类型;DIM_NORMAL(普通维度逻辑表)、DIM_ENUM(枚举维度逻辑表)、DIM_VIRTUAL(虚拟维度逻辑表)、SUM_BIZ_UNIT(汇总逻辑表)、FACT_EVENT(事件事实逻辑表)、FACT_SNAPSHOT(快照事实逻辑表)、DATASOURCE_TABLE(数据源表)、PHYSICAL_TABLE(物理表)、DATASOURCE_VIEW(视图-数据源视图)、PHYSICAL_VIEW(物理视图)、MATERIALIZED_VIEW(物化视图)BIZ_INDEX(业务指标)、INDEX(技术指标-规范建模指标)、CUSTOM_INDEX(技术指标-自定义指标);', 'description' => '子类型;DIM_NORMAL(普通维度逻辑表)、DIM_ENUM(枚举维度逻辑表)、DIM_VIRTUAL(虚拟维度逻辑表)、SUM_BIZ_UNIT(汇总逻辑表)、FACT_EVENT(事件事实逻辑表)、FACT_SNAPSHOT(快照事实逻辑表)、DATASOURCE_TABLE(数据源表)、PHYSICAL_TABLE(物理表)、DATASOURCE_VIEW(视图-数据源视图)、PHYSICAL_VIEW(物理视图)、MATERIALIZED_VIEW(物化视图)BIZ_INDEX(业务指标)、INDEX(技术指标-规范建模指标)、CUSTOM_INDEX(技术指标-自定义指标);', 'type' => 'string', 'example' => 'DIM_NORMAL'], + 'Directories' => [ + 'title' => '归属目录:专题ID、专题名称、目录ID、目录名称;', + 'description' => '归属目录:专题ID、专题名称、目录ID、目录名称;', + 'type' => 'array', + 'items' => [ + 'title' => '资产归属目录信息', + 'description' => '资产归属目录信息', + 'type' => 'object', + 'properties' => [ + 'TopicId' => ['title' => '专题ID', 'description' => '专题ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101676'], + 'TopicName' => ['title' => '专题名称', 'description' => '专题名称', 'type' => 'string', 'example' => '全渠道数据专题'], + 'DirectoryId' => ['title' => '目录ID', 'description' => '目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '102260'], + 'DirectoryName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'example' => '线上电商平台'], + ], + ], + ], + 'SumTableGuid' => ['title' => '所属汇总表GUID;当资产类型为INDEX时返回。', 'description' => '所属汇总表GUID;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => 'odps.300023201.test.ads_gross'], + 'SumTableName' => ['title' => '所属汇总表名称;当资产类型为INDEX时返回。', 'description' => '所属汇总表名称;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => 'ads_gross'], + 'Granularity' => ['title' => '技术指标的统计粒度名称;当资产类型为INDEX时返回。', 'description' => '技术指标的统计粒度名称;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => '课程'], + 'DataCellId' => ['title' => '所属主题域ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属主题域ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '49837403'], + 'DataCellName' => ['title' => '所属主题域名称;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属主题域名称;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '课程域'], + 'ApiId' => ['title' => 'API ID;当资产类型为API时返回。', 'description' => 'API ID;当资产类型为API时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '10441'], + 'ApiGroupName' => ['title' => 'API分组名;当资产类型为API时返回。', 'description' => 'API分组名;当资产类型为API时返回。', 'type' => 'string', 'example' => '默认API分组'], + 'ApiRequestMethod' => ['title' => 'API操作类型;当资产类型为API时返回。枚举值:1=Get,2=List,3=Create,4=Update,5=Delete。', 'description' => 'API操作类型;当资产类型为API时返回。枚举值:1=Get,2=List,3=Create,4=Update,5=Delete。', 'type' => 'string', 'example' => '1'], + 'ApiCallMode' => ['title' => 'API调用模式;当资产类型为API时返回。枚举值:1=同步调用,2=异步调用。', 'description' => 'API调用模式;当资产类型为API时返回。枚举值:1=同步调用,2=异步调用。', 'type' => 'string', 'example' => '1'], + 'BiCatalog' => ['title' => '所属BI空间/目录;当资产类型为PAGE(仪表板)时返回。', 'description' => '所属BI空间/目录;当资产类型为PAGE(仪表板)时返回。', 'type' => 'string', 'example' => 'dataphin演示空间'], + 'ChartCount' => ['title' => '图表总数;当资产类型为PAGE(仪表板)时返回。', 'description' => '图表总数;当资产类型为PAGE(仪表板)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + 'CustomAttributes' => [ + 'title' => '自定义属性;当includeDetailedAttributes=true时返回。', + 'description' => '自定义属性;当includeDetailedAttributes=true时返回。', + 'type' => 'array', + 'items' => [ + 'title' => '资产自定义属性', + 'description' => '资产自定义属性', + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '属性编码;', 'description' => '属性编码;', 'type' => 'string', 'example' => 'gkglbm'], + 'Name' => ['title' => '属性名称;', 'description' => '属性名称;', 'type' => 'string', 'example' => '归口管理部门'], + 'Value' => ['title' => '属性值;', 'description' => '属性值;', 'type' => 'string', 'example' => 'abc'], + 'AttrType' => ['title' => '属性类型;枚举值:BUSINESS(业务属性)、MANAGEMENT(管理属性)、TECHNOLOGY(技术属性)。', 'description' => '属性类型;枚举值:BUSINESS(业务属性)、MANAGEMENT(管理属性)、TECHNOLOGY(技术属性)。', 'type' => 'string', 'example' => 'MANAGEMENT'], + ], + ], ], - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => '测试', + 'IsPartitionTable' => ['title' => '是否分区表;当资产类型为TABLE时返回。true:是;false:否。', 'description' => '是否分区表;当资产类型为TABLE时返回。true:是;false:否。', 'type' => 'boolean'], + 'PartitionKey' => ['title' => '分区字段;当资产类型为TABLE时返回。', 'description' => '分区字段;当资产类型为TABLE时返回。', 'type' => 'string', 'example' => 'ds'], + 'PrimaryKey' => ['title' => '主键;当资产类型为TABLE时返回。', 'description' => '主键;当资产类型为TABLE时返回。', 'type' => 'string', 'example' => 'employee_id'], + 'TableLifeCycle' => ['title' => '生命周期;当资产类型为TABLE时返回。', 'description' => '生命周期;当资产类型为TABLE时返回。', 'type' => 'string', 'example' => '36000'], + 'SimpleNodeInfos' => [ + 'title' => '产出任务;当资产类型为TABLE时返回。', + 'description' => '产出任务;当资产类型为TABLE时返回。', + 'type' => 'array', + 'items' => [ + 'title' => '产出任务信息', + 'description' => '产出任务信息', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '任务ID;', 'description' => '任务ID;', 'type' => 'string', 'example' => 'n_7443633109495119872'], + 'SubBizType' => ['title' => '任务类型;枚举值示例:DLINK(离线集成)、PYTHON37(python计算任务)等。', 'description' => '任务类型;枚举值示例:DLINK(离线集成)、PYTHON37(python计算任务)等。', 'type' => 'string', 'example' => 'DLINK'], + 'NodeName' => ['title' => '任务名称;', 'description' => '任务名称;', 'type' => 'string', 'example' => '2345'], + 'Owners' => [ + 'title' => '运维负责人列表;', + 'description' => '运维负责人列表;', + 'type' => 'array', + 'items' => [ + 'title' => '简单用户信息, 包含了用户Id和用户名', + 'description' => '简单用户信息, 包含了用户Id和用户名', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '12345'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => '张三'], + ], + ], + ], + 'Project' => [ + 'title' => '所属项目;', + 'description' => '所属项目;', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目ID;', 'description' => '项目ID;', 'type' => 'string', 'example' => '6865331517728384'], + 'ProjectName' => ['title' => '项目名称;', 'description' => '项目名称;', 'type' => 'string', 'example' => 'fashion_cdm'], + ], + ], + 'BizUnit' => ['title' => '所属板块;', 'description' => '所属板块;', 'type' => 'string', 'example' => 'test'], + 'NodeScheduleType' => ['title' => '调度方式;枚举值:NORMAL(周期调度)、MANUAL(手动调度)。', 'description' => '调度方式;枚举值:NORMAL(周期调度)、MANUAL(手动调度)。', 'type' => 'string', 'example' => 'NORMAL'], + 'Env' => ['title' => '所属环境;', 'description' => '所属环境;', 'type' => 'string', 'example' => 'PROD'], + ], + ], ], - 'Abbreviation' => [ - 'title' => '主题域缩写', - 'description' => '主题域缩写', - 'type' => 'string', - 'example' => 'dm_code_name', + 'TableSizeInBytes' => ['title' => '存储量;当资产类型为TABLE时返回。', 'description' => '存储量;当资产类型为TABLE时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'CreateTime' => ['title' => '创建时间;', 'description' => '创建时间;', 'type' => 'string', 'example' => '2024-10-11 16:10:19'], + 'ModifyTime' => ['title' => '修改时间;', 'description' => '修改时间;', 'type' => 'string', 'example' => '2024-10-11 16:10:19'], + 'LastDdlTime' => ['title' => '最近变更时间;', 'description' => '最近变更时间;', 'type' => 'string', 'example' => '2024-10-11 16:10:19'], + 'LastDmlTime' => ['title' => '最近更新时间;', 'description' => '最近更新时间;', 'type' => 'string', 'example' => '2024-10-11 16:10:19'], + 'Owner' => [ + 'title' => '负责人;', + 'description' => '负责人;', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '12345'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => '张三'], + ], ], - 'Description' => [ - 'title' => '业务对象描述信息', - 'description' => '业务对象描述信息', - 'type' => 'string', - 'example' => 'test', + 'LastOnShelveTime' => ['title' => '最近上架时间;', 'description' => '最近上架时间;', 'type' => 'string', 'example' => '2025-05-22 10:06:20'], + 'FirstOnShelveTime' => ['title' => '初次上架时间;', 'description' => '初次上架时间;', 'type' => 'string', 'example' => '2025-05-22 10:06:20'], + 'LastOnShelveUser' => [ + 'title' => '最近上架用户;', + 'description' => '最近上架用户;', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '12345'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => '张三'], + ], ], - 'OwnerUserId' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '30010010', + 'FirstOnShelveUser' => [ + 'title' => '初次上架用户;', + 'description' => '初次上架用户;', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '12345'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => '张三'], + ], ], - 'OwnerName' => [ - 'title' => '业务对象负责人', - 'description' => '业务对象负责人', - 'type' => 'string', - 'example' => '张三', + 'MaintainUserIds' => [ + 'title' => '上架维护人员;', + 'description' => '上架维护人员;', + 'type' => 'array', + 'items' => ['title' => '上架维护人员;', 'description' => '上架维护人员;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', + 'MaintainUserGroups' => [ + 'title' => '上架维护用户组;', + 'description' => '上架维护用户组;', + 'type' => 'array', + 'items' => ['title' => '上架维护用户组;', 'description' => '上架维护用户组;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', + 'ShelveViewScopeType' => ['title' => '可见范围类型;枚举值:ALL_USERS_CAN_VIEW(全部用户可见)、PART_USERS_CAN_VIEW(部分用户可见)、PART_USERS_CAN_NOT_VIEW(部分用户不可见)。', 'description' => '可见范围类型;枚举值:ALL_USERS_CAN_VIEW(全部用户可见)、PART_USERS_CAN_VIEW(部分用户可见)、PART_USERS_CAN_NOT_VIEW(部分用户不可见)。', 'type' => 'string', 'example' => 'ALL_USERS_CAN_VIEW'], + 'ShelveViewScopeUserIds' => [ + 'title' => '可见范围用户;', + 'description' => '可见范围用户;', + 'type' => 'array', + 'items' => ['title' => '可见范围用户;', 'description' => '可见范围用户;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], ], - 'LastModifier' => [ - 'title' => '最近一次修改人ID', - 'description' => '最近一次修改人ID', - 'type' => 'string', - 'example' => '30010010', + 'ShelveViewScopeUserGroups' => [ + 'title' => '可见范围用户组;', + 'description' => '可见范围用户组;', + 'type' => 'array', + 'items' => ['title' => '可见范围用户组;', 'description' => '可见范围用户组;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], ], - 'LastModifierName' => [ - 'title' => '最近一次修改人', - 'description' => '最近一次修改人', - 'type' => 'string', - 'example' => '张三', + 'ProfilingReportViewScopeType' => ['title' => '探查报告可见范围类型;当资产类型为TABLE、INDEX时返回。枚举值:ALL_USERS_CAN_VIEW(全部用户可见)、PART_USERS_CAN_VIEW(部分用户可见)、ALL_USERS_CAN_NOT_VIEW(全部用户不可见)。', 'description' => '探查报告可见范围类型;当资产类型为TABLE、INDEX时返回。枚举值:ALL_USERS_CAN_VIEW(全部用户可见)、PART_USERS_CAN_VIEW(部分用户可见)、ALL_USERS_CAN_NOT_VIEW(全部用户不可见)。', 'type' => 'string', 'example' => 'ALL_USERS_CAN_VIEW'], + 'ProfilingReportViewScopeUserIds' => [ + 'title' => '探查报告可见范围用户;', + 'description' => '探查报告可见范围用户;', + 'type' => 'array', + 'items' => ['title' => '探查报告可见范围用户;', 'description' => '探查报告可见范围用户;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], ], - 'ParentId' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10232311', + 'ProfilingReportViewScopeUserGroups' => [ + 'title' => '探查报告可见范围用户组;', + 'description' => '探查报告可见范围用户组;', + 'type' => 'array', + 'items' => ['title' => '探查报告可见范围用户组;', 'description' => '探查报告可见范围用户组;', 'type' => 'string', 'example' => '["300000901", "300006218"]'], + ], + 'ReadCount' => ['title' => '浏览量;', 'description' => '浏览量;', 'type' => 'integer', 'format' => 'int64', 'example' => '5'], + 'CollectionCount' => ['title' => '收藏数;', 'description' => '收藏数;', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'AssetDetailUrl' => ['title' => '资产目录详情链接;', 'description' => '资产目录详情链接;', 'type' => 'string', 'example' => 'https://dataphin.poc.lydaas.com/market/catalog/detail/table/...'], + 'Instruction' => ['title' => '使用说明;', 'description' => '使用说明;', 'type' => 'string', 'example' => 'test'], + 'Columns' => [ + 'title' => '字段列表;当资产类型为TABLE时返回。', + 'description' => '字段列表;当资产类型为TABLE时返回。', + 'type' => 'array', + 'items' => [ + 'title' => '资产字段信息', + 'description' => '资产字段信息', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => '字段GUID;', 'description' => '字段GUID;', 'type' => 'string', 'example' => 'dp_table.300023201.ld_fashion.dws_lulu_location.conversion_rate'], + 'Name' => ['title' => '字段名;', 'description' => '字段名;', 'type' => 'string', 'example' => 'conversion_rate'], + 'DisplayName' => ['title' => '字段展示名;', 'description' => '字段展示名;', 'type' => 'string', 'example' => '门店客流转化率'], + 'Description' => ['title' => '字段描述;', 'description' => '字段描述;', 'type' => 'string', 'example' => 'test'], + 'DataType' => ['title' => '字段类型;', 'description' => '字段类型;', 'type' => 'string', 'example' => 'double'], + 'BizType' => ['title' => '业务类型;枚举值:INDEX(指标)、STAT_PERIOD(统计日期)、DIMENSION(维度)。', 'description' => '业务类型;枚举值:INDEX(指标)、STAT_PERIOD(统计日期)、DIMENSION(维度)。', 'type' => 'string', 'example' => 'DIMENSION'], + 'AssociatedEntity' => [ + 'title' => '关联实体;当业务类型为DIMENSION时返回。', + 'description' => '关联实体;当业务类型为DIMENSION时返回。', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '业务板块ID;', 'description' => '业务板块ID;', 'type' => 'integer', 'format' => 'int64', 'example' => '7137404445633152'], + 'BizUnitName' => ['title' => '业务板块名称;', 'description' => '业务板块名称;', 'type' => 'string', 'example' => 'LD_train'], + 'DimensionId' => ['title' => '维度ID;', 'description' => '维度ID;', 'type' => 'integer', 'format' => 'int64', 'example' => '68014359'], + 'DimensionName' => ['title' => '维度名称;', 'description' => '维度名称;', 'type' => 'string', 'example' => 'etl_source'], + 'DimensionDisplayName' => ['title' => '维度展示名;', 'description' => '维度展示名;', 'type' => 'string', 'example' => '上药erp数据源'], + ], + ], + 'Standards' => [ + 'title' => '关联标准;', + 'description' => '关联标准;', + 'type' => 'array', + 'items' => [ + 'title' => '字段关联标准', + 'description' => '字段关联标准', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准ID;', 'description' => '标准ID;', 'type' => 'integer', 'format' => 'int64', 'example' => '120350'], + 'Name' => ['title' => '标准名称;', 'description' => '标准名称;', 'type' => 'string', 'example' => 'id'], + 'Code' => ['title' => '标准编码;', 'description' => '标准编码;', 'type' => 'string', 'example' => 'hr_person_id'], + ], + ], + ], + 'QualityScore' => ['title' => '质量分;', 'description' => '质量分;', 'type' => 'number', 'format' => 'double', 'example' => '0.0'], + 'ClassifyName' => ['title' => '数据分类;', 'description' => '数据分类;', 'type' => 'string', 'example' => '/交易信息/0000001'], + 'LevelShortName' => ['title' => '数据分级;', 'description' => '数据分级;', 'type' => 'string', 'example' => 'L4'], + ], + ], ], ], ], @@ -18565,241 +12094,140 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询资产详情', + 'summary' => '查询资产详情,上线版本号:v6.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DataDomainInfo\\": {\\n \\"Id\\": 1241844456,\\n \\"BizUnitId\\": 545844456,\\n \\"Name\\": \\"dm_code_name\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Abbreviation\\": \\"dm_code_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"ParentId\\": 10232311\\n }\\n}","type":"json"}]', - 'title' => '查询主题域详情', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Guid\\": \\"dp_ds_table.300023201.7311626611751680256.load_test.abc\\",\\n \\"AssetType\\": \\"TABLE\\",\\n \\"IsDeleted\\": true,\\n \\"AssetName\\": \\"abc\\",\\n \\"AssetDisplayName\\": \\"abc表\\",\\n \\"AssetFullName\\": \\"dwd_all.abc\\",\\n \\"MaxSecurityLevel\\": \\"L3\\",\\n \\"AssetTags\\": [\\n \\"[\\\\\\"标签1\\\\\\", \\\\\\"标签2\\\\\\"]\\"\\n ],\\n \\"AssetDescription\\": \\"abc\\",\\n \\"AssetFrom\\": \\"Dataphin-中间层-服饰零售 (LD_Fashion)\\",\\n \\"BizUnitId\\": 6865277495315392,\\n \\"BizUnitName\\": \\"服饰零售(LD_Fashion)\\",\\n \\"ProjectId\\": 6865331517728384,\\n \\"ProjectName\\": \\"train\\",\\n \\"DatasourceId\\": 7305549302863002000,\\n \\"DataSourceName\\": \\"demo_mysql\\",\\n \\"SubType\\": \\"DIM_NORMAL\\",\\n \\"Directories\\": [\\n {\\n \\"TopicId\\": 101676,\\n \\"TopicName\\": \\"全渠道数据专题\\",\\n \\"DirectoryId\\": 102260,\\n \\"DirectoryName\\": \\"线上电商平台\\"\\n }\\n ],\\n \\"SumTableGuid\\": \\"odps.300023201.test.ads_gross\\",\\n \\"SumTableName\\": \\"ads_gross\\",\\n \\"Granularity\\": \\"课程\\",\\n \\"DataCellId\\": \\"49837403\\",\\n \\"DataCellName\\": \\"课程域\\",\\n \\"ApiId\\": 10441,\\n \\"ApiGroupName\\": \\"默认API分组\\",\\n \\"ApiRequestMethod\\": \\"1\\",\\n \\"ApiCallMode\\": \\"1\\",\\n \\"BiCatalog\\": \\"dataphin演示空间\\",\\n \\"ChartCount\\": 23,\\n \\"CustomAttributes\\": [\\n {\\n \\"Code\\": \\"gkglbm\\",\\n \\"Name\\": \\"归口管理部门\\",\\n \\"Value\\": \\"abc\\",\\n \\"AttrType\\": \\"MANAGEMENT\\"\\n }\\n ],\\n \\"IsPartitionTable\\": true,\\n \\"PartitionKey\\": \\"ds\\",\\n \\"PrimaryKey\\": \\"employee_id\\",\\n \\"TableLifeCycle\\": \\"36000\\",\\n \\"SimpleNodeInfos\\": [\\n {\\n \\"NodeId\\": \\"n_7443633109495119872\\",\\n \\"SubBizType\\": \\"DLINK\\",\\n \\"NodeName\\": \\"2345\\",\\n \\"Owners\\": [\\n {\\n \\"UserId\\": \\"12345\\",\\n \\"DisplayName\\": \\"张三\\"\\n }\\n ],\\n \\"Project\\": {\\n \\"ProjectId\\": \\"6865331517728384\\",\\n \\"ProjectName\\": \\"fashion_cdm\\"\\n },\\n \\"BizUnit\\": \\"test\\",\\n \\"NodeScheduleType\\": \\"NORMAL\\",\\n \\"Env\\": \\"PROD\\"\\n }\\n ],\\n \\"TableSizeInBytes\\": 0,\\n \\"CreateTime\\": \\"2024-10-11 16:10:19\\",\\n \\"ModifyTime\\": \\"2024-10-11 16:10:19\\",\\n \\"LastDdlTime\\": \\"2024-10-11 16:10:19\\",\\n \\"LastDmlTime\\": \\"2024-10-11 16:10:19\\",\\n \\"Owner\\": {\\n \\"UserId\\": \\"12345\\",\\n \\"DisplayName\\": \\"张三\\"\\n },\\n \\"LastOnShelveTime\\": \\"2025-05-22 10:06:20\\",\\n \\"FirstOnShelveTime\\": \\"2025-05-22 10:06:20\\",\\n \\"LastOnShelveUser\\": {\\n \\"UserId\\": \\"12345\\",\\n \\"DisplayName\\": \\"张三\\"\\n },\\n \\"FirstOnShelveUser\\": {\\n \\"UserId\\": \\"12345\\",\\n \\"DisplayName\\": \\"张三\\"\\n },\\n \\"MaintainUserIds\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"MaintainUserGroups\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"ShelveViewScopeType\\": \\"ALL_USERS_CAN_VIEW\\",\\n \\"ShelveViewScopeUserIds\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"ShelveViewScopeUserGroups\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"ProfilingReportViewScopeType\\": \\"ALL_USERS_CAN_VIEW\\",\\n \\"ProfilingReportViewScopeUserIds\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"ProfilingReportViewScopeUserGroups\\": [\\n \\"[\\\\\\"300000901\\\\\\", \\\\\\"300006218\\\\\\"]\\"\\n ],\\n \\"ReadCount\\": 5,\\n \\"CollectionCount\\": 0,\\n \\"AssetDetailUrl\\": \\"https://dataphin.poc.lydaas.com/market/catalog/detail/table/...\\",\\n \\"Instruction\\": \\"test\\",\\n \\"Columns\\": [\\n {\\n \\"Guid\\": \\"dp_table.300023201.ld_fashion.dws_lulu_location.conversion_rate\\",\\n \\"Name\\": \\"conversion_rate\\",\\n \\"DisplayName\\": \\"门店客流转化率\\",\\n \\"Description\\": \\"test\\",\\n \\"DataType\\": \\"double\\",\\n \\"BizType\\": \\"DIMENSION\\",\\n \\"AssociatedEntity\\": {\\n \\"BizUnitId\\": 7137404445633152,\\n \\"BizUnitName\\": \\"LD_train\\",\\n \\"DimensionId\\": 68014359,\\n \\"DimensionName\\": \\"etl_source\\",\\n \\"DimensionDisplayName\\": \\"上药erp数据源\\"\\n },\\n \\"Standards\\": [\\n {\\n \\"Id\\": 120350,\\n \\"Name\\": \\"id\\",\\n \\"Code\\": \\"hr_person_id\\"\\n }\\n ],\\n \\"QualityScore\\": 0,\\n \\"ClassifyName\\": \\"/交易信息/0000001\\",\\n \\"LevelShortName\\": \\"L4\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], - 'DeleteDataDomain' => [ - 'summary' => '删除主题域。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetCheckConnectivityJobs' => [ + 'summary' => '根据指定数据源ID查询连通性检查任务列表,包含空值校验和租户权限验证,防止跨租户访问。'."\n" + .'发布版本号:v5.5.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'BizUnitId', - 'in' => 'query', - 'schema' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'DataSourceId', 'in' => 'query', - 'schema' => [ - 'title' => '主题域Id', - 'description' => '主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1241844456', - ], + 'schema' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '462935472785'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => 'result', + 'description' => 'result', + 'type' => 'array', + 'items' => [ + 'title' => 'CheckConnectivityJobDTO', + 'description' => 'CheckConnectivityJobDTO', + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'TenantId' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'string', 'example' => '30001011'], + 'JobType' => ['title' => '任务类型(应用级别或集群级别)', 'description' => '任务类型(应用级别或集群级别)', 'type' => 'string', 'example' => 'application/cluster'], + 'ErrorMsg' => ['title' => '错误信息(任务失败时的详细错误描述)', 'description' => '错误信息(任务失败时的详细错误描述)', 'type' => 'string', 'example' => 'notFoundIp'], + 'VoldemortTaskId' => ['title' => 'Voldemort任务ID(用于关联底层执行任务)', 'description' => 'Voldemort任务ID(用于关联底层执行任务)', 'type' => 'string', 'example' => 't_7572319950395080706_20251225_7572319950395080707'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => '192'], + 'JobId' => ['title' => '任务ID', 'description' => '任务ID', 'type' => 'string', 'example' => '123123'], + ], + ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TenantId\\": \\"30001011\\",\\n \\"JobType\\": \\"application/cluster\\",\\n \\"ErrorMsg\\": \\"notFoundIp\\",\\n \\"VoldemortTaskId\\": \\"t_7572319950395080706_20251225_7572319950395080707\\",\\n \\"DataSourceId\\": \\"192\\",\\n \\"JobId\\": \\"123123\\"\\n }\\n ],\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '查询数据源检查连通性任务', + 'description' => '可以根据数据源Id查询已测试的连通性任务详细信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除主题域', + 'ramActions' => [], ], - 'CreateDataDomain' => [ - 'summary' => '创建主题域。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetClusterQueueInfoByEnv' => [ + 'summary' => '根据环境获取集群信息。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => ['Dataphin公共云'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境', 'description' => '环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7081229106458752'], + ], + [ + 'name' => 'StreamBatchMode', + 'in' => 'query', 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', - 'type' => 'object', - 'properties' => [ - 'BizUnitId' => [ - 'title' => '所属数据板块Id', - 'description' => '所属数据板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '545844456', - ], - 'Name' => [ - 'title' => '主题域编码', - 'description' => '主题域编码', - 'type' => 'string', - 'required' => true, - 'example' => 'dm_code_name', - ], - 'DisplayName' => [ - 'title' => '主题域名称', - 'description' => '主题域名称', - 'type' => 'string', - 'required' => true, - 'example' => '主题域测试', - ], - 'Abbreviation' => [ - 'title' => '主题域缩写', - 'description' => '主题域缩写', - 'type' => 'string', - 'required' => true, - 'example' => 'dm_code_name', - ], - 'Description' => [ - 'title' => '主题域描述', - 'description' => '主题域描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ParentId' => [ - 'title' => '上级主题域Id', - 'description' => '上级主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '10232311', - ], - ], + 'title' => '流批模式'."\n", + 'description' => '流批模式'."\n", + 'type' => 'string', 'required' => true, + 'example' => 'BOTH', + 'enum' => ['STREAM', 'BATCH', 'BOTH'], ], ], ], @@ -18810,47 +12238,35 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ - 'title' => '新建结果', - 'description' => '新建结果', - 'type' => 'object', - 'properties' => [ - 'DataDomainId' => [ - 'title' => '主题域Id', - 'description' => '主题域Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1241844456', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'default' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '返回结果'."\n", + 'description' => '返回结果'."\n", + 'type' => 'array', + 'items' => [ + 'title' => '集群详细信息', + 'description' => '集群详细信息', + 'type' => 'object', + 'properties' => [ + 'ClusterId' => ['title' => '集群clusterId', 'description' => '集群clusterId', 'type' => 'string', 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d'], + 'QueueName' => ['title' => '队列名,唯一标示,k8s是资源组名称', 'description' => '队列名,唯一标示,k8s是资源组名称', 'type' => 'string', 'example' => 'default-queue'], + 'MaxVcore' => ['title' => '每个队列最大提供VCORE', 'description' => '每个队列最大提供VCORE', 'type' => 'string', 'example' => '10'], + 'Namespace' => ['title' => '命名空间', 'description' => '命名空间', 'type' => 'string', 'example' => 'dataphinv45prod'], + 'CreateAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-31 10:29:17'], + 'ModifiedAt' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2024-10-31 10:29:17'], + 'Annotations' => ['title' => '注释', 'description' => '注释', 'type' => 'string', 'example' => '{ "creator": "new_datasource@test.aliyunid.com", "modifier": "new_datasource@test.aliyunid.com" }'], + 'Labels' => ['title' => '标签', 'description' => '标签', 'type' => 'string', 'example' => 'cdh', 'default' => 'null'], + 'ResourceVersion' => ['title' => '资源版本', 'description' => '资源版本', 'type' => 'string', 'example' => '1'], + 'Spec' => ['title' => '资源规范', 'description' => '资源规范', 'type' => 'string', 'example' => '{\\n \\"kind\\" : \\"kubernetes\\",\\n \\"kubernetes\\{"namespace" : "n1730341728989z7", "clusterName" : "a51578bdcce145" }, "state" : "ONLINE"}'], + 'VvpClusterType' => ['title' => 'VVP集群类型', 'description' => 'VVP集群类型', 'type' => 'string', 'example' => 'PREJOB'], + 'FlinkVersion' => ['title' => 'Flink版本', 'description' => 'Flink版本', 'type' => 'string', 'required' => false, 'example' => '1.15', 'default' => 'null'], + 'FlinkImageRegistry' => ['title' => 'Flink镜像地址', 'description' => 'Flink镜像地址', 'type' => 'string', 'example' => 'xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com/xxxx/flink:1.15.4-scala_2.12', 'default' => 'null'], + 'FlinkImageRepository' => ['title' => 'Flink镜像仓库', 'description' => 'Flink镜像仓库', 'type' => 'string', 'example' => 'xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com', 'default' => 'null'], + 'FlinkImageTag' => ['title' => 'Flink镜像标签', 'description' => 'Flink镜像标签', 'type' => 'string', 'example' => '1.15.4', 'default' => 'null'], ], ], ], @@ -18860,134 +12276,92 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ClusterId\\": \\"61187014-a3ba-4cdd-8609-1f0aa3df4a3d\\",\\n \\"QueueName\\": \\"default-queue\\",\\n \\"MaxVcore\\": \\"10\\",\\n \\"Namespace\\": \\"dataphinv45prod\\",\\n \\"CreateAt\\": \\"2024-10-31 10:29:17\\",\\n \\"ModifiedAt\\": \\"2024-10-31 10:29:17\\",\\n \\"Annotations\\": \\"{ \\\\\\"creator\\\\\\": \\\\\\"new_datasource@test.aliyunid.com\\\\\\", \\\\\\"modifier\\\\\\": \\\\\\"new_datasource@test.aliyunid.com\\\\\\" }\\",\\n \\"Labels\\": \\"cdh\\",\\n \\"ResourceVersion\\": \\"1\\",\\n \\"Spec\\": \\"{\\\\\\\\n \\\\\\\\\\\\\\"kind\\\\\\\\\\\\\\" : \\\\\\\\\\\\\\"kubernetes\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"kubernetes\\\\\\\\{\\\\\\"namespace\\\\\\" : \\\\\\"n1730341728989z7\\\\\\", \\\\\\"clusterName\\\\\\" : \\\\\\"a51578bdcce145\\\\\\" }, \\\\\\"state\\\\\\" : \\\\\\"ONLINE\\\\\\"}\\",\\n \\"VvpClusterType\\": \\"PREJOB\\",\\n \\"FlinkVersion\\": \\"1.15\\",\\n \\"FlinkImageRegistry\\": \\"xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com/xxxx/flink:1.15.4-scala_2.12\\",\\n \\"FlinkImageRepository\\": \\"xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com\\",\\n \\"FlinkImageTag\\": \\"1.15.4\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取环境集群队列信息', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"DataDomainId\\": 1241844456\\n }\\n}","type":"json"}]', - 'title' => '创建主题域', - ], - 'DeleteBizEntity' => [ - 'summary' => '删除业务实体。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetClusterQueueInfoByEnv', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetComputeSource' => [ + 'summary' => '通过计算源Id获取计算源详情。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'BizUnitId', - 'in' => 'query', - 'schema' => [ - 'title' => '所属业务板块Id', - 'description' => '所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '6798087749072704', - ], - ], - [ - 'name' => 'Type', - 'in' => 'query', - 'schema' => [ - 'title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', - 'description' => '业务实体类型,具体参考“创建业务实体”接口', - 'type' => 'string', - 'required' => true, - 'example' => 'BIZ_OBJECT', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '业务实体Id', - 'description' => '业务实体Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101001201', - ], + 'schema' => ['title' => '计算源Id', 'description' => '计算源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12356'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', + 'title' => 'Schema of Response', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ComputeSourceInfo' => [ + 'title' => '计算源详情', + 'description' => '计算源详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '计算源Id', 'description' => '计算源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12356'], + 'Name' => ['title' => '计算源名', 'description' => '计算源名', 'type' => 'string', 'example' => 'dp_test'], + 'DisplayName' => ['title' => '展示名', 'description' => '显示名', 'type' => 'string', 'example' => 'dp_test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'compute source for xxx.'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间戳', 'type' => 'string', 'example' => '1681881607000'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '编辑时间戳', 'type' => 'string', 'example' => '1711881607000'], + 'Owner' => ['title' => '计算源归属人', 'description' => '计算源所有者ID', 'type' => 'string', 'example' => '101101'], + 'Creator' => ['title' => '创建者', 'description' => '计算源创建者ID', 'type' => 'string', 'example' => '101101'], + 'OwnerName' => ['title' => '计算源归属人', 'description' => '计算源所有者', 'type' => 'string', 'example' => 'test'], + 'CreatorName' => ['title' => '创建者', 'description' => '计算源创建者', 'type' => 'string', 'example' => 'test'], + 'BindProjectName' => ['title' => '绑定项目名称', 'description' => '绑定项目', 'type' => 'string', 'example' => 'dp_mctest'], + 'BindProjectId' => ['title' => '绑定项目Id', 'description' => '绑定项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '10101101'], + 'BindProject' => ['title' => '是否绑定项目', 'description' => '是否已绑定项目', 'type' => 'boolean', 'example' => 'true'], + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + ], ], ], ], @@ -18995,103 +12369,43 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ComputeSourceInfo\\": {\\n \\"Id\\": 12356,\\n \\"Name\\": \\"dp_test\\",\\n \\"DisplayName\\": \\"dp_test\\",\\n \\"Description\\": \\"compute source for xxx.\\",\\n \\"GmtCreate\\": \\"1681881607000\\",\\n \\"GmtModified\\": \\"1711881607000\\",\\n \\"Owner\\": \\"101101\\",\\n \\"Creator\\": \\"101101\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"BindProjectName\\": \\"dp_mctest\\",\\n \\"BindProjectId\\": 10101101,\\n \\"BindProject\\": true,\\n \\"Type\\": \\"MAX_COMPUTE\\"\\n }\\n}","type":"json"}]', + 'title' => '获取计算源详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除业务实体', + 'ramActions' => [], ], - 'CreateAdHocFile' => [ - 'summary' => '创建即席查询文件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataDomainInfo' => [ + 'summary' => '获取主题域详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '新建即席查询请求', - 'description' => '新建即席查询请求', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11212133', - ], - 'Name' => [ - 'title' => '文件名', - 'description' => '文件名', - 'type' => 'string', - 'required' => true, - 'example' => 'test_xx', - ], - 'Directory' => [ - 'title' => '文件所在目录', - 'description' => '文件所在目录', - 'type' => 'string', - 'required' => true, - 'example' => '/xx1/xx2/', - ], - 'Content' => [ - 'title' => '文件内容', - 'description' => '文件内容', - 'type' => 'string', - 'required' => true, - 'example' => 'select 1;', - ], - ], - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '主题域Id', 'description' => '主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1241844456'], ], ], 'responses' => [ @@ -19101,43 +12415,30 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'FileId' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1212313222', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'DataDomainInfo' => [ + 'title' => '主题域详情', + 'description' => '主题域详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '主题域Id', 'description' => '主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1241844456'], + 'BizUnitId' => ['title' => '所属数据板块', 'description' => '所属数据板块', 'type' => 'integer', 'format' => 'int64', 'example' => '545844456'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'dm_code_name'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => '测试'], + 'Abbreviation' => ['title' => '主题域缩写', 'description' => '主题域缩写', 'type' => 'string', 'example' => 'dm_code_name'], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'ParentId' => ['title' => '上级主题域Id', 'description' => '上级主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10232311'], + ], ], ], ], @@ -19145,123 +12446,97 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DataDomainInfo\\": {\\n \\"Id\\": 1241844456,\\n \\"BizUnitId\\": 545844456,\\n \\"Name\\": \\"dm_code_name\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Abbreviation\\": \\"dm_code_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"ParentId\\": 10232311\\n }\\n}","type":"json"}]', + 'title' => '查询主题域详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileId\\": 1212313222\\n}","type":"json"}]', - 'title' => '创建即席查询文件', - ], - 'DeleteAdHocFile' => [ - 'summary' => '删除菜单树即席查询文件。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDataDomainInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetDataServiceApiCallSummary' => [ + 'summary' => '运维监控:获取Api调用汇总统计。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12132323', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'FileId', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12121111', - ], + 'schema' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '调用汇总', + 'description' => '调用汇总', + 'type' => 'object', + 'properties' => [ + 'CallCount' => ['title' => 'API调用次数', 'description' => 'API调用次数', 'type' => 'integer', 'format' => 'int64', 'example' => '1021'], + 'ErrorCount' => ['title' => '调用异常次数', 'description' => '调用异常次数', 'type' => 'integer', 'format' => 'int64', 'example' => '102'], + 'ErrorRate' => ['title' => '错误率', 'description' => '错误率', 'type' => 'number', 'format' => 'double', 'example' => '10.01'], + 'OfflineRate' => ['title' => 'offline百分比', 'description' => 'offline百分比', 'type' => 'number', 'format' => 'double', 'example' => '2.03'], + 'ErrorApiCount' => ['title' => '调用异常API数', 'description' => '调用异常API数', 'type' => 'integer', 'format' => 'int64', 'example' => '8'], + 'ErrorAppCount' => ['title' => '异常影响APP数', 'description' => '异常影响APP数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + ], ], ], ], @@ -19269,174 +12544,137 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"CallCount\\": 1021,\\n \\"ErrorCount\\": 102,\\n \\"ErrorRate\\": 10.01,\\n \\"OfflineRate\\": 2.03,\\n \\"ErrorApiCount\\": 8,\\n \\"ErrorAppCount\\": 2\\n }\\n}","type":"json"}]', + 'title' => '获取数据服务Api调用汇总', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除即席查询文件', + 'ramActions' => [], ], - 'UpdateAdHocFile' => [ - 'summary' => '修改即席查询文件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceApiCallTrend' => [ + 'summary' => '运维监控:Api访问趋势分析。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '编辑请求', - 'description' => '编辑请求', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1212313', - ], - 'FileId' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2311113', - ], - 'Content' => [ - 'title' => '文件内容', - 'description' => '文件内容', - 'type' => 'string', - 'required' => true, - 'example' => 'select 1;', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'StartTime', + 'in' => 'query', + 'schema' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '访问趋势', + 'description' => '访问趋势', + 'type' => 'object', + 'properties' => [ + 'CallErrorTrendList' => [ + 'title' => '调用异常趋势,按分钟升序', + 'description' => '调用异常趋势,按分钟升序', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Minute' => ['title' => '分钟,格式:yyyy_MMdd_HHmm', 'description' => '分钟,格式:yyyy_MMdd_HHmm', 'type' => 'string', 'example' => '3'], + 'CallCount' => ['title' => '调用次数', 'description' => '调用次数', 'type' => 'integer', 'format' => 'int64', 'example' => '1021'], + 'ErrorCount' => ['title' => '调用异常次数', 'description' => '调用异常次数', 'type' => 'integer', 'format' => 'int64', 'example' => '102'], + ], + ], + ], + 'CallErrorImpactTrendList' => [ + 'title' => '调用异常影响趋势,按分钟升序', + 'description' => '调用异常影响趋势,按分钟升序', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ErrorApiCount' => ['title' => '调用异常API数', 'description' => '调用异常API数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'Minute' => ['title' => '时间刻度,分钟:yyyy-MM-dd HH:mm', 'description' => '时间刻度,分钟:yyyy-MM-dd HH:mm', 'type' => 'string', 'example' => '2025-06-30 08:00'], + 'ErrorAppCount' => ['title' => '影响APP数', 'description' => '影响APP数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ApiIdList' => [ + 'title' => 'Api编号', + 'description' => 'Api编号', + 'type' => 'array', + 'items' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'example' => '1203'], + ], + ], + ], + ], + ], + ], + ], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"CallErrorTrendList\\": [\\n {\\n \\"Minute\\": \\"3\\",\\n \\"CallCount\\": 1021,\\n \\"ErrorCount\\": 102\\n }\\n ],\\n \\"CallErrorImpactTrendList\\": [\\n {\\n \\"ErrorApiCount\\": 5,\\n \\"Minute\\": \\"2025-06-30 08:00\\",\\n \\"ErrorAppCount\\": 1,\\n \\"ApiIdList\\": [\\n 1203\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取数据服务Api访问趋势分析', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '修改即席查询文件', + 'ramActions' => [], ], - 'GetAdHocFile' => [ - 'summary' => '查询目录树即席查询文件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceApiDocument' => [ + 'summary' => '获取API文档。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -19444,134 +12682,140 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', + 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12132323', - ], + 'schema' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102101'], ], [ - 'name' => 'FileId', + 'name' => 'VersionId', 'in' => 'query', - 'schema' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12121111', - ], + 'schema' => ['title' => '版本', 'description' => '版本', 'type' => 'string', 'required' => false, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'FileInfo' => [ - 'title' => '即席查询文件详情', - 'description' => '即席查询文件详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => 'Api文档', + 'description' => 'Api文档', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '文件ID', - 'description' => '文件ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12121111', - ], - 'Name' => [ - 'title' => '文件名', - 'description' => '文件名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12132323', - ], - 'Directory' => [ - 'title' => '文件所在目录', - 'description' => '文件所在目录', - 'type' => 'string', - 'example' => '/xx1/xx2/', - ], - 'Content' => [ - 'title' => '文件内容', - 'description' => '文件内容', - 'type' => 'string', - 'example' => 'select 1;', + 'Name' => ['title' => 'api名称', 'description' => 'api名称', 'type' => 'string', 'example' => '测试'], + 'GroupId' => ['title' => 'api分组Id', 'description' => 'api分组Id', 'type' => 'integer', 'format' => 'int32', 'example' => '1011'], + 'GroupName' => ['title' => 'api分组名称', 'description' => 'api分组名称', 'type' => 'string', 'example' => '1011'], + 'RequestMethod' => ['title' => '请求方法: 1 get、2 list', 'description' => '请求方法: 1 get、2 list', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'UpdateRate' => ['title' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', 'description' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'ReturnType' => ['title' => '返回数据类型: 1 JSON', 'description' => '返回数据类型: 1 JSON', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Protocol' => ['title' => '协议: 1 https、2 http、3 http和https两者', 'description' => '协议: 1 https、2 http、3 http和https两者', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Sql' => ['title' => 'sql语句', 'description' => 'sql语句', 'type' => 'string', 'example' => 'select col1 from table1;'], + 'RequestParamList' => [ + 'title' => '请求参数列表', + 'description' => '请求参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'example' => '1'], + 'Type' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'string'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '测试'], + 'IsRequired' => ['title' => '请求参数是否必填:1、是, 0、选填', 'description' => '请求参数是否必填:1、是, 0、选填', 'type' => 'boolean'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'col1'], + ], + ], ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '12121', + 'ResponseParamList' => [ + 'title' => '响应参数列表', + 'description' => '响应参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'string'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '测试'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'col1'], + ], + ], ], - 'LastModifier' => [ - 'title' => '编辑者', - 'description' => '编辑者', - 'type' => 'string', - 'example' => '12121', + 'PublicParamList' => [ + 'title' => '公共参数列表', + 'description' => '公共参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'string'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '测试'], + 'IsRequired' => ['title' => '请求参数是否必填:1、是, 0、选填', 'description' => '请求参数是否必填:1、是, 0、选填', 'type' => 'boolean'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'col1'], + ], + ], + ], + 'IsSpecialSql' => ['title' => '特殊sql: 0 不是、1 是', 'description' => '特殊sql: 0 不是、1 是', 'type' => 'boolean'], + 'CreateType' => ['title' => '创建类型: 0 自定义模式、1 向导模式、2-直连API', 'description' => '创建类型: 0 自定义模式、1 向导模式、2-直连API', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ApiId' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'example' => '102101'], + 'Mode' => ['title' => '模式:0 basic、1 dev_prod', 'description' => '模式:0 basic、1 dev_prod', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Env' => ['title' => '环境:0 dev,1 prod', 'description' => '环境:0 dev,1 prod', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ResultSample' => ['title' => '调用结果样例', 'description' => '调用结果样例', 'type' => 'string', 'example' => '{"count": 88}'], + 'BizUnitName' => ['title' => '业务板块名(仅逻辑表时有值)', 'description' => '业务板块名(仅逻辑表时有值)', 'type' => 'string', 'example' => 'bizUnit_test'], + 'TableName' => ['title' => '逻辑表名(仅逻辑表时有值)', 'description' => '逻辑表名(仅逻辑表时有值)', 'type' => 'string', 'example' => 't_logical_test1'], + 'IsLogicalTable' => ['title' => '是否逻辑表', 'description' => '是否逻辑表', 'type' => 'boolean'], + 'DirectDatasourceId' => ['title' => '直连API的数据源ID', 'description' => '直连API的数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DirectDatasourceName' => ['title' => '直连API的数据源名称', 'description' => '直连API的数据源名称', 'type' => 'string', 'example' => 'test'], + 'ApiTimeout' => ['title' => '直连Api超时时长(s)', 'description' => '直连Api超时时长(s)', 'type' => 'integer', 'format' => 'int32', 'example' => '60'], + 'ReturnLimit' => ['title' => '直连Api最大返回记录数', 'description' => '直连Api最大返回记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'ProjectId' => ['title' => '数据服务项目id', 'description' => '数据服务项目id', 'type' => 'integer', 'format' => 'int32', 'example' => '10201'], + 'ProjectName' => ['title' => '数据服务项目名称', 'description' => '数据服务项目名称', 'type' => 'string', 'example' => 'test'], + 'ResourceGroupId' => ['title' => '资源组Id', 'description' => '资源组Id', 'type' => 'string', 'example' => '10021'], + 'ResourceGroupName' => ['title' => '资源组名', 'description' => '资源组名', 'type' => 'string', 'example' => 'test'], + 'OpenCache' => ['title' => '缓存开关:0 关,1 开', 'description' => '缓存开关:0 关,1 开', 'type' => 'boolean'], + 'CacheTime' => ['title' => '缓存时长(秒)', 'description' => '缓存时长(秒)', 'type' => 'string', 'example' => '600'], + 'Timeout' => ['title' => '超时时长(秒)', 'description' => '超时时长(秒)', 'type' => 'string', 'example' => '60'], + 'ScriptType' => ['title' => '脚本类型: NORMAL_SQL 基础SQL、MYBATIS_SQL 高级SQL、AVIATOR aviator表达式', 'description' => '脚本类型: NORMAL_SQL 基础SQL、MYBATIS_SQL 高级SQL、AVIATOR aviator表达式', 'type' => 'string', 'example' => 'NORMAL_SQL'], + 'ApiRegisterInfo' => [ + 'title' => 'Api注册信息', + 'description' => 'Api注册信息', + 'type' => 'object', + 'properties' => [ + 'Mode' => ['title' => '模式:0 basic、1 dev_prod', 'description' => '模式:0 basic、1 dev_prod', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'HttpMethod' => ['title' => '注册API请求方式:1 get、2 post', 'description' => '注册API请求方式:1 get、2 post', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'DatasourceId' => ['title' => 'API数据源ID', 'description' => 'API数据源ID', 'type' => 'string', 'example' => '102311'], + 'DatasourceName' => ['title' => 'API数据源名称', 'description' => 'API数据源名称', 'type' => 'string', 'example' => 'test'], + 'Url' => ['title' => 'API数据源URL地址', 'description' => 'API数据源URL地址', 'type' => 'string', 'example' => 'http://192.168.1.1:8080'], + 'AuthType' => ['title' => 'API数据源认证方式: 1 BearToken、2 ApiKey、3 None、4 AppKeyAuth、5 BasicAuth', 'description' => 'API数据源认证方式: 1 BearToken、2 ApiKey、3 None、4 AppKeyAuth、5 BasicAuth', 'type' => 'string', 'example' => '3'], + 'Protocol' => ['title' => 'API数据源请求协议', 'description' => 'API数据源请求协议', 'type' => 'string', 'example' => 'https'], + 'Path' => ['title' => '服务path', 'description' => '服务path', 'type' => 'string', 'example' => '/api/test'], + 'Timeout' => ['title' => '超时时长(秒)', 'description' => '超时时长(秒)', 'type' => 'integer', 'format' => 'int32', 'example' => '60'], + ], ], + 'Version' => ['title' => '版本', 'description' => '版本', 'type' => 'string', 'example' => '1.0'], + 'IsPagedQuery' => ['title' => '是否是分页查询: 1 是、0 否', 'description' => '是否是分页查询: 1 是、0 否', 'type' => 'boolean'], ], ], ], @@ -19580,122 +12824,105 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Name\\": \\"测试\\",\\n \\"GroupId\\": 1011,\\n \\"GroupName\\": \\"1011\\",\\n \\"RequestMethod\\": 1,\\n \\"UpdateRate\\": 1,\\n \\"Description\\": \\"test\\",\\n \\"ReturnType\\": 1,\\n \\"Protocol\\": 1,\\n \\"Sql\\": \\"select col1 from table1;\\",\\n \\"RequestParamList\\": [\\n {\\n \\"DefaultValue\\": \\"1\\",\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"IsRequired\\": true,\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"ResponseParamList\\": [\\n {\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"PublicParamList\\": [\\n {\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"IsRequired\\": true,\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"IsSpecialSql\\": true,\\n \\"CreateType\\": 1,\\n \\"ApiId\\": 102101,\\n \\"Mode\\": 1,\\n \\"Env\\": 1,\\n \\"ResultSample\\": \\"{\\\\\\"count\\\\\\": 88}\\",\\n \\"BizUnitName\\": \\"bizUnit_test\\",\\n \\"TableName\\": \\"t_logical_test1\\",\\n \\"IsLogicalTable\\": true,\\n \\"DirectDatasourceId\\": 1,\\n \\"DirectDatasourceName\\": \\"test\\",\\n \\"ApiTimeout\\": 60,\\n \\"ReturnLimit\\": 100,\\n \\"ProjectId\\": 10201,\\n \\"ProjectName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"10021\\",\\n \\"ResourceGroupName\\": \\"test\\",\\n \\"OpenCache\\": true,\\n \\"CacheTime\\": \\"600\\",\\n \\"Timeout\\": \\"60\\",\\n \\"ScriptType\\": \\"NORMAL_SQL\\",\\n \\"ApiRegisterInfo\\": {\\n \\"Mode\\": 1,\\n \\"HttpMethod\\": 2,\\n \\"DatasourceId\\": \\"102311\\",\\n \\"DatasourceName\\": \\"test\\",\\n \\"Url\\": \\"http://192.168.1.1:8080\\",\\n \\"AuthType\\": \\"3\\",\\n \\"Protocol\\": \\"https\\",\\n \\"Path\\": \\"/api/test\\",\\n \\"Timeout\\": 60\\n },\\n \\"Version\\": \\"1.0\\",\\n \\"IsPagedQuery\\": true\\n }\\n}","type":"json"}]', + 'title' => '获取API文档详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileInfo\\": {\\n \\"Id\\": 12121111,\\n \\"Name\\": \\"xx测试\\",\\n \\"ProjectId\\": 12132323,\\n \\"Directory\\": \\"/xx1/xx2/\\",\\n \\"Content\\": \\"select 1;\\",\\n \\"Creator\\": \\"12121\\",\\n \\"LastModifier\\": \\"12121\\"\\n }\\n}","type":"json"}]', - 'title' => '查询即席查询文件', + 'ramActions' => [], ], - 'StopAdHocTask' => [ - 'summary' => '终止即席查询任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceApiErrorImpact' => [ + 'summary' => '获取API异常影响汇总。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'TaskId', + 'name' => 'StartTime', 'in' => 'query', - 'schema' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'required' => true, - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], + 'schema' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + ], + [ + 'name' => 'EndTime', + 'in' => 'query', + 'schema' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'title' => '调用异常影响汇总', + 'description' => '调用异常影响汇总', + 'type' => 'object', + 'properties' => [ + 'ErrorAppList' => [ + 'title' => '异常影响的APP', + 'description' => '异常影响的APP', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'AppId' => ['title' => 'appId', 'description' => 'appId', 'type' => 'integer', 'format' => 'int32', 'example' => '1021'], + 'AppKey' => ['title' => 'appKey', 'description' => 'appKey', 'type' => 'integer', 'format' => 'int64', 'example' => '100211'], + 'ErrorCount' => ['title' => 'app异常数', 'description' => 'app异常数', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'AppName' => ['title' => 'app名称', 'description' => 'app名称', 'type' => 'string', 'example' => 'app1'], + ], + ], + ], + 'ErrorApiList' => [ + 'title' => '异常影响API', + 'description' => '异常影响API', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'AppId' => ['title' => 'api编码', 'description' => 'api编码', 'type' => 'integer', 'format' => 'int64', 'example' => '2012'], + 'ApiName' => ['title' => 'api名称', 'description' => 'api名称', 'type' => 'string', 'example' => 'test'], + 'ErrorCount' => ['title' => 'api异常数', 'description' => 'api异常数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + ], + ], + ], + ], ], ], ], @@ -19703,38 +12930,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"ErrorAppList\\": [\\n {\\n \\"AppId\\": 1021,\\n \\"AppKey\\": 100211,\\n \\"ErrorCount\\": 10,\\n \\"AppName\\": \\"app1\\"\\n }\\n ],\\n \\"ErrorApiList\\": [\\n {\\n \\"AppId\\": 2012,\\n \\"ApiName\\": \\"test\\",\\n \\"ErrorCount\\": 100\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取数据服务API异常影响', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '终止即席查询任务', + 'ramActions' => [], ], - 'GetAdHocTaskResult' => [ - 'summary' => '获取即席查询的任务运行结果。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceApiGroups' => [ + 'summary' => '查询数据服务API分组列表。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -19742,118 +12957,42 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], - [ - 'name' => 'TaskId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'required' => true, - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], - ], - [ - 'name' => 'SubTaskId', - 'in' => 'query', - 'schema' => [ - 'title' => '子任务ID', - 'description' => '子任务ID', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ExecuteResult' => [ - 'title' => '运行结果', - 'description' => '运行结果', - 'type' => 'object', - 'properties' => [ - 'TaskId' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], - 'ScheduleTaskId' => [ - 'title' => '对应调度任务ID', - 'description' => '对应调度任务ID', - 'type' => 'string', - 'example' => 't_2242892326444990464_20210125_2242892326444990465', - ], - 'Result' => [ - 'title' => '任务执行结果', - 'description' => '任务执行结果', - 'type' => 'string', - 'example' => '1', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ApiGroupList' => [ + 'title' => 'Api分组列表', + 'description' => 'Api分组列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '分组ID', 'description' => '分组ID', 'type' => 'integer', 'format' => 'int32', 'example' => '101231'], + 'Name' => ['title' => '分组名', 'description' => '分组名', 'type' => 'string', 'example' => 'test'], ], ], ], @@ -19863,398 +13002,162 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ApiGroupList\\": [\\n {\\n \\"Id\\": 101231,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取数据服务API分组列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ExecuteResult\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"ScheduleTaskId\\": \\"t_2242892326444990464_20210125_2242892326444990465\\",\\n \\"Result\\": \\"1\\"\\n }\\n}","type":"json"}]', - 'title' => '获取即席查询的任务运行结果', + 'ramActions' => [], ], - 'ExecuteAdHocTask' => [ - 'summary' => '执行即席查询任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceApp' => [ + 'summary' => '查询数据服务应用详情,包括应用的项目、应用名称、认证信息、IP白名单等信息,仅应用成员可查看。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ExecuteCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '执行命令', - 'description' => '执行命令', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'title' => '任务脚本', - 'description' => '任务脚本', - 'type' => 'string', - 'required' => true, - 'example' => 'show tables;', - ], - 'ParamList' => [ - 'title' => '运行参数列表', - 'description' => '运行参数', - 'type' => 'array', - 'items' => [ - 'title' => '运行参数', - 'description' => '运行参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '运行参数名称', - 'description' => '参数', - 'type' => 'string', - 'required' => true, - 'example' => 'param1', - ], - 'Value' => [ - 'title' => '运行参数值', - 'description' => '参数值', - 'type' => 'string', - 'required' => true, - 'example' => 'value1', - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'OperatorType' => [ - 'title' => '任务类型', - 'description' => '任务类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MaxCompute_SQL', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123222121', - ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'erp', - ], - ], - 'required' => true, - ], + 'name' => 'AppId', + 'in' => 'query', + 'schema' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '12345'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ExecuteResult' => [ - 'title' => '执行结果', - 'description' => '执行结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '查询数据服务应用详情', + 'description' => '查询数据服务应用详情', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], - 'SubTaskCount' => [ - 'title' => '任务解析, 拆分出来子任务个数', - 'description' => '任务解析, 拆分出来子任务个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'example' => '12345'], + 'IpWhitelist' => ['title' => 'IP白名单地址。IP或IP段,以英文分号分隔,IP段采用CIDR模式,以\'/\'分隔末尾数字且范围为1~32,例如192.168.3.12/24', 'description' => 'IP白名单地址。IP或IP段,以英文分号分隔,IP段采用CIDR模式,以\'/\'分隔末尾数字且范围为1~32,例如192.168.3.12/24', 'type' => 'string', 'example' => 'true'], + 'AppKey' => ['title' => '应用的AppKey', 'description' => '应用的AppKey', 'type' => 'string', 'example' => '默认应用'], + 'Scenarios' => ['title' => '应用场景', 'description' => '应用场景', 'type' => 'string', 'example' => '数据分析'], + 'OwnerList' => [ + 'title' => '负责人列表', + 'description' => '负责人列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '12345'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => '张三'], + ], + ], ], + 'AppSecret' => ['title' => '应用的AppSecret', 'description' => '应用的AppSecret', 'type' => 'string', 'example' => '默认应用'], + 'AppGroup' => ['title' => '应用分组名称', 'description' => '应用分组名称', 'type' => 'string', 'example' => '默认分组'], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'example' => '默认应用'], + 'IpWhitelistStatus' => ['title' => '是否开启IP白名单,true:开启 false:关闭', 'description' => '是否开启IP白名单,true:开启 false:关闭', 'type' => 'boolean'], ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"AppId\\": 12345,\\n \\"IpWhitelist\\": \\"true\\",\\n \\"AppKey\\": \\"默认应用\\",\\n \\"Scenarios\\": \\"数据分析\\",\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"12345\\",\\n \\"Name\\": \\"张三\\"\\n }\\n ],\\n \\"AppSecret\\": \\"默认应用\\",\\n \\"AppGroup\\": \\"默认分组\\",\\n \\"AppName\\": \\"默认应用\\",\\n \\"IpWhitelistStatus\\": true\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '查询数据服务应用详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ExecuteResult\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"SubTaskCount\\": 1\\n }\\n}","type":"json"}]', - 'title' => '执行即席查询任务', + 'ramActions' => [], ], - 'GetAdHocTaskLog' => [ - 'summary' => '获取即席查询任务运行日志。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAppAuthorizedUsers' => [ + 'summary' => '获取应用有权限的用户列表。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - ], - [ - 'name' => 'TaskId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'required' => true, - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], - ], - [ - 'name' => 'SubTaskId', - 'in' => 'query', - 'schema' => [ - 'title' => '子任务ID, 从0开始', - 'description' => '子任务ID, 从0开始', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'Offset', + 'name' => 'AppId', 'in' => 'query', - 'schema' => [ - 'title' => '查询日志的偏移量, 根据返回的结果递增 初始值传0', - 'description' => '查询日志的偏移量, 根据返回的结果递增 初始值传0', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1021', - ], + 'schema' => ['title' => 'AppId', 'description' => 'AppId', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1022'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'LogInfo' => [ - 'title' => '日志详情', - 'description' => '日志详情', - 'type' => 'object', - 'properties' => [ - 'TaskId' => [ - 'title' => '任务Id', - 'description' => '任务Id', - 'type' => 'string', - 'example' => 'MaxCompute_SQL_300000843_1611548758327', - ], - 'SubTaskId' => [ - 'title' => '子任务ID', - 'description' => '子任务ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'TaskStatus' => [ - 'title' => '任务运行状态: 等待资源 WAIT_RESOURCE', - 'description' => '任务运行状态: 等待资源 WAIT_RESOURCE', - 'type' => 'string', - 'example' => 'WAIT_RESOURCE', - ], - 'HasNext' => [ - 'title' => '是否有下一条日志', - 'description' => '是否有下一条日志', - 'type' => 'boolean', - ], - 'HasResult' => [ - 'title' => '当前查询是否会产生结果', - 'description' => '当前查询是否会产生结果', - 'type' => 'boolean', - ], - 'NextOffset' => [ - 'title' => '下条日志的起始位置', - 'description' => '下条日志的起始位置', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2021', - ], - 'Content' => [ - 'title' => '运行日志', - 'description' => '运行日志', - 'type' => 'string', - 'example' => 'test', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'UserList' => [ + 'title' => '用户列表', + 'description' => '用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30002101'], ], ], ], @@ -20264,292 +13167,46 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UserList\\": [\\n {\\n \\"DisplayName\\": \\"test\\",\\n \\"Id\\": \\"30002101\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取有数据服务应用权限的用户列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"LogInfo\\": {\\n \\"TaskId\\": \\"MaxCompute_SQL_300000843_1611548758327\\",\\n \\"SubTaskId\\": 0,\\n \\"TaskStatus\\": \\"WAIT_RESOURCE\\",\\n \\"HasNext\\": true,\\n \\"HasResult\\": true,\\n \\"NextOffset\\": 2021,\\n \\"Content\\": \\"test\\"\\n }\\n}","type":"json"}]', - 'title' => '获取即席查询任务运行日志', + 'ramActions' => [], ], - 'UpdatePipelineByAsync' => [ - 'summary' => '异步更新集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAppGroups' => [ + 'summary' => '查询数据服务项目的应用分组列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], - ], - [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新管道任务配置', - 'description' => '更新管道任务配置', - 'type' => 'object', - 'properties' => [ - 'ScheduleConfig' => [ - 'title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'type' => 'string', - 'required' => true, - 'example' => '{"cronExpression":"0 0 0 * * ?"}', - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'PipelineConfig' => [ - 'title' => '集成管道组件配置', - 'description' => '集成管道组件配置', - 'type' => 'object', - 'properties' => [ - 'Steps' => [ - 'title' => '组件配置:包含所有用到的组件详细配置', - 'description' => '组件配置:包含所有用到的组件详细配置', - 'type' => 'array', - 'items' => [ - 'title' => '组件具体配置', - 'description' => '组件具体配置', - 'type' => 'object', - 'properties' => [ - 'PluginConfig' => [ - 'title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => '{}', - ], - 'StepType' => [ - 'title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'input', - ], - 'StepName' => [ - 'title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - 'IsDistribute' => [ - 'title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'type' => 'boolean', - 'required' => false, - ], - 'Key' => [ - 'title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'mysqlinput', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'Hops' => [ - 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'type' => 'array', - 'items' => [ - 'title' => '集成管道输入输出组件关系配置', - 'description' => '集成管道输入输出组件关系配置', - 'type' => 'object', - 'properties' => [ - 'Target' => [ - 'title' => '输出步骤名称,即Steps[*].StepName', - 'description' => '输出步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_writer', - ], - 'SendTo' => [ - 'title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'type' => 'boolean', - 'required' => false, - ], - 'Source' => [ - 'title' => '输入步骤名称,即Steps[*].StepName', - 'description' => '输入步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'NodeInfo' => [ - 'title' => '集成管道任务基本信息', - 'description' => '集成管道任务基本信息', - 'type' => 'object', - 'properties' => [ - 'NodeName' => [ - 'title' => '集成管道任务名称', - 'description' => '集成管道任务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'Directory' => [ - 'title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - ], - 'required' => true, - ], - 'PipelineType' => [ - 'title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'description' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], - 'Mode' => [ - 'title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'type' => 'string', - 'required' => false, - 'example' => 'PIPELINE', - ], - 'Submit' => [ - 'title' => '是否提交,默认提交', - 'description' => '是否提交,默认提交', - 'type' => 'boolean', - 'required' => false, - ], - 'PipelineJson' => [ - 'title' => '脚本模式下:集成管道配置(json字符串格式)', - 'description' => '脚本模式下:集成管道配置(json字符串格式)', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - 'Settings' => [ - 'title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => ['title' => '数据服务项目Id(该字段已弃用)', 'description' => '数据服务项目Id'."\n" + .'>该字段已弃用>', 'type' => 'integer', 'format' => 'int32', 'deprecated' => true, 'required' => false, 'example' => '102102'], ], ], 'responses' => [ @@ -20559,42 +13216,24 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '异步执行查询Id', - 'description' => '异步执行查询Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'AppGroupList' => [ + 'title' => 'App分组列表', + 'description' => 'App分组列表', + 'type' => 'array', + 'items' => [ + 'title' => '分组信息', + 'description' => '分组信息', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '分组ID', 'description' => '分组ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1022'], + 'Name' => ['title' => '分组名字', 'description' => '分组名称', 'type' => 'string', 'example' => 'test'], + ], + ], ], ], ], @@ -20602,135 +13241,45 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppGroupList\\": [\\n {\\n \\"Id\\": 1022,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取数据服务应用分组列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '异步更新管道', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'OfflinePipelineByAsync' => [ - 'summary' => '异步下线集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAppMembers' => [ + 'summary' => '查询数据服务应用的成员列表(含普通成员和负责人),仅应用负责人可查询。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OfflineCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '下线管道任务', - 'description' => '下线管道任务', - 'type' => 'object', - 'properties' => [ - 'Delete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'required' => true, - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'NodeId' => [ - 'title' => '支持使用集成任务调度节点nodeId查询', - 'description' => '支持使用集成任务调度节点nodeId查询', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '支持使用集成管道主键pipelineId查询', - 'description' => '支持使用集成管道主键pipelineId查询', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '支持使用集成任务文件fileId查询', - 'description' => '支持使用集成任务文件fileId查询', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - ], - 'required' => true, - ], + 'name' => 'AppId', + 'in' => 'query', + 'schema' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '12345'], ], ], 'responses' => [ @@ -20740,76 +13289,62 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'Data' => [ - 'title' => '异步执行查询Id', - 'description' => '异步执行查询Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'title' => '查询数据服务应用的成员列表', + 'description' => '查询数据服务应用的成员列表', + 'type' => 'object', + 'properties' => [ + 'MemberList' => [ + 'title' => '应用成员列表', + 'description' => '应用成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Role' => ['title' => '用户角色:'."\n" + .'general:普通成员'."\n" + .'owner:应用负责人', 'description' => '用户角色:'."\n" + .'general:普通成员'."\n" + .'owner:应用负责人', 'type' => 'string', 'example' => 'general'], + 'EffectiveEnd' => ['title' => '授权到期时间', 'description' => '授权到期时间', 'type' => 'string', 'example' => '2026-12-12'], + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '200000245'], + ], + ], + ], + ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"MemberList\\": [\\n {\\n \\"Role\\": \\"general\\",\\n \\"EffectiveEnd\\": \\"2026-12-12\\",\\n \\"UserId\\": \\"200000245\\"\\n }\\n ]\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '查询数据服务应用的成员列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '异步下线管道任务', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'GetPipelineById' => [ - 'summary' => '根据管道任务id查询管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAppsByGroupId' => [ + 'summary' => '查询分组下应用列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -20818,87 +13353,22 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'QueryId', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '用户查询管道任务的Id', - 'description' => '用户查询管道任务的Id', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '支持使用集成任务调度节点nodeId查询', - 'description' => '支持使用集成任务调度节点nodeId查询', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '支持使用集成管道主键pipelineId查询', - 'description' => '支持使用集成管道主键pipelineId查询', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '支持使用集成任务文件fileId查询', - 'description' => '支持使用集成任务文件fileId查询', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - ], - 'required' => true, - ], + 'name' => 'GroupId', + 'in' => 'query', + 'schema' => ['title' => 'App分组Id', 'description' => 'App分组Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '202102'], ], ], 'responses' => [ @@ -20908,336 +13378,74 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '管道任务详情', - 'description' => '管道任务详情', - 'type' => 'object', - 'properties' => [ - 'ScheduleConfig' => [ - 'title' => '集成管道调度配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.vo.OAScheduleConfigVO进行反序列化', - 'description' => '集成管道调度配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.vo.OAScheduleConfigVO进行反序列化', - 'type' => 'string', - 'example' => '{}', - ], - 'PipelineConfig' => [ - 'title' => '集成管道组件配置', - 'description' => '集成管道组件配置', - 'type' => 'object', - 'properties' => [ - 'Steps' => [ - 'title' => '组件配置:包含所有用到的组件详细配置', - 'description' => '组件配置:包含所有用到的组件详细配置', - 'type' => 'array', - 'items' => [ - 'title' => '组件具体配置', - 'description' => '组件具体配置', - 'type' => 'object', - 'properties' => [ - 'PluginConfig' => [ - 'title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'example' => '{}', - ], - 'StepType' => [ - 'title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'example' => 'input', - ], - 'StepName' => [ - 'title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'type' => 'string', - 'example' => 'mysql_reader', - ], - 'IsDistribute' => [ - 'title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'type' => 'boolean', - ], - 'Key' => [ - 'title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'example' => 'mysqlinput', - ], - ], - ], - ], - 'Hops' => [ - 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'type' => 'array', - 'items' => [ - 'title' => '集成管道输入输出组件关系配置', - 'description' => '集成管道输入输出组件关系配置', - 'type' => 'object', - 'properties' => [ - 'Target' => [ - 'title' => '输出步骤名称,即Steps[*].StepName', - 'description' => '输出步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'example' => 'odps_writer', - ], - 'SendTo' => [ - 'title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'type' => 'boolean', - ], - 'Source' => [ - 'title' => '输入步骤名称,即Steps[*].StepName', - 'description' => '输入步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'example' => 'mysql_reader', - ], - ], - ], - ], - ], - ], - 'NodeInfo' => [ - 'title' => '管道任务基本信息', - 'description' => '管道任务基本信息', - 'type' => 'object', - 'properties' => [ - 'Desc' => [ - 'title' => '', - 'description' => '任务描述', - 'type' => 'string', - 'example' => 'comment', - ], - 'NodeName' => [ - 'title' => '集成管道任务名称', - 'description' => '集成管道任务名称', - 'type' => 'string', - 'example' => 'test', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'string', - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'FileId' => [ - 'title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Directory' => [ - 'title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'type' => 'string', - 'example' => '/', - ], - ], - ], - 'PipelineType' => [ - 'title' => '管道任务类型', - 'description' => '管道任务类型', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '123', - ], - 'Mode' => [ - 'title' => '集成管道配置模式', - 'description' => '集成管道配置模式', - 'type' => 'string', - 'example' => 'PIPELINE', - ], - 'PipelineJson' => [ - 'title' => '集成管道脚本模式配置', - 'description' => '集成管道脚本模式配置', - 'type' => 'string', - 'example' => '{}', - ], - 'Settings' => [ - 'title' => '集成管道的通道配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting进行反序列化', - 'description' => '集成管道的通道配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting进行反序列化', - 'type' => 'string', - 'example' => '{}', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'AppInfoList' => [ + 'title' => 'Api分组列表', + 'description' => 'Api分组列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'AppId', 'description' => 'AppId', 'type' => 'integer', 'format' => 'int32', 'example' => '1021'], + 'Name' => ['title' => 'App名称', 'description' => 'App名称', 'type' => 'string', 'example' => 'test'], ], ], ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppInfoList\\": [\\n {\\n \\"Id\\": 1021,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据应用分组Id获取数据服务应用列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"ScheduleConfig\\": \\"{}\\",\\n \\"PipelineConfig\\": {\\n \\"Steps\\": [\\n {\\n \\"PluginConfig\\": \\"{}\\",\\n \\"StepType\\": \\"input\\",\\n \\"StepName\\": \\"mysql_reader\\",\\n \\"IsDistribute\\": true,\\n \\"Key\\": \\"mysqlinput\\"\\n }\\n ],\\n \\"Hops\\": [\\n {\\n \\"Target\\": \\"odps_writer\\",\\n \\"SendTo\\": true,\\n \\"Source\\": \\"mysql_reader\\"\\n }\\n ]\\n },\\n \\"NodeInfo\\": {\\n \\"Desc\\": \\"comment\\",\\n \\"NodeName\\": \\"test\\",\\n \\"NodeId\\": \\"n_123\\",\\n \\"PipelineId\\": 123,\\n \\"FileId\\": 123,\\n \\"Directory\\": \\"/\\"\\n },\\n \\"PipelineType\\": 123,\\n \\"Mode\\": \\"PIPELINE\\",\\n \\"PipelineJson\\": \\"{}\\",\\n \\"Settings\\": \\"{}\\"\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '根据ID查询管道任务', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'OfflinePipeline' => [ - 'summary' => '下线集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAuthorizedAppsByGroupId' => [ + 'summary' => '根据App分组Id查询账号有权限的应用列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'OfflineCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '下线管道任务', - 'description' => '下线管道任务', - 'type' => 'object', - 'properties' => [ - 'Delete' => [ - 'title' => '是否删除', - 'description' => '是否删除', - 'type' => 'boolean', - 'required' => true, - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'NodeId' => [ - 'title' => '支持使用集成任务调度节点nodeId查询', - 'description' => '支持使用集成任务调度节点nodeId查询,pipelineId、fileId、nodeId设置任意一个即可', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '支持使用集成管道主键pipelineId查询', - 'description' => '支持使用集成管道主键pipelineId查询,pipelineId、fileId、nodeId设置任意一个即可', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '支持使用集成任务文件fileId查询', - 'description' => '支持使用集成任务文件fileId查询,pipelineId、fileId、nodeId设置任意一个即可', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - ], - 'required' => true, - ], + 'name' => 'GroupId', + 'in' => 'query', + 'schema' => ['title' => 'App分组Id', 'description' => 'App分组Id', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '202102'], ], ], 'responses' => [ @@ -21247,362 +13455,67 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '管道下线结果', - 'description' => '管道下线结果', - 'type' => 'object', - 'properties' => [ - 'SubmitId' => [ - 'title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'description' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'HostMachine' => [ - 'title' => '服务端执行机器名称和ip', - 'description' => '服务端执行机器名称和ip', - 'type' => 'string', - 'example' => 'hostName:hostIp', - ], - 'Version' => [ - 'title' => '提交后生成的版本号', - 'description' => '提交后生成的版本号', - 'type' => 'string', - 'example' => '1', - ], - 'NodeId' => [ - 'title' => '创建成功后的管道任务调度节点Id', - 'description' => '创建成功后的管道任务调度节点Id', - 'type' => 'string', - 'example' => '123', - ], - 'PipelineId' => [ - 'title' => '创建成功后的管道ID', - 'description' => '创建成功后的管道ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'AppInfoList' => [ + 'title' => 'Api分组列表', + 'description' => 'Api分组列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'AppId', 'description' => 'AppId', 'type' => 'integer', 'format' => 'int32', 'example' => '1021'], + 'Name' => ['title' => 'App名称', 'description' => 'App名称', 'type' => 'string', 'example' => 'test'], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'example' => '12345'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'example' => 'app12345'], ], ], ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppInfoList\\": [\\n {\\n \\"Id\\": 1021,\\n \\"Name\\": \\"test\\",\\n \\"AppKey\\": 12345,\\n \\"AppKeyStr\\": \\"app12345\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取账号有权限的数据服务应用列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '下线管道任务', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'CreatePipeline' => [ - 'summary' => '创建集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceAuthorizedProjects' => [ + 'summary' => '查询有权限的项目列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], - ], - [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建管道任务配置', - 'description' => '创建管道任务配置', - 'type' => 'object', - 'properties' => [ - 'ScheduleConfig' => [ - 'title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'type' => 'string', - 'required' => true, - 'example' => '{"cronExpression":"0 0 0 * * ?"}', - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'PipelineConfig' => [ - 'title' => '集成管道组件配置', - 'description' => '集成管道组件配置', - 'type' => 'object', - 'properties' => [ - 'Steps' => [ - 'title' => '组件配置:包含所有用到的组件详细配置', - 'description' => '组件配置:包含所有用到的组件详细配置', - 'type' => 'array', - 'items' => [ - 'title' => '组件具体配置', - 'description' => '组件具体配置', - 'type' => 'object', - 'properties' => [ - 'PluginConfig' => [ - 'title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => '{}', - ], - 'StepType' => [ - 'title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'input', - ], - 'StepName' => [ - 'title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - 'IsDistribute' => [ - 'title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'type' => 'boolean', - 'required' => false, - ], - 'Key' => [ - 'title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'mysqlinput', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'Hops' => [ - 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'type' => 'array', - 'items' => [ - 'title' => '集成管道输入输出组件关系配置', - 'description' => '集成管道输入输出组件关系配置', - 'type' => 'object', - 'properties' => [ - 'Target' => [ - 'title' => '输出步骤名称,即Steps[*].StepName', - 'description' => '输出步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_writer', - ], - 'SendTo' => [ - 'title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'type' => 'boolean', - 'required' => false, - ], - 'Source' => [ - 'title' => '输入步骤名称,即Steps[*].StepName', - 'description' => '输入步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'NodeInfo' => [ - 'title' => '集成管道任务基本信息', - 'description' => '集成管道任务基本信息', - 'type' => 'object', - 'properties' => [ - 'NodeName' => [ - 'title' => '集成管道任务名称', - 'description' => '集成管道任务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'Directory' => [ - 'title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - ], - 'required' => true, - ], - 'PipelineType' => [ - 'title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'description' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], - 'Mode' => [ - 'title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'type' => 'string', - 'required' => false, - 'example' => 'PIPELINE', - ], - 'Submit' => [ - 'title' => '是否提交,默认提交', - 'description' => '是否提交,默认提交', - 'type' => 'boolean', - 'required' => false, - ], - 'PipelineJson' => [ - 'title' => '脚本模式下:集成管道配置(json字符串格式)', - 'description' => '脚本模式下:集成管道配置(json字符串格式)', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - 'Settings' => [ - 'title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - ], - 'required' => true, - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], ], 'responses' => [ @@ -21612,108 +13525,51 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '集成管道任务创建结果', - 'description' => '集成管道任务创建结果', - 'type' => 'object', - 'properties' => [ - 'SubmitId' => [ - 'title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'description' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'HostMachine' => [ - 'title' => '服务端执行机器名称和ip', - 'description' => '服务端执行机器名称和ip', - 'type' => 'string', - 'example' => 'hostName:hostIp', - ], - 'Version' => [ - 'title' => '提交后生成的版本号', - 'description' => '提交后生成的版本号', - 'type' => 'string', - 'example' => '1', - ], - 'NodeId' => [ - 'title' => '创建成功后的管道任务调度节点Id', - 'description' => '创建成功后的管道任务调度节点Id', - 'type' => 'string', - 'example' => '123', - ], - 'PipelineId' => [ - 'title' => '创建成功后的管道ID', - 'description' => '创建成功后的管道ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ProjectList' => [ + 'title' => '项目列表', + 'description' => '项目列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Role' => ['title' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', 'description' => '用户角色: 1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int32', 'example' => '1011'], ], ], ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectList\\": [\\n {\\n \\"Role\\": 2,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 1011\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取当前用户有权限数据服务项目列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '创建集成管道任务', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'GetPipelineAsyncResult' => [ - 'summary' => '查询异步操作管道任务的执行结果。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceMyProjects' => [ + 'summary' => '获取当前用户作为负责人的项目列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -21722,63 +13578,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], - ], - [ - 'name' => 'AsyncId', - 'in' => 'query', - 'schema' => [ - 'title' => '异步执行Id', - 'description' => '异步执行Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], ], 'responses' => [ @@ -21788,389 +13593,145 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '异步执行结果', - 'description' => '异步执行结果', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'title' => '当前执行状态:SUCCESS-执行成功,FAILED-执行失败,RUNNING-执行中', - 'description' => '当前执行状态:SUCCESS-执行成功,FAILED-执行失败,RUNNING-执行中', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'SubmitId' => [ - 'title' => '管道任务提交后的带发布ID,通过发布域进行发布', - 'description' => '管道任务提交后的带发布ID,通过发布域进行发布', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'HostMachine' => [ - 'title' => '执行请求的服务端主机信息', - 'description' => '执行请求的服务端主机信息', - 'type' => 'string', - 'example' => 'hostName:hostIp', - ], - 'Version' => [ - 'title' => '管道任务提交生成的版本号', - 'description' => '管道任务提交生成的版本号', - 'type' => 'string', - 'example' => '1', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID', - 'description' => '管道任务调度节点ID', - 'type' => 'string', - 'example' => 'n_123', - ], - 'AsyncId' => [ - 'title' => '异步执行查询Id', - 'description' => '异步执行查询Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'PipelineId' => [ - 'title' => '管道主键ID', - 'description' => '管道主键ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'ErrorCode' => [ - 'title' => '执行异常时异常码', - 'description' => '执行异常时异常码', - 'type' => 'string', - 'example' => 'DPN.Pipeline.InnerError', - ], - 'ErrorMessage' => [ - 'title' => '执行异常时异常信息', - 'description' => '执行异常时异常信息', - 'type' => 'string', - 'example' => 'NullPointException', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ProjectList' => [ + 'title' => '数据服务项目列表', + 'description' => '数据服务项目列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Role' => ['title' => '角色:1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', 'description' => '角色:1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'example' => '102011'], ], ], ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectList\\": [\\n {\\n \\"Role\\": 1,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102011\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取当前用户作为负责人数据服务项目列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"n_123\\",\\n \\"AsyncId\\": 123,\\n \\"PipelineId\\": 123,\\n \\"ErrorCode\\": \\"DPN.Pipeline.InnerError\\",\\n \\"ErrorMessage\\": \\"NullPointException\\"\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '查询异步执行结果', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'CreatePipelineByAsync' => [ - 'summary' => '异步创建集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataServiceProjectAddableUsers' => [ + 'summary' => '获取可添加到项目成员的用户列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], - [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '创建管道任务配置', - 'description' => '创建管道任务配置', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'ScheduleConfig' => [ - 'title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'type' => 'string', - 'required' => true, - 'example' => '{"cronExpression":"0 0 0 * * ?"}', - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'PipelineConfig' => [ - 'title' => '集成管道组件配置', - 'description' => '集成管道组件配置', - 'type' => 'object', - 'properties' => [ - 'Steps' => [ - 'title' => '组件配置:包含所有用到的组件详细配置', - 'description' => '组件配置:包含所有用到的组件详细配置', - 'type' => 'array', - 'items' => [ - 'title' => '组件具体配置', - 'description' => '组件具体配置', - 'type' => 'object', - 'properties' => [ - 'PluginConfig' => [ - 'title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => '{}', - ], - 'StepType' => [ - 'title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'input', - ], - 'StepName' => [ - 'title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - 'IsDistribute' => [ - 'title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'type' => 'boolean', - 'required' => false, - ], - 'Key' => [ - 'title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'mysqlinput', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'Hops' => [ - 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'type' => 'array', - 'items' => [ - 'title' => '集成管道输入输出组件关系配置', - 'description' => '集成管道输入输出组件关系配置', - 'type' => 'object', - 'properties' => [ - 'Target' => [ - 'title' => '输出步骤名称,即Steps[*].StepName', - 'description' => '输出步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_writer', - ], - 'SendTo' => [ - 'title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'type' => 'boolean', - 'required' => false, - ], - 'Source' => [ - 'title' => '输入步骤名称,即Steps[*].StepName', - 'description' => '输入步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'NodeInfo' => [ - 'title' => '集成管道任务基本信息', - 'description' => '集成管道任务基本信息', - 'type' => 'object', - 'properties' => [ - 'NodeName' => [ - 'title' => '集成管道任务名称', - 'description' => '集成管道任务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'Directory' => [ - 'title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'UserList' => [ + 'title' => '项目成员列表', + 'description' => '项目成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30012011'], + 'DisplayName' => ['title' => '用户昵称', 'description' => '用户昵称', 'type' => 'string', 'example' => 'test'], + 'AccountName' => ['title' => '用户账号', 'description' => '用户账号', 'type' => 'string', 'example' => 'xx@aliyuncs.com'], ], ], - 'required' => true, - ], - 'PipelineType' => [ - 'title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'description' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], - 'Mode' => [ - 'title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'type' => 'string', - 'required' => false, - 'example' => 'PIPELINE', - ], - 'Submit' => [ - 'title' => '是否提交,默认提交', - 'description' => '是否提交,默认提交', - 'type' => 'boolean', - 'required' => false, - ], - 'PipelineJson' => [ - 'title' => '脚本模式下:集成管道配置(json字符串格式)', - 'description' => '脚本模式下:集成管道配置(json字符串格式)', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - 'Settings' => [ - 'title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'type' => 'string', - 'required' => false, - 'example' => '{}', ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UserList\\": [\\n {\\n \\"UserId\\": \\"30012011\\",\\n \\"DisplayName\\": \\"test\\",\\n \\"AccountName\\": \\"xx@aliyuncs.com\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取数据服务可添加到项目成员用户列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetDataSourceDependencies' => [ + 'summary' => '查询数据源变更影响的集成任务及数据库SQL任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1023211'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ @@ -22178,42 +13739,26 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '异步执行查询Id', - 'description' => '异步执行查询Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'DependencyList' => [ + 'title' => '引用记录', + 'description' => '引用记录', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '依赖记录类型', 'description' => '依赖记录类型', 'type' => 'string', 'example' => 'pipeline'], + 'TypeCode' => ['title' => '依赖记录类型code', 'description' => '依赖记录类型code', 'type' => 'string', 'example' => 'pipeline'], + 'Id' => ['title' => '依赖记录id', 'description' => '依赖记录id', 'type' => 'string', 'example' => '1'], + 'Name' => ['title' => '依赖记录名称', 'description' => '依赖记录名称', 'type' => 'string', 'example' => 'jytest'], + ], + ], ], ], ], @@ -22221,33 +13766,24 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DependencyList\\": [\\n {\\n \\"Type\\": \\"pipeline\\",\\n \\"TypeCode\\": \\"pipeline\\",\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"jytest\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取数据源依赖列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '异步创建管道', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], ], - 'UpdatePipeline' => [ - 'summary' => '更新集成管道任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDataset' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -22256,468 +13792,277 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Context', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '请求上下文信息', - 'description' => '请求上下文信息', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '集成管道任务所属项目ID', - 'description' => '集成管道任务所属项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'Env' => [ - 'title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7255013756724992'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '数据集ID', 'description' => '数据集ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7255018404425088'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '更新管道任务配置', - 'description' => '更新管道任务配置', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'ScheduleConfig' => [ - 'title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', - 'type' => 'string', - 'required' => true, - 'example' => '{"cronExpression":"0 0 0 * * ?"}', - ], - 'Comment' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => false, - 'example' => 'comment', - ], - 'PipelineConfig' => [ - 'title' => '集成管道组件配置', - 'description' => '集成管道组件配置', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'DatasetDTO' => [ + 'title' => '数据集对象', + 'description' => '数据集对象', 'type' => 'object', 'properties' => [ - 'Steps' => [ - 'title' => '组件配置:包含所有用到的组件详细配置', - 'description' => '组件配置:包含所有用到的组件详细配置', + 'Id' => ['title' => '数据集ID(业务主键)', 'description' => '数据集ID(业务主键)', 'type' => 'integer', 'format' => 'int64', 'example' => '7255018404425088'], + 'ProjectId' => ['title' => '所属项目ID', 'description' => '所属项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7255013756724992'], + 'ProjectName' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'example' => 'ds_tm'], + 'Name' => ['title' => '数据集名称', 'description' => '数据集名称', 'type' => 'string', 'example' => 'audio_dataset'], + 'FileId' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7255018404650688'], + 'Directory' => ['title' => '目录(通过fileId从文件服务获取)', 'description' => '目录(通过fileId从文件服务获取)', 'type' => 'string', 'example' => '/'], + 'DataCellId' => ['title' => '主题域ID', 'description' => '主题域ID', 'type' => 'string', 'example' => '78201'], + 'DataCellName' => ['title' => '主题域名称', 'description' => '主题域名称', 'type' => 'string', 'example' => '离线数据主题域'], + 'Type' => ['title' => '数据集类型', 'description' => '数据集类型', 'type' => 'string', 'example' => 'HYBRID'], + 'StorageType' => ['title' => '存储类型', 'description' => '存储类型', 'type' => 'string', 'example' => 'OSS'], + 'MetadataStorageType' => ['title' => '元数据存储类型', 'description' => '元数据存储类型', 'type' => 'string', 'example' => 'POSTGRESQL'], + 'Scenario' => ['title' => '数据集使用场景: OFFLINE(离线,默认) / REALTIME(实时)', 'description' => '数据集使用场景: OFFLINE(离线,默认) / REALTIME(实时)', 'type' => 'string', 'example' => 'OFFLINE'], + 'ContentType' => ['title' => '内容类型', 'description' => '内容类型', 'type' => 'string', 'example' => 'GENERAL'], + 'OwnerList' => [ + 'title' => '负责人列表', + 'description' => '负责人列表', 'type' => 'array', 'items' => [ - 'title' => '组件具体配置', - 'description' => '组件具体配置', 'type' => 'object', 'properties' => [ - 'PluginConfig' => [ - 'title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => '{}', - ], - 'StepType' => [ - 'title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'input', - ], - 'StepName' => [ - 'title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', - ], - 'IsDistribute' => [ - 'title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" - .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" - .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', - 'type' => 'boolean', - 'required' => false, - ], - 'Key' => [ - 'title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', - 'type' => 'string', - 'required' => true, - 'example' => 'mysqlinput', - ], + 'UserId' => ['description' => '用户ID', 'type' => 'string', 'example' => '300001391'], + 'UserName' => ['description' => '用户名', 'type' => 'string', 'example' => '张三'], ], - 'required' => false, + 'description' => '', ], - 'required' => true, ], - 'Hops' => [ - 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', - 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '300001391'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'format' => 'date-time', 'example' => '2026-04-28 10:03:49'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'format' => 'date-time', 'example' => '2026-04-28 10:03:49'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试数据集'], + 'TenantId' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '300001413'], + 'VersionList' => [ + 'title' => '版本列表', + 'description' => '版本列表', 'type' => 'array', 'items' => [ - 'title' => '集成管道输入输出组件关系配置', - 'description' => '集成管道输入输出组件关系配置', 'type' => 'object', 'properties' => [ - 'Target' => [ - 'title' => '输出步骤名称,即Steps[*].StepName', - 'description' => '输出步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'odps_writer', - ], - 'SendTo' => [ - 'title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', - 'type' => 'boolean', - 'required' => false, - ], - 'Source' => [ - 'title' => '输入步骤名称,即Steps[*].StepName', - 'description' => '输入步骤名称,即Steps[*].StepName', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql_reader', + 'Id' => ['title' => '版本ID', 'description' => '版本ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7280840713415040'], + 'DatasetId' => ['title' => '数据集ID', 'description' => '数据集ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7280832407583104'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'example' => 'V4'], + 'DataVersionConfig' => [ + 'title' => '数据集版本配置', + 'description' => '数据集版本配置', + 'type' => 'object', + 'properties' => [ + 'VersionDescription' => ['title' => '版本描述', 'description' => '版本描述', 'type' => 'string', 'example' => '测试数据集版本'], + 'FileStorageConfig' => [ + 'title' => '文件存储配置', + 'description' => '文件存储配置', + 'type' => 'object', + 'properties' => [ + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'required' => true, 'example' => '7445343860022804608'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => '测试数据源'], + 'DevPath' => ['title' => '开发路径(basic项目不需要)', 'description' => '开发路径(basic项目不需要)', 'type' => 'string', 'example' => 'HTML正文提取/test423/'], + 'ProdPath' => ['title' => '生产路径', 'description' => '生产路径', 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'MountPath' => ['title' => '挂载路径', 'description' => '挂载路径', 'type' => 'string', 'required' => true, 'example' => '/var/run/openresty/cache/corp'], + ], + ], + 'MetadataStorageConfig' => [ + 'title' => '元数据存储配置', + 'description' => '元数据存储配置', + 'type' => 'object', + 'properties' => [ + 'MetadataStorageMode' => ['title' => '存储至', 'description' => '存储至(新建表/已有表)', 'type' => 'string', 'required' => true, 'example' => 'CREATE'], + 'MetadataStorageType' => ['title' => '元数据存储类型', 'description' => '元数据存储类型', 'type' => 'string', 'example' => 'MILVUS'], + 'DataSourceId' => ['title' => '数据源 ID', 'description' => '数据源 ID', 'type' => 'string', 'required' => true, 'example' => '7429133693081710272'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => '测试数据源'], + 'DevSchema' => ['title' => '开发database/schema', 'description' => '开发database/schema', 'type' => 'string', 'example' => 'HTML正文提取/test423/'], + 'ProdSchema' => ['title' => '生产database/schema', 'description' => '生产database/schema', 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'TableName' => ['title' => '表名称', 'description' => '表名称', 'type' => 'string', 'required' => true, 'example' => 's_crm_all_plt_jala_shop'], + 'TableSchema' => [ + 'title' => '表结构配置', + 'description' => '表结构配置', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '字段名称', 'type' => 'string', 'required' => true, 'example' => 'id'], + 'Type' => ['title' => '字段类型', 'description' => '字段类型', 'type' => 'string', 'required' => true, 'example' => 'int8'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '数组元素子类型,仅当type=ARRAY时有效', 'type' => 'string', 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '数组最大容量', 'description' => '数组最大容量,仅当type=ARRAY时有效,默认4096', 'type' => 'integer', 'format' => 'int32', 'example' => '35'], + 'Pk' => ['title' => '是否为主键', 'description' => '是否为主键', 'type' => 'boolean', 'required' => true, 'example' => 'true'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'example' => '主键'], + 'Url' => ['title' => '是否为 URL', 'description' => '是否为 URL', 'type' => 'boolean', 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置', + 'description' => '向量索引配置', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型', 'type' => 'string', 'required' => true, 'example' => 'MultiModal-Embedding'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance:mongodb'], + 'IndexType' => ['title' => '索引类型', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部类型', 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型', 'description' => '相似度类型,默认COSINE。COSINE对应vector_cosine_ops,L2对应vector_l2_ops,IP对应vector_ip_ops', 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'type' => 'object', 'example' => '{M:30, efConstruction:360}'], + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + ], + ], + 'RealtimeMetaTableConfig' => [ + 'title' => '实时元表配置(仅当 metadataStorageType=REALTIME_META_TABLE 时生效)', + 'description' => '实时元表配置(仅当 metadataStorageType=REALTIME_META_TABLE 时生效)', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '元表所属项目ID(支持跨项目)', 'description' => '元表所属项目ID(支持跨项目)', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7255013756724992'], + 'MetaTableName' => ['title' => '元表名称', 'description' => '元表名称', 'type' => 'string', 'required' => true, 'example' => '测试元表'], + 'DatasourceType' => ['title' => '元表数据源类型(本期仅开放 KAFKA)', 'description' => '元表数据源类型(本期仅开放 KAFKA)', 'type' => 'string', 'required' => true, 'example' => 'KAFKA'], + 'TableSchema' => [ + 'title' => '表结构配置(复用 MetadataStorageConfigDTO.TableSchemaDTO)', + 'description' => '表结构配置(复用 MetadataStorageConfigDTO.TableSchemaDTO)', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '字段名称', 'type' => 'string', 'required' => true, 'example' => 'happen_time'], + 'Type' => ['title' => '字段类型', 'description' => '字段类型', 'type' => 'string', 'required' => true, 'example' => 'date'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '数组元素子类型', 'type' => 'string', 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '数组最大容量', 'description' => '数组最大容量', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'Pk' => ['title' => '是否为主键', 'description' => '是否为主键', 'type' => 'boolean', 'required' => true, 'example' => 'false'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'example' => '录入时间'], + 'Url' => ['title' => '是否为 URL', 'description' => '是否为 URL', 'type' => 'boolean', 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置', + 'description' => '向量索引配置', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型', 'type' => 'string', 'required' => true, 'example' => 'multimodal-embedding-v1'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance'], + 'IndexType' => ['title' => '索引类型', 'description' => '索引类型', 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型', 'description' => '相似度类型', 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'object'], + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + ], + ], + ], ], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '***'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'format' => 'date-time', 'example' => '2025-11-13T02:11:56Z'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'format' => 'date-time', 'example' => '1749450490000'], ], - 'required' => false, + 'description' => '', ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'NodeInfo' => [ - 'title' => '集成管道任务基本信息', - 'description' => '集成管道任务基本信息', - 'type' => 'object', - 'properties' => [ - 'NodeName' => [ - 'title' => '集成管道任务名称', - 'description' => '集成管道任务名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'NodeId' => [ - 'title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'string', - 'required' => false, - 'example' => 'n_123', - ], - 'PipelineId' => [ - 'title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'FileId' => [ - 'title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123', - ], - 'Directory' => [ - 'title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - ], - 'required' => true, - ], - 'PipelineType' => [ - 'title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'description' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '0', - ], - 'Mode' => [ - 'title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', - 'type' => 'string', - 'required' => false, - 'example' => 'PIPELINE', - ], - 'Submit' => [ - 'title' => '是否提交,默认提交', - 'description' => '是否提交,默认提交', - 'type' => 'boolean', - 'required' => false, - ], - 'PipelineJson' => [ - 'title' => '脚本模式下:集成管道配置(json字符串格式)', - 'description' => '脚本模式下:集成管道配置(json字符串格式)', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - 'Settings' => [ - 'title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', - 'type' => 'string', - 'required' => false, - 'example' => '{}', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Data' => [ - 'title' => '管道任务更新结果', - 'description' => '管道任务更新结果', - 'type' => 'object', - 'properties' => [ - 'SubmitId' => [ - 'title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'description' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'HostMachine' => [ - 'title' => '服务端执行机器名称和ip', - 'description' => '服务端执行机器名称和ip', - 'type' => 'string', - 'example' => 'hostName:hostIp', - ], - 'Version' => [ - 'title' => '提交后生成的版本号', - 'description' => '提交后生成的版本号', - 'type' => 'string', - 'example' => '1', - ], - 'NodeId' => [ - 'title' => '创建成功后的管道任务调度节点Id', - 'description' => '创建成功后的管道任务调度节点Id', - 'type' => 'string', - 'example' => '123', - ], - 'PipelineId' => [ - 'title' => '创建成功后的管道ID', - 'description' => '创建成功后的管道ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', ], + 'LockOwner' => ['title' => '开发负责人id', 'description' => '开发负责人id', 'type' => 'string', 'example' => '300001391'], + 'LockOwnerName' => ['title' => '这个给界面显示的字段', 'description' => '这个给界面显示的字段', 'type' => 'string', 'example' => '张三'."\n"], ], ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取数据集', + 'summary' => '获取数据集,发布版本:v6.2.0。', + 'description' => '可以根据数据源Id查询已测试的连通性任务详细信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '更新管道任务', - 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DatasetDTO\\": {\\n \\"Id\\": 7255018404425088,\\n \\"ProjectId\\": 7255013756724992,\\n \\"ProjectName\\": \\"ds_tm\\",\\n \\"Name\\": \\"audio_dataset\\",\\n \\"FileId\\": 7255018404650688,\\n \\"Directory\\": \\"/\\",\\n \\"DataCellId\\": \\"78201\\",\\n \\"DataCellName\\": \\"离线数据主题域\\",\\n \\"Type\\": \\"HYBRID\\",\\n \\"StorageType\\": \\"OSS\\",\\n \\"MetadataStorageType\\": \\"POSTGRESQL\\",\\n \\"Scenario\\": \\"OFFLINE\\",\\n \\"ContentType\\": \\"GENERAL\\",\\n \\"OwnerList\\": [\\n {\\n \\"UserId\\": \\"300001391\\",\\n \\"UserName\\": \\"张三\\"\\n }\\n ],\\n \\"Creator\\": \\"300001391\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2026-04-28 10:03:49\\",\\n \\"GmtModified\\": \\"2026-04-28 10:03:49\\",\\n \\"Description\\": \\"测试数据集\\",\\n \\"TenantId\\": 300001413,\\n \\"VersionList\\": [\\n {\\n \\"Id\\": 7280840713415040,\\n \\"DatasetId\\": 7280832407583104,\\n \\"Version\\": \\"V4\\",\\n \\"DataVersionConfig\\": {\\n \\"VersionDescription\\": \\"测试数据集版本\\",\\n \\"FileStorageConfig\\": {\\n \\"DataSourceId\\": \\"7445343860022804608\\",\\n \\"DataSourceName\\": \\"测试数据源\\",\\n \\"DevPath\\": \\"HTML正文提取/test423/\\",\\n \\"ProdPath\\": \\"HTML正文提取/test423/\\",\\n \\"MountPath\\": \\"/var/run/openresty/cache/corp\\"\\n },\\n \\"MetadataStorageConfig\\": {\\n \\"MetadataStorageMode\\": \\"CREATE\\",\\n \\"MetadataStorageType\\": \\"MILVUS\\",\\n \\"DataSourceId\\": \\"7429133693081710272\\",\\n \\"DataSourceName\\": \\"测试数据源\\",\\n \\"DevSchema\\": \\"HTML正文提取/test423/\\",\\n \\"ProdSchema\\": \\"HTML正文提取/test423/\\",\\n \\"TableName\\": \\"s_crm_all_plt_jala_shop\\",\\n \\"TableSchema\\": {\\n \\"Columns\\": [\\n {\\n \\"Name\\": \\"id\\",\\n \\"Type\\": \\"int8\\",\\n \\"ElementType\\": \\"INT64\\",\\n \\"MaxCapacity\\": 35,\\n \\"Pk\\": true,\\n \\"Comment\\": \\"主键\\",\\n \\"Url\\": false,\\n \\"VectorIndexConfig\\": {\\n \\"EmbeddingModel\\": \\"MultiModal-Embedding\\",\\n \\"Dimension\\": 0,\\n \\"IndexType\\": \\"AUTOINDEX\\",\\n \\"SimilarityType\\": \\"COSINE\\",\\n \\"IndexParams\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ]\\n }\\n },\\n \\"RealtimeMetaTableConfig\\": {\\n \\"ProjectId\\": 7255013756724992,\\n \\"MetaTableName\\": \\"测试元表\\",\\n \\"DatasourceType\\": \\"KAFKA\\",\\n \\"TableSchema\\": {\\n \\"Columns\\": [\\n {\\n \\"Name\\": \\"happen_time\\",\\n \\"Type\\": \\"date\\",\\n \\"ElementType\\": \\"INT64\\",\\n \\"MaxCapacity\\": 5,\\n \\"Pk\\": false,\\n \\"Comment\\": \\"录入时间\\",\\n \\"Url\\": false,\\n \\"VectorIndexConfig\\": {\\n \\"EmbeddingModel\\": \\"multimodal-embedding-v1\\",\\n \\"Dimension\\": 0,\\n \\"IndexType\\": \\"AUTOINDEX\\",\\n \\"SimilarityType\\": \\"COSINE\\",\\n \\"IndexParams\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ]\\n }\\n }\\n },\\n \\"Creator\\": \\"***\\",\\n \\"GmtCreate\\": \\"2025-11-13T02:11:56Z\\",\\n \\"GmtModified\\": \\"1749450490000\\"\\n }\\n ],\\n \\"LockOwner\\": \\"300001391\\",\\n \\"LockOwnerName\\": \\"张三\\\\n\\"\\n }\\n}","type":"json"}]', ], - 'CreatePipelineNode' => [ - 'summary' => '创建数据集成任务。备注:从dataphin v5.3.1版本开始不建议使用,请使用CreatePipeline。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetDevObjectDependency' => [ + 'summary' => '查询开发态对象上游依赖。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreatePipelineNodeCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建pipeline管道,支持离线管道和实时管道', - 'description' => '创建pipeline管道,支持离线管道和实时管道', - 'type' => 'object', - 'properties' => [ - 'PipelineName' => [ - 'title' => '管道名称', - 'description' => '管道名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test_pipeline', - ], - 'PipelineType' => [ - 'title' => '管道类型[OFFLINE_PIPELINE,REAL_TIME_PIPELINE]', - 'description' => '管道类型[OFFLINE_PIPELINE,REAL_TIME_PIPELINE]', - 'type' => 'string', - 'required' => true, - 'example' => 'REAL_TIME_PIPELINE', - 'enum' => [ - 'OFFLINE_PIPELINE', - 'REAL_TIME_PIPELINE', - ], - ], - 'NodeType' => [ - 'title' => '管道类型[NORMAL,MANUAL,REAL_TIME]', - 'description' => '管道类型[NORMAL,MANUAL,REAL_TIME]', - 'type' => 'string', - 'required' => true, - 'example' => 'REAL_TIME', - 'enum' => [ - 'NORMAL', - 'MANUAL', - 'REAL_TIME', - ], - ], - 'FileInfo' => [ - 'title' => '任务文件信息', - 'description' => '任务文件信息', - 'type' => 'object', - 'properties' => [ - 'FileName' => [ - 'title' => '文件名称', - 'description' => '文件名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test_pipeline', - ], - 'Directory' => [ - 'title' => '文件父目录全路径(为空,则为根路径\'/\')', - 'description' => '文件父目录全路径(为空,则为根路径\'/\')', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - 'default' => '/', - ], - 'Description' => [ - 'title' => '文件描述', - 'description' => '文件描述', - 'type' => 'string', - 'required' => false, - 'example' => 'desc', - ], - ], - 'required' => true, - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7091124176569088', - ], - ], - 'required' => true, - ], + 'name' => 'ObjectId', + 'in' => 'query', + 'schema' => ['title' => '开发对象id, 对于逻辑表需要传入模型id,对于其他任务需要传入FileId', 'description' => '对象ID', 'type' => 'string', 'required' => true, 'example' => '7026498387616064'], + ], + [ + 'name' => 'ObjectType', + 'in' => 'query', + 'schema' => ['title' => '开发对象类型. 任务FileId:FILE_ID, 逻辑表:MODEL_ID', 'description' => '开发对象类型'."\n" + .'- FILE_ID:任务FileId'."\n" + .'- MODEL_ID:逻辑表', 'type' => 'string', 'required' => true, 'example' => '7026498387616064'], + ], + [ + 'name' => 'ObjectFrom', + 'in' => 'query', + 'schema' => ['title' => '开发对象来源. BLACK_BOX: 逻辑表;DATA_PROCESS:计算任务;PIPELINE:集成任务', 'description' => '开发对象来源'."\n" + .'- BLACK_BOX: 逻辑表'."\n" + .'- DATA_PROCESS:计算任务'."\n" + .'- PIPELINE:集成任务', 'type' => 'string', 'required' => true, 'example' => 'DATA_PROCESS'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7021037162911616L'], ], ], 'responses' => [ @@ -22727,69 +14072,120 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '管道节点信息', - 'description' => '管道节点信息', - 'type' => 'object', - 'properties' => [ - 'PipelineId' => [ - 'title' => '创建成功后的管道ID', - 'description' => '创建成功后的管道ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '33749', - ], - 'ErrorCodeList' => [ - 'title' => '错误码', - 'description' => '错误码', - 'type' => 'array', - 'items' => [ - 'title' => '错误码', - 'description' => '错误码', - 'type' => 'string', - 'example' => 'DPN.Pipeline.Config.ErrorReason', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'DevObjectDependencyList' => [ + 'title' => '依赖列表', + 'description' => '依赖列表', + 'type' => 'array', + 'items' => [ + 'title' => '依赖', + 'description' => '依赖', + 'type' => 'object', + 'properties' => [ + 'ScheduleType' => ['title' => '调度类型'."\n" + .'MINUTELY: 分钟,HOURLY: 小时,DAILY: 天,WEEKLY: 周,MONTHLY: 月,YEARLY: 年', 'description' => '调度类型'."\n" + .'- MINUTELY: 分钟'."\n" + .'- HOURLY: 小时'."\n" + .'- DAILY: 天'."\n" + .'- WEEKLY: 周'."\n" + .'- MONTHLY: 月'."\n" + .'- YEARLY: 年', 'type' => 'string', 'example' => 'DAILY'], + 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'xx测试'], + 'NodeOutputTableName' => ['title' => '输出表信息 ', 'description' => '输出表信息 ', 'type' => 'string', 'example' => 't_xx'], + 'DependencyPeriod' => [ + 'title' => '依赖周期配置', + 'description' => '依赖周期配置', + 'type' => 'object', + 'properties' => [ + 'PeriodType' => ['title' => '依赖周期类型:CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', 'description' => '依赖周期类型'."\n" + .'- CURRENT_PERIOD'."\n" + .'- LAST_PERIOD'."\n" + .'- LAST_N_PERIOD'."\n" + .'- LAST_24_HOUR', 'type' => 'string', 'example' => 'CURRENT_PERIOD'], + 'PeriodOffset' => ['title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值'."\n", 'description' => '周期偏移量,依赖周期类型是LAST_N_PERIOD时须传值', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'NodeOutputName' => ['title' => '节点输出名', 'description' => '节点输出名', 'type' => 'string', 'example' => 'n_xx'], + 'ManuallyAdd' => ['title' => '是否手动添加', 'description' => '是否手动添加', 'type' => 'boolean', 'example' => 'false'], + 'BizUnitId' => ['title' => '业务模块ID', 'description' => '业务模块ID', 'type' => 'string', 'example' => '13111'], + 'CustomCronExpression' => ['title' => '是否自定义调度节点表达式', 'description' => '是否自定义调度节点表达式', 'type' => 'boolean', 'example' => 'true'], + 'DependencyStrategy' => ['title' => '依赖策略:ALL,FIRST,LAST,NEAR'."\n", 'description' => '依赖策略'."\n" + .'- ALL'."\n" + .'- FIRST'."\n" + .'- LAST'."\n" + .'- NEAR', 'type' => 'string', 'example' => 'ALL'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'xx测试'], + 'EffectFieldList' => [ + 'title' => '依赖字段', + 'description' => '依赖字段', + 'type' => 'array', + 'items' => ['description' => '依赖字段', 'type' => 'string', 'example' => '112'], ], - ], - 'ErrorMessageList' => [ - 'title' => '异常信息', - 'description' => '异常信息', - 'type' => 'array', - 'items' => [ - 'title' => '异常消息', - 'description' => '异常消息', - 'type' => 'string', - 'example' => '管道配置错误:{0}', + 'CronExpression' => ['title' => '调度节点表达式', 'description' => '调度节点表达式', 'type' => 'string', 'example' => '0 0 0 * * ?'], + 'SubBizType' => ['title' => '子业务类型:'."\n" + .'DIM_LOGICAL_TABLE,FACT_LOGICAL_TABLE,SUMMARY_LOGICAL_TABLE,MAX_COMPUTE_SQL,MAX_COMPUTE_MR,HIVE_SQL,HADOOP_MR,SPARK_JAR_ON_HIVE,SPARK_SQL_ON_HIVE,SPARK_JAR_ON_MAX_COMPUTE,SHELL,PYTHON,PYTHON37,DATAX,MERGE,DLINK,CHECK,PERL,ONE_SERVICE_SQL_ADB_FOR_PG,ONE_SERVICE_SQL_ADB_FOR_MYSQL,ADB_FOR_PG,INCEPTOR_SQL,VIRTUAL,FLINK_SQL,FLINK_TEMPLATE_SQL,FLINK_DATASTREAM,REAL_TIME_PIPELINE,PAI_DESIGNER,HOLOGRES_SQL,ARGODB_SQL,IMPALA_SQL,STARROCKS_SQL'."\n", 'description' => '子业务类型:'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL等', 'type' => 'string', 'example' => 'SHELL'], + 'DimMidNode' => ['title' => '是否是维度表中间节点', 'description' => '是否是维度表中间节点', 'type' => 'boolean', 'example' => 'true'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123131'], + 'BizType' => ['title' => '业务类型:'."\n" + .'SCRIPT: 脚本,LOGICAL_TABLE:逻辑表', 'description' => '业务类型:'."\n" + .'- SCRIPT: 脚本'."\n" + .'- LOGICAL_TABLE:逻辑表', 'type' => 'string', 'example' => 'SCRIPT'], + 'OwnerList' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => '11123'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + ], + 'description' => '', + ], + ], + 'SelfDepend' => ['title' => '是否自依赖', 'description' => '是否自依赖', 'type' => 'boolean', 'example' => 'true'], + 'DependFieldList' => [ + 'title' => '依赖字段', + 'description' => '依赖字段', + 'type' => 'array', + 'items' => ['description' => '依赖字段', 'type' => 'string', 'example' => '121'], + ], + 'ExternalBizInfo' => ['title' => '额外业务信息', 'description' => '额外业务信息', 'type' => 'string', 'example' => '所有字段信息/hasProd/hasDev等信息'], + 'PeriodDiff' => ['title' => '依赖周期差', 'description' => '依赖周期差', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Valid' => ['title' => '配置是否生效', 'description' => '配置是否生效', 'type' => 'boolean', 'example' => 'true'], + 'NodeType' => ['title' => '节点类型', 'description' => '节点类型'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'- ONE_ID_LABEL:萃取标签节点'."\n" + .'- ONE_ID_RULE:萃取标签节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_13211'], + 'OutputContextParamList' => [ + 'title' => '跨节点输出参数 ', + 'description' => '跨节点输出参数 ', + 'type' => 'array', + 'items' => [ + 'description' => '跨节点输出参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '参数', 'type' => 'string', 'example' => 'v1'], + 'Description' => ['description' => '描述', 'type' => 'string', 'example' => 'xxtest'], + 'DefaultValue' => ['description' => '默认值', 'type' => 'string', 'example' => 'v1'], + ], + ], ], + 'AutoParse' => ['title' => '任务是否自动解析 ', 'description' => '任务是否自动解析 ', 'type' => 'boolean', 'example' => 'true'], ], ], ], @@ -22799,236 +14195,150 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DevObjectDependencyList\\": [\\n {\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"NodeName\\": \\"xx测试\\",\\n \\"ProjectName\\": \\"xx测试\\",\\n \\"NodeOutputTableName\\": \\"t_xx\\",\\n \\"DependencyPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"NodeOutputName\\": \\"n_xx\\",\\n \\"ManuallyAdd\\": false,\\n \\"BizUnitId\\": \\"13111\\",\\n \\"CustomCronExpression\\": true,\\n \\"DependencyStrategy\\": \\"ALL\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"EffectFieldList\\": [\\n \\"112\\"\\n ],\\n \\"CronExpression\\": \\"0 0 0 * * ?\\",\\n \\"SubBizType\\": \\"SHELL\\",\\n \\"DimMidNode\\": true,\\n \\"ProjectId\\": 123131,\\n \\"BizType\\": \\"SCRIPT\\",\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"11123\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"SelfDepend\\": true,\\n \\"DependFieldList\\": [\\n \\"121\\"\\n ],\\n \\"ExternalBizInfo\\": \\"所有字段信息/hasProd/hasDev等信息\\",\\n \\"PeriodDiff\\": 1,\\n \\"Valid\\": true,\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"NodeId\\": \\"n_13211\\",\\n \\"OutputContextParamList\\": [\\n {\\n \\"Key\\": \\"v1\\",\\n \\"Description\\": \\"xxtest\\",\\n \\"DefaultValue\\": \\"v1\\"\\n }\\n ],\\n \\"AutoParse\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询开发态对象上游依赖', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"PipelineId\\": 33749,\\n \\"ErrorCodeList\\": [\\n \\"DPN.Pipeline.Config.ErrorReason\\"\\n ],\\n \\"ErrorMessageList\\": [\\n \\"管道配置错误:{0}\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => '创建数据集成管道任务', - ], - 'UpdateBatchTaskUdfLineages' => [ - 'summary' => '编辑离线计算任务自定义血缘。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDevObjectDependency', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetDirectoryTree' => [ + 'summary' => '获取文件夹目录树。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => ['Dataphin公共云'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Category', + 'in' => 'query', + 'schema' => ['title' => '目录名称;'."\n" + ."\n" + .'部分根目录枚举值如下:实时计算表:streamMeta;离线物理表:PhysicalTable;计算任务:codeManage;实时计算模板:streamTemplate;离线计算模板:batchTaskTemplate;资源:resourceManage;FLINK函数:streamFunction;MAXC函数:udfResource;', 'description' => '目录类型;'."\n" + .'- 即席查询:tempCode'."\n" + .'- 代码任务:codeManage'."\n" + .'- 离线管道:offlinePipeline'."\n" + .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" + .'- 同步任务:dataX'."\n" + .'- 实时元表:streamMeta'."\n" + .'- 实时自定义源:streamCustomDataSource'."\n" + .'- 实时计算模板:streamTemplate'."\n" + .'- 资源管理:resourceManage'."\n" + .'- 离线函数:udfResource'."\n" + .'- 实时函数:streamFunction', 'type' => 'string', 'required' => true, 'example' => 'codeManage'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7081229106458752'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '编辑指令', - 'description' => '编辑指令', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], - 'LineageGroupList' => [ - 'title' => '血缘组列表', - 'description' => '血缘组列表', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '目录树信息(返回目录树,边的所有信息,层次遍历,从根节点逐层遍历返回);', + 'description' => '目录树信息(返回目录树,边的所有信息,层次遍历,从根节点逐层遍历返回);', 'type' => 'array', 'items' => [ - 'title' => '血缘组', - 'description' => '血缘组', + 'title' => '树节点二元组', + 'description' => '树节点二元组', 'type' => 'object', 'properties' => [ - 'InputLineageList' => [ - 'title' => '血缘输入表集合', - 'description' => '血缘输入表集合', - 'type' => 'array', - 'items' => [ - 'title' => '血缘表', - 'description' => '血缘表', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'required' => true, - 'example' => 't_input', - ], - 'Env' => [ - 'title' => '环境 prod/dev/auto', - 'description' => '环境 prod/dev/auto', - 'type' => 'string', - 'required' => true, - 'example' => 'dev', - ], - 'FullTable' => [ - 'title' => '是否选择全表', - 'description' => '是否选择全表', - 'type' => 'boolean', - 'required' => true, - ], - 'ColumnList' => [ - 'title' => '血缘字段列表', - 'description' => '血缘字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '血缘相关字段集合: 跟FullTable二选一,默认全表', - 'description' => '血缘相关字段集合: 跟FullTable二选一,默认全表', - 'type' => 'string', - 'required' => true, - 'example' => 'column1', - ], - 'required' => true, - ], - ], - 'required' => true, + 'Parent' => [ + 'title' => '父节点', + 'description' => '父节点', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '目录ID', 'description' => '目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'StringId' => ['title' => '目录StringID', 'description' => '目录StringID', 'type' => 'string', 'example' => '3', 'default' => 'null'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7081229106458752'], + 'CategoryType' => ['title' => '目录类型', 'description' => '目录类型', 'type' => 'string', 'example' => 'codeManage'], + 'DataCellId' => ['title' => '数据单元ID', 'description' => '数据单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3213', 'default' => 'null'], + 'DirName' => ['title' => '所在目录路径 仅对文件/资源节点有效', 'description' => '所在目录路径 仅对文件/资源节点有效', 'type' => 'string', 'example' => '/'], + 'Name' => ['title' => '对象显示名称', 'description' => '对象显示名称', 'type' => 'string', 'example' => '代码管理'], + 'Type' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => 'codeManage'], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '300000907'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => 'John'], + 'GmtCreate' => ['title' => '创建时间 非实体对象节点为空', 'description' => '创建时间 非实体对象节点为空', 'type' => 'string', 'example' => '2024-11-01 18:08:17'], + 'GmtModified' => ['title' => '修改时间 非实体对象节点为空', 'description' => '修改时间 非实体对象节点为空', 'type' => 'string', 'example' => '2024-11-01 18:08:17'], + 'LastModifier' => ['title' => '修改人ID', 'description' => '修改人ID', 'type' => 'string', 'example' => '300000907'], + 'LastModifierName' => ['title' => '修改人名称'."\n" + ."\n", 'description' => '修改人名称'."\n" + ."\n", 'type' => 'string', 'example' => 'John'], ], - 'required' => true, ], - 'OutputLineageList' => [ - 'title' => '血缘输出表集合', - 'description' => '血缘输出表集合', - 'type' => 'array', - 'items' => [ - 'title' => '血缘表', - 'description' => '血缘表', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'required' => true, - 'example' => 't_output', - ], - 'Env' => [ - 'title' => '环境 prod/dev/auto', - 'description' => '环境 prod/dev/auto', - 'type' => 'string', - 'required' => true, - 'example' => 'dev', - ], - 'FullTable' => [ - 'title' => '是否选择全表', - 'description' => '是否选择全表', - 'type' => 'boolean', - 'required' => true, - ], - 'ColumnList' => [ - 'title' => '血缘字段列表', - 'description' => '血缘字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '血缘相关字段集合: 跟FullTable二选一,默认全表', - 'description' => '血缘相关字段集合: 跟FullTable二选一,默认全表', - 'type' => 'string', - 'required' => true, - 'example' => 'column1', - ], - 'required' => true, - ], - ], - 'required' => true, + 'Children' => [ + 'title' => '子节点', + 'description' => '子节点', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '目录ID', 'description' => '目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'StringId' => ['title' => '目录StringID', 'description' => '目录StringID', 'type' => 'string', 'example' => '3', 'default' => 'null'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7081229106458752'], + 'CategoryType' => ['title' => '目录类型', 'description' => '目录类型', 'type' => 'string', 'example' => 'codeManage'], + 'DataCellId' => ['title' => '数据单元ID', 'description' => '数据单元ID', 'type' => 'integer', 'format' => 'int64', 'example' => '41342'], + 'DirName' => ['title' => '所在目录路径 仅对文件/资源节点有效', 'description' => '所在目录路径 仅对文件/资源节点有效', 'type' => 'string', 'example' => '/'], + 'Name' => ['title' => '对象显示名称', 'description' => '对象显示名称', 'type' => 'string', 'example' => '代码管理'], + 'Type' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => 'codeManage'], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '300000907'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => 'John'], + 'GmtCreate' => ['title' => '创建时间 非实体对象节点为空', 'description' => '创建时间 非实体对象节点为空', 'type' => 'string', 'example' => '2024-11-01 18:08:17'], + 'GmtModified' => ['title' => '修改时间 非实体对象节点为空', 'description' => '修改时间 非实体对象节点为空', 'type' => 'string', 'example' => '2024-11-01 18:08:17'], + 'LastModifier' => ['title' => '修改人ID', 'description' => '修改人ID', 'type' => 'string', 'example' => '300000907'], + 'LastModifierName' => ['title' => '修改人名称'."\n" + ."\n", 'description' => '修改人名称'."\n" + ."\n", 'type' => 'string', 'example' => 'John'], ], - 'required' => true, ], ], - 'required' => true, ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', ], ], ], @@ -23036,467 +14346,96 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"Parent\\": {\\n \\"Id\\": 3,\\n \\"StringId\\": \\"3\\",\\n \\"ProjectId\\": 7081229106458752,\\n \\"CategoryType\\": \\"codeManage\\",\\n \\"DataCellId\\": 3213,\\n \\"DirName\\": \\"/\\",\\n \\"Name\\": \\"代码管理\\",\\n \\"Type\\": \\"codeManage\\",\\n \\"Creator\\": \\"300000907\\",\\n \\"CreatorName\\": \\"John\\",\\n \\"GmtCreate\\": \\"2024-11-01 18:08:17\\",\\n \\"GmtModified\\": \\"2024-11-01 18:08:17\\",\\n \\"LastModifier\\": \\"300000907\\",\\n \\"LastModifierName\\": \\"John\\"\\n },\\n \\"Children\\": {\\n \\"Id\\": 3,\\n \\"StringId\\": \\"3\\",\\n \\"ProjectId\\": 7081229106458752,\\n \\"CategoryType\\": \\"codeManage\\",\\n \\"DataCellId\\": 41342,\\n \\"DirName\\": \\"/\\",\\n \\"Name\\": \\"代码管理\\",\\n \\"Type\\": \\"codeManage\\",\\n \\"Creator\\": \\"300000907\\",\\n \\"CreatorName\\": \\"John\\",\\n \\"GmtCreate\\": \\"2024-11-01 18:08:17\\",\\n \\"GmtModified\\": \\"2024-11-01 18:08:17\\",\\n \\"LastModifier\\": \\"300000907\\",\\n \\"LastModifierName\\": \\"John\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取文件夹目录树', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '更新离线计算任务自定义血缘', - ], - 'UpdateBatchTask' => [ - 'summary' => '编辑离线计算任务。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDirectoryTree', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetFileStorageCredential' => [ + 'summary' => '获取文件存储临时读写授权。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id,临时授权用于创建资源文件时必填', 'description' => '项目Id,临时授权用于创建资源文件时必填', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1030131021'], + ], + [ + 'name' => 'UseVpcEndpoint', + 'in' => 'query', + 'schema' => ['title' => '使用内网地址, 默认:false', 'description' => '使用内网地址, 默认:false', 'type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'Purpose', + 'in' => 'query', + 'schema' => ['title' => '用途: RESOURCE 创建资源文件、COMPUTE_SOURCE_SETTING 存储计算源配置、NONE 无明确用途;默认:NONE', 'description' => '用途: RESOURCE 创建资源文件、COMPUTE_SOURCE_SETTING 存储计算源配置、NONE 无明确用途;默认:NONE', 'type' => 'string', 'required' => false, 'example' => 'RESOURCE'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '编辑请求', - 'description' => '编辑请求', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '任务所属项目Id', - 'description' => '任务所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10121101', - ], - 'Name' => [ - 'title' => '离线任务名', - 'description' => '离线任务名', - 'type' => 'string', - 'required' => true, - 'example' => 'test111', - ], - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], - 'NodeOutputNameList' => [ - 'title' => '节点输出名列表', - 'description' => '节点输出名列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点输出名', - 'description' => '节点输出名', - 'type' => 'string', - 'required' => true, - 'example' => 'test1011', - ], - 'required' => false, - ], - 'NodeDescription' => [ - 'title' => '任务描述', - 'description' => '任务描述', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Engine' => [ - 'title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', - 'description' => '任务执行引擎,如Python任务'."\n" - .'- 1. PYTHON2_7'."\n" - .'- 2. PYTHON3_7'."\n" - .'- 3. PYTHON3_11', - 'type' => 'string', - 'required' => false, - 'example' => 'PYTHON3_7', - ], - 'SchedulePeriod' => [ - 'title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', - 'description' => '调度周期'."\n" - .'- 年:YEARLY'."\n" - .'- 月:MONTHLY'."\n" - .'- 周:WEEKLY'."\n" - .'- 日:DAILY'."\n" - .'- 小时:HOURLY'."\n" - .'- 分钟:MINUTELY', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'CronExpression' => [ - 'title' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'type' => 'string', - 'required' => false, - 'example' => '0 0 1 * * ?', - ], - 'CustomScheduleConfig' => [ - 'title' => '自定义调度间隔配置', - 'description' => '自定义调度间隔配置', - 'type' => 'object', - 'properties' => [ - 'SchedulePeriod' => [ - 'title' => '调度周期', - 'description' => '调度周期'."\n" - .'- 年 YEARLY'."\n" - .'- 月 MONTHLY'."\n" - .'- 周 WEEKLY'."\n" - .'- 日 DAILY'."\n" - .'- 小时 HOURLY'."\n" - .'- 分钟 MINUTELY', - 'type' => 'string', - 'required' => true, - 'example' => 'DAILY', - ], - 'Interval' => [ - 'title' => '自定义间隔', - 'description' => '自定义间隔', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'IntervalUnit' => [ - 'title' => '间隔单位:MINUTE、HOUR', - 'description' => '间隔单位'."\n" - .'- MINUTE:分钟'."\n" - .'- HOUR:小时', - 'type' => 'string', - 'required' => true, - 'example' => 'HOUR', - ], - 'StartTime' => [ - 'title' => '开始时间: HH:mm', - 'description' => '开始时间: HH:mm', - 'type' => 'string', - 'required' => true, - 'example' => '08:00', - ], - 'EndTime' => [ - 'title' => '结束时间: HH:mm', - 'description' => '结束时间: HH:mm', - 'type' => 'string', - 'required' => true, - 'example' => '20:59', - ], - ], - 'required' => false, - ], - 'Code' => [ - 'title' => '任务代码', - 'description' => '任务代码', - 'type' => 'string', - 'required' => true, - 'example' => 'show tables;', - ], - 'ParamList' => [ - 'title' => '运行参数列表', - 'description' => '自定义参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '运行参数', - 'description' => '运行参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '运行参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'required' => true, - 'example' => 'key', - ], - 'Value' => [ - 'title' => '运行参数值', - 'description' => '参数值', - 'type' => 'string', - 'required' => true, - 'example' => 'value', - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'Priority' => [ - 'title' => '任务调度优先级, 1-9值越大表示优先级越低', - 'description' => '任务调度优先级, 1-9值越大表示优先级越低', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'NodeStatus' => [ - 'title' => '节点状态: 正常 1、暂停 2、空跑 3', - 'description' => '节点状态: 正常 1、暂停 2、空跑 3', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'TaskType' => [ - 'title' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', - 'description' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '21', - ], - 'UpStreamList' => [ - 'title' => '上游依赖', - 'description' => '上游依赖', - 'type' => 'array', - 'items' => [ - 'title' => '节点关联', - 'description' => '节点关联', - 'type' => 'object', - 'properties' => [ - 'NodeType' => [ - 'title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', - 'description' => '上游依赖节点类型'."\n" - .'- PHYSICAL:物理节点'."\n" - .'- LOGICAL:逻辑表依赖', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL', - ], - 'SourceNodeId' => [ - 'title' => '上游节点Id', - 'description' => '上游节点Id', - 'type' => 'string', - 'required' => false, - 'example' => 'n_2001', - ], - 'SourceNodeOutputName' => [ - 'title' => '上游节点的输出名称', - 'description' => '上游节点的输出名称', - 'type' => 'string', - 'required' => true, - 'example' => 't_input1', - ], - 'SourceTableName' => [ - 'title' => '输入表名称', - 'description' => '输入表名称', - 'type' => 'string', - 'required' => false, - 'example' => 't_input1', - ], - 'PeriodDiff' => [ - 'title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'FieldList' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'array', - 'items' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'required' => false, - ], - 'DependPeriod' => [ - 'title' => '依赖周期', - 'description' => '依赖周期', - 'type' => 'object', - 'properties' => [ - 'PeriodType' => [ - 'title' => '依赖周期类型 CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', - 'description' => '依赖周期类型'."\n" - .'- CURRENT_PERIOD:本周期'."\n" - .'- LAST_PERIOD:上周期'."\n" - .'- LAST_N_PERIOD:最近N日'."\n" - .'- LAST_24_HOUR:最近24小时', - 'type' => 'string', - 'required' => true, - 'example' => 'CURRENT_PERIOD', - ], - 'PeriodOffset' => [ - 'title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', - 'description' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'DependStrategy' => [ - 'title' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'description' => '依赖策略'."\n" - .'- ALL:全部'."\n" - .'- FIRST:第一个'."\n" - .'- LAST:最后一个'."\n" - .'- NEAR:最近一个', - 'type' => 'string', - 'required' => false, - 'example' => 'LAST', - ], - 'SourceNodeEnabled' => [ - 'title' => '上游节点是否生效', - 'description' => '上游节点是否生效', - 'type' => 'boolean', - 'required' => false, - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'string', - 'required' => false, - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'erp', - ], - 'PythonModuleList' => [ - 'title' => '任务依赖python三方包', - 'description' => '任务依赖python三方包', - 'type' => 'array', - 'items' => [ - 'title' => 'python三方包', - 'description' => 'python三方包', - 'type' => 'string', - 'required' => true, - 'example' => 'numpy', - ], - 'required' => false, - ], - 'SparkClientInfo' => [ - 'title' => 'spark客户端', - 'description' => 'spark客户端', - 'type' => 'object', - 'properties' => [ - 'SparkClientVersion' => [ - 'title' => 'spark客户端版本名称', - 'description' => 'spark客户端版本名称', - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], - ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'UpdateResult' => [ - 'title' => '编辑结果', - 'description' => '编辑结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'StorageCredential' => [ + 'title' => '临时读写授权详情', + 'description' => '临时读写授权详情', 'type' => 'object', 'properties' => [ - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12113111', - ], + 'StorageType' => ['title' => '存储集群类型: oss、ceph', 'description' => '存储集群类型: oss、ceph', 'type' => 'string', 'example' => 'oss'], + 'Endpoint' => ['title' => '连接地址', 'description' => '连接地址', 'type' => 'string', 'example' => 'oss-cn-shanghai.aliyuncs.com'], + 'Bucket' => ['title' => '文件存储bucket', 'description' => '文件存储bucket', 'type' => 'string', 'example' => 'dataphin'], + 'Region' => ['title' => 'region', 'description' => 'region', 'type' => 'string', 'example' => 'cn-shanghai'], + 'AccessId' => ['title' => '临时AK', 'description' => '临时AK', 'type' => 'string', 'example' => 'temp.akId'], + 'AccessKey' => ['title' => '临时AK', 'description' => '临时AK', 'type' => 'string', 'example' => 'temp.akKey'], + 'ObjectName' => ['title' => '存储对象', 'description' => '存储对象', 'type' => 'string', 'example' => '1023231111/abc'], + 'Expiration' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '17343434343434'], + 'SecurityToken' => ['title' => '临时授权证书', 'description' => '临时授权证书', 'type' => 'string', 'example' => 'temp.token'], ], ], ], @@ -23505,395 +14444,95 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StorageCredential\\": {\\n \\"StorageType\\": \\"oss\\",\\n \\"Endpoint\\": \\"oss-cn-shanghai.aliyuncs.com\\",\\n \\"Bucket\\": \\"dataphin\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"AccessId\\": \\"temp.akId\\",\\n \\"AccessKey\\": \\"temp.akKey\\",\\n \\"ObjectName\\": \\"1023231111/abc\\",\\n \\"Expiration\\": 17343434343434,\\n \\"SecurityToken\\": \\"temp.token\\"\\n }\\n}","type":"json"}]', + 'title' => '获取文件存储临时读写授权', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UpdateResult\\": {\\n \\"FileId\\": 12113111\\n }\\n}","type":"json"}]', - 'title' => '更新离线计算任务', + 'ramActions' => [], ], - 'SubmitBatchTask' => [ - 'summary' => '提交离线计算任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetInstanceDownStream' => [ + 'summary' => '根据起始的实例查询该实例的下游。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SubmitCommand', + 'name' => 'InstanceGet', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑请求', - 'description' => '编辑请求', + 'description' => '获取请求', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '任务所属项目Id', - 'description' => '任务所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10121101', - ], - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], - 'Comment' => [ - 'title' => '提交操作备注', - 'description' => '提交操作备注', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Name' => [ - 'title' => '离线任务名', - 'description' => '离线任务名', - 'type' => 'string', - 'required' => true, - 'example' => 'test111', - ], - 'NodeOutputNameList' => [ - 'title' => '节点输出名列表', - 'description' => '节点输出名列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点输出名', - 'description' => '节点输出名', - 'type' => 'string', - 'required' => true, - 'example' => 'test1011', - ], - 'required' => false, - ], - 'NodeDescription' => [ - 'title' => '任务描述', - 'description' => '任务描述', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'Engine' => [ - 'title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', - 'description' => '任务执行引擎,如Python任务:'."\n" - .'- PYTHON2_7'."\n" - .'- PYTHON3_7'."\n" - .'- PYTHON3_11', - 'type' => 'string', - 'required' => false, - 'example' => 'PYTHON3_7', - ], - 'SchedulePeriod' => [ - 'title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', - 'description' => '调度周期'."\n" - .'- 年:YEARLY'."\n" - .'- 月:MONTHLY'."\n" - .'- 周:WEEKLY'."\n" - .'- 日:DAILY'."\n" - .'- 小时:HOURLY'."\n" - .'- 分钟:MINUTELY', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'CronExpression' => [ - 'title' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'type' => 'string', - 'required' => false, - 'example' => '0 0 1 * * ?', - ], - 'CustomScheduleConfig' => [ - 'title' => '自定义调度间隔配置', - 'description' => '自定义调度间隔配置', - 'type' => 'object', - 'properties' => [ - 'SchedulePeriod' => [ - 'title' => '调度周期', - 'description' => '调度周期'."\n" - .'- 年 YEARLY'."\n" - .'- 月 MONTHLY'."\n" - .'- 周 WEEKLY'."\n" - .'- 日 DAILY'."\n" - .'- 小时 HOURLY'."\n" - .'- 分钟 MINUTELY', - 'type' => 'string', - 'required' => true, - 'example' => 'DAILY', - ], - 'Interval' => [ - 'title' => '自定义间隔', - 'description' => '自定义间隔', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'IntervalUnit' => [ - 'title' => '间隔单位:MINUTE、HOUR', - 'description' => '间隔单位'."\n" - .'- MINUTE:分钟'."\n" - .'- HOUR:小时', - 'type' => 'string', - 'required' => true, - 'example' => 'HOUR', - ], - 'StartTime' => [ - 'title' => '开始时间: HH:mm', - 'description' => '开始时间: HH:mm', - 'type' => 'string', - 'required' => true, - 'example' => '10:00', - ], - 'EndTime' => [ - 'title' => '结束时间: HH:mm', - 'description' => '结束时间: HH:mm', - 'type' => 'string', - 'required' => true, - 'example' => '10:00', - ], - ], - 'required' => false, - ], - 'Code' => [ - 'title' => '任务代码', - 'description' => '任务代码', - 'type' => 'string', - 'required' => true, - 'example' => 'show tables;', - ], - 'ParamList' => [ - 'title' => '运行参数列表', - 'description' => '自定义参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '运行参数', - 'description' => '运行参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '运行参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'required' => true, - 'example' => 'key', - ], - 'Value' => [ - 'title' => '运行参数值', - 'description' => '参数值', - 'type' => 'string', - 'required' => true, - 'example' => 'key', - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'Priority' => [ - 'title' => '任务调度优先级, 1-9值越大表示优先级越低', - 'description' => '任务调度优先级, 1-9值越大表示优先级越低', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'NodeStatus' => [ - 'title' => '节点状态: 正常 1、暂停 2、空跑 3', - 'description' => '节点状态: 正常 1、暂停 2、空跑 3', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'UpStreamList' => [ - 'title' => '上游依赖', - 'description' => '上游依赖', - 'type' => 'array', - 'items' => [ - 'title' => '节点关联', - 'description' => '节点关联', - 'type' => 'object', - 'properties' => [ - 'NodeType' => [ - 'title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', - 'description' => '上游依赖节点类型'."\n" - .'- PHYSICAL:物理节点'."\n" - .'- LOGICAL:逻辑表依赖', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL', - ], - 'SourceNodeId' => [ - 'title' => '上游节点Id', - 'description' => '上游节点Id', - 'type' => 'string', - 'required' => false, - 'example' => 'n_2001', - ], - 'SourceNodeOutputName' => [ - 'title' => '上游节点的输出名称', - 'description' => '上游节点的输出名称', - 'type' => 'string', - 'required' => true, - 'example' => 't_input1', - ], - 'SourceTableName' => [ - 'title' => '输入表名称', - 'description' => '输入表名称', - 'type' => 'string', - 'required' => false, - 'example' => 't_input1', - ], - 'PeriodDiff' => [ - 'title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'FieldList' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'array', - 'items' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'required' => false, - ], - 'SourceNodeEnabled' => [ - 'title' => '上游节点是否生效', - 'description' => '上游节点是否生效', - 'type' => 'boolean', - 'required' => false, - ], - 'DependStrategy' => [ - 'title' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'description' => '依赖策略'."\n" - .'- ALL:全部'."\n" - .'- FIRST:第一个'."\n" - .'- LAST:最后一个'."\n" - .'- NEAR:最近一个', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', - ], - 'DependPeriod' => [ - 'title' => '依赖周期', - 'description' => '依赖周期', - 'type' => 'object', - 'properties' => [ - 'PeriodType' => [ - 'title' => '依赖周期类型 CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', - 'description' => '依赖周期类型'."\n" - .'- CURRENT_PERIOD:本周期'."\n" - .'- LAST_PERIOD:上周期'."\n" - .'- LAST_N_PERIOD:最近N日'."\n" - .'- LAST_24_HOUR:最近24小时', - 'type' => 'string', - 'required' => true, - 'example' => 'CURRENT_PERIOD', - ], - 'PeriodOffset' => [ - 'title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', - 'description' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - ], - 'required' => true, - ], - 'required' => false, - ], - 'PythonModuleList' => [ - 'title' => '任务依赖python三方包', - 'description' => '任务依赖python三方包', - 'type' => 'array', - 'items' => [ - 'title' => 'python三方包', - 'description' => 'python三方包', - 'type' => 'string', - 'required' => true, - 'example' => 'numpy', - ], - 'required' => false, - ], - 'SparkClientInfo' => [ - 'title' => 'spark客户端', - 'description' => 'spark客户端', - 'type' => 'object', - 'properties' => [ - 'SparkClientVersion' => [ - 'title' => 'spark客户端版本名称', - 'description' => 'spark客户端版本名称', - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], - ], - 'required' => false, - ], + 'InstanceId' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 't_5929472_20210411_9577721'], + 'NodeType' => ['title' => '实例的节点类型:'."\n" + .'BBOX_LOGIC_TABLE_NODE,'."\n" + .'BBOX_LOGIC_FIELD_NODE,'."\n" + .'BBOX_LOGIC_FIELD_GROUP_NODE,'."\n" + .'BBOX_INNER_TEMP_NODE,'."\n" + .'DATA_PROCESS,'."\n" + .'STREAM_TASK_NODE,'."\n" + .'ONE_ID_LABEL,'."\n" + .'ONE_ID_RULE,'."\n" + .'ONE_ID_SYSTEM,PIPELINE_NODE,'."\n" + .'FLINK_BATCH', 'description' => '实例的节点类型'."\n" + .'- BBOX_LOGIC_TABLE_NODE'."\n" + .'- BBOX_LOGIC_FIELD_NODE'."\n" + .'- BBOX_LOGIC_FIELD_GROUP_NODE'."\n" + .'- BBOX_INNER_TEMP_NODE'."\n" + .'- DATA_PROCESS'."\n" + .'- STREAM_TASK_NODE'."\n" + .'- FLINK_BATCH', 'type' => 'string', 'required' => true, 'example' => 'DATA_PROCESS'], ], 'required' => true, ], ], + [ + 'name' => 'RunStatus', + 'in' => 'query', + 'schema' => ['title' => '实例的运行状态'."\n" + .'INIT、WATING、RUNNING、SUCCESS、FAILED', 'description' => '实例的运行状态'."\n" + .'- INIT'."\n" + .'- WATING'."\n" + .'- RUNNING'."\n" + .'- SUCCESS'."\n" + .'- FAILED', 'type' => 'string', 'required' => false, 'example' => 'SUCCESS'], + ], + [ + 'name' => 'DownStreamDepth', + 'in' => 'query', + 'schema' => ['title' => '查询的dag向下展开的层数,允许值1~6', 'description' => '查询的dag向下展开的层数,允许值1~6', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], ], 'responses' => [ 200 => [ @@ -23902,53 +14541,70 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'SubmitResult' => [ - 'title' => '编辑结果', - 'description' => '编辑结果', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '任务调度节点ID', - 'description' => '任务调度节点ID', - 'type' => 'string', - 'example' => 'n_12113111', - ], - 'SubmitId' => [ - 'title' => '待发布对象Id', - 'description' => '待发布对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1010312911', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'InstanceRelationList' => [ + 'title' => '下游及依赖关系'."\n", + 'description' => '下游及依赖关系'."\n", + 'type' => 'array', + 'items' => [ + 'title' => '下游及依赖关系', + 'description' => '下游及依赖关系', + 'type' => 'object', + 'properties' => [ + 'InstanceInfo' => [ + 'title' => '实力信息', + 'description' => '实力信息', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_232411'], + 'Name' => ['title' => '实例名称', 'description' => '实例名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + ], + ], + 'SelectStatus' => ['title' => '实例选择状态,主要用于逻辑字段'."\n" + .'OPTIONAL可选'."\n" + .'SELECTED 必选'."\n" + .'DISABLE 不可选'."\n" + .'GROUP_SELECTED 全选或全不选', 'description' => '实例选择状态,主要用于逻辑字段'."\n" + .'- OPTIONAL可选'."\n" + .'- SELECTED 必选'."\n" + .'- DISABLE 不可选'."\n" + .'- GROUP_SELECTED 全选或全不选', 'type' => 'string', 'example' => 'OPTIONAL'], + 'SelectStatusCause' => ['title' => '实例被选中原因'."\n" + .'PK_CHANGE, LOGIC_CHANGE, RELATION, BIZ_RELATION,MV_RELATION,MODEL_REFRESH,FIELD_DELETED,FIELD_ADDED_NO_INSTANCE,PERMISSION_DENY,OUTSIDE_INCOMING, INSTANCE_STATUS,AFFECT_BY_UPSTREAM', 'description' => '实例被选中原因'."\n" + .'- PK_CHANGE'."\n" + .'- LOGIC_CHANGE'."\n" + .'- RELATION'."\n" + .'- BIZ_RELATIO'."\n" + .'- MV_RELATION'."\n" + .'- MODEL_REFRESH'."\n" + .'- FIELD_DELETED'."\n" + .'- FIELD_ADDED_NO_INSTANCE'."\n" + .'- PERMISSION_DENY'."\n" + .'- OUTSIDE_INCOMING'."\n" + .'- INSTANCE_STATUS'."\n" + .'- AFFECT_BY_UPSTREAM', 'type' => 'string', 'example' => 'FIELD_DELETED'], + 'RunStatus' => ['title' => '实例运行状态'."\n" + .'INIT、WATING、RUNNING、SUCCESS、FAILED', 'description' => '实例运行状态', 'type' => 'string', 'example' => 'RUNNING'], + 'FieldInstanceList' => [ + 'description' => '字段实例列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'SelectStatus' => ['description' => '实例选择状态', 'type' => 'string', 'example' => 'OPTIONAL'], + 'FieldInstanceId' => ['description' => '字段实例ID', 'type' => 'string', 'example' => 't_23211'], + 'RunStatus' => ['description' => '运行状态', 'type' => 'string', 'example' => 'SUCCESS'], + ], + 'description' => '', + ], + ], + 'DownStreamDepth' => ['title' => '层级', 'description' => '层级', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExtendInfo' => ['title' => '节点实例扩展信息', 'description' => '节点实例扩展信息', 'type' => 'string', 'example' => '{"a":"x"}'], ], ], ], @@ -23958,38 +14614,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceRelationList\\": [\\n {\\n \\"InstanceInfo\\": {\\n \\"Id\\": \\"t_232411\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\"\\n },\\n \\"SelectStatus\\": \\"OPTIONAL\\",\\n \\"SelectStatusCause\\": \\"FIELD_DELETED\\",\\n \\"RunStatus\\": \\"RUNNING\\",\\n \\"FieldInstanceList\\": [\\n {\\n \\"SelectStatus\\": \\"OPTIONAL\\",\\n \\"FieldInstanceId\\": \\"t_23211\\",\\n \\"RunStatus\\": \\"SUCCESS\\"\\n }\\n ],\\n \\"DownStreamDepth\\": 1,\\n \\"ExtendInfo\\": \\"{\\\\\\"a\\\\\\":\\\\\\"x\\\\\\"}\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取实例下游实例列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitResult\\": {\\n \\"NodeId\\": \\"n_12113111\\",\\n \\"SubmitId\\": 1010312911\\n }\\n}","type":"json"}]', - 'title' => '提交离线计算任务', - ], - 'ParseBatchTaskDependency' => [ - 'summary' => '解析离线计算任务的逻辑表依赖,注意解析结果上游依赖信息中可能包含自依赖节点(上游节点ID和解析代码的任务节点ID相同)需要用户自己进行处理。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetInstanceDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetInstanceUpDownStream' => [ + 'summary' => '查询实例的上下游,支持逻辑表和代码任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -23997,208 +14657,146 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ParseCommand', + 'name' => 'InstanceId', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '解析请求', - 'description' => '解析请求', + 'title' => '中心节点', + 'description' => '中心节点', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - 'Code' => [ - 'title' => '待解析的SQL代码', - 'description' => '待解析的SQL代码', - 'type' => 'string', - 'required' => true, - 'example' => 'select * from t_test limit 1;', - ], - 'IncludeAllInputTables' => [ - 'title' => '包含未找到对应节点的输入表的依赖信息, 默认 false', - 'description' => '包含未找到对应节点的输入表的依赖信息, 默认 false', - 'type' => 'boolean', - 'required' => false, - ], - 'NeedQueryLineages' => [ - 'title' => '查询上游依赖时是否查询血缘数据, 默认 false', - 'description' => '查询上游依赖时是否查询血缘数据, 默认 false', - 'type' => 'boolean', - 'required' => false, - ], - 'OperatorType' => [ - 'title' => '任务类型: MAX_COMPUTE_SQL等', - 'description' => '任务类型: MAX_COMPUTE_SQL等', - 'type' => 'string', - 'required' => true, - 'example' => 'MaxCompute_SQL', - ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', + 'Id' => ['title' => '实例id/', 'description' => '实例id/', 'type' => 'string', 'required' => true, 'example' => 't_123456'], + 'FieldInstanceIdList' => [ + 'title' => '当节点时逻辑表实例id时可以传,不传默认是全表', + 'description' => '字段ID列表:当节点是逻辑表实例id时可以传,不传默认是全表', + 'type' => 'array', + 'items' => ['title' => '', 'description' => '字段ID', 'type' => 'string', 'required' => false, 'example' => '123'], 'required' => false, - 'example' => 'erp', ], ], 'required' => true, ], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1001121'], + ], + [ + 'name' => 'UpStreamDepth', + 'in' => 'query', + 'schema' => ['title' => '上游节点层级,默认:1', 'description' => '上游节点层级,默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'DownStreamDepth', + 'in' => 'query', + 'schema' => ['title' => '下游节点层级,默认:1', 'description' => '下游节点层级,默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ParseResult' => [ - 'title' => '解析结果', - 'description' => '解析结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'InstanceDagInfo' => [ + 'title' => '实例上下游数据,包含当前实例,以及上下游实例', + 'description' => '实例上下游数据,包含当前实例,以及上下游实例', 'type' => 'object', 'properties' => [ - 'DependNodeList' => [ - 'title' => '依赖节点', - 'description' => '依赖节点', + 'StartInstanceList' => [ + 'title' => '中心实例', + 'description' => '中心实例', 'type' => 'array', 'items' => [ - 'title' => '依赖节点', - 'description' => '依赖节点', + 'title' => '中心实例', + 'description' => '中心实例', 'type' => 'object', 'properties' => [ - 'NodeIoType' => [ - 'title' => '输入输出类型: 依赖节点 input、节点输出名 output', - 'description' => '输入输出类型: 依赖节点 input、节点输出名 output', - 'type' => 'string', - 'example' => 'input', + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_1234567'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_1234567'], + 'NodeType' => ['title' => '节点类型'."\n" + .'DATA_PROCESS:代码任务'."\n" + .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'ONE_ID_LABEL:萃取标签节点'."\n" + .'ONE_ID_RULE:萃取标签节点'."\n" + .'PIPELINE_NODE:PIPELINE节点', 'description' => '节点类型'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldInstanceIdList' => [ + 'title' => '字段ID列表', + 'description' => '字段ID列表', + 'type' => 'array', + 'items' => ['description' => '字段ID', 'type' => 'string', 'example' => '1011'], ], - 'ScheduleNodeInfoList' => [ - 'title' => '调度节点列表', - 'description' => '调度节点列表', + ], + ], + ], + 'UpInstanceList' => [ + 'title' => '上游实例', + 'description' => '上游实例', + 'type' => 'array', + 'items' => [ + 'title' => '上游实例', + 'description' => '上游实例', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_1234567'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_1234567'], + 'NodeType' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldInstanceIdList' => [ + 'title' => '字段ID列表', + 'description' => '字段ID列表', 'type' => 'array', - 'items' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'TableName' => [ - 'title' => '节点输出表名', - 'description' => '节点输出表名', - 'type' => 'string', - 'example' => 't_test', - ], - 'OutputName' => [ - 'title' => '节点输出名', - 'description' => '节点输出名', - 'type' => 'string', - 'example' => 't_test', - ], - 'FieldList' => [ - 'title' => '字段列表,仅适用于逻辑表依赖', - 'description' => '字段列表,仅适用于逻辑表依赖', - 'type' => 'array', - 'items' => [ - 'title' => '字段', - 'description' => '字段', - 'type' => 'string', - 'example' => 'column1', - ], - ], - 'OwnerUserId' => [ - 'title' => '节点owner, 当未找到对应输入表的节点时为空', - 'description' => '节点owner, 当未找到对应输入表的节点时为空', - 'type' => 'string', - 'example' => '201122301', - ], - 'OwnerName' => [ - 'title' => '节点owner, 当未找到对应输入表的节点时为空', - 'description' => '节点owner, 当未找到对应输入表的节点时为空', - 'type' => 'string', - 'example' => '张三', - ], - 'NodeId' => [ - 'title' => '节点名称, 当未找到对应输入表的节点时为-1', - 'description' => '节点名称, 当未找到对应输入表的节点时为-1', - 'type' => 'string', - 'example' => 'n_11013121', - ], - 'NodeName' => [ - 'title' => '节点名称, 当未找到对应输入表的节点时为空', - 'description' => '节点名称, 当未找到对应输入表的节点时为空', - 'type' => 'string', - 'example' => 'test11', - ], - ], - ], + 'items' => ['description' => '字段ID', 'type' => 'string', 'example' => '1021'], + ], + ], + ], + ], + 'DownInstanceList' => [ + 'title' => '下游实例', + 'description' => '下游实例', + 'type' => 'array', + 'items' => [ + 'title' => '下游实例', + 'description' => '下游实例', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_1234567'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_1234567'], + 'NodeType' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldInstanceIdList' => [ + 'title' => '字段ID列表', + 'description' => '字段ID列表', + 'type' => 'array', + 'items' => ['description' => '字段ID', 'type' => 'string', 'example' => '1031'], ], ], ], @@ -24211,95 +14809,69 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceDagInfo\\": {\\n \\"StartInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1011\\"\\n ]\\n }\\n ],\\n \\"UpInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1021\\"\\n ]\\n }\\n ],\\n \\"DownInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1031\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询实例的上下游', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ParseResult\\": {\\n \\"DependNodeList\\": [\\n {\\n \\"NodeIoType\\": \\"input\\",\\n \\"ScheduleNodeInfoList\\": [\\n {\\n \\"TableName\\": \\"t_test\\",\\n \\"OutputName\\": \\"t_test\\",\\n \\"FieldList\\": [\\n \\"column1\\"\\n ],\\n \\"OwnerUserId\\": \\"201122301\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"NodeId\\": \\"n_11013121\\",\\n \\"NodeName\\": \\"test11\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '解析离线计算任务的逻辑表依赖', - ], - 'OfflineBatchTask' => [ - 'summary' => '下线离线计算任务。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetInstanceUpDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetLatestSubmitDetail' => [ + 'summary' => '获取最新的待发布记录详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - ], - [ - 'name' => 'FileId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Comment', - 'in' => 'query', + 'name' => 'SubmitDetailQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '下线操作备注', - 'description' => '下线操作备注', - 'type' => 'string', + 'title' => '待发布查询请求', + 'description' => '待发布查询请求', + 'type' => 'object', + 'properties' => [ + 'ObjectId' => ['title' => '对象id', 'description' => '对象id', 'type' => 'string', 'required' => true, 'example' => '12345'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE_SQL'], + ], 'required' => true, - 'example' => 'test xx', ], ], ], @@ -24310,47 +14882,58 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'OfflineResult' => [ - 'title' => '下线结果', - 'description' => '下线结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'SubmitDetailResult' => [ + 'title' => '待发布详情', + 'description' => '待发布详情', 'type' => 'object', 'properties' => [ - 'PublishObjectId' => [ - 'title' => '待发布对象ID', - 'description' => '待发布对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10211123', + 'Id' => ['title' => '提交记录id', 'description' => '提交记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'SubmitStatus' => ['title' => '待发布记录状态 待发布:TO_BE_PUBLISHED/已发布:PUBLISHED/发布中:PUBLISHING', 'description' => '待发布记录状态 '."\n" + ."\n" + .'- 待发布:TO_BE_PUBLISHED'."\n" + ."\n" + .'- 已发布:PUBLISHED'."\n" + ."\n" + .'- 发布中:PUBLISHING', 'type' => 'string', 'example' => 'TO_BE_PUBLISHED'], + 'PublishStatus' => ['title' => '发布记录状态 未校验:NOT_VERIFIED/审批中:APPROVING/审批失败:APPROVE_FAILED/审批成功:APPROVE_SUCCESS/审批撤回:APPROVE_REVOKED/发布校验中:CHECKING/发布校验失败:CHECK_FAILED/发布校验成功:CHECK_SUCCESS/发布中:PUBLISHING/发布失败:FAILED/发布成功:SUCCESS', 'description' => '发布记录状态 '."\n" + .'- 未校验:NOT_VERIFIED'."\n" + .'- 审批中:APPROVING'."\n" + .'- 审批失败:APPROVE_FAILED'."\n" + .'- 审批成功:APPROVE_SUCCESS'."\n" + .'- 审批撤回:APPROVE_REVOKED'."\n" + .'- 发布校验中:CHECKING'."\n" + .'- 发布校验失败:CHECK_FAILED'."\n" + .'- 发布校验成功:CHECK_SUCCESS'."\n" + .'- 发布中:PUBLISHING'."\n" + .'- 发布失败:FAILED'."\n" + .'- 发布成功:SUCCESS', 'type' => 'string', 'example' => 'SUCCESS'], + 'Tag' => ['title' => '记录Tag', 'description' => '记录Tag', 'type' => 'string', 'example' => 'tag'], + 'ReleaseObject' => [ + 'title' => '待发布记录对象', + 'description' => '待发布记录对象', + 'type' => 'object', + 'properties' => [ + 'ObjectVersion' => ['title' => '对象版本', 'description' => '对象版本', 'type' => 'string', 'example' => '1'], + 'ChangeType' => ['title' => '变更类型列表(新增:CREATE/更新:UPDATE/删除:DELETE', 'description' => '变更类型列表(新增:CREATE/更新:UPDATE/删除:DELETE', 'type' => 'string', 'example' => 'DELETE'], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'NodeId' => ['title' => '节点id', 'description' => '节点id', 'type' => 'string', 'example' => 'n_1234'], + 'SubmitComment' => ['title' => '提交说明', 'description' => '提交说明', 'type' => 'string', 'example' => '提交说明'], + 'SubmitObject' => [ + 'title' => '发布对象', + 'description' => '发布对象', + 'type' => 'object', + 'properties' => [ + 'ObjectId' => ['title' => '对象id', 'description' => '对象id', 'type' => 'string', 'example' => '1234'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => 'MAX_COMPUTE_SQL'], + 'ObjectName' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'example' => 'abc'], + ], + ], + ], ], ], ], @@ -24360,38 +14943,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitDetailResult\\": {\\n \\"Id\\": 1234,\\n \\"SubmitStatus\\": \\"TO_BE_PUBLISHED\\",\\n \\"PublishStatus\\": \\"SUCCESS\\",\\n \\"Tag\\": \\"tag\\",\\n \\"ReleaseObject\\": {\\n \\"ObjectVersion\\": \\"1\\",\\n \\"ChangeType\\": \\"DELETE\\",\\n \\"ProjectId\\": 1234,\\n \\"NodeId\\": \\"n_1234\\",\\n \\"SubmitComment\\": \\"提交说明\\",\\n \\"SubmitObject\\": {\\n \\"ObjectId\\": \\"1234\\",\\n \\"ObjectType\\": \\"MAX_COMPUTE_SQL\\",\\n \\"ObjectName\\": \\"abc\\"\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '获取最近一条提交详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OfflineResult\\": {\\n \\"PublishObjectId\\": 10211123\\n }\\n}","type":"json"}]', - 'title' => '下线离线计算任务', - ], - 'GetBatchTaskUdfLineages' => [ - 'summary' => '获取离线任务自定义血缘。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetLatestSubmitDetail', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetMyRoles' => [ + 'summary' => '获取用户角色列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -24399,46 +14986,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - ], - [ - 'name' => 'FileId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], ], 'responses' => [ @@ -24448,324 +15001,23 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'object', - 'properties' => [ - 'LineageGroupList' => [ - 'title' => '血缘组列表', - 'description' => '血缘组列表', - 'type' => 'array', - 'items' => [ - 'title' => '血缘组', - 'description' => '血缘组', - 'type' => 'object', - 'properties' => [ - 'InputLineageList' => [ - 'title' => '血缘输入表集合', - 'description' => '血缘输入表集合', - 'type' => 'array', - 'items' => [ - 'title' => '血缘表', - 'description' => '血缘表', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_input', - ], - 'DisplayName' => [ - 'title' => '表显示名', - 'description' => '表显示名', - 'type' => 'string', - 'example' => 't_input', - ], - 'Guid' => [ - 'title' => '全局Id', - 'description' => '全局Id', - 'type' => 'string', - 'example' => 'Guid_101121', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test xx', - ], - 'OwnerName' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'OwnerUserId' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'example' => '20112101', - ], - 'ProjectName' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'string', - 'example' => 'prj_test', - ], - 'ProjectId' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'string', - 'example' => '131211211', - ], - 'BizUnitId' => [ - 'title' => '板块ID', - 'description' => '板块ID', - 'type' => 'string', - 'example' => '103111231', - ], - 'BizUnitName' => [ - 'title' => '板块名称', - 'description' => '板块名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Env' => [ - 'title' => '环境 prod/dev', - 'description' => '环境 prod/dev', - 'type' => 'string', - 'example' => 'dev', - ], - 'SubType' => [ - 'title' => '表子类型: 维度逻辑表 dim', - 'description' => '表子类型: 维度逻辑表 dim', - 'type' => 'string', - 'example' => 'dim', - ], - 'FullTable' => [ - 'title' => '是否选择全表', - 'description' => '是否选择全表', - 'type' => 'boolean', - ], - 'ColumnList' => [ - 'title' => '血缘字段列表', - 'description' => '血缘字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '血缘字段', - 'description' => '血缘字段', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '字段Id', - 'description' => '字段Id', - 'type' => 'string', - 'example' => 'c011', - ], - 'Name' => [ - 'title' => '字段名称', - 'description' => '字段名称', - 'type' => 'string', - 'example' => 'c011', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx', - ], - 'DataType' => [ - 'title' => '数据类型', - 'description' => '数据类型', - 'type' => 'string', - 'example' => 'varchar', - ], - 'PartitionKey' => [ - 'title' => '是否分区键', - 'description' => '是否分区键', - 'type' => 'boolean', - ], - 'PrimaryKey' => [ - 'title' => '是否主键', - 'description' => '是否主键', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - ], - 'OutputLineageList' => [ - 'title' => '血缘输出表集合', - 'description' => '血缘输出表集合', - 'type' => 'array', - 'items' => [ - 'title' => '血缘表', - 'description' => '血缘表', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_input', - ], - 'DisplayName' => [ - 'title' => '表显示名', - 'description' => '表显示名', - 'type' => 'string', - 'example' => 't_input', - ], - 'Guid' => [ - 'title' => '全局Id', - 'description' => '全局Id', - 'type' => 'string', - 'example' => 'Guid_101121', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test xx', - ], - 'OwnerName' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'OwnerUserId' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'example' => '20112101', - ], - 'ProjectName' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'string', - 'example' => 'prj_test', - ], - 'ProjectId' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'string', - 'example' => '131211211', - ], - 'BizUnitId' => [ - 'title' => '板块ID', - 'description' => '板块ID', - 'type' => 'string', - 'example' => '103111231', - ], - 'BizUnitName' => [ - 'title' => '板块名称', - 'description' => '板块名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Env' => [ - 'title' => '环境 prod/dev', - 'description' => '环境 prod/dev', - 'type' => 'string', - 'example' => 'dev', - ], - 'SubType' => [ - 'title' => '表子类型: 维度逻辑表 dim', - 'description' => '表子类型: 维度逻辑表 dim', - 'type' => 'string', - 'example' => 'dim', - ], - 'FullTable' => [ - 'title' => '是否选择全表', - 'description' => '是否选择全表', - 'type' => 'boolean', - ], - 'ColumnList' => [ - 'title' => '血缘字段列表', - 'description' => '血缘字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '血缘字段', - 'description' => '血缘字段', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '字段Id', - 'description' => '字段Id', - 'type' => 'string', - 'example' => 'c011', - ], - 'Name' => [ - 'title' => '字段名称', - 'description' => '字段名称', - 'type' => 'string', - 'example' => 'c011', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx', - ], - 'DataType' => [ - 'title' => '数据类型', - 'description' => '数据类型', - 'type' => 'string', - 'example' => 'varchar', - ], - 'PartitionKey' => [ - 'title' => '是否分区键', - 'description' => '是否分区键', - 'type' => 'boolean', - ], - 'PrimaryKey' => [ - 'title' => '是否主键', - 'description' => '是否主键', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'RoleList' => [ + 'description' => '角色列表', + 'type' => 'array', + 'items' => [ + 'description' => '角色', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '角色Id', 'description' => '角色Id', 'type' => 'integer', 'format' => 'int64', 'example' => '300047957'], + 'Name' => ['title' => '角色名称', 'description' => '角色名称', 'type' => 'string', 'example' => 'dataphinAdmin'], + 'Description' => ['title' => '角色描述', 'description' => '角色描述', 'type' => 'string', 'example' => 'dataphin管理员'], + ], + ], ], ], ], @@ -24773,38 +15025,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"RoleList\\": [\\n {\\n \\"Id\\": 300047957,\\n \\"Name\\": \\"dataphinAdmin\\",\\n \\"Description\\": \\"dataphin管理员\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取当前用户角色列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"LineageGroupList\\": [\\n {\\n \\"InputLineageList\\": [\\n {\\n \\"Name\\": \\"t_input\\",\\n \\"DisplayName\\": \\"t_input\\",\\n \\"Guid\\": \\"Guid_101121\\",\\n \\"Description\\": \\"test xx\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OwnerUserId\\": \\"20112101\\",\\n \\"ProjectName\\": \\"prj_test\\",\\n \\"ProjectId\\": \\"131211211\\",\\n \\"BizUnitId\\": \\"103111231\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Env\\": \\"dev\\",\\n \\"SubType\\": \\"dim\\",\\n \\"FullTable\\": true,\\n \\"ColumnList\\": [\\n {\\n \\"Id\\": \\"c011\\",\\n \\"Name\\": \\"c011\\",\\n \\"Description\\": \\"xx\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"PartitionKey\\": true,\\n \\"PrimaryKey\\": true\\n }\\n ]\\n }\\n ],\\n \\"OutputLineageList\\": [\\n {\\n \\"Name\\": \\"t_input\\",\\n \\"DisplayName\\": \\"t_input\\",\\n \\"Guid\\": \\"Guid_101121\\",\\n \\"Description\\": \\"test xx\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OwnerUserId\\": \\"20112101\\",\\n \\"ProjectName\\": \\"prj_test\\",\\n \\"ProjectId\\": \\"131211211\\",\\n \\"BizUnitId\\": \\"103111231\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Env\\": \\"dev\\",\\n \\"SubType\\": \\"dim\\",\\n \\"FullTable\\": true,\\n \\"ColumnList\\": [\\n {\\n \\"Id\\": \\"c011\\",\\n \\"Name\\": \\"c011\\",\\n \\"Description\\": \\"xx\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"PartitionKey\\": true,\\n \\"PrimaryKey\\": true\\n }\\n ]\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询离线计算任务自定义血缘', - ], - 'GetBatchTaskVersions' => [ - 'summary' => '获取离线计算任务版本列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetMyRoles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetMyTenants' => [ + 'summary' => '获取当前用户归属租户。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -24812,45 +15068,23 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FileId', - 'in' => 'query', + 'name' => 'FeatureCodeList', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', + 'title' => '租户拥有售卖Code', + 'description' => '租户拥有售卖Code', + 'type' => 'array', + 'items' => ['title' => '售卖Code', 'description' => '售卖Code', 'type' => 'string', 'required' => false, 'example' => 'DATAPHIN_STREAM'], + 'required' => false, ], ], ], @@ -24861,105 +15095,35 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'object', - 'properties' => [ - 'BatchTaskVersionList' => [ - 'title' => '离线计算任务版本列表', - 'description' => '离线计算任务版本列表', - 'type' => 'array', - 'items' => [ - 'title' => '离线计算任务版本', - 'description' => '离线计算任务版本', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '节点Id', - 'description' => '节点Id', - 'type' => 'string', - 'example' => 'n_10231001', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'string', - 'example' => '1', - ], - 'UserId' => [ - 'title' => '提交人', - 'description' => '提交人', - 'type' => 'string', - 'example' => '20110110', - ], - 'UserName' => [ - 'title' => '提交人', - 'description' => '提交人', - 'type' => 'string', - 'example' => '张三', - ], - 'Comment' => [ - 'title' => '提交备注', - 'description' => '提交备注', - 'type' => 'string', - 'example' => 'test', - ], - 'Published' => [ - 'title' => '是否已经发布到线上', - 'description' => '是否已经发布到线上', - 'type' => 'boolean', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10232111011', - ], - 'GmtCreate' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-10 10:10:10', - ], - 'GmtModified' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2024-10-10 10:10:10', - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'TenantList' => [ + 'title' => '租户列表', + 'description' => '租户列表', + 'type' => 'array', + 'items' => [ + 'title' => '租户详情', + 'description' => '租户详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '租户Id', 'description' => '租户Id', 'type' => 'integer', 'format' => 'int64', 'example' => '132311'], + 'Name' => ['title' => '租户名', 'description' => '租户名', 'type' => 'string', 'example' => 'xx测试'], + 'OwnerId' => ['title' => '租户归属用户Id', 'description' => '租户归属用户Id', 'type' => 'string', 'example' => '21323231'], + 'Description' => ['title' => '租户描述', 'description' => '租户描述', 'type' => 'string', 'example' => 'xx 测试'], + 'Deleted' => ['title' => '是否被删除标识', 'description' => '是否被删除标识', 'type' => 'boolean', 'example' => 'false'], + 'DeleteTime' => ['title' => '删除时间', 'description' => '删除时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'TitleType' => ['title' => '租户标题类型', 'description' => '租户标题类型', 'type' => 'string', 'example' => 'icon'], + 'OpsTenant' => ['title' => '是否运维租户', 'description' => '是否运维租户', 'type' => 'boolean', 'example' => 'false'], + 'ResourceLimited' => ['title' => '是否进行资源限额的计算', 'description' => '是否进行资源限额的计算', 'type' => 'boolean', 'example' => 'false'], + 'Visible' => ['title' => '是否可以展示', 'description' => '是否可以展示', 'type' => 'boolean', 'example' => 'true'], + 'TenantTypeList' => [ + 'title' => '租户类型', + 'description' => '租户类型', + 'type' => 'array', + 'items' => ['title' => '租户类型', 'description' => '租户类型', 'type' => 'string', 'example' => 'application'], ], ], ], @@ -24970,38 +15134,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TenantList\\": [\\n {\\n \\"Id\\": 132311,\\n \\"Name\\": \\"xx测试\\",\\n \\"OwnerId\\": \\"21323231\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Deleted\\": false,\\n \\"DeleteTime\\": 1717343597000,\\n \\"TitleType\\": \\"icon\\",\\n \\"OpsTenant\\": false,\\n \\"ResourceLimited\\": false,\\n \\"Visible\\": true,\\n \\"TenantTypeList\\": [\\n \\"application\\"\\n ]\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取当前用户归属租户', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:36:14.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"BatchTaskVersionList\\": [\\n {\\n \\"NodeId\\": \\"n_10231001\\",\\n \\"Version\\": \\"1\\",\\n \\"UserId\\": \\"20110110\\",\\n \\"UserName\\": \\"张三\\",\\n \\"Comment\\": \\"test\\",\\n \\"Published\\": true,\\n \\"ProjectId\\": 10232111011,\\n \\"GmtCreate\\": \\"2024-10-10 10:10:10\\",\\n \\"GmtModified\\": \\"2024-10-10 10:10:10\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取离线计算任务版本列表', - ], - 'GetBatchTaskInfoByVersion' => [ - 'summary' => '获取离线计算任务指定版本任务详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetMyTenants', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetNodeUpDownStream' => [ + 'summary' => '通用查询节点上下游接口。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -25009,58 +15177,51 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'NodeId', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '节点id', + 'description' => '节点id', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点id', 'description' => '节点id', 'type' => 'string', 'required' => true, 'example' => '11313'], + 'FieldIdList' => ['title' => '当节点时逻辑表节点id时可以传,不传默认是全表', 'description' => '当节点时逻辑表节点id时可以传,不传默认是全表', 'type' => 'string', 'required' => false, 'example' => '12'], + ], 'required' => true, - 'example' => '131211211', ], ], [ - 'name' => 'FileId', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '113123'], ], [ - 'name' => 'VersionId', + 'name' => 'UpStreamDepth', 'in' => 'query', - 'schema' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '上游层级,默认:1', 'description' => '上游层级,默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'DownStreamDepth', + 'in' => 'query', + 'schema' => ['title' => '下游层级,默认:1', 'description' => '下游层级,默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'DEV'], ], ], 'responses' => [ @@ -25070,407 +15231,103 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'TaskInfo' => [ - 'title' => '任务详情', - 'description' => '任务详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeDagInfo' => [ + 'title' => '节点上下游数据', + 'description' => '节点上下游数据', 'type' => 'object', 'properties' => [ - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12113111', - ], - 'Name' => [ - 'title' => '任务名称', - 'description' => '任务名称', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'Status' => [ - 'title' => '发布状态: 草稿0、已提交1、开发中100', - 'description' => '发布状态: 草稿0、已提交1、开发中100', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'Published' => [ - 'title' => '是否已发布', - 'description' => '是否已发布', - 'type' => 'boolean', - ], - 'NeedPublish' => [ - 'title' => '是否需要发布', - 'description' => '是否需要发布', - 'type' => 'boolean', - ], - 'HasDevNode' => [ - 'title' => '是否有开发环境节点', - 'description' => '是否有开发环境节点', - 'type' => 'boolean', - ], - 'NodeId' => [ - 'title' => '节点Id', - 'description' => '节点Id', - 'type' => 'string', - 'example' => 'n_1011_21232132322', - ], - 'NodeName' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'NodeOutputNameList' => [ - 'title' => '节点输出名称列表', - 'description' => '节点输出名称列表', + 'StartNodeList' => [ + 'title' => '中心节点 ', + 'description' => '中心节点 ', 'type' => 'array', 'items' => [ - 'title' => '节点输出名称', - 'description' => '节点输出名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - 'OwnerUserId' => [ - 'title' => '节点负责人用户id', - 'description' => '节点负责人用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'OwnerName' => [ - 'title' => '节点负责人名称', - 'description' => '节点负责人名称', - 'type' => 'string', - 'example' => '张三', - ], - 'OperatorUserId' => [ - 'title' => '当前操作的用户id', - 'description' => '当前操作的用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'NodeDescription' => [ - 'title' => '任务描述', - 'description' => '任务描述', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'TaskType' => [ - 'title' => '任务类型: MaxCompute_SQL 5、Shell 10、Python 21', - 'description' => '任务类型,可参见创建离线计算任务接口', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '21', - ], - 'ScheduleType' => [ - 'title' => '节点类型: 周期任务1、手动任务3', - 'description' => '节点类型'."\n" - .'- 周期任务:1'."\n" - .'- 手动任务:3', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'SchedulePeriod' => [ - 'title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', - 'description' => '调度周期'."\n" - .'- 年:YEARLY'."\n" - .'- 月:MONTHLY'."\n" - .'- 周:WEEKLY'."\n" - .'- 日:DAILY'."\n" - .'- 小时:HOURLY'."\n" - .'- 分钟:MINUTELY', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'CronExpression' => [ - 'title' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'type' => 'string', - 'example' => '0 0 1 * * ?', - ], - 'CustomScheduleConfig' => [ - 'title' => '自定义调度间隔配置', - 'description' => '自定义调度间隔配置', - 'type' => 'object', - 'properties' => [ - 'SchedulePeriod' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'Interval' => [ - 'title' => '自定义间隔', - 'description' => '自定义间隔', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'IntervalUnit' => [ - 'title' => '间隔单位:MINUTE、HOUR', - 'description' => '间隔单位:MINUTE、HOUR', - 'type' => 'string', - 'example' => 'HOUR', - ], - 'StartTime' => [ - 'title' => '开始时间: HH:mm', - 'description' => '开始时间: HH:mm', - 'type' => 'string', - 'example' => '08:00', - ], - 'EndTime' => [ - 'title' => '结束时间: HH:mm', - 'description' => '结束时间: HH:mm', - 'type' => 'string', - 'example' => '20:59', + 'title' => '节点', + 'description' => '节点', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_123456'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型'."\n" + .'DATA_PROCESS:代码任务'."\n" + .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'ONE_ID_LABEL:萃取标签节点'."\n" + .'ONE_ID_RULE:萃取标签节点'."\n" + .'PIPELINE_NODE:PIPELINE节点', 'description' => '节点类型'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldIdList' => [ + 'title' => '字段id列表', + 'description' => '字段id列表', + 'type' => 'array', + 'items' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => '123'], + ], ], ], ], - 'Code' => [ - 'title' => '任务代码', - 'description' => '任务代码', - 'type' => 'string', - 'example' => 'show tables;', - ], - 'Remark' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'example' => 'test xx', - ], - 'DagId' => [ - 'title' => '所属的dagId', - 'description' => '所属的dagId', - 'type' => 'string', - 'example' => 'dag_102121211', - ], - 'ParamList' => [ - 'title' => '节点自定义参数列表', - 'description' => '节点自定义参数列表', + 'UpStreamNodeList' => [ + 'title' => '上游节点', + 'description' => '上游节点', 'type' => 'array', 'items' => [ - 'title' => '节点自定义参数', - 'description' => '节点自定义参数', + 'title' => '节点', + 'description' => '节点', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'example' => 'key', - ], - 'Value' => [ - 'title' => '参数值', - 'description' => '参数值', - 'type' => 'string', - 'example' => 'Value', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_123456'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型'."\n" + .'DATA_PROCESS:代码任务'."\n" + .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'ONE_ID_LABEL:萃取标签节点'."\n" + .'ONE_ID_RULE:萃取标签节点'."\n" + .'PIPELINE_NODE:PIPELINE节点', 'description' => '节点类型'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldIdList' => [ + 'title' => '字段id列表', + 'description' => '字段id列表', + 'type' => 'array', + 'items' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => '123'], ], ], ], ], - 'Rerunable' => [ - 'title' => '是否可以重跑', - 'description' => '是否可以重跑', - 'type' => 'boolean', - ], - 'Priority' => [ - 'title' => '任务调度优先级, 1-9值越大表示优先级越低', - 'description' => '任务调度优先级, 1-9值越大表示优先级越低', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NodeStatus' => [ - 'title' => '节点状态: 正常 1、暂停 2、空跑 3', - 'description' => '节点状态: 正常 1、暂停 2、空跑 3', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Paused' => [ - 'title' => '节点是否被暂停调度', - 'description' => '节点是否被暂停调度', - 'type' => 'boolean', - ], - 'NodeFrom' => [ - 'title' => '节点来源,节点由某个组织或应用创建的', - 'description' => '节点来源,节点由某个组织或应用创建的', - 'type' => 'string', - 'example' => 'openapi', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '131211211', - ], - 'UpStreamList' => [ - 'title' => '上游依赖', - 'description' => '上游依赖', + 'DownStreamNodeList' => [ + 'title' => '下游节点', + 'description' => '下游节点', 'type' => 'array', 'items' => [ - 'title' => '节点关联', - 'description' => '节点关联', + 'title' => '节点', + 'description' => '节点', 'type' => 'object', 'properties' => [ - 'NodeType' => [ - 'title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', - 'description' => '上游依赖节点类型'."\n" - .'- PHYSICAL:物理节点'."\n" - .'- LOGICAL:逻辑表依赖', - 'type' => 'string', - 'example' => 'PHYSICAL', - ], - 'SourceNodeId' => [ - 'title' => '上游节点Id', - 'description' => '上游节点Id', - 'type' => 'string', - 'example' => 'n_2001', - ], - 'SourceNodeName' => [ - 'title' => '上游节点名', - 'description' => '上游节点名', - 'type' => 'string', - 'example' => 't_input1', - ], - 'SourceNodeUserName' => [ - 'title' => '上游的用户名', - 'description' => '上游的用户名', - 'type' => 'string', - 'example' => '张三', - ], - 'SourceNodeOutputName' => [ - 'title' => '上游节点的输出名称', - 'description' => '上游节点的输出名称', - 'type' => 'string', - 'example' => 't_input1', - ], - 'SourceTableName' => [ - 'title' => '输入表名称', - 'description' => '输入表名称', - 'type' => 'string', - 'example' => 't_input1', - ], - 'PeriodDiff' => [ - 'title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'FieldList' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_123456'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型'."\n" + .'DATA_PROCESS:代码任务'."\n" + .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'ONE_ID_LABEL:萃取标签节点'."\n" + .'ONE_ID_RULE:萃取标签节点'."\n" + .'PIPELINE_NODE:PIPELINE节点', 'description' => '节点类型'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldIdList' => [ + 'title' => '字段id列表', + 'description' => '字段id列表', 'type' => 'array', - 'items' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'string', - 'example' => 'column1', - ], - ], - 'DependPeriod' => [ - 'title' => '依赖周期', - 'description' => '依赖周期', - 'type' => 'object', - 'properties' => [ - 'PeriodType' => [ - 'title' => '依赖周期类型: CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', - 'description' => '依赖周期类型'."\n" - .'- CURRENT_PERIOD'."\n" - .'- LAST_PERIOD'."\n" - .'- LAST_N_PERIOD'."\n" - .'- LAST_24_HOUR', - 'type' => 'string', - 'example' => 'CURRENT_PERIOD', - ], - 'PeriodOffset' => [ - 'title' => '周期偏移量, LAST_N_PERIOD时须传值', - 'description' => '周期偏移量, LAST_N_PERIOD时须传值', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'DependStrategy' => [ - 'title' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'description' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'type' => 'string', - 'example' => 'LAST', - ], - 'SourceNodeEnabled' => [ - 'title' => '上游节点是否生效', - 'description' => '上游节点是否生效', - 'type' => 'boolean', + 'items' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => '123'], ], ], ], ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'string', - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', - 'example' => 'erp', - ], - 'SparkClientInfo' => [ - 'title' => 'spark客户端信息', - 'description' => 'spark客户端', - 'type' => 'object', - 'properties' => [ - 'SparkClientVersion' => [ - 'title' => 'spark客户端版本名称', - 'description' => 'spark客户端名称', - 'type' => 'string', - 'example' => 'abc', - ], - ], - ], ], ], ], @@ -25479,541 +15336,205 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeDagInfo\\": {\\n \\"StartNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ],\\n \\"UpStreamNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ],\\n \\"DownStreamNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取节点上下游', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskInfo\\": {\\n \\"FileId\\": 12113111,\\n \\"Name\\": \\"测试任务1\\",\\n \\"Status\\": \\"测试任务1\\",\\n \\"Published\\": true,\\n \\"NeedPublish\\": true,\\n \\"HasDevNode\\": true,\\n \\"NodeId\\": \\"n_1011_21232132322\\",\\n \\"NodeName\\": \\"测试任务1\\",\\n \\"NodeOutputNameList\\": [\\n \\"xx测试\\"\\n ],\\n \\"OwnerUserId\\": \\"30231123\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OperatorUserId\\": \\"30231123\\",\\n \\"NodeDescription\\": \\"xx测试\\",\\n \\"TaskType\\": 21,\\n \\"ScheduleType\\": 3,\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"CronExpression\\": \\"0 0 1 * * ?\\",\\n \\"CustomScheduleConfig\\": {\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"Interval\\": 1,\\n \\"IntervalUnit\\": \\"HOUR\\",\\n \\"StartTime\\": \\"08:00\\",\\n \\"EndTime\\": \\"20:59\\"\\n },\\n \\"Code\\": \\"show tables;\\",\\n \\"Remark\\": \\"test xx\\",\\n \\"DagId\\": \\"dag_102121211\\",\\n \\"ParamList\\": [\\n {\\n \\"Key\\": \\"key\\",\\n \\"Value\\": \\"Value\\"\\n }\\n ],\\n \\"Rerunable\\": true,\\n \\"Priority\\": 1,\\n \\"NodeStatus\\": 1,\\n \\"Paused\\": true,\\n \\"NodeFrom\\": \\"openapi\\",\\n \\"ProjectId\\": 131211211,\\n \\"UpStreamList\\": [\\n {\\n \\"NodeType\\": \\"PHYSICAL\\",\\n \\"SourceNodeId\\": \\"n_2001\\",\\n \\"SourceNodeName\\": \\"t_input1\\",\\n \\"SourceNodeUserName\\": \\"张三\\",\\n \\"SourceNodeOutputName\\": \\"t_input1\\",\\n \\"SourceTableName\\": \\"t_input1\\",\\n \\"PeriodDiff\\": 1,\\n \\"FieldList\\": [\\n \\"column1\\"\\n ],\\n \\"DependPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"DependStrategy\\": \\"LAST\\",\\n \\"SourceNodeEnabled\\": true\\n }\\n ],\\n \\"DataSourceId\\": \\"12131111\\",\\n \\"DataSourceCatalog\\": \\"mysql_catalog\\",\\n \\"DataSourceSchema\\": \\"erp\\",\\n \\"SparkClientInfo\\": {\\n \\"SparkClientVersion\\": \\"abc\\"\\n }\\n }\\n}","type":"json"}]', - 'title' => '查询指定版本离线计算任务详情', - ], - 'GetBatchTaskInfo' => [ - 'summary' => '获取离线计算任务详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetNodeUpDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetOperationRecordById' => [ + 'summary' => '根据Id查询运行记录,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FileId', - 'in' => 'query', + 'name' => 'DetailCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '查询命令', + 'description' => '查询命令', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '987654321'], + ], 'required' => true, - 'example' => '12113111', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识: dev、prod,默认值为dev', - 'description' => '环境标识: dev、prod,默认值为dev', - 'type' => 'string', - 'required' => false, - 'example' => 'dev', - ], - ], - [ - 'name' => 'IncludeAllUpStreams', - 'in' => 'query', - 'schema' => [ - 'title' => '是否包含完整的上游节点(包括无效依赖),默认false', - 'description' => '是否包含完整的上游节点(包括无效依赖),默认false', - 'type' => 'boolean', - 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'OperationLogDTO' => [ + 'title' => '运行记录详情', + 'description' => '运行记录详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '记录id', 'description' => '记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => '测试任务'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => 'onedata-ide'], + 'CodeType' => ['title' => '代码类型:SQL0、shell1、Python2、MR3、Spark4', 'description' => '代码类型:SQL0、shell1、Python2、MR3、Spark4', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Status' => ['title' => '任务状态:运行中4、运行成功5、运行失败6', 'description' => '任务状态:运行中4、运行成功5、运行失败6', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'BeginTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '2025-01-15 10:30:00'], + 'Runner' => ['title' => '运行人id', 'description' => '运行人id', 'type' => 'string', 'example' => '30231123'], + 'RunnerName' => ['title' => '运行人名称', 'description' => '运行人名称', 'type' => 'string', 'example' => '张三'], + 'RelationTables' => [ + 'title' => '关联表列表', + 'description' => '关联表列表', + 'type' => 'array', + 'items' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 'ods_test_table'], + ], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '131211211'], + 'TenantId' => ['title' => '租户id', 'description' => '租户id', 'type' => 'integer', 'format' => 'int64', 'example' => '10001'], + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '987654321'], + 'Duration' => ['title' => '执行时长(秒)', 'description' => '执行时长(毫秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '120'], + ], ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'TaskInfo' => [ - 'title' => '任务详情', - 'description' => '任务详情', + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '根据id查询单条运行记录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"OperationLogDTO\\": {\\n \\"Id\\": 123456,\\n \\"Name\\": \\"测试任务\\",\\n \\"ObjectType\\": \\"onedata-ide\\",\\n \\"CodeType\\": 0,\\n \\"Status\\": 5,\\n \\"BeginTime\\": \\"2025-01-15 10:30:00\\",\\n \\"Runner\\": \\"30231123\\",\\n \\"RunnerName\\": \\"张三\\",\\n \\"RelationTables\\": [\\n \\"ods_test_table\\"\\n ],\\n \\"ProjectId\\": 131211211,\\n \\"TenantId\\": 10001,\\n \\"OperationId\\": 987654321,\\n \\"Duration\\": 120\\n }\\n}","type":"json"}]', + ], + 'GetOperationRecordDetail' => [ + 'summary' => '查询运行记录详情,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'RecordDetailCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '查询命令', + 'description' => '查询命令', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'string', 'required' => true, 'example' => '987654321'], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'OperationRecordDetailResponse' => [ + 'title' => '执行历史详情响应', + 'description' => '执行历史详情响应', 'type' => 'object', 'properties' => [ - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12113111', - ], - 'Name' => [ - 'title' => '任务名称', - 'description' => '任务名称', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'Status' => [ - 'title' => '发布状态: 草稿0、已提交1、开发中100', - 'description' => '发布状态: 草稿0、已提交1、开发中100', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'Published' => [ - 'title' => '是否已发布', - 'description' => '是否已发布', - 'type' => 'boolean', - ], - 'NeedPublish' => [ - 'title' => '是否需要发布', - 'description' => '是否需要发布', - 'type' => 'boolean', - ], - 'HasDevNode' => [ - 'title' => '是否有开发环境节点', - 'description' => '是否有开发环境节点', - 'type' => 'boolean', - ], - 'NodeId' => [ - 'title' => '节点Id', - 'description' => '节点Id', - 'type' => 'string', - 'example' => 'n_1011_21232132322', - ], - 'NodeName' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => '测试任务1', - ], - 'NodeOutputNameList' => [ - 'title' => '节点输出名称列表', - 'description' => '节点输出名称列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点输出名称', - 'description' => '节点输出名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - 'OwnerUserId' => [ - 'title' => '节点负责人用户id', - 'description' => '节点负责人用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'OwnerName' => [ - 'title' => '节点负责人名称', - 'description' => '节点负责人名称', - 'type' => 'string', - 'example' => '张三', - ], - 'OperatorUserId' => [ - 'title' => '当前操作的用户id', - 'description' => '当前操作的用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'NodeDescription' => [ - 'title' => '任务描述', - 'description' => '任务描述', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'TaskType' => [ - 'title' => '任务类型: MaxCompute_SQL 5、Shell 10、Python 21', - 'description' => '任务类型,可参见创建离线计算任务接口', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '21', - ], - 'ScheduleType' => [ - 'title' => '节点类型: 周期任务1、手动任务3', - 'description' => '节点类型: '."\n" - .'- 周期任务:1'."\n" - .'- 手动任务:3', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'SchedulePeriod' => [ - 'title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', - 'description' => '调度周期'."\n" - .'- 年:YEARLY'."\n" - .'- 月:MONTHLY'."\n" - .'- 周:WEEKLY'."\n" - .'- 日:DAILY'."\n" - .'- 小时:HOURLY'."\n" - .'- 分钟:MINUTELY', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'CronExpression' => [ - 'title' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', - 'type' => 'string', - 'example' => '0 0 1 * * ?', - ], - 'CustomScheduleConfig' => [ - 'title' => '自定义调度间隔配置', - 'description' => '自定义调度间隔配置', - 'type' => 'object', - 'properties' => [ - 'SchedulePeriod' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'Interval' => [ - 'title' => '自定义间隔', - 'description' => '自定义间隔', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'IntervalUnit' => [ - 'title' => '间隔单位:MINUTE、HOUR', - 'description' => '间隔单位:MINUTE、HOUR', - 'type' => 'string', - 'example' => 'HOUR', - ], - 'StartTime' => [ - 'title' => '开始时间: HH:mm', - 'description' => '开始时间: HH:mm', - 'type' => 'string', - 'example' => '08:00', - ], - 'EndTime' => [ - 'title' => '结束时间: HH:mm', - 'description' => '结束时间: HH:mm', - 'type' => 'string', - 'example' => '20:59', - ], - ], - ], - 'Code' => [ - 'title' => '任务代码', - 'description' => '任务代码', - 'type' => 'string', - 'example' => 'show tables;', - ], - 'Remark' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'example' => 'test xx', - ], - 'DagId' => [ - 'title' => '所属的dagId', - 'description' => '所属的dagId', - 'type' => 'string', - 'example' => 'dag_102121211', - ], - 'ParamList' => [ - 'title' => '节点自定义参数列表', - 'description' => '节点自定义参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点自定义参数', - 'description' => '节点自定义参数', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '参数值', - 'description' => '参数值', - 'type' => 'string', - 'example' => 'Value', - ], - 'Key' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'example' => 'key', - ], - ], - ], - ], - 'Rerunable' => [ - 'title' => '是否可以重跑', - 'description' => '是否可以重跑', - 'type' => 'boolean', - ], - 'Priority' => [ - 'title' => '任务调度优先级, 1-9值越大表示优先级越低', - 'description' => '任务调度优先级, 1-9值越大表示优先级越低', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NodeStatus' => [ - 'title' => '节点状态: 正常 1、暂停 2、空跑 3', - 'description' => '节点状态: 正常 1、暂停 2、空跑 3', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Paused' => [ - 'title' => '节点是否被暂停调度', - 'description' => '节点是否被暂停调度', - 'type' => 'boolean', - ], - 'NodeFrom' => [ - 'title' => '节点来源,节点由某个组织或应用创建的', - 'description' => '节点来源,节点由某个组织或应用创建的', - 'type' => 'string', - 'example' => 'openapi', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '131211211', - ], - 'UpStreamList' => [ - 'title' => '上游依赖', - 'description' => '上游依赖', + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'string', 'example' => '987654321'], + 'LogContent' => ['title' => '日志内容', 'description' => '日志内容', 'type' => 'string', 'example' => 'Task started...'."\n" + .'Executing SQL...'."\n" + .'Task finished successfully.'], + 'Results' => [ + 'title' => '执行结果列表', + 'description' => '执行结果列表', 'type' => 'array', 'items' => [ - 'title' => '节点关联', - 'description' => '节点关联', + 'title' => '执行结果条目', + 'description' => '执行结果条目', 'type' => 'object', 'properties' => [ - 'SourceTableName' => [ - 'title' => '输入表名称', - 'description' => '输入表名称', - 'type' => 'string', - 'example' => 't_input1', - ], - 'SourceNodeId' => [ - 'title' => '上游节点Id', - 'description' => '上游节点Id', - 'type' => 'string', - 'example' => 'n_2001', - ], - 'PeriodDiff' => [ - 'title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NodeType' => [ - 'title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', - 'description' => '上游依赖节点类型'."\n" - .'- PHYSICAL:物理节点'."\n" - .'- LOGICAL:逻辑表依赖', - 'type' => 'string', - 'example' => 'PHYSICAL', - ], - 'SourceNodeName' => [ - 'title' => '上游节点名', - 'description' => '上游节点名', - 'type' => 'string', - 'example' => 't_input1', - ], - 'DependPeriod' => [ - 'title' => '依赖周期', - 'description' => '依赖周期', - 'type' => 'object', - 'properties' => [ - 'PeriodType' => [ - 'title' => '依赖周期类型: CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', - 'description' => '依赖周期类型: '."\n" - .'- CURRENT_PERIOD'."\n" - .'- LAST_PERIOD'."\n" - .'- LAST_N_PERIOD'."\n" - .'- LAST_24_HOUR', - 'type' => 'string', - 'example' => 'CURRENT_PERIOD', - ], - 'PeriodOffset' => [ - 'title' => '周期偏移量, LAST_N_PERIOD时须传值', - 'description' => '周期偏移量, LAST_N_PERIOD时须传值', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'SourceNodeUserName' => [ - 'title' => '上游的用户名', - 'description' => '上游的用户名', - 'type' => 'string', - 'example' => '张三', - ], - 'SourceNodeEnabled' => [ - 'title' => '上游节点是否生效', - 'description' => '上游节点是否生效', - 'type' => 'boolean', - ], - 'SourceNodeOutputName' => [ - 'title' => '上游节点的输出名称', - 'description' => '上游节点的输出名称', - 'type' => 'string', - 'example' => 't_input1', - ], - 'DependStrategy' => [ - 'title' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'description' => '依赖策略: ALL,FIRST,LAST,NEAR', - 'type' => 'string', - 'example' => 'LAST', - ], - 'FieldList' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'array', - 'items' => [ - 'title' => '依赖的逻辑表字段', - 'description' => '依赖的逻辑表字段', - 'type' => 'string', - 'example' => 'column1', - ], - ], - ], - ], - ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'string', - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', - 'example' => 'erp', - ], - 'SparkClientInfo' => [ - 'title' => 'spark客户端信息', - 'description' => 'spark客户端信息', - 'type' => 'object', - 'properties' => [ - 'SparkClientVersion' => [ - 'title' => 'spark客户端版本名称', - 'description' => 'spark客户端版本名称', - 'type' => 'string', - 'example' => 'abc', + 'Result' => ['title' => '结果内容', 'description' => '结果内容', 'type' => 'string', 'example' => '{"count":100,"data":[{"id":1}]}'], + 'Index' => ['title' => '结果索引', 'description' => '结果索引', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Title' => ['title' => '结果标题', 'description' => '结果标题', 'type' => 'string', 'example' => '查询结果'], + 'Sql' => ['title' => '结果SQL', 'description' => '结果SQL', 'type' => 'string', 'example' => 'SELECT * FROM test_table'], + 'TaskId' => ['title' => '任务id', 'description' => '任务id', 'type' => 'string', 'example' => 'task_123456'], ], ], ], - 'DevelopOwnerId' => [ - 'title' => '开发负责人用户id', - 'description' => '开发负责人用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'DevelopOwnerName' => [ - 'title' => '开发负责人名称', - 'description' => '开发负责人名称', - 'type' => 'string', - 'example' => '张三', - ], - 'OpsOwnerId' => [ - 'title' => '运维负责人用户id', - 'description' => '运维负责人用户id', - 'type' => 'string', - 'example' => '30231123', - ], - 'OpsOwnerName' => [ - 'title' => '运维负责人名称', - 'description' => '运维负责人名称', - 'type' => 'string', - 'example' => '张三', - ], + 'FileId' => ['title' => '文件id', 'description' => '文件id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], ], ], ], @@ -26022,38 +15543,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询运行记录详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskInfo\\": {\\n \\"FileId\\": 12113111,\\n \\"Name\\": \\"测试任务1\\",\\n \\"Status\\": \\"测试任务1\\",\\n \\"Published\\": true,\\n \\"NeedPublish\\": true,\\n \\"HasDevNode\\": true,\\n \\"NodeId\\": \\"n_1011_21232132322\\",\\n \\"NodeName\\": \\"测试任务1\\",\\n \\"NodeOutputNameList\\": [\\n \\"xx测试\\"\\n ],\\n \\"OwnerUserId\\": \\"30231123\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"OperatorUserId\\": \\"30231123\\",\\n \\"NodeDescription\\": \\"xx测试\\",\\n \\"TaskType\\": 21,\\n \\"ScheduleType\\": 3,\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"CronExpression\\": \\"0 0 1 * * ?\\",\\n \\"CustomScheduleConfig\\": {\\n \\"SchedulePeriod\\": \\"DAILY\\",\\n \\"Interval\\": 1,\\n \\"IntervalUnit\\": \\"HOUR\\",\\n \\"StartTime\\": \\"08:00\\",\\n \\"EndTime\\": \\"20:59\\"\\n },\\n \\"Code\\": \\"show tables;\\",\\n \\"Remark\\": \\"test xx\\",\\n \\"DagId\\": \\"dag_102121211\\",\\n \\"ParamList\\": [\\n {\\n \\"Value\\": \\"Value\\",\\n \\"Key\\": \\"key\\"\\n }\\n ],\\n \\"Rerunable\\": true,\\n \\"Priority\\": 1,\\n \\"NodeStatus\\": 1,\\n \\"Paused\\": true,\\n \\"NodeFrom\\": \\"openapi\\",\\n \\"ProjectId\\": 131211211,\\n \\"UpStreamList\\": [\\n {\\n \\"SourceTableName\\": \\"t_input1\\",\\n \\"SourceNodeId\\": \\"n_2001\\",\\n \\"PeriodDiff\\": 1,\\n \\"NodeType\\": \\"PHYSICAL\\",\\n \\"SourceNodeName\\": \\"t_input1\\",\\n \\"DependPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"SourceNodeUserName\\": \\"张三\\",\\n \\"SourceNodeEnabled\\": true,\\n \\"SourceNodeOutputName\\": \\"t_input1\\",\\n \\"DependStrategy\\": \\"LAST\\",\\n \\"FieldList\\": [\\n \\"column1\\"\\n ]\\n }\\n ],\\n \\"DataSourceId\\": \\"12131111\\",\\n \\"DataSourceCatalog\\": \\"mysql_catalog\\",\\n \\"DataSourceSchema\\": \\"erp\\",\\n \\"SparkClientInfo\\": {\\n \\"SparkClientVersion\\": \\"abc\\"\\n },\\n \\"DevelopOwnerId\\": \\"30231123\\",\\n \\"DevelopOwnerName\\": \\"张三\\",\\n \\"OpsOwnerId\\": \\"30231123\\",\\n \\"OpsOwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', - 'title' => '查询离线计算任务详情', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"OperationRecordDetailResponse\\": {\\n \\"OperationId\\": \\"987654321\\",\\n \\"LogContent\\": \\"Task started...\\\\nExecuting SQL...\\\\nTask finished successfully.\\",\\n \\"Results\\": [\\n {\\n \\"Result\\": \\"{\\\\\\"count\\\\\\":100,\\\\\\"data\\\\\\":[{\\\\\\"id\\\\\\":1}]}\\",\\n \\"Index\\": 0,\\n \\"Title\\": \\"查询结果\\",\\n \\"Sql\\": \\"SELECT * FROM test_table\\",\\n \\"TaskId\\": \\"task_123456\\"\\n }\\n ],\\n \\"FileId\\": 12113111\\n }\\n}","type":"json"}]', ], - 'DeleteBatchTask' => [ - 'summary' => '删除离线计算任务,如果任务还没下线需要先下线再删除。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetOperationRecordRunCode' => [ + 'summary' => '查询运行记录运行代码,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -26061,55 +15570,24 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'CodeCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除请求', - 'description' => '删除请求', + 'title' => '查询命令', + 'description' => '查询命令', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '任务所属项目', - 'description' => '任务所属项目', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131211211', - ], - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12113111', - ], - 'Comment' => [ - 'title' => '删除操作说明', - 'description' => '删除操作说明', - 'type' => 'string', - 'required' => true, - 'example' => 'test task', - ], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '987654321'], ], 'required' => true, ], @@ -26118,40 +15596,25 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'True', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'OperationLogCodeResponse' => [ + 'title' => '运行记录代码响应', + 'description' => '运行记录代码响应', + 'type' => 'object', + 'properties' => [ + 'OperatorId' => ['title' => '算子id', 'description' => '算子id', 'type' => 'integer', 'format' => 'int32', 'example' => '123'], + 'Code' => ['title' => '代码内容', 'description' => '代码内容', 'type' => 'string', 'example' => 'SELECT * FROM test_table WHERE id = 1;'], + 'OperatorName' => ['title' => '算子名称', 'description' => '算子名称', 'type' => 'string', 'example' => 'SQL查询节点'], + 'SqlNum' => ['title' => 'SQL数量', 'description' => 'SQL数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], ], ], @@ -26159,209 +15622,52 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询运行记录运行代码', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', - 'title' => '删除离线计算任务', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"OperationLogCodeResponse\\": {\\n \\"OperatorId\\": 123,\\n \\"Code\\": \\"SELECT * FROM test_table WHERE id = 1;\\",\\n \\"OperatorName\\": \\"SQL查询节点\\",\\n \\"SqlNum\\": 1\\n }\\n}","type":"json"}]', ], - 'CreateBatchTask' => [ - 'summary' => '创建离线计算任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetOperationSubmitStatus' => [ + 'summary' => '查询补数据提交的状态。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '任务所属菜单树目录', - 'description' => '任务所属菜单树目录', - 'type' => 'string', - 'required' => true, - 'example' => '/a/b', - ], - 'Name' => [ - 'title' => '离线任务名', - 'description' => '离线任务名', - 'type' => 'string', - 'required' => true, - 'example' => 'test111', - ], - 'ProjectId' => [ - 'title' => '任务所属项目Id', - 'description' => '任务所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10121101', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => true, - 'example' => 'xx test.', - ], - 'ScheduleType' => [ - 'title' => '调度类型: 周期任务:1、手动任务:3', - 'description' => '调度类型'."\n" - .'- 周期任务:1'."\n" - .'- 手动任务:3', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '3', - ], - 'TaskType' => [ - 'title' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', - 'description' => '任务类型'."\n" - .'- Hive_SQL: 1'."\n" - .'- Hive_SQL_23X: 101'."\n" - .'- HIVE_SQL_FUSION_INSIGHT_80X: 111'."\n" - .'- COMMON_HIVE_SQL: 131'."\n" - .'- HADOOP_MR: 2'."\n" - .'- MaxCompute_SQL: 5'."\n" - .'- MaxCompute_MR: 6'."\n" - .'- SPARK_SQL_ON_MAX_COMPUTE: 7'."\n" - .'- SPARK_JAR_ON_MAX_COMPUTE: 8'."\n" - .'- SPARK_SQL_ON_HIVE: 17'."\n" - .'- Spark_JAR_ON_HIVE: 18'."\n" - .'- Shell: 10'."\n" - .'- PAI_DESIGNER: 71'."\n" - .'- DataX: 15'."\n" - .'- Merge: 16'."\n" - .'- Python: 21'."\n" - .'- Python37x: 22'."\n" - .'- Perl: 23'."\n" - .'- Python311x: 24'."\n" - .'- OneService_SQL: 25'."\n" - .'- ONE_SERVICE_SQL_ADB_FOR_PG: 26'."\n" - .'- OneService_SQL_Hive11x: 27'."\n" - .'- OneService_SQL_Hive23x: 29'."\n" - .'- ONE_SERVICE_SQL_TDH_INCEPTOR: 75'."\n" - .'- ONE_SERVICE_SQL_HIVE_CDP: 91'."\n" - .'- ONE_SERVICE_SQL_HIVE_ASIA_INFO_DP_53X: 92'."\n" - .'- Dlink: 30'."\n" - .'- ONE_SERVICE_SQL_ADB_FOR_MYSQL: 33'."\n" - .'- Logical: 31'."\n" - .'- Flink_Streaming: 41'."\n" - .'- Flink_Batch: 42'."\n" - .'- ADB_FOR_PG: 51'."\n" - .'- DryRun: 100'."\n" - .'- CHECK: 902'."\n" - .'- VIRTUAL: 999'."\n" - .'- INCEPTOR_SQL: 10000'."\n" - .'- HOLOGRES_SQL: 28'."\n" - .'- ARGODB_SQL: 76'."\n" - .'- IMPALA_SQL: 78'."\n" - .'- STARROCKS_SQL: 79'."\n" - .'- SPARK_SQL: 80'."\n" - .'- GAUSS_SQL: 81'."\n" - .'- DATABASE_SQL: 998'."\n" - .'- EXTERNAL_TRIGGER: 997', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '5', - ], - 'Engine' => [ - 'title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', - 'description' => '任务执行引擎,如Python任务'."\n" - .'- 1. PYTHON2_7'."\n" - .'- 2. PYTHON3_7'."\n" - .'- 3. PYTHON3_11', - 'type' => 'string', - 'required' => false, - 'example' => 'PYTHON3_7', - ], - 'DataSourceId' => [ - 'title' => '数据库sql任务,数据源Id', - 'description' => '数据库sql任务,数据源Id', - 'type' => 'string', - 'required' => false, - 'example' => '12131111', - ], - 'DataSourceCatalog' => [ - 'title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'mysql_catalog', - ], - 'DataSourceSchema' => [ - 'title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', - 'type' => 'string', - 'required' => false, - 'example' => 'erp', - ], - 'PythonModuleList' => [ - 'title' => '任务依赖python三方包', - 'description' => '任务依赖python三方包', - 'type' => 'array', - 'items' => [ - 'title' => 'python三方包', - 'description' => 'python三方包', - 'type' => 'string', - 'required' => true, - 'example' => 'numpy', - ], - 'required' => false, - ], - ], - 'required' => true, - ], + 'name' => 'JobId', + 'in' => 'query', + 'schema' => ['title' => '海量模式下提交后返回的jobId', 'description' => '海量模式下提交后返回的jobId', 'type' => 'string', 'required' => true, 'example' => '1324444131'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ @@ -26371,48 +15677,31 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'CreateResult' => [ - 'title' => '新建结果', - 'description' => '新建结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'OperationSubmitJob' => [ + 'title' => '操作提交的状态', + 'description' => '操作提交的状态', 'type' => 'object', 'properties' => [ - 'FileId' => [ - 'title' => '任务目录树节点Id', - 'description' => '任务目录树节点Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12113111', - ], + 'JobId' => ['title' => '补数据的提交id', 'description' => '补数据的提交id', 'type' => 'string', 'example' => '123456'], + 'Progress' => ['title' => '进度 ', 'description' => '进度 ', 'type' => 'string', 'example' => '80'], + 'Operation' => ['title' => '操作类型'."\n" + .'SUPPLY_DATA:补数据'."\n" + .'UPDATE_OWNER:修改责任人'."\n" + .'UPDATE_PRIORITY:修改优先级'."\n" + .'UPDATE_TASK_GROUP:修改任务组'."\n" + .'UPDATE_RESOURCE_GROUP:修改资源组'."\n" + .'PAUSE:暂停'."\n" + .'RESUME:恢复'."\n" + .'TRIGGER_EXECUTE:触发执行', 'description' => '操作类型'."\n" + .'- SUPPLY_DATA:补数据', 'type' => 'string', 'example' => 'SUPPLY_DATA'], + 'OperationStatus' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'ExternalBizId' => ['title' => '业务id,如果是补数据操作则为补数据工作流', 'description' => '业务id,如果是补数据操作则为补数据工作流', 'type' => 'string', 'example' => 'f_122_232342'], + 'Operator' => ['title' => '提交人用户ID', 'description' => '提交人用户ID', 'type' => 'string', 'example' => '132344'], ], ], ], @@ -26421,39 +15710,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OperationSubmitJob\\": {\\n \\"JobId\\": \\"123456\\",\\n \\"Progress\\": \\"80\\",\\n \\"Operation\\": \\"SUPPLY_DATA\\",\\n \\"OperationStatus\\": \\"SUCCESS\\",\\n \\"ExternalBizId\\": \\"f_122_232342\\",\\n \\"Operator\\": \\"132344\\"\\n }\\n}","type":"json"}]', + 'title' => '获取补数据工作流提交状态', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"CreateResult\\": {\\n \\"FileId\\": 12113111\\n }\\n}","type":"json"}]', - 'title' => '创建离线计算任务', - ], - 'GetStreamJobs' => [ - 'summary' => '获取实时研发任务列表。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetOperationSubmitStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'GetPhysicalInstance' => [ + 'summary' => '获取实例信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -26461,143 +15753,160 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'InstanceId', + 'in' => 'query', + 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 't_23231'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => 'dataphin项目id', - 'description' => 'dataphin项目id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7162269257990111', - ], + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2323131'], ], [ 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => 'dataphin环境,DEV或者PROD', - 'description' => 'dataphin环境,DEV或者PROD', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], + 'schema' => ['title' => '● 环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '● 环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'description' => '返回的数据内容。', - 'type' => 'array', - 'items' => [ - 'description' => '任务对象', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'title' => '任务状态', - 'description' => '任务状态: 0 草稿 1 提交中 2 已提交 3 已发布 100 开发中', - 'type' => 'string', - 'example' => '0', - ], - 'Type' => [ - 'title' => '任务类型,FLINK_SQL或者FLINK_DATASTREAM', - 'description' => '任务类型,FLINK_SQL或者FLINK_DATASTREAM', - 'type' => 'string', - 'example' => 'FLINK_SQL', - ], - 'OwnerId' => [ - 'title' => '创建者id', - 'description' => '创建者id', - 'type' => 'string', - 'example' => '300006788', - ], - 'JobName' => [ - 'title' => '实时任务名', - 'description' => '实时任务名', - 'type' => 'string', - 'example' => 'flink_order_detail', - ], - 'ProjectId' => [ - 'title' => 'dataphin项目id', - 'description' => 'dataphin项目id', - 'type' => 'string', - 'example' => '7162269257990111', - ], - 'Id' => [ - 'title' => '实时任务的mapping id', - 'description' => '实时任务的mapping id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '716555', - ], - 'Env' => [ - 'title' => '环境标识:DEV 开发、PROD 生产', - 'description' => '环境标识:DEV开发、PROD生产', - 'type' => 'string', - 'example' => 'DEV', - ], - 'ModifierId' => [ - 'title' => '最近一次变更人的id', - 'description' => '最近一次变更人的id', - 'type' => 'string', - 'example' => '300006788', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Instance' => [ + 'title' => '实例详情', + 'description' => '实例详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_23231'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2023-06-25'], + 'DueTime' => ['title' => '调度时间', 'description' => '调度时间', 'type' => 'string', 'example' => '2023-06-27 00:30:00'], + 'StatusList' => [ + 'title' => '状态列表', + 'description' => '状态列表', + 'type' => 'array', + 'items' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'SUCCESS'], + ], + 'StartExecuteTime' => ['title' => '开始运行时间', 'description' => '开始运行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-06-27 01:30:00'], + 'EndExecuteTime' => ['title' => '结束运行时间', 'description' => '结束运行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2023-06-27 02:30:00'], + 'Duration' => ['title' => '运行耗时', 'description' => '运行耗时', 'type' => 'string', 'example' => '3600s'], + 'Index' => ['title' => '运行实例序号', 'description' => '运行实例序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NodeInfo' => [ + 'title' => '节点详情', + 'description' => '节点详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_3232312'], + 'From' => ['title' => '节点来源系统', 'description' => '节点来源系统', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'Type' => ['title' => '节点类型', 'description' => '节点类型'."\n" + .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" + .'- BBOX_LOGIC_FIELD_NODE:逻辑字段节点'."\n" + .'- BBOX_LOGIC_FIELD_GROUP_NODE:字段组节点'."\n" + .'- BBOX_INNER_TEMP_NODE:逻辑表temp节点'."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- STREAM_TASK_NODE:实时任务'."\n" + .'- PIPELINE_NODE:PIPELINE节点'."\n" + .'- FLINK_BATCH:flink批任务'."\n" + .'- ODM_NODE:ODM节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'SubDetailType' => ['title' => '子业务类型', 'description' => '子业务类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL', 'type' => 'string', 'example' => 'SHELL'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx 测试'], + 'DryRun' => ['title' => '是否空跑', 'description' => '是否空跑', 'type' => 'boolean', 'example' => 'false'], + 'SchedulePaused' => ['title' => '是否暂停调度', 'description' => '是否暂停调度', 'type' => 'boolean', 'example' => 'false'], + 'HasProd' => ['title' => '是否有生产环境', 'description' => '是否有生产环境', 'type' => 'boolean', 'example' => 'true'], + 'HasDev' => ['title' => '是否有开发环境', 'description' => '是否有开发环境', 'type' => 'boolean', 'example' => 'true'], + 'PriorityList' => [ + 'title' => '优先级', + 'description' => '优先级'."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', + 'type' => 'array', + 'items' => ['title' => '优先级', 'description' => '优先级', 'type' => 'string', 'example' => 'MIDDLE'], + ], + 'ResourceGroupList' => [ + 'title' => '资源组', + 'description' => '资源组', + 'type' => 'array', + 'items' => ['title' => '资源组', 'description' => '资源组', 'type' => 'string', 'example' => 'rs_group_test'], + ], + 'SchedulePeriodList' => [ + 'title' => '调度周期', + 'description' => '调度周期'."\n" + .'- YEARLY'."\n" + .'- MONTHLY'."\n" + .'- WEEKLY'."\n" + .'- DAILY'."\n" + .'- HOURLY'."\n" + .'- MINUTELY', + 'type' => 'array', + 'items' => ['title' => '调度周期', 'description' => '调度周期', 'type' => 'string', 'example' => 'DAILY'], + ], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'xx'], + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '2323111'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'Modifier' => [ + 'title' => '编辑者', + 'description' => '编辑者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '2323111'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'OwnerList' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'array', + 'items' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '2323111'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2023-02-02 23:53:17'], + 'LastModifiedTime' => ['title' => '编辑时间', 'description' => '编辑时间', 'type' => 'string', 'example' => '2024-02-02 23:53:17'], ], ], + 'ExtendInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'string', 'example' => 'xx'], ], ], ], @@ -26606,35 +15915,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"0\\",\\n \\"Type\\": \\"FLINK_SQL\\",\\n \\"OwnerId\\": \\"300006788\\",\\n \\"JobName\\": \\"flink_order_detail\\",\\n \\"ProjectId\\": \\"7162269257990111\\",\\n \\"Id\\": 716555,\\n \\"Env\\": \\"DEV\\",\\n \\"ModifierId\\": \\"300006788\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取实时研发任务', - ], - 'GetQueueEngineVersionByEnv' => [ - 'summary' => '根据集群ID获取集群版本。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Instance\\": {\\n \\"Id\\": \\"t_23231\\",\\n \\"BizDate\\": \\"2023-06-25\\",\\n \\"DueTime\\": \\"2023-06-27 00:30:00\\",\\n \\"StatusList\\": [\\n \\"SUCCESS\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"3600s\\",\\n \\"Index\\": 1,\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_3232312\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"DryRun\\": false,\\n \\"SchedulePaused\\": false,\\n \\"HasProd\\": true,\\n \\"HasDev\\": true,\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2023-02-02 23:53:17\\",\\n \\"LastModifiedTime\\": \\"2024-02-02 23:53:17\\"\\n },\\n \\"ExtendInfo\\": \\"xx\\"\\n }\\n}","type":"json"}]', + 'title' => '获取实例信息', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [ - 'Dataphin公共云', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetPhysicalInstanceLog' => [ + 'summary' => '获取实例执行的日志,如果实例重跑了多次,则会有多条日志。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -26642,83 +15958,31 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Env', + 'name' => 'InstanceId', 'in' => 'query', - 'schema' => [ - 'title' => '环境', - 'description' => '环境', - 'type' => 'string', - 'required' => true, - 'example' => 'PROD', - ], + 'schema' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 't_5929472_20210411_9577721'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7081229106458752', - ], - ], - [ - 'name' => 'StreamBatchMode', - 'in' => 'query', - 'schema' => [ - 'title' => '流批模式'."\n", - 'description' => '流批模式'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'BOTH', - 'enum' => [ - 'BOTH', - 'STREAM', - 'BATCH', - ], - ], - ], - [ - 'name' => 'QueueName', - 'in' => 'query', - 'schema' => [ - 'title' => '队列名称', - 'description' => '队列名称', - 'type' => 'string', - 'required' => true, - 'example' => 'default-queue', - ], + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123131'], ], [ - 'name' => 'ClusterId', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '集群Id', - 'description' => '集群Id', - 'type' => 'string', - 'required' => true, - 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d', - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ @@ -26728,45 +15992,26 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '引擎版本信息', - 'description' => '引擎版本信息', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'TaskrunLogList' => [ + 'title' => '实例所有的执行日志. 包含实例多次重跑的日志', + 'description' => '实例所有的执行日志. 包含实例多次重跑的日志', 'type' => 'array', 'items' => [ - 'title' => '引擎版本信息', - 'description' => '引擎版本信息', - 'type' => 'string', - 'example' => 'vvr-8.0.9-flink-1.17', + 'type' => 'object', + 'properties' => [ + 'TaskrunId' => ['title' => '每一次运行的任务ID', 'description' => '每一次运行的任务ID', 'type' => 'string', 'example' => 'tr_23231'], + 'StartTime' => ['title' => '任务开始运行时间', 'description' => '任务开始运行时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'EndTime' => ['title' => '任务结束运行时间', 'description' => '任务结束运行时间', 'type' => 'string', 'example' => '2024-05-30 16:48:13'], + 'LogContent' => ['title' => '运行日志,如果未运行则为空', 'description' => '运行日志,如果未运行则为空', 'type' => 'string', 'example' => 'xx'], + 'Status' => ['title' => 'INIT、WAITING、RUNNING、SUCCESS、FAILED', 'description' => '运行状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'Duration' => ['title' => '任务执行耗时,单位:秒', 'description' => '任务执行耗时,单位:秒', 'type' => 'string', 'example' => '60s'], + ], + 'description' => '', ], ], ], @@ -26775,35 +16020,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n \\"vvr-8.0.9-flink-1.17\\"\\n ]\\n}","type":"json"}]', - 'title' => '获取集群引擎的版本信息', - ], - 'GetClusterQueueInfoByEnv' => [ - 'summary' => '根据环境获取集群信息。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskrunLogList\\": [\\n {\\n \\"TaskrunId\\": \\"tr_23231\\",\\n \\"StartTime\\": \\"2024-05-30 16:47:13\\",\\n \\"EndTime\\": \\"2024-05-30 16:48:13\\",\\n \\"LogContent\\": \\"xx\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"Duration\\": \\"60s\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取实例执行日志', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [ - 'Dataphin公共云', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalInstanceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetPhysicalNode' => [ + 'summary' => '查询物理调度节点。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -26811,62 +16063,26 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境', - 'description' => '环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', + 'name' => 'NodeId', 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7081229106458752', - ], + 'schema' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_232132'], ], [ - 'name' => 'StreamBatchMode', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '流批模式'."\n", - 'description' => '流批模式'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'BOTH', - 'enum' => [ - 'STREAM', - 'BATCH', - 'BOTH', - ], - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ @@ -26876,143 +16092,104 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'default' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '返回结果'."\n", - 'description' => '返回结果'."\n", - 'type' => 'array', - 'items' => [ - 'title' => '集群详细信息', - 'description' => '集群详细信息', - 'type' => 'object', - 'properties' => [ - 'ClusterId' => [ - 'title' => '集群clusterId', - 'description' => '集群clusterId', - 'type' => 'string', - 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d', - ], - 'QueueName' => [ - 'title' => '队列名,唯一标示,k8s是资源组名称', - 'description' => '队列名,唯一标示,k8s是资源组名称', - 'type' => 'string', - 'example' => 'default-queue', - ], - 'MaxVcore' => [ - 'title' => '每个队列最大提供VCORE', - 'description' => '每个队列最大提供VCORE', - 'type' => 'string', - 'example' => '10', - ], - 'Namespace' => [ - 'title' => '命名空间', - 'description' => '命名空间', - 'type' => 'string', - 'example' => 'dataphinv45prod', - ], - 'CreateAt' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-10-31 10:29:17', - ], - 'ModifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2024-10-31 10:29:17', - ], - 'Annotations' => [ - 'title' => '注释', - 'description' => '注释', - 'type' => 'string', - 'example' => '{ "creator": "new_datasource@test.aliyunid.com", "modifier": "new_datasource@test.aliyunid.com" }', - ], - 'Labels' => [ - 'title' => '标签', - 'description' => '标签', - 'type' => 'string', - 'example' => 'cdh', - 'default' => 'null', - ], - 'ResourceVersion' => [ - 'title' => '资源版本', - 'description' => '资源版本', - 'type' => 'string', - 'example' => '1', - ], - 'Spec' => [ - 'title' => '资源规范', - 'description' => '资源规范', - 'type' => 'string', - 'example' => '{\\n \\"kind\\" : \\"kubernetes\\",\\n \\"kubernetes\\{"namespace" : "n1730341728989z7", "clusterName" : "a51578bdcce145" }, "state" : "ONLINE"}', - ], - 'VvpClusterType' => [ - 'title' => 'VVP集群类型', - 'description' => 'VVP集群类型', - 'type' => 'string', - 'example' => 'PREJOB', - ], - 'FlinkVersion' => [ - 'title' => 'Flink版本', - 'description' => 'Flink版本', - 'type' => 'string', - 'required' => false, - 'example' => '1.15', - 'default' => 'null', - ], - 'FlinkImageRegistry' => [ - 'title' => 'Flink镜像地址', - 'description' => 'Flink镜像地址', - 'type' => 'string', - 'example' => 'xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com/xxxx/flink:1.15.4-scala_2.12', - 'default' => 'null', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeInfo' => [ + 'title' => '节点详情', + 'description' => '节点详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_232132'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => '节点名称'], + 'Description' => ['title' => '节点描述', 'description' => '节点描述', 'type' => 'string', 'example' => 'xx测试'], + 'OperatorType' => ['title' => '节点子类型', 'description' => '节点子类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL等', 'type' => 'string', 'example' => 'SHELL'], + 'ScheduleType' => ['title' => '调度周期类型'."\n" + .'MINUTELY'."\n" + .'HOURLY'."\n" + .'DAILY'."\n" + .'WEEKLY'."\n" + .'MONTHLY'."\n" + .'QUARTERLY', 'description' => '调度周期类型'."\n" + .'- MINUTELY'."\n" + .'- HOURLY'."\n" + .'- DAILY'."\n" + .'- WEEKLY'."\n" + .'- MONTHLY'."\n" + .'- QUARTERLY', 'type' => 'string', 'example' => 'DAILY'], + 'Priority' => ['title' => '调度优先级'."\n" + .'HIGHEST'."\n" + .'HIGH'."\n" + .'MIDDLE'."\n" + .'LOW'."\n" + .'LOWEST', 'description' => '调度优先级'."\n" + ."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', 'type' => 'string', 'example' => 'MIDDLE'], + 'ProjectInfo' => [ + 'title' => '节点归属项目', + 'description' => '节点归属项目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'string', 'example' => '102132'], + 'Name' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'xx测试'], ], - 'FlinkImageRepository' => [ - 'title' => 'Flink镜像仓库', - 'description' => 'Flink镜像仓库', - 'type' => 'string', - 'example' => 'xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com', - 'default' => 'null', + ], + 'Creator' => [ + 'title' => '节点创建者', + 'description' => '节点创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '101312'], + 'Name' => ['description' => '用户ID', 'type' => 'string', 'example' => 'xx测试'], ], - 'FlinkImageTag' => [ - 'title' => 'Flink镜像标签', - 'description' => 'Flink镜像标签', - 'type' => 'string', - 'example' => '1.15.4', - 'default' => 'null', + ], + 'Owner' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '101312'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], ], ], + 'Modifier' => [ + 'title' => '更新人', + 'description' => '更新人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '101312'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'LastModifiedTime' => ['title' => '最新1次更新时间', 'description' => '最新1次更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'Status' => ['title' => '调度状态', 'description' => '调度状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'TriggerConfig' => ['title' => '触发配置, 用于实现对逻辑表的字段依赖', 'description' => '触发配置, 用于实现对逻辑表的字段依赖', 'type' => 'string', 'example' => '{"expression":"any_success"}'], + 'From' => ['title' => '节点来源', 'description' => '节点来源'."\n" + .'- DATA_PROCESS:代码研发'."\n" + .'- BLACK_BOX:建模研发'."\n" + .'- PIPELINE:PIPELINE', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'CronExpression' => ['title' => 'cron表达式,用于计算调起时间', 'description' => 'cron表达式,用于计算调起时间', 'type' => 'string', 'example' => '0 0 10 * * *'], + 'OutputNameList' => [ + 'title' => '输出名列表', + 'description' => '输出名列表', + 'type' => 'array', + 'items' => ['description' => '输出名', 'type' => 'string', 'example' => 'xxtest'], + ], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123456789'], + 'DataSourceSchema' => ['title' => '数据源SCHEMA', 'description' => '数据源SCHEMA,仅对如Oracle等需要设置Schema的数据源类型生效。若设置为“默认”,则为空(null)', 'type' => 'string', 'example' => 'null'], ], ], ], @@ -27021,143 +16198,69 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ClusterId\\": \\"61187014-a3ba-4cdd-8609-1f0aa3df4a3d\\",\\n \\"QueueName\\": \\"default-queue\\",\\n \\"MaxVcore\\": \\"10\\",\\n \\"Namespace\\": \\"dataphinv45prod\\",\\n \\"CreateAt\\": \\"2024-10-31 10:29:17\\",\\n \\"ModifiedAt\\": \\"2024-10-31 10:29:17\\",\\n \\"Annotations\\": \\"{ \\\\\\"creator\\\\\\": \\\\\\"new_datasource@test.aliyunid.com\\\\\\", \\\\\\"modifier\\\\\\": \\\\\\"new_datasource@test.aliyunid.com\\\\\\" }\\",\\n \\"Labels\\": \\"cdh\\",\\n \\"ResourceVersion\\": \\"1\\",\\n \\"Spec\\": \\"{\\\\\\\\n \\\\\\\\\\\\\\"kind\\\\\\\\\\\\\\" : \\\\\\\\\\\\\\"kubernetes\\\\\\\\\\\\\\",\\\\\\\\n \\\\\\\\\\\\\\"kubernetes\\\\\\\\{\\\\\\"namespace\\\\\\" : \\\\\\"n1730341728989z7\\\\\\", \\\\\\"clusterName\\\\\\" : \\\\\\"a51578bdcce145\\\\\\" }, \\\\\\"state\\\\\\" : \\\\\\"ONLINE\\\\\\"}\\",\\n \\"VvpClusterType\\": \\"PREJOB\\",\\n \\"FlinkVersion\\": \\"1.15\\",\\n \\"FlinkImageRegistry\\": \\"xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com/xxxx/flink:1.15.4-scala_2.12\\",\\n \\"FlinkImageRepository\\": \\"xxxx-registry-vpc.cn-shanghai.cr.aliyuncs.com\\",\\n \\"FlinkImageTag\\": \\"1.15.4\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取环境集群队列信息', - ], - 'CreateStreamBatchJobMapping' => [ - 'summary' => '创建流批一体任务。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_232132\\",\\n \\"Name\\": \\"节点名称\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"OperatorType\\": \\"SHELL\\",\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"Priority\\": \\"MIDDLE\\",\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"102132\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Owner\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"CreateTime\\": 1717343597000,\\n \\"LastModifiedTime\\": 1717343597000,\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TriggerConfig\\": \\"{\\\\\\"expression\\\\\\":\\\\\\"any_success\\\\\\"}\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"CronExpression\\": \\"0 0 10 * * *\\",\\n \\"OutputNameList\\": [\\n \\"xxtest\\"\\n ],\\n \\"DataSourceId\\": 123456789,\\n \\"DataSourceSchema\\": \\"null\\"\\n }\\n}","type":"json"}]', + 'title' => '查询物理调度节点', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [ - 'Dataphin公共云', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetPhysicalNodeByOutputName' => [ + 'summary' => '根据输出名查询物理节点,仅支持离线代码节点及集成任务节点。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'StreamBatchJobMappingCreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '流批一体任务信息', - 'description' => '流批一体任务信息', - 'type' => 'object', - 'properties' => [ - 'Env' => [ - 'title' => '环境', - 'description' => '环境', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - 'EngineVersion' => [ - 'title' => 'flink引擎版本', - 'description' => 'flink引擎版本', - 'type' => 'string', - 'required' => true, - 'example' => 'vvr-8.0.9-flink-1.17', - ], - 'ClusterId' => [ - 'title' => '集群ID', - 'description' => '集群ID', - 'type' => 'string', - 'required' => true, - 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d', - ], - 'QueueName' => [ - 'title' => '队列名', - 'description' => '队列名', - 'type' => 'string', - 'required' => true, - 'example' => 'default-queue', - ], - 'Directory' => [ - 'title' => '任务生成的目录', - 'description' => '任务生成的目录', - 'type' => 'string', - 'required' => true, - 'example' => '/karel', - ], - 'FileName' => [ - 'title' => '文件名', - 'description' => '文件名', - 'type' => 'string', - 'required' => true, - 'example' => 'karel_hover_3', - ], - 'FileType' => [ - 'title' => '文件类型', - 'description' => '文件类型', - 'type' => 'string', - 'required' => true, - 'example' => 'FLINK_SQL', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '7081229106458752', - ], - 'VvpClusterType' => [ - 'title' => 'SESSION 或PREJOB,vvp专用,如果没有就不传或者为空', - 'description' => 'SESSION 或PREJOB,vvp专用,如果没有就不传或者为空', - 'type' => 'string', - 'required' => true, - 'example' => 'PREJOB', - ], - 'Description' => [ - 'title' => '描述信息', - 'description' => '描述信息', - 'type' => 'string', - 'required' => false, - 'example' => '这是一段任务的描述信息', - ], - ], - 'required' => true, - ], + 'name' => 'OutputName', + 'in' => 'query', + 'schema' => ['title' => '节点输出名', 'description' => '节点输出名', 'type' => 'string', 'required' => true, 'example' => 't_test'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ @@ -27167,59 +16270,84 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '任务创建成功的返回结果', - 'description' => '任务创建成功的返回结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeInfo' => [ + 'title' => '节点详情', + 'description' => '节点详情', 'type' => 'object', 'properties' => [ - 'FileId' => [ - 'title' => '作业文件ID', - 'description' => '作业文件ID', - 'type' => 'string', - 'example' => '7083701105376640', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_2321'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'xx测试'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx测试'], + 'OperatorType' => ['title' => '节点子类型', 'description' => '节点子类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL等', 'type' => 'string', 'example' => 'SHELL'], + 'ScheduleType' => ['title' => '调度周期类型', 'description' => '调度周期类型'."\n" + .'- MINUTELY'."\n" + .'- HOURLY'."\n" + .'- DAILY'."\n" + .'- WEEKLY'."\n" + .'- MONTHLY'."\n" + .'- YEARLY', 'type' => 'string', 'example' => 'DAILY'], + 'Priority' => ['title' => '调度优先级', 'description' => '优先级'."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', 'type' => 'string', 'example' => 'MIDDLE'], + 'ProjectInfo' => [ + 'title' => '节点归属项目', + 'description' => '节点归属项目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '项目ID', 'type' => 'string', 'example' => '1324211'], + 'Name' => ['description' => '项目名称', 'type' => 'string', 'example' => 'xx测试'], + ], ], - 'Url' => [ - 'title' => '跳转相对路径', - 'description' => '跳转相对路径', - 'type' => 'string', - 'example' => '/dev/streamJob/7083701105376640?env=DEV&projectId=7081229106458752&tenantId=300001420', + 'Creator' => [ + 'title' => '节点创建者', + 'description' => '节点创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '1311131'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'Owner' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '1311131'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], ], - 'JobId' => [ - 'description' => 'JobId', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123123', + 'Modifier' => [ + 'title' => '节点修改者', + 'description' => '节点修改者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '1311131'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'LastModifiedTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'Status' => ['title' => '节点调度状态', 'description' => '节点调度状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'TriggerConfig' => ['title' => '触发配置, 用于实现对逻辑表的字段依赖', 'description' => '触发配置, 用于实现对逻辑表的字段依赖', 'type' => 'string', 'example' => '{"expression":"any_success"}'], + 'From' => ['title' => '节点来源', 'description' => '节点来源'."\n" + .'- DATA_PROCESS:代码研发'."\n" + .'- BLACK_BOX:黑盒'."\n" + .'- ONE_ID:萃取'."\n" + .'- PIPELINE:PIPELINE', 'type' => 'string', 'example' => 'DATA_PROCESS'], ], ], ], @@ -27228,33 +16356,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_2321\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"OperatorType\\": \\"SHELL\\",\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"Priority\\": \\"MIDDLE\\",\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"1324211\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Owner\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"CreateTime\\": 1717343597000,\\n \\"LastModifiedTime\\": 1717343597000,\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TriggerConfig\\": \\"{\\\\\\"expression\\\\\\":\\\\\\"any_success\\\\\\"}\\",\\n \\"From\\": \\"DATA_PROCESS\\"\\n }\\n}","type":"json"}]', + 'title' => '根据输出名查询物理节点', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"FileId\\": \\"7083701105376640\\",\\n \\"Url\\": \\"/dev/streamJob/7083701105376640?env=DEV&projectId=7081229106458752&tenantId=300001420\\",\\n \\"JobId\\": 123123\\n }\\n}","type":"json"}]', - 'title' => '创建流批一体任务', - ], - 'GetResource' => [ - 'summary' => '获取资源文件详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeByOutputName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'GetPhysicalNodeContent' => [ + 'summary' => '查询调度节点代码内容。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -27262,171 +16399,48 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', + 'name' => 'NodeId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_232411'], ], [ - 'name' => 'Name', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '资源文件名', - 'description' => '资源文件名', - 'type' => 'string', - 'required' => true, - 'example' => 'udf_sleep.jar', - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ResourceInfo' => [ - 'title' => '资源文件详情', - 'description' => '资源文件详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '节点信息', + 'description' => '节点信息', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '资源id', - 'description' => '资源id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10200121011', - ], - 'Name' => [ - 'title' => '资源文件名', - 'description' => '资源文件名', - 'type' => 'string', - 'example' => 'udf_sleep.jar', - ], - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型', - 'type' => 'string', - 'example' => 'JAR', - ], - 'Directory' => [ - 'title' => '存放目录', - 'description' => '存放目录', - 'type' => 'string', - 'example' => '/', - ], - 'StorageAddress' => [ - 'title' => '资源存储地址', - 'description' => '资源存储地址', - 'type' => 'string', - 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c', - ], - 'Size' => [ - 'title' => '资源大小, 单位:b', - 'description' => '资源大小, 单位:b', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102400', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '测试', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎源类型', - 'description' => '计算引擎源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30011021', - ], - 'LastModifier' => [ - 'title' => '更新者', - 'description' => '更新者', - 'type' => 'string', - 'example' => '30011021', - ], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_232411'], + 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'CodeContent' => ['title' => '节点代码内容', 'description' => '节点代码内容', 'type' => 'string', 'example' => 'select 1;'], ], ], ], @@ -27435,33 +16449,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"NodeId\\": \\"n_232411\\",\\n \\"NodeName\\": \\"xx测试\\",\\n \\"CodeContent\\": \\"select 1;\\"\\n }\\n}","type":"json"}]', + 'title' => '查询调度节点代码内容', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": 10200121011,\\n \\"Name\\": \\"udf_sleep.jar\\",\\n \\"ProjectId\\": 1030111021,\\n \\"ResourceType\\": \\"JAR\\",\\n \\"Directory\\": \\"/\\",\\n \\"StorageAddress\\": \\"300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c\\",\\n \\"Size\\": 102400,\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"ComputeEngineType\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30011021\\",\\n \\"LastModifier\\": \\"30011021\\"\\n }\\n}","type":"json"}]', - 'title' => '获取资源文件详情', - ], - 'GetResourceByVersion' => [ - 'summary' => '获取资源文件指定版本详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeContent', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'GetPhysicalNodeOperationLog' => [ + 'summary' => '查询节点的操作日志。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -27469,182 +16492,70 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Name', + 'name' => 'NodeId', 'in' => 'query', - 'schema' => [ - 'title' => '资源文件名', - 'description' => '资源文件名', - 'type' => 'string', - 'required' => true, - 'example' => 'udf_sleep.jar', - ], + 'schema' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_231131'], ], [ - 'name' => 'VersionId', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ResourceInfo' => [ - 'title' => '资源文件详情', - 'description' => '资源文件详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '资源id', - 'description' => '资源id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10200121011', - ], - 'Name' => [ - 'title' => '资源文件名', - 'description' => '资源文件名', - 'type' => 'string', - 'example' => 'udf_sleep.jar', - ], - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'ResourceType' => [ - 'title' => '资源类型', - 'description' => '资源类型', - 'type' => 'string', - 'example' => 'JAR', - ], - 'Directory' => [ - 'title' => '存放目录', - 'description' => '存放目录', - 'type' => 'string', - 'example' => '/', - ], - 'StorageAddress' => [ - 'title' => '资源存储地址', - 'description' => '资源存储地址', - 'type' => 'string', - 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c', - ], - 'Size' => [ - 'title' => '资源大小, 单位:b', - 'description' => '资源大小, 单位:b', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102400', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '测试', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎源类型', - 'description' => '计算引擎源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30011021', - ], - 'LastModifier' => [ - 'title' => '更新者', - 'description' => '更新者', - 'type' => 'string', - 'example' => '30011021', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'OperationLogList' => [ + 'title' => '节点操作日志', + 'description' => '节点操作日志', + 'type' => 'array', + 'items' => [ + 'title' => '节点操作日志信息', + 'description' => '节点操作日志信息', + 'type' => 'object', + 'properties' => [ + 'Context' => ['title' => '日志详情', 'description' => '日志详情', 'type' => 'string', 'example' => 'xx'], + 'OperationType' => ['title' => '操作类型'."\n" + .'TASK_UPDATE_PRIORITY:修改节点优先级'."\n" + .'PAUSE_TASK:暂停调度'."\n" + .'RESUME_TASK:恢复调度'."\n" + .'CREATE_NODE:创建节点'."\n" + .'FORCE_DELETE_NODE:强制删除节点'."\n" + .'UPDATE_NODE:更新节点'."\n" + .'DELETE_NODE:删除节点'."\n" + .'CHANGE_NODE_OWNER:修改节点负责人', 'description' => '操作类型'."\n" + .'- TASK_UPDATE_PRIORITY:修改节点优先级'."\n" + .'- PAUSE_TASK:暂停调度'."\n" + .'- RESUME_TASK:恢复调度'."\n" + .'- CREATE_NODE:创建节点'."\n" + .'- FORCE_DELETE_NODE:强制删除节点'."\n" + .'- UPDATE_NODE:更新节点'."\n" + .'- DELETE_NODE:删除节点'."\n" + .'- CHANGE_NODE_OWNER:修改节点负责人', 'type' => 'string', 'example' => 'PAUSE_TASK'], + 'Operator' => ['title' => '操作人ID', 'description' => '操作人ID', 'type' => 'string', 'example' => '132222'], + 'OperationTime' => ['title' => '操作时间', 'description' => '操作时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'OperatorName' => ['title' => '操作者名字', 'description' => '操作者名字', 'type' => 'string', 'example' => 'xx测试'], ], ], ], @@ -27654,122 +16565,77 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OperationLogList\\": [\\n {\\n \\"Context\\": \\"xx\\",\\n \\"OperationType\\": \\"PAUSE_TASK\\",\\n \\"Operator\\": \\"132222\\",\\n \\"OperationTime\\": \\"2024-05-30 16:47:13\\",\\n \\"OperatorName\\": \\"xx测试\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询节点的操作日志', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": 10200121011,\\n \\"Name\\": \\"udf_sleep.jar\\",\\n \\"ProjectId\\": 1030111021,\\n \\"ResourceType\\": \\"JAR\\",\\n \\"Directory\\": \\"/\\",\\n \\"StorageAddress\\": \\"300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c\\",\\n \\"Size\\": 102400,\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"ComputeEngineType\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30011021\\",\\n \\"LastModifier\\": \\"30011021\\"\\n }\\n}","type":"json"}]', - 'title' => '获取资源文件指定版本详情', - ], - 'UpdateResource' => [ - 'summary' => '编辑资源文件。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeOperationLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetPipelineAsyncResult' => [ + 'summary' => '查询异步操作管道任务的执行结果。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'Context', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '编辑命令', - 'description' => '编辑命令', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '资源Id', - 'description' => '资源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10112101', - ], - 'Name' => [ - 'title' => '资源名称', - 'description' => '资源名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'StorageAddress' => [ - 'title' => '资源存储地址', - 'description' => '资源存储地址', - 'type' => 'string', - 'required' => true, - 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c', - ], - 'Description' => [ - 'title' => '资源描述', - 'description' => '资源描述', - 'type' => 'string', - 'required' => true, - 'example' => 'xx 测试', - ], - 'Comment' => [ - 'title' => '提交备注', - 'description' => '提交备注', - 'type' => 'string', - 'required' => true, - 'example' => 'xx 测试', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎类型: MAX_COMPUTE、HADOOP', - 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - ], + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], ], 'required' => true, ], ], + [ + 'name' => 'AsyncId', + 'in' => 'query', + 'schema' => ['title' => '异步执行Id', 'description' => '异步执行Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + ], ], 'responses' => [ 200 => [ @@ -27778,68 +16644,53 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '异步执行结果', + 'description' => '异步执行结果', + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '当前执行状态:SUCCESS-执行成功,FAILED-执行失败,RUNNING-执行中', 'description' => '当前执行状态:SUCCESS-执行成功,FAILED-执行失败,RUNNING-执行中', 'type' => 'string', 'example' => 'SUCCESS'], + 'SubmitId' => ['title' => '管道任务提交后的带发布ID,通过发布域进行发布', 'description' => '管道任务提交后的带发布ID,通过发布域进行发布', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'HostMachine' => ['title' => '执行请求的服务端主机信息', 'description' => '执行请求的服务端主机信息', 'type' => 'string', 'example' => 'hostName:hostIp'], + 'Version' => ['title' => '管道任务提交生成的版本号', 'description' => '管道任务提交生成的版本号', 'type' => 'string', 'example' => '1'], + 'NodeId' => ['title' => '管道任务调度节点ID', 'description' => '管道任务调度节点ID', 'type' => 'string', 'example' => 'n_123'], + 'AsyncId' => ['title' => '异步执行查询Id', 'description' => '异步执行查询Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'PipelineId' => ['title' => '管道主键ID', 'description' => '管道主键ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'ErrorCode' => ['title' => '执行异常时异常码', 'description' => '执行异常时异常码', 'type' => 'string', 'example' => 'DPN.Pipeline.InnerError'], + 'ErrorMessage' => ['title' => '执行异常时异常信息', 'description' => '执行异常时异常信息', 'type' => 'string', 'example' => 'NullPointException'], + ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"n_123\\",\\n \\"AsyncId\\": 123,\\n \\"PipelineId\\": 123,\\n \\"ErrorCode\\": \\"DPN.Pipeline.InnerError\\",\\n \\"ErrorMessage\\": \\"NullPointException\\"\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '查询异步执行结果', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '编辑资源文件', + 'ramActions' => [], ], - 'GetFileStorageCredential' => [ - 'summary' => '获取文件存储临时读写授权。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetPipelineById' => [ + 'summary' => '根据管道任务id查询管道任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -27848,55 +16699,42 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id,临时授权用于创建资源文件时必填', - 'description' => '项目Id,临时授权用于创建资源文件时必填', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1030131021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UseVpcEndpoint', - 'in' => 'query', + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '使用内网地址, 默认:false', - 'description' => '使用内网地址, 默认:false', - 'type' => 'boolean', - 'required' => false, + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], + 'required' => true, ], ], [ - 'name' => 'Purpose', - 'in' => 'query', + 'name' => 'QueryId', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '用途: RESOURCE 创建资源文件、COMPUTE_SOURCE_SETTING 存储计算源配置、NONE 无明确用途;默认:NONE', - 'description' => '用途: RESOURCE 创建资源文件、COMPUTE_SOURCE_SETTING 存储计算源配置、NONE 无明确用途;默认:NONE', - 'type' => 'string', - 'required' => false, - 'example' => 'RESOURCE', + 'title' => '用户查询管道任务的Id', + 'description' => '用户查询管道任务的Id', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '支持使用集成任务调度节点nodeId查询', 'description' => '支持使用集成任务调度节点nodeId查询', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '支持使用集成管道主键pipelineId查询', 'description' => '支持使用集成管道主键pipelineId查询', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '支持使用集成任务文件fileId查询', 'description' => '支持使用集成任务文件fileId查询', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + ], + 'required' => true, ], ], ], @@ -27907,228 +16745,186 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'StorageCredential' => [ - 'title' => '临时读写授权详情', - 'description' => '临时读写授权详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '管道任务详情', + 'description' => '管道任务详情', 'type' => 'object', 'properties' => [ - 'StorageType' => [ - 'title' => '存储集群类型: oss、ceph', - 'description' => '存储集群类型: oss、ceph', - 'type' => 'string', - 'example' => 'oss', - ], - 'Endpoint' => [ - 'title' => '连接地址', - 'description' => '连接地址', - 'type' => 'string', - 'example' => 'oss-cn-shanghai.aliyuncs.com', - ], - 'Bucket' => [ - 'title' => '文件存储bucket', - 'description' => '文件存储bucket', - 'type' => 'string', - 'example' => 'dataphin', - ], - 'Region' => [ - 'title' => 'region', - 'description' => 'region', - 'type' => 'string', - 'example' => 'cn-shanghai', - ], - 'AccessId' => [ - 'title' => '临时AK', - 'description' => '临时AK', - 'type' => 'string', - 'example' => 'temp.akId', - ], - 'AccessKey' => [ - 'title' => '临时AK', - 'description' => '临时AK', - 'type' => 'string', - 'example' => 'temp.akKey', - ], - 'ObjectName' => [ - 'title' => '存储对象', - 'description' => '存储对象', - 'type' => 'string', - 'example' => '1023231111/abc', - ], - 'Expiration' => [ - 'title' => '到期时间', - 'description' => '到期时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '17343434343434', + 'ScheduleConfig' => ['title' => '集成管道调度配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.vo.OAScheduleConfigVO进行反序列化', 'description' => '集成管道调度配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.vo.OAScheduleConfigVO进行反序列化', 'type' => 'string', 'example' => '{}'], + 'PipelineConfig' => [ + 'title' => '集成管道组件配置', + 'description' => '集成管道组件配置', + 'type' => 'object', + 'properties' => [ + 'Steps' => [ + 'title' => '组件配置:包含所有用到的组件详细配置', + 'description' => '组件配置:包含所有用到的组件详细配置', + 'type' => 'array', + 'items' => [ + 'title' => '组件具体配置', + 'description' => '组件具体配置', + 'type' => 'object', + 'properties' => [ + 'PluginConfig' => ['title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'type' => 'string', 'example' => '{}'], + 'StepType' => ['title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'type' => 'string', 'example' => 'input'], + 'StepName' => ['title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'type' => 'string', 'example' => 'mysql_reader'], + 'IsDistribute' => ['title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'type' => 'boolean'], + 'Key' => ['title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'type' => 'string', 'example' => 'mysqlinput'], + ], + ], + ], + 'Hops' => [ + 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'type' => 'array', + 'items' => [ + 'title' => '集成管道输入输出组件关系配置', + 'description' => '集成管道输入输出组件关系配置', + 'type' => 'object', + 'properties' => [ + 'Target' => ['title' => '输出步骤名称,即Steps[*].StepName', 'description' => '输出步骤名称,即Steps[*].StepName', 'type' => 'string', 'example' => 'odps_writer'], + 'SendTo' => ['title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'description' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'type' => 'boolean'], + 'Source' => ['title' => '输入步骤名称,即Steps[*].StepName', 'description' => '输入步骤名称,即Steps[*].StepName', 'type' => 'string', 'example' => 'mysql_reader'], + ], + ], + ], + ], ], - 'SecurityToken' => [ - 'title' => '临时授权证书', - 'description' => '临时授权证书', - 'type' => 'string', - 'example' => 'temp.token', + 'NodeInfo' => [ + 'title' => '管道任务基本信息', + 'description' => '管道任务基本信息', + 'type' => 'object', + 'properties' => [ + 'Desc' => ['title' => '', 'description' => '任务描述', 'type' => 'string', 'example' => 'comment'], + 'NodeName' => ['title' => '集成管道任务名称', 'description' => '集成管道任务名称', 'type' => 'string', 'example' => 'test'], + 'NodeId' => ['title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'string', 'example' => 'n_123'], + 'PipelineId' => ['title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'FileId' => ['title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'Directory' => ['title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'type' => 'string', 'example' => '/'], + ], ], + 'PipelineType' => ['title' => '管道任务类型', 'description' => '管道任务类型', 'type' => 'integer', 'format' => 'int32', 'example' => '123'], + 'Mode' => ['title' => '集成管道配置模式', 'description' => '集成管道配置模式', 'type' => 'string', 'example' => 'PIPELINE'], + 'PipelineJson' => ['title' => '集成管道脚本模式配置', 'description' => '集成管道脚本模式配置', 'type' => 'string', 'example' => '{}'], + 'Settings' => ['title' => '集成管道的通道配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting进行反序列化', 'description' => '集成管道的通道配置,json字符串,通过工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting进行反序列化', 'type' => 'string', 'example' => '{}'], ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"ScheduleConfig\\": \\"{}\\",\\n \\"PipelineConfig\\": {\\n \\"Steps\\": [\\n {\\n \\"PluginConfig\\": \\"{}\\",\\n \\"StepType\\": \\"input\\",\\n \\"StepName\\": \\"mysql_reader\\",\\n \\"IsDistribute\\": true,\\n \\"Key\\": \\"mysqlinput\\"\\n }\\n ],\\n \\"Hops\\": [\\n {\\n \\"Target\\": \\"odps_writer\\",\\n \\"SendTo\\": true,\\n \\"Source\\": \\"mysql_reader\\"\\n }\\n ]\\n },\\n \\"NodeInfo\\": {\\n \\"Desc\\": \\"comment\\",\\n \\"NodeName\\": \\"test\\",\\n \\"NodeId\\": \\"n_123\\",\\n \\"PipelineId\\": 123,\\n \\"FileId\\": 123,\\n \\"Directory\\": \\"/\\"\\n },\\n \\"PipelineType\\": 123,\\n \\"Mode\\": \\"PIPELINE\\",\\n \\"PipelineJson\\": \\"{}\\",\\n \\"Settings\\": \\"{}\\"\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '根据ID查询管道任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StorageCredential\\": {\\n \\"StorageType\\": \\"oss\\",\\n \\"Endpoint\\": \\"oss-cn-shanghai.aliyuncs.com\\",\\n \\"Bucket\\": \\"dataphin\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"AccessId\\": \\"temp.akId\\",\\n \\"AccessKey\\": \\"temp.akKey\\",\\n \\"ObjectName\\": \\"1023231111/abc\\",\\n \\"Expiration\\": 17343434343434,\\n \\"SecurityToken\\": \\"temp.token\\"\\n }\\n}","type":"json"}]', - 'title' => '获取文件存储临时读写授权', + 'ramActions' => [], ], - 'DeleteResource' => [ - 'summary' => '删除资源文件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetProject' => [ + 'summary' => '通过项目Id获取项目详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '资源文件Id', - 'description' => '资源文件Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10300010201', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12356'], ], [ - 'name' => 'Comment', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], + 'schema' => ['title' => '环境标识, 默认:PROD', 'description' => '项目环境,支持:'."\n" + .' - DEV:开发环境'."\n" + .' - PROD:生产环境', 'type' => 'string', 'required' => false, 'example' => 'DEV'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ProjectInfo' => [ + 'title' => '项目详情', + 'description' => '项目详情', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '所属业务板块Id', 'description' => '依赖数据模块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '业务板块Id'], + 'BizUnitDisplayName' => ['title' => '所属业务板块展示名', 'description' => '依赖数据模块显示名', 'type' => 'string', 'example' => '业务板块显示名'], + 'ComputeSourceId' => ['title' => '绑定计算源Id', 'description' => '计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '项目依赖计算源Id'], + 'ComputeSourceName' => ['title' => '绑定计算源名', 'description' => '计算源名称', 'type' => 'string', 'example' => '项目依赖计算源名'], + 'StreamComputeSourceId' => ['title' => '绑定实时计算源Id', 'description' => '实时计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '项目依赖实时计算源Id'], + 'StreamComputeSourceName' => ['title' => '绑定实时计算源名', 'description' => '实时计算源名称', 'type' => 'string', 'example' => '项目依赖实时计算源名'], + 'NameSpaceTag' => ['title' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', 'description' => '项目标签', 'type' => 'string', 'example' => 'GENERAL'], + 'Env' => ['title' => '环境标识', 'description' => '环境', 'type' => 'string', 'example' => 'DEV'], + 'WhiteLists' => [ + 'title' => '白名单', + 'description' => '白名单列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '白名单', + 'type' => 'object', + 'properties' => [ + 'Description' => ['title' => '描述', 'description' => '白名单描述', 'type' => 'string', 'example' => 'whitelist for xxx'], + 'Ip' => ['title' => 'Ip', 'description' => 'ip', 'type' => 'string', 'example' => '10.209.47.198'], + 'Port' => ['title' => '端口', 'description' => '端口', 'type' => 'string', 'example' => '3306'], + ], + ], + ], + 'Mode' => ['title' => '项目模式', 'description' => '项目模式,支持:'."\n" + .'- BASIC'."\n" + .'- DEV_PROD', 'type' => 'string', 'example' => 'BASIC'], + 'Type' => ['title' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', 'description' => '项目类型', 'type' => 'string', 'example' => 'GENERAL'], + 'Id' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12356'], + 'Name' => ['title' => '项目名称', 'description' => '项目名', 'type' => 'string', 'example' => 'dp_test'], + 'DisplayName' => ['title' => '项目展示名', 'description' => '项目显示名', 'type' => 'string', 'example' => '项目显示名'], + 'Description' => ['title' => '项目描述', 'description' => '项目描述', 'type' => 'string', 'example' => 'project for xxx'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间', 'type' => 'string', 'example' => '1703048484000'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '编辑时间', 'type' => 'string', 'example' => '1703048484000'], + 'Owner' => ['title' => '项目责任人', 'description' => '项目归属人Id', 'type' => 'string', 'example' => '101111'], + 'OwnerName' => ['title' => '项目责任人', 'description' => '项目归属人', 'type' => 'string', 'example' => '测试用户'], + ], ], ], ], @@ -28136,172 +16932,97 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ProjectInfo\\": {\\n \\"BizUnitId\\": 0,\\n \\"BizUnitDisplayName\\": \\"业务板块显示名\\",\\n \\"ComputeSourceId\\": 0,\\n \\"ComputeSourceName\\": \\"项目依赖计算源名\\",\\n \\"StreamComputeSourceId\\": 0,\\n \\"StreamComputeSourceName\\": \\"项目依赖实时计算源名\\",\\n \\"NameSpaceTag\\": \\"GENERAL\\",\\n \\"Env\\": \\"DEV\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"whitelist for xxx\\",\\n \\"Ip\\": \\"10.209.47.198\\",\\n \\"Port\\": \\"3306\\"\\n }\\n ],\\n \\"Mode\\": \\"BASIC\\",\\n \\"Type\\": \\"GENERAL\\",\\n \\"Id\\": 12356,\\n \\"Name\\": \\"dp_test\\",\\n \\"DisplayName\\": \\"项目显示名\\",\\n \\"Description\\": \\"project for xxx\\",\\n \\"GmtCreate\\": \\"1703048484000\\",\\n \\"GmtModified\\": \\"1703048484000\\",\\n \\"Owner\\": \\"101111\\",\\n \\"OwnerName\\": \\"测试用户\\"\\n }\\n}","type":"json"}]', + 'title' => '获取项目详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除资源文件', + 'ramActions' => [], ], - 'CreateResource' => [ - 'summary' => '创建资源文件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetProjectByName' => [ + 'summary' => '通过项目名获取项目详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建命令', - 'description' => '创建命令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '资源名称', - 'description' => '资源名称', - 'type' => 'string', - 'required' => true, - 'example' => 'udf_sleep.jar', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], - 'Directory' => [ - 'title' => '存放目录', - 'description' => '存放目录', - 'type' => 'string', - 'required' => true, - 'example' => '/', - ], - 'ResourceType' => [ - 'title' => '资源类型: FILE: 普通文件、JAR: Jar文件、PYTHON: Python文件、OTHERS: 其他类型文件', - 'description' => '资源类型: FILE: 普通文件、JAR: Jar文件、PYTHON: Python文件、OTHERS: 其他类型文件', - 'type' => 'string', - 'required' => true, - 'example' => 'JAR', - ], - 'StorageAddress' => [ - 'title' => '资源存储地址', - 'description' => '资源存储地址', - 'type' => 'string', - 'required' => true, - 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c', - ], - 'Description' => [ - 'title' => '资源描述', - 'description' => '资源描述', - 'type' => 'string', - 'required' => true, - 'example' => 'xx 测试', - ], - 'Comment' => [ - 'title' => '提交备注', - 'description' => '提交备注', - 'type' => 'string', - 'required' => true, - 'example' => 'xx 测试', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎类型: MAX_COMPUTE、HADOOP、NONE', - 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP、NONE', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '项目名', 'description' => '项目名', 'type' => 'string', 'required' => true, 'example' => 'test'], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '资源文件Id', - 'description' => '资源文件Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10112101', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ProjectInfo' => [ + 'title' => '项目详情', + 'description' => '项目详情', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '所属业务板块Id', 'description' => '所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '101131'], + 'BizUnitDisplayName' => ['title' => '所属业务板块展示名', 'description' => '所属业务板块展示名', 'type' => 'string', 'example' => '测试'], + 'ComputeSourceId' => ['title' => '绑定计算源Id', 'description' => '绑定计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '101711'], + 'ComputeSourceName' => ['title' => '绑定计算源名', 'description' => '绑定计算源名', 'type' => 'string', 'example' => 'ds1'], + 'StreamComputeSourceId' => ['title' => '绑定实时计算源Id', 'description' => '绑定实时计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '201711'], + 'StreamComputeSourceName' => ['title' => '绑定实时计算源名', 'description' => '绑定实时计算源名', 'type' => 'string', 'example' => 'ds2'], + 'NameSpaceTag' => ['title' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', 'description' => '名称空间:PUBLIC 公共类型、APPLICATION 应用类型、BASE 基础类型', 'type' => 'string', 'example' => 'BASE'], + 'Env' => ['title' => '环境标识', 'description' => '环境标识', 'type' => 'string', 'example' => 'DEV'], + 'WhiteLists' => [ + 'title' => '白名单', + 'description' => '白名单', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx 白名单'], + 'Ip' => ['title' => 'Ip', 'description' => 'Ip', 'type' => 'string', 'example' => '10.11.1.21'], + 'Port' => ['title' => '端口', 'description' => '端口', 'type' => 'string', 'example' => '5432'], + ], + ], + ], + 'Mode' => ['title' => '项目模式', 'description' => '项目模式', 'type' => 'string', 'example' => 'BASIC'], + 'Type' => ['title' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', 'description' => '项目类型: DISTILL 萃取项目、GENERAL 一般类型项目', 'type' => 'string', 'example' => 'GENERAL'], + 'Id' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'Name' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'DisplayName' => ['title' => '项目展示名', 'description' => '项目展示名', 'type' => 'string', 'example' => 'xx test'], + 'Description' => ['title' => '项目描述', 'description' => '项目描述', 'type' => 'string', 'example' => '测试'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'Owner' => ['title' => '项目责任人', 'description' => '项目责任人', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '项目责任人', 'description' => '项目责任人', 'type' => 'string', 'example' => '张三'], + ], ], ], ], @@ -28309,33 +17030,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectInfo\\": {\\n \\"BizUnitId\\": 101131,\\n \\"BizUnitDisplayName\\": \\"测试\\",\\n \\"ComputeSourceId\\": 101711,\\n \\"ComputeSourceName\\": \\"ds1\\",\\n \\"StreamComputeSourceId\\": 201711,\\n \\"StreamComputeSourceName\\": \\"ds2\\",\\n \\"NameSpaceTag\\": \\"BASE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"xx 白名单\\",\\n \\"Ip\\": \\"10.11.1.21\\",\\n \\"Port\\": \\"5432\\"\\n }\\n ],\\n \\"Mode\\": \\"BASIC\\",\\n \\"Type\\": \\"GENERAL\\",\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"test\\",\\n \\"DisplayName\\": \\"xx test\\",\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', + 'title' => '通过项目名获取项目详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 10112101\\n}","type":"json"}]', - 'title' => '创建资源文件', + 'ramActions' => [], ], - 'GetUdf' => [ - 'summary' => '获取自定义函数详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'GetProjectProduceUser' => [ + 'summary' => '获得项目生产账号,该API仅支持超级管理员(SuperAdmin)能发起调用。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -28343,165 +17056,37 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], - ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1123', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131311111321'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'UdfInfo' => [ - 'title' => '自定义函数详情', - 'description' => '自定义函数详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'User' => [ + 'title' => '生产者用户', + 'description' => '生产者用户', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'Name' => [ - 'title' => '函数名', - 'description' => '函数名', - 'type' => 'string', - 'example' => 'udf_to_lower', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', - 'description' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', - 'type' => 'string', - 'example' => 'HADOOP', - ], - 'Directory' => [ - 'title' => '存放目录', - 'description' => '存放目录', - 'type' => 'string', - 'example' => '/', - ], - 'ClassName' => [ - 'title' => '注册类名', - 'description' => '注册类名', - 'type' => 'string', - 'example' => 'com.lydaas.dataphin.UdfTest', - ], - 'Category' => [ - 'title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'CommandHelp' => [ - 'title' => '命令帮助', - 'description' => '命令帮助', - 'type' => 'string', - 'example' => 'udf_to_lower(char x)', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012110', - ], - 'LastModifier' => [ - 'title' => '最后更新人', - 'description' => '最后更新人', - 'type' => 'string', - 'example' => '30012110', - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '123131'], ], ], ], @@ -28510,32 +17095,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"User\\": {\\n \\"Id\\": \\"123131\\"\\n }\\n}","type":"json"}]', + 'title' => '获得项目生产账号', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UdfInfo\\": {\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"udf_to_lower\\",\\n \\"ComputeEngineType\\": \\"HADOOP\\",\\n \\"Directory\\": \\"/\\",\\n \\"ClassName\\": \\"com.lydaas.dataphin.UdfTest\\",\\n \\"Category\\": 10,\\n \\"CommandHelp\\": \\"udf_to_lower(char x)\\",\\n \\"Description\\": \\"test\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Creator\\": \\"30012110\\",\\n \\"LastModifier\\": \\"30012110\\"\\n }\\n}","type":"json"}]', - 'title' => '获取自定义函数详情', - ], - 'GetUdfByVersion' => [ - 'summary' => '查询自定义函数版本详情。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetProjectProduceUser', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetProjectWhiteLists' => [ + 'summary' => '获取项目白名单。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -28544,59 +17139,17 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1123', - ], - ], - [ - 'name' => 'VersionId', - 'in' => 'query', - 'schema' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], ], ], 'responses' => [ @@ -28606,114 +17159,23 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'UdfInfo' => [ - 'title' => '自定义函数详情', - 'description' => '自定义函数详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1030111021', - ], - 'Name' => [ - 'title' => '函数名', - 'description' => '函数名', - 'type' => 'string', - 'example' => 'udf_to_lower', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', - 'description' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', - 'type' => 'string', - 'example' => 'HADOOP', - ], - 'Directory' => [ - 'title' => '存放目录', - 'description' => '存放目录', - 'type' => 'string', - 'example' => '/', - ], - 'ClassName' => [ - 'title' => '注册类名', - 'description' => '注册类名', - 'type' => 'string', - 'example' => 'com.lydaas.dataphin.UdfTest', - ], - 'Category' => [ - 'title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'CommandHelp' => [ - 'title' => '命令帮助', - 'description' => '命令帮助', - 'type' => 'string', - 'example' => 'udf_to_lower(char x)', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'GmtCreate' => [ - 'title' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', - 'description' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'GmtModified' => [ - 'title' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', - 'description' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-10 10:01:01', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012110', - ], - 'LastModifier' => [ - 'title' => '最后更新人', - 'description' => '最后更新人', - 'type' => 'string', - 'example' => '30012110', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'WhiteLists' => [ + 'title' => '项目白名单', + 'description' => '项目白名单', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试'], + 'Ip' => ['title' => 'ip', 'description' => 'ip', 'type' => 'string', 'example' => '10.1.0.2'], + 'Port' => ['title' => '端口', 'description' => '端口', 'type' => 'string', 'example' => '5432'], ], ], ], @@ -28723,136 +17185,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UdfInfo\\": {\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"udf_to_lower\\",\\n \\"ComputeEngineType\\": \\"HADOOP\\",\\n \\"Directory\\": \\"/\\",\\n \\"ClassName\\": \\"com.lydaas.dataphin.UdfTest\\",\\n \\"Category\\": 10,\\n \\"CommandHelp\\": \\"udf_to_lower(char x)\\",\\n \\"Description\\": \\"test\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Creator\\": \\"30012110\\",\\n \\"LastModifier\\": \\"30012110\\"\\n }\\n}","type":"json"}]', - 'title' => '查询自定义函数指定版本详情', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WhiteLists\\": [\\n {\\n \\"Description\\": \\"测试\\",\\n \\"Ip\\": \\"10.1.0.2\\",\\n \\"Port\\": \\"5432\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取项目白名单', + 'changeSet' => [], + 'ramActions' => [], ], - 'UpdateUdf' => [ - 'summary' => '编辑自定义函数。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualityAlertOfAllRuleScopeByWatchId' => [ + 'summary' => '通过监控对象ID获取告警设置。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建命令', - 'description' => '创建命令', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1123', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], - 'RefResourceIdList' => [ - 'title' => '引用资源id', - 'description' => '引用资源id', - 'type' => 'array', - 'items' => [ - 'title' => '引用资源id', - 'description' => '引用资源id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10200121011', - ], - 'required' => true, - ], - 'ClassName' => [ - 'title' => '资源中实现函数的类名', - 'description' => '资源中实现函数的类名', - 'type' => 'string', - 'required' => true, - 'example' => 'com.lydaas.SleepTest', - ], - 'Category' => [ - 'title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'CommandHelp' => [ - 'title' => '函数调用的命令格式', - 'description' => '函数调用的命令格式', - 'type' => 'string', - 'required' => true, - 'example' => 'udf_sleep(100)', - ], - 'Comment' => [ - 'title' => '提交备注', - 'description' => '提交备注', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - ], - 'required' => true, - ], + 'name' => 'WatchId', + 'in' => 'query', + 'schema' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], ], ], 'responses' => [ @@ -28862,35 +17230,65 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityAlertInfo' => [ + 'title' => '告警设置详情', + 'description' => '告警设置详情', + 'type' => 'object', + 'properties' => [ + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'AlertUserChannelList' => [ + 'title' => '用户告警渠道', + 'description' => '用户告警渠道', + 'type' => 'array', + 'items' => ['title' => '用户告警渠道', 'description' => '用户告警渠道', 'type' => 'string', 'example' => 'test'], + ], + 'AlertUserList' => [ + 'title' => '用户告警列表', + 'description' => '用户告警列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => '30012011'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'AlertDutyList' => [ + 'title' => '值班表告警列表', + 'description' => '值班表告警列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '报警值班表ID', 'description' => '报警值班表ID', 'type' => 'string', 'example' => '1'], + 'Name' => ['title' => '报警值班表名称', 'description' => '报警值班表名称', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'AlertDutyChannelList' => [ + 'title' => '值班表告警渠道', + 'description' => '值班表告警渠道', + 'type' => 'array', + 'items' => ['title' => '值班表告警渠道', 'description' => '值班表告警渠道', 'type' => 'string', 'example' => 'test'], + ], + 'EnableAlertQualityOwner' => ['title' => '开启质量负责人告警', 'description' => '开启质量负责人告警', 'type' => 'boolean'], + 'AlertQualityOwnerChannelList' => [ + 'title' => '质量负责人告警渠道', + 'description' => '质量负责人告警渠道', + 'type' => 'array', + 'items' => ['title' => '质量负责人告警渠道', 'description' => '质量负责人告警渠道', 'type' => 'string', 'example' => 'test'], + ], + ], ], ], ], @@ -28898,92 +17296,45 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityAlertInfo\\": {\\n \\"WatchId\\": 1,\\n \\"AlertUserChannelList\\": [\\n \\"test\\"\\n ],\\n \\"AlertUserList\\": [\\n {\\n \\"Id\\": \\"30012011\\",\\n \\"Name\\": \\"test\\"\\n }\\n ],\\n \\"AlertDutyList\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"test\\"\\n }\\n ],\\n \\"AlertDutyChannelList\\": [\\n \\"test\\"\\n ],\\n \\"EnableAlertQualityOwner\\": true,\\n \\"AlertQualityOwnerChannelList\\": [\\n \\"test\\"\\n ]\\n }\\n}","type":"json"}]', + 'title' => '通过监控对象ID获取告警设置', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '编辑自定义函数', + 'ramActions' => [], ], - 'DeleteUdf' => [ - 'summary' => '删除自定义函数。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualityRule' => [ + 'summary' => '获取质量规则对象。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1030111021', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '自定义函数Id', - 'description' => '自定义函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10300010201', - ], - ], - [ - 'name' => 'Comment', - 'in' => 'query', - 'schema' => [ - 'title' => '备注', - 'description' => '备注', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], + 'schema' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], ], ], 'responses' => [ @@ -28993,35 +17344,207 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityRuleInfo' => [ + 'title' => '质量规则详情', + 'description' => '质量规则详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '质量规则Id', 'description' => '质量规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '质量规则名称', 'description' => '质量规则名称', 'type' => 'string', 'example' => 'test'], + 'Status' => ['title' => '质量规则状态: ENABLE,DISABLE', 'description' => '质量规则状态: ENABLE,DISABLE', 'type' => 'string', 'example' => 'ENABLE'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Strength' => ['title' => '规则强弱: STRONG、WEAK', 'description' => '规则强弱: STRONG、WEAK', 'type' => 'string', 'example' => 'STRONG'], + 'CatalogList' => [ + 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'type' => 'array', + 'items' => ['title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'example' => 'CONSISTENT'], + ], + 'TemplateType' => ['title' => '模板类型', 'description' => '模板类型:'."\n" + .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" + .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" + .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" + .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" + .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" + .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" + .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" + .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" + .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" + .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" + .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" + .' - CODE_TABLE_COMPARE 码表参照对比'."\n" + .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" + .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" + .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" + .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" + .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" + .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" + .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" + .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" + .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" + .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" + .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" + .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" + .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" + .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', 'type' => 'string', 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'TemplateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '1'], + 'TemplateScope' => ['title' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', 'description' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', 'type' => 'string', 'example' => 'CUSTOM'], + 'WatchId' => ['title' => '所属监控ID', 'description' => '所属监控ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'EnableErrorArchive' => ['title' => '是否启动异常归档', 'description' => '是否启动异常归档', 'type' => 'boolean'], + 'ValidateConditionList' => [ + 'title' => '校验条件列表', + 'description' => '校验条件列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '条件节点id', 'description' => '条件节点id', 'type' => 'string', 'example' => '268'], + 'Type' => ['title' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'type' => 'string', 'example' => 'RELATION'], + 'Operator' => ['title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'type' => 'string', 'example' => 'AND'], + 'OperatorName' => ['title' => '操作符名称', 'description' => '操作符名称', 'type' => 'string', 'example' => '且'], + 'Metric' => ['title' => '指标', 'description' => '指标', 'type' => 'string', 'example' => 'test'], + 'MetricName' => ['title' => '指标名称', 'description' => '指标名称', 'type' => 'string', 'example' => 'test'], + 'Value' => ['title' => '值', 'description' => '值', 'type' => 'string', 'example' => '1'], + 'ParentId' => ['title' => '条件父节点Id', 'description' => '条件父节点Id', 'type' => 'string', 'example' => '123'], + ], + ], + ], + 'TestRunRuleTaskId' => ['title' => '最近一次试跑任务ID', 'description' => '最近一次试跑任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'TestRunRuleTaskStatus' => ['title' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', 'description' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', 'type' => 'string', 'example' => 'SUCCESS'], + 'TestRunRuleValidateResult' => ['title' => '试跑校验是否通过', 'description' => '试跑校验是否通过', 'type' => 'boolean'], + 'ScheduleBindList' => [ + 'title' => '规则绑定的调度列表', + 'description' => '规则绑定的调度列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ScheduleId' => ['title' => '调度Id', 'description' => '调度Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ScheduleName' => ['title' => '调度名称', 'description' => '调度名称', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'FormPropertyList' => [ + 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', + 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'abc'], + ], + ], + ], + 'ValidateObject' => [ + 'title' => '校验对象', + 'description' => '校验对象', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', 'description' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', 'type' => 'string', 'example' => 'TABLE'], + 'Name' => ['title' => '校验对象名称', 'description' => '校验对象名称', 'type' => 'string', 'example' => 'test'], + ], + ], + 'AttributeWithValueList' => [ + 'title' => '规则业务属性配置', + 'description' => '规则业务属性配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'AttributeInfo' => [ + 'title' => '属性详情', + 'description' => '属性详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '612415804007'], + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'attr01'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Enabled' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean'], + 'Searchable' => ['title' => '是否可搜索', 'description' => '是否可搜索', 'type' => 'boolean'], + 'ValueConfig' => [ + 'title' => '属性值配置详情', + 'description' => '属性值配置详情', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'type' => 'string', 'example' => 'STRING'], + 'Length' => ['title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'type' => 'integer', 'format' => 'int32', 'example' => '6921666'], + 'ValueEnumList' => [ + 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'type' => 'string', 'example' => 'test'], + ], + 'DefaultValue' => [ + 'title' => '属性默认值', + 'description' => '属性默认值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'example' => 'abc'], + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], + 'AttributeValue' => [ + 'title' => '属性值', + 'description' => '属性值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'example' => 'abc'], + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + ], + ], + ], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + 'ModifierName' => ['title' => '最近修改用户名称', 'description' => '最近修改用户名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + ], ], ], ], @@ -29029,149 +17552,45 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityRuleInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"Description\\": \\"test\\",\\n \\"Strength\\": \\"STRONG\\",\\n \\"CatalogList\\": [\\n \\"CONSISTENT\\"\\n ],\\n \\"TemplateType\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TemplateId\\": 1,\\n \\"TemplateName\\": \\"1\\",\\n \\"TemplateScope\\": \\"CUSTOM\\",\\n \\"WatchId\\": 1,\\n \\"EnableErrorArchive\\": true,\\n \\"ValidateConditionList\\": [\\n {\\n \\"Id\\": \\"268\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"OperatorName\\": \\"且\\",\\n \\"Metric\\": \\"test\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\",\\n \\"ParentId\\": \\"123\\"\\n }\\n ],\\n \\"TestRunRuleTaskId\\": 22,\\n \\"TestRunRuleTaskStatus\\": \\"SUCCESS\\",\\n \\"TestRunRuleValidateResult\\": true,\\n \\"ScheduleBindList\\": [\\n {\\n \\"ScheduleId\\": 1,\\n \\"ScheduleName\\": \\"test\\"\\n }\\n ],\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"ValidateObject\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Name\\": \\"test\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"AttributeInfo\\": {\\n \\"Id\\": 612415804007,\\n \\"Name\\": \\"attr01\\",\\n \\"Description\\": \\"test\\",\\n \\"Enabled\\": true,\\n \\"Required\\": true,\\n \\"Searchable\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 6921666,\\n \\"ValueEnumList\\": [\\n \\"test\\"\\n ],\\n \\"DefaultValue\\": {\\n \\"ValueList\\": [\\n \\"abc\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n },\\n \\"AttributeValue\\": {\\n \\"ValueList\\": [\\n \\"abc\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', + 'title' => '获取质量规则对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除自定义函数', + 'ramActions' => [], ], - 'CreateUdf' => [ - 'summary' => '创建自定义函数。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualityRuleTask' => [ + 'summary' => '获取质量任务对象详情。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建命令', - 'description' => '创建命令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => 'udf_sleep', - 'description' => '函数名', - 'type' => 'string', - 'required' => true, - 'example' => 'my_udf', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '711833', - ], - 'ComputeEngineType' => [ - 'title' => '计算引擎类型: MAX_COMPUTE、HADOOP', - 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE', - ], - 'Directory' => [ - 'title' => '存放目录, 默认:/', - 'description' => '存放目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - 'RefResourceIdList' => [ - 'title' => '引用资源id', - 'description' => '引用资源id', - 'type' => 'array', - 'items' => [ - 'title' => '引用资源id', - 'description' => '引用资源id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10200121011', - ], - 'required' => true, - ], - 'ClassName' => [ - 'title' => '资源中实现函数的类名', - 'description' => '资源中实现函数的类名', - 'type' => 'string', - 'required' => true, - 'example' => 'com.lydaas.SleepTest', - ], - 'Category' => [ - 'title' => 'UDF的分类标识: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'description' => 'UDF的分类标识: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - 'CommandHelp' => [ - 'title' => '函数调用的命令格式', - 'description' => '函数调用的命令格式', - 'type' => 'string', - 'required' => true, - 'example' => 'udf_sleep(100)', - ], - 'Comment' => [ - 'title' => '提交备注', - 'description' => '提交备注', - 'type' => 'string', - 'required' => true, - 'example' => '测试', - ], - ], - 'required' => true, - ], + 'name' => 'RuleTaskId', + 'in' => 'query', + 'schema' => ['title' => '规则任务ID', 'description' => '规则任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], ], ], 'responses' => [ @@ -29181,42 +17600,35 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '函数Id', - 'description' => '函数Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10212101', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'RuleTaskInfo' => [ + 'title' => '规则任务详情', + 'description' => '规则任务详情', + 'type' => 'object', + 'properties' => [ + 'WatchId' => ['title' => '所属监控ID', 'description' => '所属监控ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'WatchTaskId' => ['title' => '监控任务ID,试跑的规则任务这个ID为空', 'description' => '监控任务ID,试跑的规则任务这个ID为空', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Id' => ['title' => '规则任务ID', 'description' => '规则任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RuleId' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'string', 'example' => 'running'], + 'StartTime' => ['title' => '起始时间', 'description' => '起始时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '截止时间', 'description' => '截止时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ValidatePartition' => ['title' => '校验分区', 'description' => '校验分区', 'type' => 'string', 'example' => '20251011'], + 'ValidateObjectType' => ['title' => '校验对象类型', 'description' => '校验对象类型', 'type' => 'string', 'example' => 'column'], + 'ValidateObjectName' => ['title' => '校验对象名称', 'description' => '校验对象名称', 'type' => 'string', 'example' => 'test'], + 'ValidateSuccess' => ['title' => '是否校验通过', 'description' => '是否校验通过', 'type' => 'boolean'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'BizDateFormat' => ['title' => '业务日期格式', 'description' => '业务日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + ], ], ], ], @@ -29224,32 +17636,27 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"RuleTaskInfo\\": {\\n \\"WatchId\\": 1,\\n \\"WatchTaskId\\": 1,\\n \\"Id\\": 1,\\n \\"RuleId\\": 11,\\n \\"TemplateId\\": 11,\\n \\"Status\\": \\"running\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ValidatePartition\\": \\"20251011\\",\\n \\"ValidateObjectType\\": \\"column\\",\\n \\"ValidateObjectName\\": \\"test\\",\\n \\"ValidateSuccess\\": true,\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', + 'title' => '获取质量任务对象详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 10212101\\n}","type":"json"}]', - 'title' => '创建自定义函数', + 'ramActions' => [], ], - 'ListSubmitRecords' => [ - 'summary' => '分页获取待发布记录列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualityRuleTaskLog' => [ + 'summary' => '获取质量任务对象日志内容。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -29257,349 +17664,59 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '查询指令', - 'description' => '查询指令', - 'type' => 'object', - 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - 'SearchFilter' => [ - 'title' => '待发布记录过滤器', - 'description' => '待发布记录过滤器', - 'type' => 'object', - 'properties' => [ - 'ProjectIdList' => [ - 'title' => '项目id列表', - 'description' => '项目ID', - 'type' => 'array', - 'items' => [ - 'title' => '项目id', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '121321313519086', - ], - 'required' => true, - ], - 'SubmitterList' => [ - 'title' => '提交人id列表', - 'description' => '提交人', - 'type' => 'array', - 'items' => [ - 'title' => '提交人id', - 'description' => '提交人', - 'type' => 'string', - 'required' => true, - 'example' => '3434222', - ], - 'required' => false, - ], - 'ChangeTypeList' => [ - 'title' => '变更类型列表(0:新增/1:更新/2:删除', - 'description' => '变更类型列表(0:新增/1:更新/2:删除', - 'type' => 'array', - 'items' => [ - 'title' => '变更类型', - 'description' => '变更类型', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], - 'required' => false, - ], - 'SubmitStartTime' => [ - 'title' => '提交开始时间 yyyy-MM-dd HH:mm:ss', - 'description' => '提交开始时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => false, - 'example' => '2024-10-10 10:00:00', - ], - 'SubmitEndTime' => [ - 'title' => '提交结束时间 yyyy-MM-dd HH:mm:ss', - 'description' => '提交结束时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => false, - 'example' => '2024-10-10 10:00:00', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页条数', - 'description' => '分页条数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], - ], - 'required' => true, - ], - ], - 'required' => true, - ], + 'name' => 'RuleTaskId', + 'in' => 'query', + 'schema' => ['title' => '规则任务ID', 'description' => '规则任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ListResult' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总数', - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'Data' => [ - 'title' => '待发布记录列表查询结果', - 'description' => '待发布记录列表查询结果', - 'type' => 'array', - 'items' => [ - 'title' => '待发布记录', - 'description' => '待发布记录', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '待发布记录id(非对象ID,在发布列表中全局唯一', - 'description' => '待发布记录id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1241844456', - ], - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'string', - 'example' => '1241844456', - ], - 'Submitter' => [ - 'title' => '提交人id', - 'description' => '提交人id', - 'type' => 'string', - 'example' => '307999999', - ], - 'SubmitterName' => [ - 'title' => '提交人名称', - 'description' => '提交人名称', - 'type' => 'string', - 'example' => '张三', - ], - 'GmtCreate' => [ - 'title' => '创建时间 yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModify' => [ - 'title' => '修改时间 yyyy-MM-dd HH:mm:ss', - 'description' => '修改时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'ChangeType' => [ - 'title' => '变更类型 0:新增/1:更新/2:删除', - 'description' => '变更类型 0:新增/1:更新/2:删除', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ObjectType' => [ - 'title' => '对象类型', - 'description' => '对象类型'."\n" - .'- MAXCOUPUTE_SQL任务:MAX_COMPUTE_SQL'."\n" - .'- MAXCOUPUTE_MR任务:MAX_COMPUTE_MR'."\n" - .'- SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- SHELL任务:SHELL'."\n" - .'- PYTHON任务:PYTHON'."\n" - .'- Perl脚本:PERL'."\n" - .'- CHECK:CHECK'."\n" - .'- 同步任务:DATA_X'."\n" - .'- 虚拟节点:VIRTUAL'."\n" - .'- 资源:IDE_RESOURCE'."\n" - .'- 函数:UDF'."\n" - .'- HIVE_SQL任务:HIVE_SQL'."\n" - .'- HADOOP_MR任务:HADOOP_MR'."\n" - .'- SPARK_JAR_ON_HIVE任务:SPARK_JAR_ON_HIVE'."\n" - .'- FLINK_SQL任务:FLINK_SQL'."\n" - .'- FLINK_SQL模板任务:FLINK_TEMPLATE_SQL'."\n" - .'- 流计算模板:STREAM_TEMPLATE'."\n" - .'- 元表:META_TABLE'."\n" - .'- 流计算函数:STREAM_UDF'."\n" - .'- 实时FLINK_DATASTREAM:FLINK_DATASTREAM'."\n" - .'- 实时自定义数据源:STREAM_CUSTOM_DATASOURCE'."\n" - .'- ADB_FOR_PG任务:ADB_FOR_PG'."\n" - .'- TDH_SQL任务:INCEPTOR_SQL'."\n" - .'- 镜像表:MIRROR_TABLE'."\n" - .'- 中间表:MIDDLE_TABLE'."\n" - .'- 应用表:APPLICATION_TABLE'."\n" - .'- IMPALA_SQL任务:IMPALA_SQL'."\n" - .'- 管道任务:OFFLINE_PIPELINE'."\n" - .'- 实时管道任务:REAL_TIME_PIPELINE'."\n" - .'- 维度逻辑表:DIM_LOGICAL_TABLE'."\n" - .'- 事实逻辑表:FCT_LOGICAL_TABLE'."\n" - .'- 业务限定:BIZ_CONDITION'."\n" - .'- 原子指标:ATOM_INDEX'."\n" - .'- 派生指标:DERIVED_INDEX'."\n" - .'- 衍生指标:CALC_DERIVED_INDEX'."\n" - .'- PAI任务:PAI_DESIGNER'."\n" - .'- ARGODB_SQL任务:ARGODB_SQL'."\n" - .'- HOLOGRES_SQL任务:HOLOGRES_SQL'."\n" - .'- IMPALA_SQL任务:IMPALA_SQL'."\n" - .'- STARROCKS_SQL任务:STARROCKS_SQL'."\n" - .'- 数据库SQL任务:DATABASE_SQL'."\n" - .'- SPARK_SQL任务:SPARK_SQL'."\n" - .'- 计算模板:TASK_TEMPLATE'."\n" - .'- 外部触发节点:EXTERNAL_TRIGGER'."\n" - .'- GAUSS_SQL任务:GAUSS_SQL', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'ObjectName' => [ - 'title' => '对象名称', - 'description' => '对象名称', - 'type' => 'string', - 'example' => '对象A', - ], - 'ObjectId' => [ - 'title' => '对象id', - 'description' => '对象id', - 'type' => 'string', - 'example' => '1234567', - ], - 'NodeId' => [ - 'title' => '节点id', - 'description' => '节点id', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'ObjectVersion' => [ - 'title' => '对象版本', - 'description' => '对象版本', - 'type' => 'string', - 'example' => '1', - ], - 'SubmitComment' => [ - 'title' => '提交信息', - 'description' => '提交信息', - 'type' => 'string', - 'example' => '提交信息', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '日志内容', 'description' => '日志内容', 'type' => 'string', 'example' => 'test'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"test\\"\\n}","type":"json"}]', + 'title' => '获取质量任务对象日志内容', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"ProjectId\\": \\"1241844456\\",\\n \\"Submitter\\": \\"307999999\\",\\n \\"SubmitterName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModify\\": \\"2024-10-10 10:00:00\\",\\n \\"ChangeType\\": 0,\\n \\"ObjectType\\": \\"2024-10-10 10:00:00\\",\\n \\"ObjectName\\": \\"对象A\\",\\n \\"ObjectId\\": \\"1234567\\",\\n \\"NodeId\\": \\"n_123456\\",\\n \\"ObjectVersion\\": \\"1\\",\\n \\"SubmitComment\\": \\"提交信息\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询待发布记录', + 'ramActions' => [], ], - 'GetLatestSubmitDetail' => [ - 'summary' => '获取最新的待发布记录详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualitySchedule' => [ + 'summary' => '获取质量调度对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -29607,198 +17724,64 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SubmitDetailQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '待发布查询请求', - 'description' => '待发布查询请求', - 'type' => 'object', - 'properties' => [ - 'ObjectId' => [ - 'title' => '对象id', - 'description' => '对象id', - 'type' => 'string', - 'required' => true, - 'example' => '12345', - ], - 'ObjectType' => [ - 'title' => '对象类型', - 'description' => '对象类型', - 'type' => 'string', - 'required' => true, - 'example' => 'MAX_COMPUTE_SQL', - ], - ], - 'required' => true, - ], + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '调度对象Id', 'description' => '调度对象Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'SubmitDetailResult' => [ - 'title' => '待发布详情', - 'description' => '待发布详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityScheduleInfo' => [ + 'title' => '调度对象详情', + 'description' => '调度对象详情', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '提交记录id', - 'description' => '提交记录id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'SubmitStatus' => [ - 'title' => '待发布记录状态 待发布:TO_BE_PUBLISHED/已发布:PUBLISHED/发布中:PUBLISHING', - 'description' => '待发布记录状态 '."\n" - ."\n" - .'- 待发布:TO_BE_PUBLISHED'."\n" - ."\n" - .'- 已发布:PUBLISHED'."\n" - ."\n" - .'- 发布中:PUBLISHING', - 'type' => 'string', - 'example' => 'TO_BE_PUBLISHED', - ], - 'PublishStatus' => [ - 'title' => '发布记录状态 未校验:NOT_VERIFIED/审批中:APPROVING/审批失败:APPROVE_FAILED/审批成功:APPROVE_SUCCESS/审批撤回:APPROVE_REVOKED/发布校验中:CHECKING/发布校验失败:CHECK_FAILED/发布校验成功:CHECK_SUCCESS/发布中:PUBLISHING/发布失败:FAILED/发布成功:SUCCESS', - 'description' => '发布记录状态 '."\n" - .'- 未校验:NOT_VERIFIED'."\n" - .'- 审批中:APPROVING'."\n" - .'- 审批失败:APPROVE_FAILED'."\n" - .'- 审批成功:APPROVE_SUCCESS'."\n" - .'- 审批撤回:APPROVE_REVOKED'."\n" - .'- 发布校验中:CHECKING'."\n" - .'- 发布校验失败:CHECK_FAILED'."\n" - .'- 发布校验成功:CHECK_SUCCESS'."\n" - .'- 发布中:PUBLISHING'."\n" - .'- 发布失败:FAILED'."\n" - .'- 发布成功:SUCCESS', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'Tag' => [ - 'title' => '记录Tag', - 'description' => '记录Tag', - 'type' => 'string', - 'example' => 'tag', + 'WatchId' => ['title' => '监控对象Id', 'description' => '监控对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Id' => ['title' => '调度对象Id', 'description' => '调度对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '调度对象名称', 'description' => '调度对象名称', 'type' => 'string', 'example' => 'test'], + 'IsRefByRule' => ['title' => '是否被规则引用', 'description' => '是否被规则引用', 'type' => 'boolean'], + 'Type' => ['title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'type' => 'string', 'example' => 'PERIOD_SCHEDULE'], + 'PartitionType' => ['title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'type' => 'string', 'example' => 'CUSTOM'], + 'PartitionExpression' => ['title' => '分区表达式-自定义表达式', 'description' => '分区表达式-自定义表达式', 'type' => 'string', 'example' => 'ds=${yyyyMMdd}'], + 'TriggerType' => ['title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'type' => 'string', 'example' => 'STATIC_TASK_TRIGGER'], + 'TriggerNodeList' => [ + 'title' => '触发调度-触发任务清单', + 'description' => '触发调度-触发任务清单', + 'type' => 'array', + 'items' => ['title' => '触发调度-触发任务清单', 'description' => '触发调度-触发任务清单', 'type' => 'string', 'example' => 'n_1121'], ], - 'ReleaseObject' => [ - 'title' => '待发布记录对象', - 'description' => '待发布记录对象', - 'type' => 'object', - 'properties' => [ - 'ObjectVersion' => [ - 'title' => '对象版本', - 'description' => '对象版本', - 'type' => 'string', - 'example' => '1', - ], - 'ChangeType' => [ - 'title' => '变更类型列表(新增:CREATE/更新:UPDATE/删除:DELETE', - 'description' => '变更类型列表(新增:CREATE/更新:UPDATE/删除:DELETE', - 'type' => 'string', - 'example' => 'DELETE', - ], - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'NodeId' => [ - 'title' => '节点id', - 'description' => '节点id', - 'type' => 'string', - 'example' => 'n_1234', - ], - 'SubmitComment' => [ - 'title' => '提交说明', - 'description' => '提交说明', - 'type' => 'string', - 'example' => '提交说明', - ], - 'SubmitObject' => [ - 'title' => '发布对象', - 'description' => '发布对象', - 'type' => 'object', - 'properties' => [ - 'ObjectId' => [ - 'title' => '对象id', - 'description' => '对象id', - 'type' => 'string', - 'example' => '1234', - ], - 'ObjectType' => [ - 'title' => '对象类型', - 'description' => '对象类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE_SQL', - ], - 'ObjectName' => [ - 'title' => '对象名称', - 'description' => '对象名称', - 'type' => 'string', - 'example' => 'abc', - ], - ], - ], - ], + 'StaticTaskTriggerType' => ['title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'type' => 'string', 'example' => 'ONE_TASKS_FINISHED'], + 'PeriodScheduleIntervalType' => ['title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'type' => 'string', 'example' => 'DAILY'], + 'PeriodScheduleParamList' => [ + 'title' => '定时调度-调度周期值', + 'description' => '定时调度-调度周期值', + 'type' => 'array', + 'items' => ['title' => '定时调度-调度周期值', 'description' => '定时调度-调度周期值', 'type' => 'string', 'example' => 'DAILY'], ], + 'CronExpression' => ['title' => '定时调度-cron表达式', 'description' => '定时调度-cron表达式', 'type' => 'string', 'example' => '* * 1/* * * *'], + 'ValidatePartitionType' => ['title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'type' => 'string', 'example' => 'TASK_REFERRED_PARTITION'], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012011'], + 'Modifier' => ['title' => '最近修改人ID', 'description' => '最近修改人ID', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], ], ], ], @@ -29807,159 +17790,201 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityScheduleInfo\\": {\\n \\"WatchId\\": 22,\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"IsRefByRule\\": true,\\n \\"Type\\": \\"PERIOD_SCHEDULE\\",\\n \\"PartitionType\\": \\"CUSTOM\\",\\n \\"PartitionExpression\\": \\"ds=${yyyyMMdd}\\",\\n \\"TriggerType\\": \\"STATIC_TASK_TRIGGER\\",\\n \\"TriggerNodeList\\": [\\n \\"n_1121\\"\\n ],\\n \\"StaticTaskTriggerType\\": \\"ONE_TASKS_FINISHED\\",\\n \\"PeriodScheduleIntervalType\\": \\"DAILY\\",\\n \\"PeriodScheduleParamList\\": [\\n \\"DAILY\\"\\n ],\\n \\"CronExpression\\": \\"* * 1/* * * *\\",\\n \\"ValidatePartitionType\\": \\"TASK_REFERRED_PARTITION\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', + 'title' => '获取质量调度对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitDetailResult\\": {\\n \\"Id\\": 1234,\\n \\"SubmitStatus\\": \\"TO_BE_PUBLISHED\\",\\n \\"PublishStatus\\": \\"SUCCESS\\",\\n \\"Tag\\": \\"tag\\",\\n \\"ReleaseObject\\": {\\n \\"ObjectVersion\\": \\"1\\",\\n \\"ChangeType\\": \\"DELETE\\",\\n \\"ProjectId\\": 1234,\\n \\"NodeId\\": \\"n_1234\\",\\n \\"SubmitComment\\": \\"提交说明\\",\\n \\"SubmitObject\\": {\\n \\"ObjectId\\": \\"1234\\",\\n \\"ObjectType\\": \\"MAX_COMPUTE_SQL\\",\\n \\"ObjectName\\": \\"abc\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取最近一条提交详情', + 'ramActions' => [], ], - 'PublishObjectList' => [ - 'summary' => '批量发布对象。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualitySchedulesByWatchId' => [ + 'summary' => '通过监控对象ID获取调度设置列表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'PublishCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'WatchId', + 'in' => 'query', + 'schema' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '发布指令', - 'description' => '发布指令', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234567', - ], - 'SubmitIdList' => [ - 'title' => '要发布的待发布项,待发布记录ID列表(submitIds个数限制50)', - 'description' => '要发布的待发布项,待发布记录ID列表(submitIds个数限制50)', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityScheduleList' => [ + 'title' => '调度对象列表', + 'description' => '调度对象列表', 'type' => 'array', 'items' => [ - 'title' => '待发布记录id', - 'description' => '待发布记录id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12345', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'WatchId' => ['title' => '监控对象Id', 'description' => '监控对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Id' => ['title' => '调度对象Id', 'description' => '调度对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '调度对象名称', 'description' => '调度对象名称', 'type' => 'string', 'example' => 'test'], + 'IsRefByRule' => ['title' => '是否被规则引用', 'description' => '是否被规则引用', 'type' => 'boolean'], + 'Type' => ['title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'type' => 'string', 'example' => 'PERIOD_SCHEDULE'], + 'PartitionType' => ['title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'type' => 'string', 'example' => 'CUSTOM'], + 'PartitionExpression' => ['title' => '分区表达式-自定义表达式', 'description' => '分区表达式-自定义表达式', 'type' => 'string', 'example' => 'ds=${yyyyMMdd}'], + 'TriggerType' => ['title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'type' => 'string', 'example' => 'STATIC_TASK_TRIGGER'], + 'TriggerNodeList' => [ + 'title' => '触发调度-触发任务清单', + 'description' => '触发调度-触发任务清单', + 'type' => 'array', + 'items' => ['title' => '触发调度-触发任务清单', 'description' => '触发调度-触发任务清单', 'type' => 'string', 'example' => 'n_1121'], + ], + 'StaticTaskTriggerType' => ['title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'type' => 'string', 'example' => 'ONE_TASKS_FINISHED'], + 'PeriodScheduleIntervalType' => ['title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'type' => 'string', 'example' => 'DAILY'], + 'PeriodScheduleParamList' => [ + 'title' => '定时调度-调度周期值', + 'description' => '定时调度-调度周期值', + 'type' => 'array', + 'items' => ['title' => '定时调度-调度周期值', 'description' => '定时调度-调度周期值', 'type' => 'string', 'example' => 'DAILY'], + ], + 'CronExpression' => ['title' => '定时调度-cron表达式', 'description' => '定时调度-cron表达式', 'type' => 'string', 'example' => '* * 1/* * * *'], + 'ValidatePartitionType' => ['title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'type' => 'string', 'example' => 'TASK_REFERRED_PARTITION'], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012011'], + 'Modifier' => ['title' => '最近修改人ID', 'description' => '最近修改人ID', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + ], ], - 'required' => true, - ], - 'Comment' => [ - 'title' => '发布信息(字符串长度限制1024)', - 'description' => '发布信息(字符串长度限制1024)', - 'type' => 'string', - 'required' => true, - 'example' => '发布', ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityScheduleList\\": [\\n {\\n \\"WatchId\\": 22,\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"IsRefByRule\\": true,\\n \\"Type\\": \\"PERIOD_SCHEDULE\\",\\n \\"PartitionType\\": \\"CUSTOM\\",\\n \\"PartitionExpression\\": \\"ds=${yyyyMMdd}\\",\\n \\"TriggerType\\": \\"STATIC_TASK_TRIGGER\\",\\n \\"TriggerNodeList\\": [\\n \\"n_1121\\"\\n ],\\n \\"StaticTaskTriggerType\\": \\"ONE_TASKS_FINISHED\\",\\n \\"PeriodScheduleIntervalType\\": \\"DAILY\\",\\n \\"PeriodScheduleParamList\\": [\\n \\"DAILY\\"\\n ],\\n \\"CronExpression\\": \\"* * 1/* * * *\\",\\n \\"ValidatePartitionType\\": \\"TASK_REFERRED_PARTITION\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '通过监控对象ID获取调度设置列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetQualityTemplate' => [ + 'summary' => '获取质量模板对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PublishResult' => [ - 'title' => '发布结果', - 'description' => '发布结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityTemplateInfo' => [ + 'title' => '模板对象详情', + 'description' => '模板对象详情', 'type' => 'object', 'properties' => [ - 'SubmitIdList' => [ - 'title' => '待发布记录id列表', - 'description' => '待发布记录id列表', + 'Id' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'type' => 'string', 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'TypeName' => ['title' => '模板类型展示名', 'description' => '模板类型展示名', 'type' => 'string', 'example' => '字段空值校验'], + 'Description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '归属人用户ID', 'description' => '归属人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '归属人名称', 'description' => '归属人名称', 'type' => 'string', 'example' => 'test'], + 'Catalog' => ['title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'example' => 'CONSISTENT'], + 'CatalogName' => ['title' => '模板分类展示名', 'description' => '模板分类展示名', 'type' => 'string', 'example' => '一致性'], + 'SupportAllDataSourceType' => ['title' => '支持所有数据源类型', 'description' => '支持所有数据源类型', 'type' => 'boolean'], + 'SupportDataSourceTypeList' => [ + 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'type' => 'array', + 'items' => ['title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'type' => 'string', 'example' => 'MySQL'], + ], + 'IsSystemTemplate' => ['title' => '是否系统模板', 'description' => '是否系统模板', 'type' => 'boolean'], + 'FormPropertyList' => [ + 'title' => '规则配置键值对', + 'description' => '规则配置键值对', 'type' => 'array', 'items' => [ - 'title' => '待发布记录id', - 'description' => '待发布记录id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'abc'], + ], ], ], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改人ID', 'description' => '最近修改人ID', 'type' => 'string', 'example' => '30012011'], + 'ModifierName' => ['title' => '最近修改人名称', 'description' => '最近修改人名称', 'type' => 'string', 'example' => 'test'], ], ], ], @@ -29968,38 +17993,27 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityTemplateInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TypeName\\": \\"字段空值校验\\",\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Catalog\\": \\"CONSISTENT\\",\\n \\"CatalogName\\": \\"一致性\\",\\n \\"SupportAllDataSourceType\\": true,\\n \\"SupportDataSourceTypeList\\": [\\n \\"MySQL\\"\\n ],\\n \\"IsSystemTemplate\\": true,\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\"\\n }\\n}","type":"json"}]', + 'title' => '获取质量模板对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PublishResult\\": {\\n \\"SubmitIdList\\": [\\n 12345\\n ]\\n }\\n}","type":"json"}]', - 'title' => '批量发布对象', + 'ramActions' => [], ], - 'ListPublishRecords' => [ - 'summary' => '分页获取发布记录列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetQualityWatch' => [ + 'summary' => '获取质量监控对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -30007,297 +18021,115 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '监控Id', 'description' => '监控Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '查询指令', - 'description' => '查询指令', - 'type' => 'object', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - 'SearchFilter' => [ - 'title' => '发布记录过滤器', - 'description' => '发布记录过滤器', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityWatchInfo' => [ + 'title' => '监控对象详情', + 'description' => '监控对象详情', 'type' => 'object', 'properties' => [ - 'ProjectIdList' => [ - 'title' => '项目id列表', - 'description' => '项目id列表', - 'type' => 'array', - 'items' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234567890', - ], - 'required' => true, - ], - 'SubmitterList' => [ - 'title' => '提交人id列表', - 'description' => '提交人id列表', - 'type' => 'array', - 'items' => [ - 'title' => '提交人id', - 'description' => '提交人id', - 'type' => 'string', - 'required' => true, - 'example' => '30897000', - ], - 'required' => false, - ], - 'ChangeTypeList' => [ - 'title' => '变更类型列表(0:新增/1:更新/2:删除', - 'description' => '变更类型列表(0:新增/1:更新/2:删除', - 'type' => 'array', - 'items' => [ - 'title' => '变更类型', - 'description' => '变更类型', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', + 'Type' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'TABLE'], + 'Id' => ['title' => '监控Id', 'description' => '监控Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Name' => ['title' => '监控名称', 'description' => '监控名称', 'type' => 'string', 'example' => 'test'], + 'Status' => ['title' => '状态:ENABLE,DISABLE', 'description' => '状态:ENABLE,DISABLE', 'type' => 'string', 'example' => 'ENABLE'], + 'DataSourceInfo' => [ + 'title' => '数据源详情', + 'description' => '数据源详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'string', 'example' => '1'], + 'Name' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => '1'], + 'Type' => ['title' => '数据源类型: MAX_COMPUTE、HADOOP', 'description' => '数据源类型: MAX_COMPUTE、HADOOP', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Env' => ['title' => '环境标识:PROD、DEV', 'description' => '环境标识:PROD、DEV', 'type' => 'string', 'example' => 'DEV'], ], - 'required' => false, ], - 'PublishStatusList' => [ - 'title' => '发布状态列表(0:失败/1:成功/2:发布中', - 'description' => '发布状态列表(0:失败/1:成功/2:发布中', - 'type' => 'array', - 'items' => [ - 'title' => '发布状态', - 'description' => '发布状态', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', + 'TableInfo' => [ + 'title' => '监控表对象', + 'description' => '监控表对象', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'LOGIC_DIM_TABLE'], + 'Catalog' => ['title' => '表catalog', 'description' => '表catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '表Id', 'description' => '表Id', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '表名称', 'description' => '表名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Env' => ['title' => '环境标识:DEV、PROD', 'description' => '环境标识:DEV、PROD', 'type' => 'string', 'example' => 'DEV'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'DataSourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => '22'], + 'IsPartitionTable' => ['title' => '是否分区表', 'description' => '是否分区表', 'type' => 'boolean'], ], - 'required' => false, - ], - 'PublishStartTime' => [ - 'title' => '发布开始时间 yyyy-MM-dd HH:mm:ss', - 'description' => '发布开始时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => false, - 'example' => '2024-10-10 10:00:00', - ], - 'PublishEndTime' => [ - 'title' => '发布结束时间 yyyy-MM-dd HH:mm:ss', - 'description' => '发布结束时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => false, - 'example' => '2024-10-10 10:00:00', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页条数', - 'description' => '分页条数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', - ], - ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ListResult' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总数', - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', ], - 'Data' => [ - 'title' => '发布记录列表查询结果', - 'description' => '发布记录列表查询结果', - 'type' => 'array', - 'items' => [ - 'title' => '发布记录', - 'description' => '发布记录', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '发布记录id(非对象ID,在发布列表中全局唯一', - 'description' => '发布记录id(非对象ID,在发布列表中全局唯一', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1241844456', - ], - 'PublishName' => [ - 'title' => '发布名称', - 'description' => '发布名称', - 'type' => 'string', - 'example' => 'test_lc__20241118171502', - ], - 'ProjectId' => [ - 'title' => '项目id', - 'description' => '项目id', - 'type' => 'string', - 'example' => '1241844456', - ], - 'Publisher' => [ - 'title' => '发布人id', - 'description' => '发布人id', - 'type' => 'string', - 'example' => '307999999', - ], - 'PublisherName' => [ - 'title' => '发布人名称', - 'description' => '发布人名称', - 'type' => 'string', - 'example' => '张三', - ], - 'GmtCreate' => [ - 'title' => '创建时间 yyyy-MM-dd HH:mm:ss', - 'description' => '创建时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'GmtModify' => [ - 'title' => '修改时间 yyyy-MM-dd HH:mm:ss', - 'description' => '修改时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'ChangeType' => [ - 'title' => '变更类型 0:新增/1:更新/2:删除', - 'description' => '变更类型 0:新增/1:更新/2:删除', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ObjectType' => [ - 'title' => '对象类型', - 'description' => '对象类型', - 'type' => 'string', - 'example' => '2024-10-10 10:00:00', - ], - 'ObjectName' => [ - 'title' => '对象名称', - 'description' => '对象名称', - 'type' => 'string', - 'example' => '对象A', - ], - 'ObjectId' => [ - 'title' => '对象id', - 'description' => '对象id', - 'type' => 'string', - 'example' => '1234567', - ], - 'NodeId' => [ - 'title' => '节点id', - 'description' => '节点id', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'ObjectVersion' => [ - 'title' => '对象版本', - 'description' => '对象版本', - 'type' => 'string', - 'example' => '1', - ], - 'FinishTime' => [ - 'title' => '发布完成时间 yyyy-MM-dd HH:mm:ss', - 'description' => '发布完成时间 yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2024-10-10 10:10:10', - ], - 'ErrorMessage' => [ - 'title' => '发布错误信息', - 'description' => '发布错误信息', - 'type' => 'string', - 'example' => 'error', - ], - 'PublishStatus' => [ - 'title' => '发布状态 0:失败/1:成功/2:发布中', - 'description' => '发布状态 0:失败/1:成功/2:发布中', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], + 'IndexInfo' => [ + 'title' => '指标详情', + 'description' => '指标详情', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'Catalog' => ['title' => '指标catalog', 'description' => '指标catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '指标Id:', 'description' => '指标Id:', 'type' => 'string', 'example' => '11'], + 'Guid' => ['title' => '指标guid:', 'description' => '指标guid:', 'type' => 'string', 'example' => '1121'], + 'Name' => ['title' => '指标名:', 'description' => '指标名:', 'type' => 'string', 'example' => 'logic'], + 'DisplayName' => ['title' => '指标展示名:', 'description' => '指标展示名:', 'type' => 'string', 'example' => 'logic'], + 'GranularityId' => ['title' => '统计粒度id', 'description' => '统计粒度id', 'type' => 'integer', 'format' => 'int64', 'example' => '18755764'], + 'GranularityDisplayName' => ['title' => '统计粒度名称', 'description' => '统计粒度名称', 'type' => 'string', 'example' => '全站汇总表'], + 'ComputeType' => ['title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'type' => 'string', 'example' => 'AUTO'], + 'CellSumLogicTableName' => ['title' => '单元汇总表名', 'description' => '单元汇总表名', 'type' => 'string', 'example' => 'dws_all'], + 'Type' => ['title' => '指标类型:INDEX', 'description' => '指标类型:INDEX', 'type' => 'string', 'example' => 'INDEX'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'DateType' => ['title' => '指标数据类型', 'description' => '指标数据类型', 'type' => 'string', 'example' => 'bigint'], ], ], + 'QualityOwner' => ['title' => '质量负责人用户ID', 'description' => '质量负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'QualityOwnerName' => ['title' => '质量负责人显示名称', 'description' => '质量负责人显示名称', 'type' => 'string', 'example' => 'test'], + 'LatestWatchTaskId' => ['title' => '最近一次监控对象校验记录ID', 'description' => '最近一次监控对象校验记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LatestWatchTaskStatus' => ['title' => '最近一次监控对象校验记录状态', 'description' => '最近一次监控对象校验记录状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'RuleCount' => ['title' => '规则数', 'description' => '规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'EnabledRuleCount' => ['title' => '生效规则数', 'description' => '生效规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], ], ], ], @@ -30306,112 +18138,50 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityWatchInfo\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', + 'title' => '获取质量监控对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"PublishName\\": \\"test_lc__20241118171502\\",\\n \\"ProjectId\\": \\"1241844456\\",\\n \\"Publisher\\": \\"307999999\\",\\n \\"PublisherName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModify\\": \\"2024-10-10 10:00:00\\",\\n \\"ChangeType\\": 0,\\n \\"ObjectType\\": \\"2024-10-10 10:00:00\\",\\n \\"ObjectName\\": \\"对象A\\",\\n \\"ObjectId\\": \\"1234567\\",\\n \\"NodeId\\": \\"n_123456\\",\\n \\"ObjectVersion\\": \\"1\\",\\n \\"FinishTime\\": \\"2024-10-10 10:10:10\\",\\n \\"ErrorMessage\\": \\"error\\",\\n \\"PublishStatus\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询发布记录', + 'ramActions' => [], ], - 'UpdateStandardWordRoot' => [ - 'summary' => '更新数据标准词根。'."\n" + 'GetQualityWatchByObjectId' => [ + 'summary' => '通过监控对象原始ID获取监控对象记录,例如:数据源、表、指标等的ID。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'OldName' => [ - 'title' => '更新前词根名称', - 'description' => '更新前词根名称', - 'type' => 'string', - 'required' => true, - 'example' => '平均值', - ], - 'Name' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', - 'required' => true, - 'example' => '平均值', - ], - 'FullName' => [ - 'title' => '词根全称', - 'description' => '词根全称', - 'type' => 'string', - 'required' => true, - 'example' => 'average', - ], - 'Abbreviation' => [ - 'title' => '词根缩写', - 'description' => '词根缩写', - 'type' => 'string', - 'required' => true, - 'example' => 'avg', - ], - 'Description' => [ - 'title' => '词根描述', - 'description' => '词根描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'WatchType', + 'in' => 'query', + 'schema' => ['title' => '监控对象类型:TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型:TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + ], + [ + 'name' => 'WatchObjectId', + 'in' => 'query', + 'schema' => ['title' => '对象ID,例如表ID,数据源ID,指标ID等', 'description' => '对象ID,例如表ID,数据源ID,指标ID等', 'type' => 'string', 'required' => true, 'example' => 'cc'], ], ], 'responses' => [ @@ -30421,35 +18191,96 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'QualityWatchInfo' => [ + 'title' => '监控对象详情', + 'description' => '监控对象详情', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'TABLE'], + 'Id' => ['title' => '监控Id', 'description' => '监控Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Name' => ['title' => '监控名称', 'description' => '监控名称', 'type' => 'string', 'example' => 'test'], + 'Status' => ['title' => '状态:ENABLE,DISABLE', 'description' => '状态:ENABLE,DISABLE', 'type' => 'string', 'example' => 'ENABLE'], + 'DataSourceInfo' => [ + 'title' => '数据源详情', + 'description' => '数据源详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'string', 'example' => '1'], + 'Name' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => '1'], + 'Type' => ['title' => '数据源类型: MAX_COMPUTE、HADOOP', 'description' => '数据源类型: MAX_COMPUTE、HADOOP', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Env' => ['title' => '环境标识:PROD、DEV', 'description' => '环境标识:PROD、DEV', 'type' => 'string', 'example' => 'DEV'], + ], + ], + 'TableInfo' => [ + 'title' => '监控表对象', + 'description' => '监控表对象', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'LOGIC_DIM_TABLE'], + 'Catalog' => ['title' => '表catalog', 'description' => '表catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '表Id', 'description' => '表Id', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '表名称', 'description' => '表名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Env' => ['title' => '环境标识:DEV、PROD', 'description' => '环境标识:DEV、PROD', 'type' => 'string', 'example' => 'DEV'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'DataSourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => '22'], + 'IsPartitionTable' => ['title' => '是否分区表', 'description' => '是否分区表', 'type' => 'boolean'], + ], + ], + 'IndexInfo' => [ + 'title' => '指标详情', + 'description' => '指标详情', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'Catalog' => ['title' => '指标catalog', 'description' => '指标catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '指标Id:', 'description' => '指标Id:', 'type' => 'string', 'example' => '11'], + 'Guid' => ['title' => '指标guid:', 'description' => '指标guid:', 'type' => 'string', 'example' => '1121'], + 'Name' => ['title' => '指标名:', 'description' => '指标名:', 'type' => 'string', 'example' => 'logic'], + 'DisplayName' => ['title' => '指标展示名:', 'description' => '指标展示名:', 'type' => 'string', 'example' => 'logic'], + 'GranularityId' => ['title' => '统计粒度id', 'description' => '统计粒度id', 'type' => 'integer', 'format' => 'int64', 'example' => '18755764'], + 'GranularityDisplayName' => ['title' => '统计粒度名称', 'description' => '统计粒度名称', 'type' => 'string', 'example' => '全站汇总表'], + 'ComputeType' => ['title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'type' => 'string', 'example' => 'AUTO'], + 'CellSumLogicTableName' => ['title' => '单元汇总表名', 'description' => '单元汇总表名', 'type' => 'string', 'example' => 'dws_all'], + 'Type' => ['title' => '指标类型:INDEX', 'description' => '指标类型:INDEX', 'type' => 'string', 'example' => 'INDEX'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'DateType' => ['title' => '指标数据类型', 'description' => '指标数据类型', 'type' => 'string', 'example' => 'bigint'], + ], + ], + 'QualityOwner' => ['title' => '质量负责人用户ID', 'description' => '质量负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'QualityOwnerName' => ['title' => '质量负责人显示名称', 'description' => '质量负责人显示名称', 'type' => 'string', 'example' => 'test'], + 'LatestWatchTaskId' => ['title' => '最近一次监控对象校验记录ID', 'description' => '最近一次监控对象校验记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LatestWatchTaskStatus' => ['title' => '最近一次监控对象校验记录状态', 'description' => '最近一次监控对象校验记录状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'RuleCount' => ['title' => '规则数', 'description' => '规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'EnabledRuleCount' => ['title' => '生效规则数', 'description' => '生效规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + ], ], ], ], @@ -30457,515 +18288,124 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityWatchInfo\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', + 'title' => '通过监控对象原始ID获取监控对象记录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新数据标准词根', + 'ramActions' => [], ], - 'UpdateStandardTemplate' => [ - 'summary' => '更新数据标准模板。'."\n" + 'GetQualityWatchTask' => [ + 'summary' => '获取监控任务对象。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'WatchTaskId', + 'in' => 'query', + 'schema' => ['title' => '监控任务ID', 'description' => '监控任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号, 空或-1表示最新版本', - 'description' => '版本号, 空或-1表示最新版本', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准模板名称', - 'description' => '标准模板名称', - 'type' => 'string', - 'required' => true, - 'example' => '测试模板', - ], - 'Code' => [ - 'title' => '标准模板编码, 全局唯一;有引用时不可修改', - 'description' => '标准模板编码, 全局唯一;有引用时不可修改', - 'type' => 'string', - 'required' => true, - 'example' => 'test01', - ], - 'Description' => [ - 'title' => '标准模板描述', - 'description' => '标准模板描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'MaintainerList' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'array', - 'items' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'AttributesConfig' => [ - 'title' => '属性配置', - 'description' => '属性配置', - 'type' => 'object', - 'properties' => [ - 'AttributeList' => [ - 'title' => '属性列表', - 'description' => '属性列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'attr1', - ], - 'Code' => [ - 'title' => '属性编码', - 'description' => '属性编码,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'test_attr', - ], - 'Type' => [ - 'title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'BIZ_ATTRIBUTE', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填,引用公共属性时非必填', - 'type' => 'boolean', - 'required' => false, - ], - 'ValueConfig' => [ - 'title' => '取值配置', - 'description' => '取值配置,引用公共属性时非必填', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ValueRange' => [ - 'title' => '取值范围', - 'description' => '取值范围', - 'type' => 'object', - 'properties' => [ - 'ValueConstraint' => [ - 'title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'type' => 'string', - 'required' => true, - 'example' => 'NONE', - ], - 'ValueList' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'array', - 'items' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'MinMaxValueConfig' => [ - 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'type' => 'object', - 'properties' => [ - 'MinValue' => [ - 'title' => '最小值', - 'description' => '最小值', - 'type' => 'string', - 'required' => true, - 'example' => '0', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - 'required' => true, - ], - 'MaxValue' => [ - 'title' => '最大值', - 'description' => '最大值', - 'type' => 'string', - 'required' => true, - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - 'LookupTableReference' => [ - 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'Column' => [ - 'title' => '引用的码表字段', - 'description' => '引用的码表字段', - 'type' => 'string', - 'required' => false, - 'example' => 'col1', - ], - ], - 'required' => false, - ], - 'DataphinAttributeType' => [ - 'title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'type' => 'string', - 'required' => false, - 'example' => 'DATAPHIN_ATTRIBUTE', - ], - ], - 'required' => true, - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'RefAttribute' => [ - 'title' => '引用的属性信息', - 'description' => '引用的属性信息', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'AttributeFromInfo' => [ - 'title' => '属性来源', - 'description' => '属性来源', - 'type' => 'object', - 'properties' => [ - 'AttributeFrom' => [ - 'title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOM', - ], - 'StandardReference' => [ - 'title' => '对应的标准,属性来源为 STANDARD 生效', - 'description' => '对应的标准,属性来源为 STANDARD 生效', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'PublishInfo' => [ - 'title' => '标准模板发布信息', - 'description' => '标准模板发布信息', - 'type' => 'object', - 'properties' => [ - 'Comment' => [ - 'title' => '发布备注', - 'description' => '发布备注', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'CodeRuleConfig' => [ - 'title' => '标准编码自动生成规则配置', - 'description' => '标准编码自动生成规则配置', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'WatchTaskInfo' => [ + 'title' => '监控任务对象详情', + 'description' => '监控任务对象详情', 'type' => 'object', 'properties' => [ - 'GenerateType' => [ - 'title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'AutoConfig' => [ - 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', - 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'Id' => ['title' => '监控任务ID', 'description' => '监控任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'StartTime' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'EndTime' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 20:00:00'], + 'QualityOwner' => ['title' => '质量负责人用户ID', 'description' => '质量负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'QualityOwnerName' => ['title' => '质量负责人名称', 'description' => '质量负责人名称', 'type' => 'string', 'example' => 'test'], + 'RuleCountInfo' => [ + 'title' => '质量规则计数', + 'description' => '质量规则计数', 'type' => 'object', 'properties' => [ - 'NeedStrongValidate' => [ - 'title' => '是否强校验', - 'description' => '是否强校验', - 'type' => 'boolean', - 'required' => true, + 'ValidateRuleCount' => [ + 'title' => '校验规则技术', + 'description' => '校验规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], ], - 'CodeRuleList' => [ - 'title' => '标准编码规则', - 'description' => '标准编码规则', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Index' => [ - 'title' => '编码规则位置索引', - 'description' => '编码规则位置索引', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'Type' => [ - 'title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'type' => 'string', - 'required' => true, - 'example' => 'FIXED_STRING', - ], - 'Value' => [ - 'title' => '编码规则格式/值', - 'description' => '编码规则格式/值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'AutoIncrementSequenceConfig' => [ - 'title' => '自增序列配置', - 'description' => '自增序列配置', - 'type' => 'object', - 'properties' => [ - 'Digit' => [ - 'title' => '位数', - 'description' => '位数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '3', - ], - 'StartValue' => [ - 'title' => '起始值', - 'description' => '起始值', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'Step' => [ - 'title' => '步长', - 'description' => '步长', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'NeedPaddingZero' => [ - 'title' => '是否补零', - 'description' => '是否补零', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - ], - 'required' => false, + 'StrongRuleCount' => [ + 'title' => '强规则技术', + 'description' => '强规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + 'WeakRuleCount' => [ + 'title' => '弱规则技术', + 'description' => '弱规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], - 'required' => true, ], ], - 'required' => false, ], + 'RuleIdList' => [ + 'title' => '质量规则Id', + 'description' => '质量规则Id', + 'type' => 'array', + 'items' => ['title' => '质量规则Id', 'description' => '质量规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + ], + 'Status' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'example' => 'RUNNING'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'BizDateFormat' => ['title' => '业务日期格式', 'description' => '业务日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', ], ], ], @@ -30973,260 +18413,45 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WatchTaskInfo\\": {\\n \\"Id\\": 1,\\n \\"WatchId\\": 1,\\n \\"StartTime\\": \\"2025-06-30 08:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 20:00:00\\",\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"RuleCountInfo\\": {\\n \\"ValidateRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"StrongRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"WeakRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n }\\n },\\n \\"RuleIdList\\": [\\n 2\\n ],\\n \\"Status\\": \\"RUNNING\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', + 'title' => '获取监控任务对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新数据标准模板', + 'ramActions' => [], ], - 'UpdateStandardSet' => [ - 'summary' => '更新标准集。'."\n" + 'GetQualityWatchTaskLog' => [ + 'summary' => '获取监控任务对象的日志内容。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'StandardSetId' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Name' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准集编码', - 'description' => '标准集编码', - 'type' => 'string', - 'required' => true, - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '标准集描述', - 'description' => '标准集描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '所属目录', - 'description' => '所属目录', - 'type' => 'string', - 'required' => true, - 'example' => '/dir1', - ], - ], - 'required' => false, - ], - 'MaintainerList' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'array', - 'items' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'MemberList' => [ - 'title' => '成员列表', - 'description' => '成员列表', - 'type' => 'array', - 'items' => [ - 'title' => '成员列表', - 'description' => '成员列表', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'MemberGroupList' => [ - 'title' => '成员组列表', - 'description' => '成员组列表', - 'type' => 'array', - 'items' => [ - 'title' => '成员组列表', - 'description' => '成员组列表', - 'type' => 'string', - 'required' => false, - 'example' => '1121', - ], - 'required' => false, - ], - 'VisibilityConfig' => [ - 'title' => '可见性配置', - 'description' => '可见性配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'type' => 'string', - 'required' => true, - 'example' => 'PUBLIC', - ], - 'SpecifiedUserList' => [ - 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'type' => 'array', - 'items' => [ - 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'type' => 'string', - 'required' => false, - 'example' => '1121', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'ApprovalConfig' => [ - 'title' => '上线审批配置', - 'description' => '上线审批配置', - 'type' => 'object', - 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - 'required' => true, - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - 'required' => true, - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', - ], - ], - 'required' => false, - ], - 'OfflineApprovalConfig' => [ - 'title' => '下线审批配置', - 'description' => '下线审批配置', - 'type' => 'object', - 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - 'required' => true, - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - 'required' => true, - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', - ], - ], - 'required' => false, - ], - 'DefaultStandardTemplateId' => [ - 'title' => '默认标准模板ID', - 'description' => '默认标准模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1001', - ], - ], - 'required' => true, - ], + 'name' => 'WatchTaskId', + 'in' => 'query', + 'schema' => ['title' => '监控任务ID', 'description' => '监控任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], ], ], 'responses' => [ @@ -31236,179 +18461,102 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '日志内容', 'description' => '日志内容', 'type' => 'string', 'example' => 'test'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"test\\"\\n}","type":"json"}]', + 'title' => '获取监控任务对象的日志内容', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新标准集', + 'ramActions' => [], ], - 'UpdateStandardMappingToInvalid' => [ - 'summary' => '将标准映射关系置为无效映射。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'GetQueueEngineVersionByEnv' => [ + 'summary' => '根据集群ID获取集群版本。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => ['Dataphin公共云'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境', 'description' => '环境', 'type' => 'string', 'required' => true, 'example' => 'PROD'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7081229106458752'], + ], + [ + 'name' => 'StreamBatchMode', + 'in' => 'query', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'GuidList' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'array', - 'items' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1022', - ], - 'required' => false, - ], - 'BelongGuidList' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', - 'type' => 'array', - 'items' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1023', - ], - 'required' => false, - ], - ], + 'title' => '流批模式'."\n", + 'description' => '流批模式'."\n", + 'type' => 'string', 'required' => true, + 'example' => 'BOTH', + 'enum' => ['BOTH', 'STREAM', 'BATCH'], ], ], + [ + 'name' => 'QueueName', + 'in' => 'query', + 'schema' => ['title' => '队列名称', 'description' => '队列名称', 'type' => 'string', 'required' => true, 'example' => 'default-queue'], + ], + [ + 'name' => 'ClusterId', + 'in' => 'query', + 'schema' => ['title' => '集群Id', 'description' => '集群Id', 'type' => 'string', 'required' => true, 'example' => '61187014-a3ba-4cdd-8609-1f0aa3df4a3d'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '引擎版本信息', + 'description' => '引擎版本信息', + 'type' => 'array', + 'items' => ['title' => '引擎版本信息', 'description' => '引擎版本信息', 'type' => 'string', 'example' => 'vvr-8.0.9-flink-1.17'], ], ], ], @@ -31416,165 +18564,321 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n \\"vvr-8.0.9-flink-1.17\\"\\n ]\\n}","type":"json"}]', + 'title' => '获取集群引擎的版本信息', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:34:01.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '将标准映射关系置为无效映射', - ], - 'UpdateStandardLookupTable' => [ - 'summary' => '更新数据标准码表。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetQueueEngineVersionByEnv', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetResource' => [ + 'summary' => '获取资源文件详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '资源文件名', 'description' => '资源文件名', 'type' => 'string', 'required' => true, 'example' => 'udf_sleep.jar'], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ResourceInfo' => [ + 'title' => '资源文件详情', + 'description' => '资源文件详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '资源id', 'description' => '资源id', 'type' => 'integer', 'format' => 'int64', 'example' => '10200121011'], + 'Name' => ['title' => '资源文件名', 'description' => '资源文件名', 'type' => 'string', 'example' => 'udf_sleep.jar'], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'example' => 'JAR'], + 'Directory' => ['title' => '存放目录', 'description' => '存放目录', 'type' => 'string', 'example' => '/'], + 'StorageAddress' => ['title' => '资源存储地址', 'description' => '资源存储地址', 'type' => 'string', 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c'], + 'Size' => ['title' => '资源大小, 单位:b', 'description' => '资源大小, 单位:b', 'type' => 'integer', 'format' => 'int64', 'example' => '102400'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'ComputeEngineType' => ['title' => '计算引擎源类型', 'description' => '计算引擎源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30011021'], + 'LastModifier' => ['title' => '更新者', 'description' => '更新者', 'type' => 'string', 'example' => '30011021'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": 10200121011,\\n \\"Name\\": \\"udf_sleep.jar\\",\\n \\"ProjectId\\": 1030111021,\\n \\"ResourceType\\": \\"JAR\\",\\n \\"Directory\\": \\"/\\",\\n \\"StorageAddress\\": \\"300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c\\",\\n \\"Size\\": 102400,\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"ComputeEngineType\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30011021\\",\\n \\"LastModifier\\": \\"30011021\\"\\n }\\n}","type":"json"}]', + 'title' => '获取资源文件详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetResourceByVersion' => [ + 'summary' => '获取资源文件指定版本详情。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '资源文件名', 'description' => '资源文件名', 'type' => 'string', 'required' => true, 'example' => 'udf_sleep.jar'], + ], + [ + 'name' => 'VersionId', + 'in' => 'query', + 'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ResourceInfo' => [ + 'title' => '资源文件详情', + 'description' => '资源文件详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '资源id', 'description' => '资源id', 'type' => 'integer', 'format' => 'int64', 'example' => '10200121011'], + 'Name' => ['title' => '资源文件名', 'description' => '资源文件名', 'type' => 'string', 'example' => 'udf_sleep.jar'], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'example' => 'JAR'], + 'Directory' => ['title' => '存放目录', 'description' => '存放目录', 'type' => 'string', 'example' => '/'], + 'StorageAddress' => ['title' => '资源存储地址', 'description' => '资源存储地址', 'type' => 'string', 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c'], + 'Size' => ['title' => '资源大小, 单位:b', 'description' => '资源大小, 单位:b', 'type' => 'integer', 'format' => 'int64', 'example' => '102400'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'ComputeEngineType' => ['title' => '计算引擎源类型', 'description' => '计算引擎源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30011021'], + 'LastModifier' => ['title' => '更新者', 'description' => '更新者', 'type' => 'string', 'example' => '30011021'], + ], + ], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": 10200121011,\\n \\"Name\\": \\"udf_sleep.jar\\",\\n \\"ProjectId\\": 1030111021,\\n \\"ResourceType\\": \\"JAR\\",\\n \\"Directory\\": \\"/\\",\\n \\"StorageAddress\\": \\"300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c\\",\\n \\"Size\\": 102400,\\n \\"Description\\": \\"测试\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"ComputeEngineType\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30011021\\",\\n \\"LastModifier\\": \\"30011021\\"\\n }\\n}","type":"json"}]', + 'title' => '获取资源文件指定版本详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetRowPermissionByTableGuids' => [ + 'summary' => '上线版本:v5.4.2。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'UpdateCommand', + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'GetRowPermissionByTableGuidsQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Name' => [ - 'title' => '码表名称', - 'description' => '码表名称', - 'type' => 'string', - 'required' => true, - 'example' => '城市码表', - ], - 'Code' => [ - 'title' => '码表编码', - 'description' => '码表编码', - 'type' => 'string', + 'TableGuids' => [ + 'title' => '表guid列表', + 'description' => '表guid列表', + 'type' => 'array', + 'items' => ['description' => '表GUID', 'type' => 'string', 'required' => true, 'example' => 'odps.300199897.project_name.table_name'], 'required' => true, - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '码表描述', - 'description' => '码表描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '码表负责人Id,默认为调用者用户Id', - 'description' => '码表负责人Id,默认为调用者用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '30012021', ], - 'LookupTableValueList' => [ - 'title' => '码表值列表', - 'description' => '码表值列表', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'description' => '返回数据', 'type' => 'array', 'items' => [ - 'title' => '', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'title' => '代码值', - 'description' => '代码值', - 'type' => 'string', - 'required' => true, - 'example' => '杭州', - ], - 'Name' => [ - 'title' => '代码名称', - 'description' => '代码名称', - 'type' => 'string', - 'required' => true, - 'example' => 'Hangzhou', - ], - 'EnglishName' => [ - 'title' => '代码英文名', - 'description' => '代码英文名', - 'type' => 'string', - 'required' => false, - 'example' => 'HZ', - ], - 'Description' => [ - 'title' => '代码描述', - 'description' => '代码描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'string', - 'required' => true, - 'example' => '/dir1/dir2', + 'RowPermissionId' => ['title' => '行权限id', 'description' => '行权限id', 'type' => 'string', 'example' => '300000001'], + 'RowPermissionName' => ['title' => '行权限名称', 'description' => '行权限名称', 'type' => 'string', 'example' => 'Region'], + 'RowPermissionDesc' => ['title' => '行权限描述', 'description' => '行权限描述', 'type' => 'string', 'example' => 'Restrict query region'."\n"], ], + 'description' => '', ], - 'required' => false, ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"RowPermissionId\\": \\"300000001\\",\\n \\"RowPermissionName\\": \\"Region\\",\\n \\"RowPermissionDesc\\": \\"Restrict query region\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据表GUID获取行权限', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetSecurityClassify' => [ + 'summary' => '获取数据分类详情。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '分类ID', 'description' => '分类ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ @@ -31582,35 +18886,24 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SecurityClassifyInfo' => [ + 'title' => '数据分类详情', + 'description' => '数据分类详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据分类ID', 'description' => '数据分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'example' => 'test'], + 'Abbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'example' => 'test'], + 'Path' => ['title' => '分类路径', 'description' => '分类路径', 'type' => 'string', 'example' => '/a/b/c'], + 'LevelIndex' => ['title' => '分级Index', 'description' => '分级Index', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LevelName' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'example' => 'lv_teat'], + 'LevelAbbreviation' => ['title' => '分级缩写名', 'description' => '分级缩写名', 'type' => 'string', 'example' => 'lv_test'], + ], ], ], ], @@ -31618,437 +18911,148 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityClassifyInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Abbreviation\\": \\"test\\",\\n \\"Path\\": \\"/a/b/c\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"lv_teat\\",\\n \\"LevelAbbreviation\\": \\"lv_test\\"\\n }\\n}","type":"json"}]', + 'title' => '获取数据分类详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新数据标准码表', + 'ramActions' => [], ], - 'UpdateStandard' => [ - 'summary' => '更新标准。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetSecurityIdentifyResult' => [ + 'summary' => '获取识别结果详情。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '识别结果ID', 'description' => '识别结果ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '码表', - 'description' => '码表', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'StandardStatus' => [ - 'title' => '标准的状态', - 'description' => '标准的状态', - 'type' => 'string', - 'required' => true, - 'example' => 'draft', - ], - 'StandardTemplateReference' => [ - 'title' => '标准所属的标准模板', - 'description' => '标准所属的标准模板', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准模板ID', - 'description' => '标准模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'Version' => [ - 'title' => '标准模板版本号, 默认去最新版本', - 'description' => '标准模板版本号, 默认去最新版本', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'AttributeValueList' => [ - 'title' => '引用模板下属性列表相应属性值, 若为空则使用默认值', - 'description' => '引用模板下属性列表相应属性值, 若为空则使用默认值', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1011', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => true, - ], - 'StandardSetReference' => [ - 'title' => '标准集的引用, 表示当前标准所属的标准集', - 'description' => '标准集的引用, 表示当前标准所属的标准集', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - ], - 'required' => true, - ], - 'EffectiveTimeConfig' => [ - 'title' => '生效时间配置', - 'description' => '生效时间配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'type' => 'string', - 'required' => true, - 'example' => 'TIME_PERIOD', - ], - 'StartTime' => [ - 'title' => '开始生效时间', - 'description' => '开始生效时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '结束生效时间', - 'description' => '结束生效时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-12-30 00:00:00', - ], - ], - 'required' => false, - ], - 'Description' => [ - 'title' => '描述信息', - 'description' => '描述信息', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人,不传为当前用户', - 'description' => '负责人,不传为当前用户', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'StandardGeneralMonitorConfig' => [ - 'title' => '标准监控配置', - 'description' => '标准监控配置', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SecurityIdentifyResultInfo' => [ + 'title' => '识别结果详情', + 'description' => '识别结果详情', 'type' => 'object', 'properties' => [ - 'StandardMonitorConfigList' => [ - 'title' => '标准监控配置列表', - 'description' => '标准监控配置列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Description' => [ - 'title' => '规则描述', - 'description' => '规则描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'required' => true, - 'example' => 'METADATA', - ], - 'MonitorFrom' => [ - 'title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_SYSTEM_ATTRIBUTE', - ], - 'AttributeId' => [ - 'title' => '关联的属性Id', - 'description' => '关联的属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '112', - ], - 'AttributeName' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'required' => false, - 'example' => 'teset', - ], - 'AttributeMonitorConfig' => [ - 'title' => '关联属性的监控配置', - 'description' => '关联属性的监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'required' => true, - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - 'RuleSubType' => [ - 'title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOMIZED', - ], - 'QualityRuleTemplate' => [ - 'title' => '规则模板, 当监控类型为 QUALITY 时必填', - 'description' => '规则模板, 当监控类型为 QUALITY 时必填', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '模板Id', - 'description' => '模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Type' => [ - 'title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - ], - 'required' => false, - ], - 'RuleConfigList' => [ - 'title' => '规则配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'RuleValidateConfigList' => [ - 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '校验配置Id, 由业务随机生成且确保唯一', - 'description' => '校验配置Id, 由业务随机生成且确保唯一', - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], - 'ParentId' => [ - 'title' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], - 'Type' => [ - 'title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'type' => 'string', - 'required' => true, - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'type' => 'string', - 'required' => true, - 'example' => 'AND', - ], - 'Metric' => [ - 'title' => '指标, 校验类型为 EXPRESSION 时必填', - 'description' => '指标, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], - 'MetricName' => [ - 'title' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Value' => [ - 'title' => '比较的值', - 'description' => '比较的值', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => false, - ], - 'NeedGenerateStandardCode' => [ - 'title' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', - 'description' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', - 'type' => 'boolean', - 'required' => false, - ], - ], - 'required' => true, - ], + 'Id' => ['title' => '识别结果ID', 'description' => '识别结果ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ScanTaskId' => ['title' => '扫描任务ID', 'description' => '扫描任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'TableTaskId' => ['title' => '识别表任务ID', 'description' => '识别表任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'ClassifyId' => ['title' => '分类ID', 'description' => '分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '33'], + 'ClassifyName' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'example' => 'test'], + 'ClassifyAbbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'example' => 'test'], + 'LevelIndex' => ['title' => '分级等级', 'description' => '分级等级', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LevelName' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'example' => 'test'], + 'LevelAbbreviation' => ['title' => '分级简短名称', 'description' => '分级简短名称', 'type' => 'string', 'example' => 'test'], + 'LevelColor' => ['title' => '分级颜色', 'description' => '分级颜色', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'BizUnitId' => ['title' => '业务板块ID', 'description' => '业务板块ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'LD_test'], + 'BizUnitDisplayName' => ['title' => '业务板块中文名称', 'description' => '业务板块中文名称', 'type' => 'string', 'example' => 'LD_test'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'ProjectDisplayName' => ['title' => '项目中文名称', 'description' => '项目中文名称', 'type' => 'string', 'example' => 'test'], + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101121'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'ds1'], + 'TableEnv' => ['title' => '表环境', 'description' => '表环境', 'type' => 'string', 'example' => 'DEV'], + 'TableType' => ['title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'type' => 'string', 'example' => 'LOGIC_TABLE'], + 'TableCatalog' => ['title' => '表Catalog', 'description' => '表Catalog', 'type' => 'string', 'example' => 'testdb'], + 'TableId' => ['title' => '表ID', 'description' => '表ID', 'type' => 'string', 'example' => '1'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_test'], + 'TableDescription' => ['title' => '表描述', 'description' => '表描述', 'type' => 'string', 'example' => 'test'], + 'FieldId' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => 't_test.col1'], + 'FieldName' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'example' => 'col1'], + 'FieldDescription' => ['title' => '字段描述', 'description' => '字段描述', 'type' => 'string', 'example' => 'test'], + 'IsCustomIdentify' => ['title' => '是否是自定义打标规则', 'description' => '是否是自定义打标规则', 'type' => 'boolean'], + 'IsLocked' => ['title' => '是否已锁定', 'description' => '是否已锁定', 'type' => 'boolean'], + 'HasBetterRule' => ['title' => '是否存在更匹配的结果', 'description' => '是否存在更匹配的结果', 'type' => 'boolean'], + 'IdentifyRecordId' => ['title' => '识别记录ID', 'description' => '识别记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '99'], + 'Status' => ['title' => '状态: ENABLE 启用、DISABLE 禁用', 'description' => '状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'example' => 'ENABLE'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'Creator' => ['title' => '创建人', 'description' => '创建人', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 10:30:30'], + 'Modifier' => ['title' => '修改人', 'description' => '修改人', 'type' => 'string', 'example' => '30012011'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 10:30:30'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityIdentifyResultInfo\\": {\\n \\"Id\\": 1,\\n \\"ScanTaskId\\": 11,\\n \\"TableTaskId\\": 22,\\n \\"ClassifyId\\": 33,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"LevelColor\\": 1,\\n \\"BizUnitId\\": 1,\\n \\"BizUnitName\\": \\"LD_test\\",\\n \\"BizUnitDisplayName\\": \\"LD_test\\",\\n \\"ProjectId\\": 101121,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test\\",\\n \\"DatasourceId\\": 101121,\\n \\"DatasourceName\\": \\"ds1\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"TableCatalog\\": \\"testdb\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"HasBetterRule\\": true,\\n \\"IdentifyRecordId\\": 99,\\n \\"Status\\": \\"ENABLE\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 10:30:30\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifyTime\\": \\"2025-06-30 10:30:30\\"\\n }\\n}","type":"json"}]', + 'title' => '获取识别结果详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetSecurityLevel' => [ + 'summary' => '获取数据分级详情。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Index', + 'in' => 'query', + 'schema' => ['title' => '数据分级敏感程度', 'description' => '数据分级敏感程度', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], ], ], 'responses' => [ @@ -32058,35 +19062,27 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SecurityLevelInfo' => [ + 'title' => '数据分级详情', + 'description' => '数据分级详情', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '数据分级名称', 'description' => '数据分级名称', 'type' => 'string', 'example' => 'test'], + 'Abbreviation' => ['title' => '数据分级缩写名称', 'description' => '数据分级缩写名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '数据分级描述', 'description' => '数据分级描述', 'type' => 'string', 'example' => 'test'], + 'Index' => ['title' => '数据分级敏感程度', 'description' => '数据分级敏感程度', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RelatedClassifyIdList' => [ + 'title' => '绑定当前数据分级的数据分类Id列表', + 'description' => '绑定当前数据分级的数据分类Id列表', + 'type' => 'array', + 'items' => ['title' => '绑定当前数据分级的数据分类Id列表', 'description' => '绑定当前数据分级的数据分类Id列表', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + ], + ], ], ], ], @@ -32094,86 +19090,45 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityLevelInfo\\": {\\n \\"Name\\": \\"test\\",\\n \\"Abbreviation\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Index\\": 1,\\n \\"RelatedClassifyIdList\\": [\\n 2\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取数据分级详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新标准', + 'ramActions' => [], ], - 'OfflineStandard' => [ - 'summary' => '下线标准。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetSecuritySecretKey' => [ + 'summary' => '通过密钥名称获取密钥值。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OfflineCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '下线指令', - 'description' => '下线指令', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Comment' => [ - 'title' => '审核备注,最多128字符', - 'description' => '审核备注,最多128字符', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '密钥名称', 'description' => '密钥名称', 'type' => 'string', 'required' => true, 'example' => 'test'], ], ], 'responses' => [ @@ -32183,35 +19138,35 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SecuritySecretKeyInfo' => [ + 'title' => '安全密钥详情', + 'description' => '安全密钥详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '密钥Id', 'description' => '密钥Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '密钥名称', 'description' => '密钥名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '密钥类型: HASH 哈希脱敏、ENCRYPT 加解密', 'description' => '密钥类型: HASH 哈希脱敏、ENCRYPT 加解密', 'type' => 'string', 'example' => 'HASH'], + 'AlgorithmType' => ['title' => '算法类型: AES、DES、DESEDE、SM2、SM4、RSA、FF1', 'description' => '算法类型: AES、DES、DESEDE、SM2、SM4、RSA、FF1', 'type' => 'string', 'example' => 'AES'], + 'GenerationType' => ['title' => '生成方式: SYSTEM_GENERATION 系统生成、USER_GENERATION 用户生成', 'description' => '生成方式: SYSTEM_GENERATION 系统生成、USER_GENERATION 用户生成', 'type' => 'string', 'example' => 'SYSTEM_GENERATION'], + 'SubKeyCount' => ['title' => '子密钥个数', 'description' => '子密钥个数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'SecretKeyList' => [ + 'title' => '密钥值', + 'description' => '密钥值', + 'type' => 'array', + 'items' => ['title' => '密钥值', 'description' => '密钥值', 'type' => 'string', 'example' => 'abc123456'], + ], + 'IsOwnerManageOnly' => ['title' => '是否仅负责人可管理', 'description' => '是否仅负责人可管理', 'type' => 'boolean'], + 'EnableOpenapiQuery' => ['title' => '是否支持OpenApi查询', 'description' => '是否支持OpenApi查询', 'type' => 'boolean'], + 'AlgorithmTypeAlias' => ['title' => '算法类型alias', 'description' => '算法类型alias', 'type' => 'string', 'example' => 'AES'], + 'Owner' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人名称', 'description' => '负责人名称', 'type' => 'string', 'example' => '张三'], + ], ], ], ], @@ -32219,158 +19174,79 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecuritySecretKeyInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Type\\": \\"HASH\\",\\n \\"AlgorithmType\\": \\"AES\\",\\n \\"GenerationType\\": \\"SYSTEM_GENERATION\\",\\n \\"SubKeyCount\\": 2,\\n \\"SecretKeyList\\": [\\n \\"abc123456\\"\\n ],\\n \\"IsOwnerManageOnly\\": true,\\n \\"EnableOpenapiQuery\\": true,\\n \\"AlgorithmTypeAlias\\": \\"AES\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', + 'title' => '通过密钥名称获取密钥值', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '下线标准', + 'ramActions' => [], ], - 'PublishStandard' => [ - 'summary' => '发布标准。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'GetSparkLocalClientInfo' => [ + 'summary' => '获取计算源对应集群的spark客户信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'PublishCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '发布指令', - 'description' => '发布指令', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Version' => [ - 'title' => '版本号, 默认取值-1(最新版本号)', - 'description' => '版本号, 默认取值-1(最新版本号)', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'StandardStage' => [ - 'title' => '标准的阶段 :DEV、PROD,默认 DEV', - 'description' => '标准的阶段 :DEV、PROD,默认 DEV', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'AutoPublishAfterApproval' => [ - 'title' => '是否在审批成功后自动发布, 默认 true', - 'description' => '是否在审批成功后自动发布, 默认 true', - 'type' => 'boolean', - 'required' => false, - ], - 'ReviewerIdList' => [ - 'title' => '指定的审批人', - 'description' => '指定的审批人', - 'type' => 'array', - 'items' => [ - 'title' => '指定的审批人', - 'description' => '指定的审批人', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'Comment' => [ - 'title' => '审核备注,最多128字符', - 'description' => '审核备注,最多128字符', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'string', 'required' => true, 'example' => '232432343'], + ], + [ + 'name' => 'EnvEnum', + 'in' => 'query', + 'schema' => ['title' => '环境标识:'."\n" + .'DEV:开发环境'."\n" + .'PROD:生产环境', 'description' => '环境标识:'."\n" + .'DEV:开发环境'."\n" + .'PROD:生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'description' => '响应结果', + 'type' => 'array', + 'items' => [ + 'description' => '返回数据', + 'type' => 'object', + 'properties' => [ + 'ClientName' => ['description' => '客户端名称', 'type' => 'string', 'example' => 'spark-clinet'], + 'ClientFileResourceName' => ['description' => '客户端文件名称', 'type' => 'string', 'example' => 'spark-cleint.zip'], + 'ClientFileResourceId' => ['description' => '客户端文件id', 'type' => 'string', 'example' => 'XXXX-XXXX-XXXX-XXXX'], + 'Editable' => ['description' => '可否编辑', 'type' => 'boolean', 'example' => 'true/false'], + ], + ], ], ], ], @@ -32378,33 +19254,41 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"ClientName\\": \\"spark-clinet\\",\\n \\"ClientFileResourceName\\": \\"spark-cleint.zip\\",\\n \\"ClientFileResourceId\\": \\"XXXX-XXXX-XXXX-XXXX\\",\\n \\"Editable\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取计算源对应集群的spark客户信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:GetSparkLocalClientInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '发布标准', ], - 'ListStandards' => [ - 'summary' => '分页查询标准列表。'."\n" + 'GetStandard' => [ + 'summary' => '获取标准详情。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -32413,131 +19297,27 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'StandardGetQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '查询指令', + 'description' => '查询指令', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字: 标准名称/英文名/编码 模糊搜索,大小写不敏感,按匹配度排序', - 'description' => '搜索关键字: 标准名称/英文名/编码 模糊搜索,大小写不敏感,按匹配度排序', - 'type' => 'string', - 'required' => false, - 'example' => 'Test', - ], - 'Directory' => [ - 'title' => '标准的所属目录', - 'description' => '标准的所属目录', - 'type' => 'string', - 'required' => false, - 'example' => '/dir1/dir2', - ], - 'StandardTypeList' => [ - 'title' => '标准类型: Basic、EMPTY 标准类型为空', - 'description' => '标准类型: Basic、EMPTY 标准类型为空', - 'type' => 'array', - 'items' => [ - 'title' => '标准类型: Basic、EMPTY 标准类型为空', - 'description' => '标准类型: Basic、EMPTY 标准类型为空', - 'type' => 'string', - 'required' => false, - 'example' => 'EMPTY', - ], - 'required' => false, - ], - 'StandardStage' => [ - 'title' => '标准所属阶段:DEV、PROD', - 'description' => '标准所属阶段:DEV、PROD', - 'type' => 'string', - 'required' => true, - 'example' => 'DEV', - ], - 'StandardTemplateIdList' => [ - 'title' => '所属标准模板Id', - 'description' => '所属标准模板Id', - 'type' => 'array', - 'items' => [ - 'title' => '所属标准模板Id', - 'description' => '所属标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'StandardSetIdList' => [ - 'title' => '所属标准集Id', - 'description' => '所属标准集Id', - 'type' => 'array', - 'items' => [ - 'title' => '所属标准集Id', - 'description' => '所属标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'StandardStatusList' => [ - 'title' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', - 'description' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', - 'type' => 'array', - 'items' => [ - 'title' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', - 'description' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', - 'type' => 'string', - 'required' => false, - 'example' => 'DRAFT', - ], - 'required' => false, - ], - 'UserId' => [ - 'title' => '用户Id: 只会查询该用户Id本身可见的标准,为空则查询当前用户可见的标准', - 'description' => '用户Id: 只会查询该用户Id本身可见的标准,为空则查询当前用户可见的标准', - 'type' => 'string', - 'required' => false, - 'example' => '30012011', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Nullable' => ['title' => '标准不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'description' => '标准不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'type' => 'boolean', 'required' => false], + 'Version' => ['title' => '版本号, 为空表示最新版本', 'description' => '版本号, 为空表示最新版本', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'StandardStage' => ['title' => '所属阶段:dev、prod, 默认:prod', 'description' => '所属阶段:dev、prod, 默认:prod', 'type' => 'string', 'required' => false, 'example' => 'dev'], + 'NeedRelation' => ['title' => '是否需要返回关联标准和关联码表, 默认:false', 'description' => '是否需要返回关联标准和关联码表, 默认:false', 'type' => 'boolean', 'required' => false], ], 'required' => true, ], @@ -32550,524 +19330,308 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'StandardInfo' => [ + 'title' => '标准详情', + 'description' => '标准详情', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', + 'Id' => ['title' => '码表', 'description' => '码表', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Status' => ['title' => '标准的状态', 'description' => '标准的状态', 'type' => 'string', 'example' => 'draft'], + 'Stage' => ['title' => '标准所属的阶段', 'description' => '标准所属的阶段', 'type' => 'string', 'example' => 'dev'], + 'StandardTemplate' => [ + 'title' => '当前标准依赖的标准模板', + 'description' => '当前标准依赖的标准模板', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '标准模板名称', 'description' => '标准模板名称', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准模板编码', 'description' => '标准模板编码', 'type' => 'string', 'example' => '1121'], + 'TemplateFrom' => ['title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'type' => 'string', 'example' => 'SYSTEM'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], ], - 'StandardList' => [ - 'title' => '表列表', - 'description' => '表列表', - 'type' => 'array', + 'StandardSet' => [ + 'title' => '当前标准依赖的标准集', + 'description' => '当前标准依赖的标准集', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准集编码', 'description' => '标准集编码', 'type' => 'string', 'example' => 'cc'], + 'Directory' => ['title' => '标准集所属的目录', 'description' => '标准集所属的目录', 'type' => 'string', 'example' => '/dir1'], + ], + ], + 'EffectiveTimeConfig' => [ + 'title' => '生效时间配置', + 'description' => '生效时间配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'type' => 'string', 'example' => 'TIME_PERIOD'], + 'StartTime' => ['title' => '开始生效时间', 'description' => '开始生效时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '结束生效时间', 'description' => '结束生效时间', 'type' => 'string', 'example' => '2025-12-30 00:00:00'], + ], + ], + 'Description' => ['title' => '描述信息', 'description' => '描述信息', 'type' => 'string', 'example' => 'test'], + 'Owner' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'Name' => ['title' => '标准名称', 'description' => '标准名称', 'type' => 'string', 'example' => 'test'], + 'EnglishName' => ['title' => '标准英文名', 'description' => '标准英文名', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准编码', 'description' => '标准编码', 'type' => 'string', 'example' => 'zz'], + 'Type' => ['title' => '标准类型', 'description' => '标准类型', 'type' => 'string', 'example' => 'zz'], + 'ModifyTime' => ['title' => '最近修改时间', 'description' => '最近修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'LastModifier' => [ + 'title' => '最近更新人', + 'description' => '最近更新人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'AttributeWithValueList' => [ + 'title' => '属性值配置', + 'description' => '属性值配置', + 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '码表', - 'description' => '码表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Status' => [ - 'title' => '标准的状态', - 'description' => '标准的状态', - 'type' => 'string', - 'example' => 'draft', - ], - 'Stage' => [ - 'title' => '标准所属的阶段', - 'description' => '标准所属的阶段', - 'type' => 'string', - 'example' => 'dev', - ], - 'StandardTemplate' => [ - 'title' => '当前标准依赖的标准模板', - 'description' => '当前标准依赖的标准模板', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准模板名称', - 'description' => '标准模板名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准模板编码', - 'description' => '标准模板编码', - 'type' => 'string', - 'example' => '1121', - ], - 'TemplateFrom' => [ - 'title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'StandardSet' => [ - 'title' => '当前标准依赖的标准集', - 'description' => '当前标准依赖的标准集', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准集编码', - 'description' => '标准集编码', - 'type' => 'string', - 'example' => 'cc', - ], - 'Directory' => [ - 'title' => '标准集所属的目录', - 'description' => '标准集所属的目录', - 'type' => 'string', - 'example' => '/dir1', - ], - ], - ], - 'EffectiveTimeConfig' => [ - 'title' => '生效时间配置', - 'description' => '生效时间配置', + 'Attribute' => [ + 'title' => '属性详情', + 'description' => '属性详情', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'type' => 'string', - 'example' => 'TIME_PERIOD', - ], - 'StartTime' => [ - 'title' => '开始生效时间', - 'description' => '开始生效时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '结束生效时间', - 'description' => '结束生效时间', - 'type' => 'string', - 'example' => '2025-12-30 00:00:00', + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'attr1'], + 'Code' => ['title' => '属性编码', 'description' => '属性编码', 'type' => 'string', 'example' => 'test_attr'], + 'Type' => ['title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'type' => 'string', 'example' => 'BIZ_ATTRIBUTE'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean'], + 'ValueConfig' => [ + 'title' => '取值配置', + 'description' => '取值配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'type' => 'string', 'example' => 'STRING'], + 'Length' => ['title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ValueRange' => [ + 'title' => '取值范围', + 'description' => '取值范围', + 'type' => 'object', + 'properties' => [ + 'ValueConstraint' => ['title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'type' => 'string', 'example' => 'NONE'], + 'ValueList' => [ + 'title' => '取值范围,当取值来源取值为 LIST 生效', + 'description' => '取值范围,当取值来源取值为 LIST 生效', + 'type' => 'array', + 'items' => ['title' => '取值范围,当取值来源取值为 LIST 生效', 'description' => '取值范围,当取值来源取值为 LIST 生效', 'type' => 'string', 'example' => '1'], + ], + 'MinMaxValueConfig' => [ + 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'type' => 'object', + 'properties' => [ + 'MinValue' => ['title' => '最小值', 'description' => '最小值', 'type' => 'string', 'example' => '0'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值', 'description' => '最大值', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + 'LookupTableReference' => [ + 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Column' => ['title' => '引用的码表字段', 'description' => '引用的码表字段', 'type' => 'string', 'example' => 'col1'], + ], + ], + 'DataphinAttributeType' => ['title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'type' => 'string', 'example' => 'DATAPHIN_ATTRIBUTE'], + ], + ], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'example' => 'test'], + ], ], - ], - ], - 'Description' => [ - 'title' => '描述信息', - 'description' => '描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', + 'MonitorConfig' => [ + 'title' => '监控配置', + 'description' => '监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean'], + ], ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', + 'EnableMonitorConfig' => ['title' => '是否开启监控配置', 'description' => '是否开启监控配置', 'type' => 'boolean'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'RefAttribute' => [ + 'title' => '引用的属性信息', + 'description' => '引用的属性信息', + 'type' => 'object', + 'properties' => [ + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'AttributeFromInfo' => [ + 'title' => '属性来源', + 'description' => '属性来源', + 'type' => 'object', + 'properties' => [ + 'AttributeFrom' => ['title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'type' => 'string', 'example' => 'CUSTOM'], + 'StandardReference' => [ + 'title' => '对应的标准,属性来源为 STANDARD 生效', + 'description' => '对应的标准,属性来源为 STANDARD 生效', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + ], + ], + ], ], + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], ], ], - 'Name' => [ - 'title' => '标准名称', - 'description' => '标准名称', - 'type' => 'string', - 'example' => 'test', - ], - 'EnglishName' => [ - 'title' => '标准英文名', - 'description' => '标准英文名', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准编码', - 'description' => '标准编码', - 'type' => 'string', - 'example' => 'zz', - ], - 'Type' => [ - 'title' => '标准类型', - 'description' => '标准类型', - 'type' => 'string', - 'example' => 'zz', - ], - 'ModifyTime' => [ - 'title' => '最近修改时间', - 'description' => '最近修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'LastModifier' => [ - 'title' => '最近更新人', - 'description' => '最近更新人', + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'StandardGeneralMonitorConfig' => [ + 'title' => '标准监控配置', + 'description' => '标准监控配置', + 'type' => 'object', + 'properties' => [ + 'StandardMonitorConfigList' => [ + 'title' => '标准监控配置列表', + 'description' => '标准监控配置列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', + 'Id' => ['title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '规则描述', 'description' => '规则描述', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'example' => 'METADATA'], + 'MonitorFrom' => ['title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'type' => 'string', 'example' => 'BY_SYSTEM_ATTRIBUTE'], + 'AttributeId' => ['title' => '关联的属性Id', 'description' => '关联的属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '112'], + 'AttributeName' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'teset'], + 'AttributeMonitorConfig' => [ + 'title' => '关联属性的监控配置', + 'description' => '关联属性的监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean'], + ], ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', + 'RuleSubType' => ['title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'QualityRuleTemplate' => [ + 'title' => '规则模板, 当监控类型为 QUALITY 时必填', + 'description' => '规则模板, 当监控类型为 QUALITY 时必填', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Type' => ['title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => 'CUSTOMIZED'], + ], ], - ], - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', + 'RuleConfigList' => [ + 'title' => '规则配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则配置, 当监控类型为 QUALITY 时必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'v1'], + ], + ], ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - 'AttributeWithValueList' => [ - 'title' => '属性值配置', - 'description' => '属性值配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Attribute' => [ - 'title' => '属性详情', - 'description' => '属性详情', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'attr1', - ], - 'Code' => [ - 'title' => '属性编码', - 'description' => '属性编码', - 'type' => 'string', - 'example' => 'test_attr', - ], - 'Type' => [ - 'title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'type' => 'string', - 'example' => 'BIZ_ATTRIBUTE', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - ], - 'ValueConfig' => [ - 'title' => '取值配置', - 'description' => '取值配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'type' => 'string', - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ValueRange' => [ - 'title' => '取值范围', - 'description' => '取值范围', - 'type' => 'object', - 'properties' => [ - 'ValueConstraint' => [ - 'title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'type' => 'string', - 'example' => 'NONE', - ], - 'ValueList' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'array', - 'items' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'string', - 'example' => '1', - ], - ], - 'MinMaxValueConfig' => [ - 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'type' => 'object', - 'properties' => [ - 'MinValue' => [ - 'title' => '最小值', - 'description' => '最小值', - 'type' => 'string', - 'example' => '0', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值', - 'description' => '最大值', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - 'LookupTableReference' => [ - 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Column' => [ - 'title' => '引用的码表字段', - 'description' => '引用的码表字段', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - 'DataphinAttributeType' => [ - 'title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'type' => 'string', - 'example' => 'DATAPHIN_ATTRIBUTE', - ], - ], - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'MonitorConfig' => [ - 'title' => '监控配置', - 'description' => '监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - ], - ], - ], - 'EnableMonitorConfig' => [ - 'title' => '是否开启监控配置', - 'description' => '是否开启监控配置', - 'type' => 'boolean', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'RefAttribute' => [ - 'title' => '引用的属性信息', - 'description' => '引用的属性信息', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'AttributeFromInfo' => [ - 'title' => '属性来源', - 'description' => '属性来源', - 'type' => 'object', - 'properties' => [ - 'AttributeFrom' => [ - 'title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'StandardReference' => [ - 'title' => '对应的标准,属性来源为 STANDARD 生效', - 'description' => '对应的标准,属性来源为 STANDARD 生效', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], - ], - ], - ], - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - ], - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'test', - ], + 'RuleValidateConfigList' => [ + 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '校验配置Id, 由业务随机生成且确保唯一', 'description' => '校验配置Id, 由业务随机生成且确保唯一', 'type' => 'string', 'example' => 'abc'], + 'ParentId' => ['title' => '父校验配置Id, 父规则校验类型只能是RELATION', 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', 'type' => 'string', 'example' => 'a'], + 'Type' => ['title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'type' => 'string', 'example' => 'RELATION'], + 'Operator' => ['title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'type' => 'string', 'example' => 'AND'], + 'Metric' => ['title' => '指标, 校验类型为 EXPRESSION 时必填', 'description' => '指标, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'example' => 'a'], + 'MetricName' => ['title' => '指标名称, 校验类型为 EXPRESSION 时必填', 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'example' => 'test'], + 'Value' => ['title' => '比较的值', 'description' => '比较的值', 'type' => 'string', 'example' => '1'], + ], + ], ], ], ], ], ], ], + 'StandardRelations' => [ + 'title' => '关联标准列表', + 'description' => '关联标准列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'Version' => ['title' => '标准版本号', 'description' => '标准版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'StandardStage' => ['title' => '标准所处阶段', 'description' => '标准所处阶段', 'type' => 'string', 'example' => 'DEV'], + 'StandardStatus' => ['title' => '标准状态', 'description' => '标准状态', 'type' => 'string', 'example' => 'draft'], + 'RelationType' => ['title' => '关联关系类型: RELATIVE', 'description' => '关联关系类型: RELATIVE', 'type' => 'string', 'example' => 'RELATIVE'], + ], + ], + ], + 'LookupTableRelations' => [ + 'title' => '关联码表列表', + 'description' => '关联码表列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'LookupTableCode' => ['title' => '码表编码', 'description' => '码表编码', 'type' => 'string', 'example' => 'test'], + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1122'], + 'AttributeName' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'test'], + 'AttributeCode' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'zz'], + ], + ], + ], ], ], ], @@ -33076,33 +19640,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StandardInfo\\": {\\n \\"Id\\": 1234,\\n \\"Version\\": 1,\\n \\"Status\\": \\"draft\\",\\n \\"Stage\\": \\"dev\\",\\n \\"StandardTemplate\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"1121\\",\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"Version\\": 1\\n },\\n \\"StandardSet\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"cc\\",\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"EffectiveTimeConfig\\": {\\n \\"Type\\": \\"TIME_PERIOD\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-12-30 00:00:00\\"\\n },\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Name\\": \\"test\\",\\n \\"EnglishName\\": \\"test\\",\\n \\"Code\\": \\"zz\\",\\n \\"Type\\": \\"zz\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"Attribute\\": {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n },\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"StandardGeneralMonitorConfig\\": {\\n \\"StandardMonitorConfigList\\": [\\n {\\n \\"Id\\": 1,\\n \\"RuleName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Type\\": \\"METADATA\\",\\n \\"MonitorFrom\\": \\"BY_SYSTEM_ATTRIBUTE\\",\\n \\"AttributeId\\": 112,\\n \\"AttributeName\\": \\"teset\\",\\n \\"AttributeMonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"RuleSubType\\": \\"CUSTOMIZED\\",\\n \\"QualityRuleTemplate\\": {\\n \\"Id\\": 22,\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"Name\\": \\"CUSTOMIZED\\"\\n },\\n \\"RuleConfigList\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"RuleValidateConfigList\\": [\\n {\\n \\"Id\\": \\"abc\\",\\n \\"ParentId\\": \\"a\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"Metric\\": \\"a\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"StandardRelations\\": [\\n {\\n \\"StandardId\\": 1121,\\n \\"Version\\": 1,\\n \\"StandardStage\\": \\"DEV\\",\\n \\"StandardStatus\\": \\"draft\\",\\n \\"RelationType\\": \\"RELATIVE\\"\\n }\\n ],\\n \\"LookupTableRelations\\": [\\n {\\n \\"LookupTableId\\": 1121,\\n \\"LookupTableCode\\": \\"test\\",\\n \\"AttributeId\\": 1122,\\n \\"AttributeName\\": \\"test\\",\\n \\"AttributeCode\\": \\"zz\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取标准详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"StandardList\\": [\\n {\\n \\"Id\\": 1234,\\n \\"Version\\": 1,\\n \\"Status\\": \\"draft\\",\\n \\"Stage\\": \\"dev\\",\\n \\"StandardTemplate\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"1121\\",\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"Version\\": 1\\n },\\n \\"StandardSet\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"cc\\",\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"EffectiveTimeConfig\\": {\\n \\"Type\\": \\"TIME_PERIOD\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-12-30 00:00:00\\"\\n },\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Name\\": \\"test\\",\\n \\"EnglishName\\": \\"test\\",\\n \\"Code\\": \\"zz\\",\\n \\"Type\\": \\"zz\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"Attribute\\": {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n },\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询标准列表', + 'ramActions' => [], ], - 'GetStandardWordRoot' => [ - 'summary' => '获取数据标准词根详情。'."\n" + 'GetStandardLookupTable' => [ + 'summary' => '获取数据标准码表详情。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -33111,44 +19668,22 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Name', + 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', - 'required' => true, - 'example' => '平均值', - ], + 'schema' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], ], [ 'name' => 'Nullable', 'in' => 'query', - 'schema' => [ - 'title' => '词根不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'description' => '词根不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['title' => '码表不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'description' => '码表不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'type' => 'boolean', 'required' => false], ], ], 'responses' => [ @@ -33158,100 +19693,51 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'WordRootInfo' => [ - 'title' => '词根详情', - 'description' => '词根详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'LookupTableInfo' => [ + 'title' => '码表详情', + 'description' => '码表详情', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', - 'example' => '平均值', - ], - 'FullName' => [ - 'title' => '词根全称', - 'description' => '词根全称', - 'type' => 'string', - 'example' => 'average', - ], - 'Abbreviation' => [ - 'title' => '词根缩写', - 'description' => '词根缩写', - 'type' => 'string', - 'example' => 'avg', - ], - 'Description' => [ - 'title' => '词根描述', - 'description' => '词根描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012021', - ], - 'CreatorName' => [ - 'title' => '创建人用户名', - 'description' => '创建人用户名', - 'type' => 'string', - 'example' => 'test', - ], - 'LastModifier' => [ - 'title' => '最近更新人用户ID', - 'description' => '最近更新人用户ID', - 'type' => 'string', - 'example' => '30012021', - ], - 'LastModifierName' => [ - 'title' => '最近更新人用户名', - 'description' => '最近更新人用户名', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', + 'Id' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'Name' => ['title' => '码表名称', 'description' => '码表名称', 'type' => 'string', 'example' => '城市码表'], + 'Code' => ['title' => '码表编码', 'description' => '码表编码', 'type' => 'string', 'example' => 'CITY'], + 'Description' => ['title' => '码表描述', 'description' => '码表描述', 'type' => 'string', 'example' => 'test'], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012021'], + 'CreatorName' => ['title' => '创建人用户名', 'description' => '创建人用户名', 'type' => 'string', 'example' => 'test'], + 'LastModifier' => ['title' => '最近更新人用户ID', 'description' => '最近更新人用户ID', 'type' => 'string', 'example' => '30012021'], + 'LastModifierName' => ['title' => '最近更新人用户名', 'description' => '最近更新人用户名', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012021'], + 'OwnerName' => ['title' => '负责人用户名', 'description' => '负责人用户名', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'LookupTableValueList' => [ + 'title' => '码表值列表', + 'description' => '码表值列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '代码值', 'description' => '代码值', 'type' => 'string', 'example' => '杭州'], + 'Name' => ['title' => '代码名称', 'description' => '代码名称', 'type' => 'string', 'example' => 'Hangzhou'], + 'EnglishName' => ['title' => '代码英文名', 'description' => '代码英文名', 'type' => 'string', 'example' => 'HZ'], + 'Description' => ['title' => '代码描述', 'description' => '代码描述', 'type' => 'string', 'example' => 'test'], + ], + ], ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '归属目录', 'description' => '归属目录', 'type' => 'string', 'example' => '/dir1/dir2'], + ], ], ], ], @@ -33261,33 +19747,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"LookupTableInfo\\": {\\n \\"Id\\": 1234,\\n \\"Name\\": \\"城市码表\\",\\n \\"Code\\": \\"CITY\\",\\n \\"Description\\": \\"test\\",\\n \\"Creator\\": \\"30012021\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"LastModifier\\": \\"30012021\\",\\n \\"LastModifierName\\": \\"test\\",\\n \\"Owner\\": \\"30012021\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LookupTableValueList\\": [\\n {\\n \\"Value\\": \\"杭州\\",\\n \\"Name\\": \\"Hangzhou\\",\\n \\"EnglishName\\": \\"HZ\\",\\n \\"Description\\": \\"test\\"\\n }\\n ],\\n \\"DirectoryReference\\": {\\n \\"Directory\\": \\"/dir1/dir2\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '获取数据标准码表详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WordRootInfo\\": {\\n \\"Name\\": \\"平均值\\",\\n \\"FullName\\": \\"average\\",\\n \\"Abbreviation\\": \\"avg\\",\\n \\"Description\\": \\"test\\",\\n \\"Creator\\": \\"30012021\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"LastModifier\\": \\"30012021\\",\\n \\"LastModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', - 'title' => '获取数据标准词根详情', + 'ramActions' => [], ], - 'GetStandardTemplate' => [ - 'summary' => '获取数据标准模板详情。'."\n" + 'GetStandardSet' => [ + 'summary' => '获取标准集详情。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -33296,66 +19775,22 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], + 'schema' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], ], [ 'name' => 'Nullable', 'in' => 'query', - 'schema' => [ - 'title' => '模板不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'description' => '模板不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'type' => 'boolean', - 'required' => false, - ], - ], - [ - 'name' => 'FilterQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '过滤条件', - 'description' => '过滤条件', - 'type' => 'object', - 'properties' => [ - 'Version' => [ - 'title' => '版本号, 空或-1表示最新版本', - 'description' => '版本号, 空或-1表示最新版本', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], + 'schema' => ['title' => '标准集不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'description' => '标准集不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'type' => 'boolean', 'required' => false], ], ], 'responses' => [ @@ -33365,491 +19800,135 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'TemplateInfo' => [ - 'title' => '模板详情', - 'description' => '模板详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'StandardSetInfo' => [ + 'title' => '标准集详情', + 'description' => '标准集详情', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'TemplateFrom' => [ - 'title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'UniqueId' => [ - 'title' => 'uniqueId', - 'description' => 'uniqueId', - 'type' => 'string', - 'example' => '1101', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准模板名称', - 'description' => '标准模板名称', - 'type' => 'string', - 'example' => '测试模板', - ], - 'Code' => [ - 'title' => '标准模板编码, 全局唯一;有引用时不可修改', - 'description' => '标准模板编码, 全局唯一;有引用时不可修改', - 'type' => 'string', - 'example' => 'test01', - ], - 'Description' => [ - 'title' => '标准模板描述', - 'description' => '标准模板描述', - 'type' => 'string', - 'example' => 'test', + 'Id' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'Name' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准集编码', 'description' => '标准集编码', 'type' => 'string', 'example' => 'CITY'], + 'Description' => ['title' => '标准集描述', 'description' => '标准集描述', 'type' => 'string', 'example' => 'test'], + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '所属目录', 'description' => '所属目录', 'type' => 'string', 'example' => '/dir1'], + ], ], 'MaintainerList' => [ - 'title' => '维护人员', - 'description' => '维护人员', + 'title' => '维护人员/责任人', + 'description' => '维护人员/责任人', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', + 'MemberList' => [ + 'title' => '成员', + 'description' => '成员', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], ], - 'LastModifier' => [ - 'title' => '最近修改人', - 'description' => '最近修改人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', + 'MemberGroupList' => [ + 'title' => '成员组', + 'description' => '成员组', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'example' => '1121'], + 'Name' => ['title' => '用户组名', 'description' => '用户组名', 'type' => 'string', 'example' => 'testGroup'], ], ], ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'AttributesConfig' => [ - 'title' => '属性配置', - 'description' => '属性配置', + 'VisibilityConfig' => [ + 'title' => '可见性配置', + 'description' => '可见性配置', 'type' => 'object', 'properties' => [ - 'AttributeList' => [ - 'title' => '属性列表', - 'description' => '属性列表', + 'Type' => ['title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'type' => 'string', 'example' => 'PUBLIC'], + 'SpecifiedUserList' => [ + 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'attr1', - ], - 'Code' => [ - 'title' => '属性编码', - 'description' => '属性编码', - 'type' => 'string', - 'example' => 'test_attr', - ], - 'Type' => [ - 'title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'type' => 'string', - 'example' => 'BIZ_ATTRIBUTE', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - ], - 'ValueConfig' => [ - 'title' => '取值配置', - 'description' => '取值配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'type' => 'string', - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ValueRange' => [ - 'title' => '取值范围', - 'description' => '取值范围', - 'type' => 'object', - 'properties' => [ - 'ValueConstraint' => [ - 'title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'type' => 'string', - 'example' => 'NONE', - ], - 'ValueList' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'array', - 'items' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'string', - 'example' => '1', - ], - ], - 'MinMaxValueConfig' => [ - 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'type' => 'object', - 'properties' => [ - 'MinValue' => [ - 'title' => '最小值', - 'description' => '最小值', - 'type' => 'string', - 'example' => '0', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值', - 'description' => '最大值', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - 'LookupTableReference' => [ - 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Column' => [ - 'title' => '引用的码表字段', - 'description' => '引用的码表字段', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - 'DataphinAttributeType' => [ - 'title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'type' => 'string', - 'example' => 'DATAPHIN_ATTRIBUTE', - ], - ], - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'MonitorConfig' => [ - 'title' => '监控配置', - 'description' => '监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - ], - ], - ], - 'EnableMonitorConfig' => [ - 'title' => '是否开启监控配置', - 'description' => '是否开启监控配置', - 'type' => 'boolean', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'RefAttribute' => [ - 'title' => '引用的属性信息', - 'description' => '引用的属性信息', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'AttributeFromInfo' => [ - 'title' => '属性来源', - 'description' => '属性来源', - 'type' => 'object', - 'properties' => [ - 'AttributeFrom' => [ - 'title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'StandardReference' => [ - 'title' => '对应的标准,属性来源为 STANDARD 生效', - 'description' => '对应的标准,属性来源为 STANDARD 生效', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], - ], - ], - ], - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], ], ], ], - 'CodeRuleConfig' => [ - 'title' => '标准编码自动生成规则配置', - 'description' => '标准编码自动生成规则配置', + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', 'type' => 'object', 'properties' => [ - 'GenerateType' => [ - 'title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'AutoConfig' => [ - 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', - 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', - 'type' => 'object', - 'properties' => [ - 'NeedStrongValidate' => [ - 'title' => '是否强校验', - 'description' => '是否强校验', - 'type' => 'boolean', - ], - 'CodeRuleList' => [ - 'title' => '标准编码规则', - 'description' => '标准编码规则', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Index' => [ - 'title' => '编码规则位置索引', - 'description' => '编码规则位置索引', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Type' => [ - 'title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'type' => 'string', - 'example' => 'FIXED_STRING', - ], - 'Value' => [ - 'title' => '编码规则格式/值', - 'description' => '编码规则格式/值', - 'type' => 'string', - 'example' => 'test', - ], - 'AutoIncrementSequenceConfig' => [ - 'title' => '自增序列配置', - 'description' => '自增序列配置', - 'type' => 'object', - 'properties' => [ - 'Digit' => [ - 'title' => '位数', - 'description' => '位数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '3', - ], - 'StartValue' => [ - 'title' => '起始值', - 'description' => '起始值', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Step' => [ - 'title' => '步长', - 'description' => '步长', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NeedPaddingZero' => [ - 'title' => '是否补零', - 'description' => '是否补零', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - ], - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'LastModifier' => [ + 'title' => '最近修改人', + 'description' => '最近修改人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '最近修改时间', 'description' => '最近修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ApprovalConfig' => [ + 'title' => '上线审批配置', + 'description' => '上线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean'], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean'], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + ], + ], + 'OfflineApprovalConfig' => [ + 'title' => '下线审批配置', + 'description' => '下线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean'], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean'], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], ], ], + 'DefaultStandardTemplateId' => ['title' => '默认标准模板ID', 'description' => '默认标准模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1001'], ], ], ], @@ -33858,33 +19937,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StandardSetInfo\\": {\\n \\"Id\\": 1234,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"CITY\\",\\n \\"Description\\": \\"test\\",\\n \\"DirectoryReference\\": {\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"MaintainerList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"MemberList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"MemberGroupList\\": [\\n {\\n \\"Id\\": \\"1121\\",\\n \\"Name\\": \\"testGroup\\"\\n }\\n ],\\n \\"VisibilityConfig\\": {\\n \\"Type\\": \\"PUBLIC\\",\\n \\"SpecifiedUserList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ]\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ApprovalConfig\\": {\\n \\"EnableApproval\\": true,\\n \\"IsSubmitInBatch\\": true,\\n \\"ApprovalType\\": \\"BY_DEFAULT\\",\\n \\"TemplateId\\": 1121\\n },\\n \\"OfflineApprovalConfig\\": {\\n \\"EnableApproval\\": true,\\n \\"IsSubmitInBatch\\": true,\\n \\"ApprovalType\\": \\"BY_DEFAULT\\",\\n \\"TemplateId\\": 1121\\n },\\n \\"DefaultStandardTemplateId\\": 1001\\n }\\n}","type":"json"}]', + 'title' => '获取标准集详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TemplateInfo\\": {\\n \\"Id\\": 22,\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"UniqueId\\": \\"1101\\",\\n \\"Version\\": 1,\\n \\"Name\\": \\"测试模板\\",\\n \\"Code\\": \\"test01\\",\\n \\"Description\\": \\"test\\",\\n \\"MaintainerList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"AttributesConfig\\": {\\n \\"AttributeList\\": [\\n {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n }\\n ]\\n },\\n \\"CodeRuleConfig\\": {\\n \\"GenerateType\\": \\"CUSTOMIZED\\",\\n \\"AutoConfig\\": {\\n \\"NeedStrongValidate\\": true,\\n \\"CodeRuleList\\": [\\n {\\n \\"Index\\": 1,\\n \\"Type\\": \\"FIXED_STRING\\",\\n \\"Value\\": \\"test\\",\\n \\"AutoIncrementSequenceConfig\\": {\\n \\"Digit\\": 3,\\n \\"StartValue\\": 1,\\n \\"Step\\": 1,\\n \\"NeedPaddingZero\\": true\\n }\\n }\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取数据标准模板详情', + 'ramActions' => [], ], 'GetStandardStatistics' => [ 'summary' => '查询目录下按照标准类型统计标准数目。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -33893,23 +19965,12 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'StatisticsQuery', @@ -33920,24 +19981,12 @@ 'description' => '统计查询指令', 'type' => 'object', 'properties' => [ - 'Directory' => [ - 'title' => '所属目录,会搜索包括该目录的所有子目录下的标准', - 'description' => '所属目录,会搜索包括该目录的所有子目录下的标准', - 'type' => 'string', - 'required' => true, - 'example' => '/dir1', - ], + 'Directory' => ['title' => '所属目录,会搜索包括该目录的所有子目录下的标准', 'description' => '所属目录,会搜索包括该目录的所有子目录下的标准', 'type' => 'string', 'required' => true, 'example' => '/dir1'], 'StandardStageList' => [ 'title' => '标准所属stage', 'description' => '标准所属stage', 'type' => 'array', - 'items' => [ - 'title' => '标准所属stage', - 'description' => '标准所属stage', - 'type' => 'string', - 'required' => false, - 'example' => 'dev', - ], + 'items' => ['title' => '标准所属stage', 'description' => '标准所属stage', 'type' => 'string', 'required' => false, 'example' => 'dev'], 'required' => false, ], 'CreateTimePeriod' => [ @@ -33945,26 +19994,9 @@ 'description' => '创建时间段', 'type' => 'object', 'properties' => [ - 'StartTime' => [ - 'title' => '起始时间', - 'description' => '起始时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-01 00:00:00', - ], - 'EndTime' => [ - 'title' => '结束时间', - 'description' => '结束时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30 00:00:00', - ], - 'IncludeEndTime' => [ - 'title' => '是否包含结束时间, 默认:false', - 'description' => '是否包含结束时间, 默认:false', - 'type' => 'boolean', - 'required' => false, - ], + 'StartTime' => ['title' => '起始时间', 'description' => '起始时间', 'type' => 'string', 'required' => false, 'example' => '2025-06-01 00:00:00'], + 'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'required' => false, 'example' => '2025-06-30 00:00:00'], + 'IncludeEndTime' => ['title' => '是否包含结束时间, 默认:false', 'description' => '是否包含结束时间, 默认:false', 'type' => 'boolean', 'required' => false], ], 'required' => false, ], @@ -33980,36 +20012,11 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'Data' => [ 'title' => '统计结果', 'description' => '统计结果', @@ -34024,29 +20031,12 @@ 'description' => '', 'type' => 'object', 'properties' => [ - 'StandardType' => [ - 'title' => '标准类型', - 'description' => '标准类型', - 'type' => 'string', - 'example' => 'test', - ], - 'Count' => [ - 'title' => '标准数', - 'description' => '标准数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '11', - ], + 'StandardType' => ['title' => '标准类型', 'description' => '标准类型', 'type' => 'string', 'example' => 'test'], + 'Count' => ['title' => '标准数', 'description' => '标准数', 'type' => 'integer', 'format' => 'int32', 'example' => '11'], ], ], ], - 'TotalCount' => [ - 'title' => '总标准数', - 'description' => '总标准数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '101', - ], + 'TotalCount' => ['title' => '总标准数', 'description' => '总标准数', 'type' => 'integer', 'format' => 'int32', 'example' => '101'], ], ], ], @@ -34055,33 +20045,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"StandardTypeCountList\\": [\\n {\\n \\"StandardType\\": \\"test\\",\\n \\"Count\\": 11\\n }\\n ],\\n \\"TotalCount\\": 101\\n }\\n}","type":"json"}]', 'title' => '查询目录下按照标准类型统计标准数目', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], ], - 'GetStandardSet' => [ - 'summary' => '获取标准集详情。'."\n" + 'GetStandardTemplate' => [ + 'summary' => '获取数据标准模板详情。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -34090,43 +20073,34 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'Id', 'in' => 'query', - 'schema' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], + 'schema' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], ], [ 'name' => 'Nullable', 'in' => 'query', + 'schema' => ['title' => '模板不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'description' => '模板不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'type' => 'boolean', 'required' => false], + ], + [ + 'name' => 'FilterQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '标准集不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'description' => '标准集不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'type' => 'boolean', + 'title' => '过滤条件', + 'description' => '过滤条件', + 'type' => 'object', + 'properties' => [ + 'Version' => ['title' => '版本号, 空或-1表示最新版本', 'description' => '版本号, 空或-1表示最新版本', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], 'required' => false, ], ], @@ -34138,185 +20112,34 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'StandardSetInfo' => [ - 'title' => '标准集详情', - 'description' => '标准集详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'TemplateInfo' => [ + 'title' => '模板详情', + 'description' => '模板详情', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'Name' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准集编码', - 'description' => '标准集编码', - 'type' => 'string', - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '标准集描述', - 'description' => '标准集描述', - 'type' => 'string', - 'example' => 'test', - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '所属目录', - 'description' => '所属目录', - 'type' => 'string', - 'example' => '/dir1', - ], - ], - ], + 'Id' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'TemplateFrom' => ['title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'type' => 'string', 'example' => 'SYSTEM'], + 'UniqueId' => ['title' => 'uniqueId', 'description' => 'uniqueId', 'type' => 'string', 'example' => '1101'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Name' => ['title' => '标准模板名称', 'description' => '标准模板名称', 'type' => 'string', 'example' => '测试模板'], + 'Code' => ['title' => '标准模板编码, 全局唯一;有引用时不可修改', 'description' => '标准模板编码, 全局唯一;有引用时不可修改', 'type' => 'string', 'example' => 'test01'], + 'Description' => ['title' => '标准模板描述', 'description' => '标准模板描述', 'type' => 'string', 'example' => 'test'], 'MaintainerList' => [ - 'title' => '维护人员/责任人', - 'description' => '维护人员/责任人', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - ], - 'MemberList' => [ - 'title' => '成员', - 'description' => '成员', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - ], - 'MemberGroupList' => [ - 'title' => '成员组', - 'description' => '成员组', + 'title' => '维护人员', + 'description' => '维护人员', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户组Id', - 'description' => '用户组Id', - 'type' => 'string', - 'example' => '1121', - ], - 'Name' => [ - 'title' => '用户组名', - 'description' => '用户组名', - 'type' => 'string', - 'example' => 'testGroup', - ], - ], - ], - ], - 'VisibilityConfig' => [ - 'title' => '可见性配置', - 'description' => '可见性配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'type' => 'string', - 'example' => 'PUBLIC', - ], - 'SpecifiedUserList' => [ - 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], ], @@ -34325,18 +20148,8 @@ 'description' => '创建者', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], 'LastModifier' => [ @@ -34344,99 +20157,161 @@ 'description' => '最近修改人', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], ], ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '最近修改时间', - 'description' => '最近修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ApprovalConfig' => [ - 'title' => '上线审批配置', - 'description' => '上线审批配置', + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'AttributesConfig' => [ + 'title' => '属性配置', + 'description' => '属性配置', 'type' => 'object', 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', + 'AttributeList' => [ + 'title' => '属性列表', + 'description' => '属性列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'attr1'], + 'Code' => ['title' => '属性编码', 'description' => '属性编码', 'type' => 'string', 'example' => 'test_attr'], + 'Type' => ['title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'type' => 'string', 'example' => 'BIZ_ATTRIBUTE'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean'], + 'ValueConfig' => [ + 'title' => '取值配置', + 'description' => '取值配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'type' => 'string', 'example' => 'STRING'], + 'Length' => ['title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ValueRange' => [ + 'title' => '取值范围', + 'description' => '取值范围', + 'type' => 'object', + 'properties' => [ + 'ValueConstraint' => ['title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'type' => 'string', 'example' => 'NONE'], + 'ValueList' => [ + 'title' => '取值范围,当取值来源取值为 LIST 生效', + 'description' => '取值范围,当取值来源取值为 LIST 生效', + 'type' => 'array', + 'items' => ['title' => '取值范围,当取值来源取值为 LIST 生效', 'description' => '取值范围,当取值来源取值为 LIST 生效', 'type' => 'string', 'example' => '1'], + ], + 'MinMaxValueConfig' => [ + 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'type' => 'object', + 'properties' => [ + 'MinValue' => ['title' => '最小值', 'description' => '最小值', 'type' => 'string', 'example' => '0'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值', 'description' => '最大值', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + 'LookupTableReference' => [ + 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Column' => ['title' => '引用的码表字段', 'description' => '引用的码表字段', 'type' => 'string', 'example' => 'col1'], + ], + ], + 'DataphinAttributeType' => ['title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'type' => 'string', 'example' => 'DATAPHIN_ATTRIBUTE'], + ], + ], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'example' => 'test'], + ], + ], + 'MonitorConfig' => [ + 'title' => '监控配置', + 'description' => '监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean'], + ], + ], + 'EnableMonitorConfig' => ['title' => '是否开启监控配置', 'description' => '是否开启监控配置', 'type' => 'boolean'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'RefAttribute' => [ + 'title' => '引用的属性信息', + 'description' => '引用的属性信息', + 'type' => 'object', + 'properties' => [ + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'AttributeFromInfo' => [ + 'title' => '属性来源', + 'description' => '属性来源', + 'type' => 'object', + 'properties' => [ + 'AttributeFrom' => ['title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'type' => 'string', 'example' => 'CUSTOM'], + 'StandardReference' => [ + 'title' => '对应的标准,属性来源为 STANDARD 生效', + 'description' => '对应的标准,属性来源为 STANDARD 生效', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + ], + ], + ], + ], + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + ], + ], ], ], ], - 'OfflineApprovalConfig' => [ - 'title' => '下线审批配置', - 'description' => '下线审批配置', + 'CodeRuleConfig' => [ + 'title' => '标准编码自动生成规则配置', + 'description' => '标准编码自动生成规则配置', 'type' => 'object', 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', + 'GenerateType' => ['title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'AutoConfig' => [ + 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'type' => 'object', + 'properties' => [ + 'NeedStrongValidate' => ['title' => '是否强校验', 'description' => '是否强校验', 'type' => 'boolean'], + 'CodeRuleList' => [ + 'title' => '标准编码规则', + 'description' => '标准编码规则', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Index' => ['title' => '编码规则位置索引', 'description' => '编码规则位置索引', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Type' => ['title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'type' => 'string', 'example' => 'FIXED_STRING'], + 'Value' => ['title' => '编码规则格式/值', 'description' => '编码规则格式/值', 'type' => 'string', 'example' => 'test'], + 'AutoIncrementSequenceConfig' => [ + 'title' => '自增序列配置', + 'description' => '自增序列配置', + 'type' => 'object', + 'properties' => [ + 'Digit' => ['title' => '位数', 'description' => '位数', 'type' => 'integer', 'format' => 'int32', 'example' => '3'], + 'StartValue' => ['title' => '起始值', 'description' => '起始值', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Step' => ['title' => '步长', 'description' => '步长', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NeedPaddingZero' => ['title' => '是否补零', 'description' => '是否补零', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], ], ], ], - 'DefaultStandardTemplateId' => [ - 'title' => '默认标准模板ID', - 'description' => '默认标准模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1001', - ], ], ], ], @@ -34445,33 +20320,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TemplateInfo\\": {\\n \\"Id\\": 22,\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"UniqueId\\": \\"1101\\",\\n \\"Version\\": 1,\\n \\"Name\\": \\"测试模板\\",\\n \\"Code\\": \\"test01\\",\\n \\"Description\\": \\"test\\",\\n \\"MaintainerList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"AttributesConfig\\": {\\n \\"AttributeList\\": [\\n {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n }\\n ]\\n },\\n \\"CodeRuleConfig\\": {\\n \\"GenerateType\\": \\"CUSTOMIZED\\",\\n \\"AutoConfig\\": {\\n \\"NeedStrongValidate\\": true,\\n \\"CodeRuleList\\": [\\n {\\n \\"Index\\": 1,\\n \\"Type\\": \\"FIXED_STRING\\",\\n \\"Value\\": \\"test\\",\\n \\"AutoIncrementSequenceConfig\\": {\\n \\"Digit\\": 3,\\n \\"StartValue\\": 1,\\n \\"Step\\": 1,\\n \\"NeedPaddingZero\\": true\\n }\\n }\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', + 'title' => '获取数据标准模板详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StandardSetInfo\\": {\\n \\"Id\\": 1234,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"CITY\\",\\n \\"Description\\": \\"test\\",\\n \\"DirectoryReference\\": {\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"MaintainerList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"MemberList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ],\\n \\"MemberGroupList\\": [\\n {\\n \\"Id\\": \\"1121\\",\\n \\"Name\\": \\"testGroup\\"\\n }\\n ],\\n \\"VisibilityConfig\\": {\\n \\"Type\\": \\"PUBLIC\\",\\n \\"SpecifiedUserList\\": [\\n {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n }\\n ]\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ApprovalConfig\\": {\\n \\"EnableApproval\\": true,\\n \\"IsSubmitInBatch\\": true,\\n \\"ApprovalType\\": \\"BY_DEFAULT\\",\\n \\"TemplateId\\": 1121\\n },\\n \\"OfflineApprovalConfig\\": {\\n \\"EnableApproval\\": true,\\n \\"IsSubmitInBatch\\": true,\\n \\"ApprovalType\\": \\"BY_DEFAULT\\",\\n \\"TemplateId\\": 1121\\n },\\n \\"DefaultStandardTemplateId\\": 1001\\n }\\n}","type":"json"}]', - 'title' => '获取标准集详情', + 'ramActions' => [], ], - 'GetStandardLookupTable' => [ - 'summary' => '获取数据标准码表详情。'."\n" + 'GetStandardWordRoot' => [ + 'summary' => '获取数据标准词根详情。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -34480,45 +20348,22 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'Name', 'in' => 'query', - 'schema' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], + 'schema' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'required' => true, 'example' => '平均值'], ], [ 'name' => 'Nullable', 'in' => 'query', - 'schema' => [ - 'title' => '码表不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'description' => '码表不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'type' => 'boolean', - 'required' => false, - ], + 'schema' => ['title' => '词根不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'description' => '词根不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', 'type' => 'boolean', 'required' => false], ], ], 'responses' => [ @@ -34528,163 +20373,26 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'LookupTableInfo' => [ - 'title' => '码表详情', - 'description' => '码表详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'WordRootInfo' => [ + 'title' => '词根详情', + 'description' => '词根详情', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'Name' => [ - 'title' => '码表名称', - 'description' => '码表名称', - 'type' => 'string', - 'example' => '城市码表', - ], - 'Code' => [ - 'title' => '码表编码', - 'description' => '码表编码', - 'type' => 'string', - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '码表描述', - 'description' => '码表描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012021', - ], - 'CreatorName' => [ - 'title' => '创建人用户名', - 'description' => '创建人用户名', - 'type' => 'string', - 'example' => 'test', - ], - 'LastModifier' => [ - 'title' => '最近更新人用户ID', - 'description' => '最近更新人用户ID', - 'type' => 'string', - 'example' => '30012021', - ], - 'LastModifierName' => [ - 'title' => '最近更新人用户名', - 'description' => '最近更新人用户名', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012021', - ], - 'OwnerName' => [ - 'title' => '负责人用户名', - 'description' => '负责人用户名', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'LookupTableValueList' => [ - 'title' => '码表值列表', - 'description' => '码表值列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '代码值', - 'description' => '代码值', - 'type' => 'string', - 'example' => '杭州', - ], - 'Name' => [ - 'title' => '代码名称', - 'description' => '代码名称', - 'type' => 'string', - 'example' => 'Hangzhou', - ], - 'EnglishName' => [ - 'title' => '代码英文名', - 'description' => '代码英文名', - 'type' => 'string', - 'example' => 'HZ', - ], - 'Description' => [ - 'title' => '代码描述', - 'description' => '代码描述', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'string', - 'example' => '/dir1/dir2', - ], - ], - ], + 'Name' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'example' => '平均值'], + 'FullName' => ['title' => '词根全称', 'description' => '词根全称', 'type' => 'string', 'example' => 'average'], + 'Abbreviation' => ['title' => '词根缩写', 'description' => '词根缩写', 'type' => 'string', 'example' => 'avg'], + 'Description' => ['title' => '词根描述', 'description' => '词根描述', 'type' => 'string', 'example' => 'test'], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012021'], + 'CreatorName' => ['title' => '创建人用户名', 'description' => '创建人用户名', 'type' => 'string', 'example' => 'test'], + 'LastModifier' => ['title' => '最近更新人用户ID', 'description' => '最近更新人用户ID', 'type' => 'string', 'example' => '30012021'], + 'LastModifierName' => ['title' => '最近更新人用户名', 'description' => '最近更新人用户名', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], ], ], ], @@ -34693,33 +20401,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WordRootInfo\\": {\\n \\"Name\\": \\"平均值\\",\\n \\"FullName\\": \\"average\\",\\n \\"Abbreviation\\": \\"avg\\",\\n \\"Description\\": \\"test\\",\\n \\"Creator\\": \\"30012021\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"LastModifier\\": \\"30012021\\",\\n \\"LastModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', + 'title' => '获取数据标准词根详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"LookupTableInfo\\": {\\n \\"Id\\": 1234,\\n \\"Name\\": \\"城市码表\\",\\n \\"Code\\": \\"CITY\\",\\n \\"Description\\": \\"test\\",\\n \\"Creator\\": \\"30012021\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"LastModifier\\": \\"30012021\\",\\n \\"LastModifierName\\": \\"test\\",\\n \\"Owner\\": \\"30012021\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LookupTableValueList\\": [\\n {\\n \\"Value\\": \\"杭州\\",\\n \\"Name\\": \\"Hangzhou\\",\\n \\"EnglishName\\": \\"HZ\\",\\n \\"Description\\": \\"test\\"\\n }\\n ],\\n \\"DirectoryReference\\": {\\n \\"Directory\\": \\"/dir1/dir2\\"\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取数据标准码表详情', + 'ramActions' => [], ], - 'GetStandard' => [ - 'summary' => '获取标准详情。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetStreamJobs' => [ + 'summary' => '获取实时研发任务列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -34728,861 +20428,397 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => 'dataphin项目id', 'description' => 'dataphin项目id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7162269257990111'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => 'dataphin环境,DEV或者PROD', 'description' => 'dataphin环境,DEV或者PROD', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => [ + 'description' => '返回的数据内容。', + 'type' => 'array', + 'items' => [ + 'description' => '任务对象', + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '任务状态', 'description' => '任务状态: 0 草稿 1 提交中 2 已提交 3 已发布 100 开发中', 'type' => 'string', 'example' => '0'], + 'Type' => ['title' => '任务类型,FLINK_SQL或者FLINK_DATASTREAM', 'description' => '任务类型,FLINK_SQL或者FLINK_DATASTREAM', 'type' => 'string', 'example' => 'FLINK_SQL'], + 'OwnerId' => ['title' => '创建者id', 'description' => '创建者id', 'type' => 'string', 'example' => '300006788'], + 'JobName' => ['title' => '实时任务名', 'description' => '实时任务名', 'type' => 'string', 'example' => 'flink_order_detail'], + 'ProjectId' => ['title' => 'dataphin项目id', 'description' => 'dataphin项目id', 'type' => 'string', 'example' => '7162269257990111'], + 'Id' => ['title' => '实时任务的mapping id', 'description' => '实时任务的mapping id', 'type' => 'integer', 'format' => 'int64', 'example' => '716555'], + 'Env' => ['title' => '环境标识:DEV 开发、PROD 生产', 'description' => '环境标识:DEV开发、PROD生产', 'type' => 'string', 'example' => 'DEV'], + 'ModifierId' => ['title' => '最近一次变更人的id', 'description' => '最近一次变更人的id', 'type' => 'string', 'example' => '300006788'], + ], + ], + ], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": [\\n {\\n \\"Status\\": \\"0\\",\\n \\"Type\\": \\"FLINK_SQL\\",\\n \\"OwnerId\\": \\"300006788\\",\\n \\"JobName\\": \\"flink_order_detail\\",\\n \\"ProjectId\\": \\"7162269257990111\\",\\n \\"Id\\": 716555,\\n \\"Env\\": \\"DEV\\",\\n \\"ModifierId\\": \\"300006788\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取实时研发任务', + 'changeSet' => [ + ['createdAt' => '2025-07-01T03:29:33.000Z', 'description' => '响应参数发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'GetSupplementDagrun' => [ + 'summary' => '获取补数据工作流所有业务日期的Dagrun信息。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'StandardGetQuery', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'SupplementId', + 'in' => 'query', + 'schema' => ['title' => '补数据工作流ID', 'description' => '补数据ID', 'type' => 'string', 'required' => true, 'example' => 'f_8241792_20201202_2099680'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '查询指令', - 'description' => '查询指令', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - 'Nullable' => [ - 'title' => '标准不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'description' => '标准不存在时是否允许返回空值, 如果为false则会抛出异常,默认:true', - 'type' => 'boolean', - 'required' => false, - ], - 'Version' => [ - 'title' => '版本号, 为空表示最新版本', - 'description' => '版本号, 为空表示最新版本', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'StandardStage' => [ - 'title' => '所属阶段:dev、prod, 默认:prod', - 'description' => '所属阶段:dev、prod, 默认:prod', - 'type' => 'string', - 'required' => false, - 'example' => 'dev', - ], - 'NeedRelation' => [ - 'title' => '是否需要返回关联标准和关联码表, 默认:false', - 'description' => '是否需要返回关联标准和关联码表, 默认:false', - 'type' => 'boolean', - 'required' => false, + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'DagrunList' => [ + 'title' => 'Dagrun列表', + 'description' => 'Dagrun列表', + 'type' => 'array', + 'items' => [ + 'title' => 'Dagrun详情', + 'description' => 'Dagrun详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Dagrun ID', 'description' => 'Dagrun ID', 'type' => 'string', 'example' => 'dr_2242792_14542'], + 'BizDate' => ['title' => '业务日期,时间格式须符合业务板块指定的分区格式', 'description' => '业务日期,时间格式须符合业务板块指定的分区格式', 'type' => 'string', 'example' => '2024-04-01'], + 'Status' => ['title' => '补数工作流状态:'."\n" + .'INIT:dagrun初始化'."\n" + .'CREATE_FAILED:dagrun创建失败'."\n" + .'CREATED:dagrun创建成功'."\n" + .'READY:dagrun准备好可以执行'."\n" + .'RUNNING:dagrun运行中'."\n" + .'KILLED:dagrun运行中止'."\n" + .'FAILED:dagrun运行失败'."\n" + .'SUCCESS:dagrun运行成功', 'description' => '补数工作流状态:'."\n" + ."\n" + .'- INIT:dagrun初始化'."\n" + .'- CREATE_FAILED:dagrun创建失败'."\n" + .'- CREATED:dagrun创建成功'."\n" + .'- READY:dagrun准备好可以执行'."\n" + .'- RUNNING:dagrun运行中'."\n" + .'- KILLED:dagrun运行中止'."\n" + .'- FAILED:dagrun运行失败'."\n" + .'- SUCCESS:dagrun运行成功', 'type' => 'string', 'example' => 'RUNNING'], + 'StartExecuteTime' => ['title' => '执行起始时间戳', 'description' => '执行起始时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1717081729000'], + 'EndExecuteTime' => ['title' => '执行终止时间戳', 'description' => '执行终止时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1717081789000'], + 'SupplementId' => ['title' => '补数工作流Id', 'description' => '补数工作流Id', 'type' => 'string', 'example' => 'f_8241792_20201202_2099680'], + 'Duration' => ['title' => '部署工作流运行时长', 'description' => '运行时长,单位:秒', 'type' => 'string', 'example' => '60s'], + ], + ], ], ], - 'required' => true, ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DagrunList\\": [\\n {\\n \\"Id\\": \\"dr_2242792_14542\\",\\n \\"BizDate\\": \\"2024-04-01\\",\\n \\"Status\\": \\"RUNNING\\",\\n \\"StartExecuteTime\\": 1717081729000,\\n \\"EndExecuteTime\\": 1717081789000,\\n \\"SupplementId\\": \\"f_8241792_20201202_2099680\\",\\n \\"Duration\\": \\"60s\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取补数据工作流Dagrun列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetSupplementDagrun', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'GetSupplementDagrunInstance' => [ + 'summary' => '列出补数据工作流下具体一个业务日期的所有节点的实例。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DagrunId', + 'in' => 'query', + 'schema' => ['title' => 'Dagrun ID', 'description' => 'Dagrun ID', 'type' => 'string', 'required' => true, 'example' => 'dr_2242792_14542'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'StandardInfo' => [ - 'title' => '标准详情', - 'description' => '标准详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '码表', - 'description' => '码表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Status' => [ - 'title' => '标准的状态', - 'description' => '标准的状态', - 'type' => 'string', - 'example' => 'draft', - ], - 'Stage' => [ - 'title' => '标准所属的阶段', - 'description' => '标准所属的阶段', - 'type' => 'string', - 'example' => 'dev', - ], - 'StandardTemplate' => [ - 'title' => '当前标准依赖的标准模板', - 'description' => '当前标准依赖的标准模板', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准模板名称', - 'description' => '标准模板名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准模板编码', - 'description' => '标准模板编码', - 'type' => 'string', - 'example' => '1121', - ], - 'TemplateFrom' => [ - 'title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', - 'type' => 'string', - 'example' => 'SYSTEM', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'StandardSet' => [ - 'title' => '当前标准依赖的标准集', - 'description' => '当前标准依赖的标准集', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准集编码', - 'description' => '标准集编码', - 'type' => 'string', - 'example' => 'cc', - ], - 'Directory' => [ - 'title' => '标准集所属的目录', - 'description' => '标准集所属的目录', - 'type' => 'string', - 'example' => '/dir1', - ], - ], - ], - 'EffectiveTimeConfig' => [ - 'title' => '生效时间配置', - 'description' => '生效时间配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'type' => 'string', - 'example' => 'TIME_PERIOD', - ], - 'StartTime' => [ - 'title' => '开始生效时间', - 'description' => '开始生效时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '结束生效时间', - 'description' => '结束生效时间', - 'type' => 'string', - 'example' => '2025-12-30 00:00:00', - ], - ], - ], - 'Description' => [ - 'title' => '描述信息', - 'description' => '描述信息', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - 'Name' => [ - 'title' => '标准名称', - 'description' => '标准名称', - 'type' => 'string', - 'example' => 'test', - ], - 'EnglishName' => [ - 'title' => '标准英文名', - 'description' => '标准英文名', - 'type' => 'string', - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准编码', - 'description' => '标准编码', - 'type' => 'string', - 'example' => 'zz', - ], - 'Type' => [ - 'title' => '标准类型', - 'description' => '标准类型', - 'type' => 'string', - 'example' => 'zz', - ], - 'ModifyTime' => [ - 'title' => '最近修改时间', - 'description' => '最近修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'LastModifier' => [ - 'title' => '最近更新人', - 'description' => '最近更新人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户Id', - 'description' => '用户Id', - 'type' => 'string', - 'example' => '300000913', - ], - 'Name' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'example' => 'susan', - ], - ], - ], - 'AttributeWithValueList' => [ - 'title' => '属性值配置', - 'description' => '属性值配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'InstanceList' => [ + 'title' => '实例列表', + 'description' => '实例列表', + 'type' => 'array', + 'items' => [ + 'title' => '实例详情', + 'description' => '实例详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_239496_20210411_246982077481'], + 'Type' => ['title' => '实例类型'."\n" + .'NORMAL:周期实例、'."\n" + .'SUPPLEMENT:补数据实例'."\n" + .'MANUAL:手动实例', 'description' => '实例类型'."\n" + ."\n" + .'- NORMAL:周期实例、'."\n" + .'- SUPPLEMENT:补数据实例'."\n" + .'- MANUAL:手动实例', 'type' => 'string', 'example' => 'SUPPLEMENT'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-04-01'], + 'DueTime' => ['title' => '调度日期', 'description' => '调度日期', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-04-02'], + 'StatusList' => [ + 'title' => '实例的状态列表,物理实例列表中只会有一个状态'."\n" + .'NIT:初始化'."\n" + .'WATING:待运行'."\n" + .'RUNNING:运行中'."\n" + .'SUCCESS:成功'."\n" + .'FAILED:失败', + 'description' => '实例的状态列表,物理实例列表中只会有一个状态'."\n" + ."\n" + .'- NIT:初始化'."\n" + .'- WATING:待运行'."\n" + .'- RUNNING:运行中'."\n" + .'- SUCCESS:成功'."\n" + .'- FAILED:失败', + 'type' => 'array', + 'items' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'SUCCESS'], + ], + 'StartExecuteTime' => ['title' => '开始执行时间', 'description' => '开始执行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-04-12 00:00:00'], + 'EndExecuteTime' => ['title' => '结束执行时间', 'description' => '结束执行时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-04-12 00:25:02'], + 'Duration' => ['title' => '执行时间,单位:秒 ', 'description' => '执行时间,单位:秒 ', 'type' => 'string', 'example' => '60'], + 'Index' => ['title' => '小时/分钟实例序号', 'description' => '小时/分钟实例序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExtendInfo' => ['title' => '扩展信息'."\n" + .'不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名', 'description' => '扩展信息'."\n" + .'不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名', 'type' => 'string', 'example' => '{"a":"b"}'], + 'NodeInfo' => [ + 'title' => '实例对应节点详情', + 'description' => '实例对应节点详情', 'type' => 'object', 'properties' => [ - 'Attribute' => [ - 'title' => '属性详情', - 'description' => '属性详情', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_239496'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型'."\n" + .'DATA_PROCESS:代码任务'."\n" + .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'ONE_ID_LABEL:萃取标签节点'."\n" + .'ONE_ID_RULE:萃取标签节点'."\n" + .'PIPELINE_NODE:PIPELINE节点', 'description' => '节点类型'."\n" + ."\n" + .'- DATA_PROCESS:代码任务'."\n" + .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" + .'- ONE_ID_LABEL:萃取标签节点'."\n" + .'- ONE_ID_RULE:萃取标签节点'."\n" + .'- PIPELINE_NODE:PIPELINE节点', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'From' => ['title' => '来源业务系统'."\n" + .'DATA_PROCESS:代码研发'."\n" + .'BLACK_BOX:黑盒'."\n" + .'ONE_ID:萃取'."\n" + .'PIPELINE:PIPELINE', 'description' => '来源业务系统'."\n" + ."\n" + .'- DATA_PROCESS:代码研发'."\n" + .'- BLACK_BOX:黑盒'."\n" + .'- ONE_ID:萃取'."\n" + .'- PIPELINE:PIPELINE', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'SubDetailType' => ['title' => '节点子类型', 'description' => '节点子类型', 'type' => 'string', 'example' => 'SHELL'], + 'Description' => ['title' => '节点描述', 'description' => '节点描述', 'type' => 'string', 'example' => 'xx测试'], + 'DryRun' => ['title' => '是否空跑', 'description' => '是否空跑', 'type' => 'boolean', 'example' => 'true'], + 'SchedulePaused' => ['title' => '是否暂停', 'description' => '是否暂停', 'type' => 'boolean', 'example' => 'true'], + 'HasProd' => ['title' => '是否存在生产环境', 'description' => '是否存在生产环境', 'type' => 'boolean', 'example' => 'true'], + 'HasDev' => ['title' => '是否存在开发环境', 'description' => '是否存在开发环境', 'type' => 'boolean', 'example' => 'true'], + 'ResourceGroupList' => [ + 'title' => '资源组', + 'description' => '资源组', + 'type' => 'array', + 'items' => ['title' => '资源组', 'description' => '资源组', 'type' => 'string', 'example' => 'rs_group_test'], + ], + 'PriorityList' => [ + 'title' => '优先级'."\n" + .'HIGHEST'."\n" + .'HIGH'."\n" + .'MIDDLE'."\n" + .'LOW'."\n" + .'LOWEST', + 'description' => '优先级'."\n" + ."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', + 'type' => 'array', + 'items' => ['title' => '优先级', 'description' => '优先级', 'type' => 'string', 'example' => 'MIDDLE'], + ], + 'SchedulePeriodList' => [ + 'title' => '调度周期'."\n" + .'MINUTELY'."\n" + .'HOURLY'."\n" + .'DAILY'."\n" + .'WEEKLY'."\n" + .'MONTHLY'."\n" + .'QUARTERLY', + 'description' => '调度周期'."\n" + ."\n" + .'- MINUTELY'."\n" + .'- HOURLY'."\n" + .'- DAILY'."\n" + .'- WEEKLY'."\n" + .'- MONTHLY'."\n" + .'- QUARTERLY', + 'type' => 'array', + 'items' => ['title' => '调度周期', 'description' => '调度周期', 'type' => 'string', 'example' => 'DAILY'], + ], + 'BizUnitName' => ['title' => '业务板块', 'description' => '业务板块', 'type' => 'string', 'example' => 'xx测试'], + 'Creator' => [ + 'title' => '节点创建者', + 'description' => '节点创建者', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'attr1', - ], - 'Code' => [ - 'title' => '属性编码', - 'description' => '属性编码', - 'type' => 'string', - 'example' => 'test_attr', - ], - 'Type' => [ - 'title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'type' => 'string', - 'example' => 'BIZ_ATTRIBUTE', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - ], - 'ValueConfig' => [ - 'title' => '取值配置', - 'description' => '取值配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'type' => 'string', - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ValueRange' => [ - 'title' => '取值范围', - 'description' => '取值范围', - 'type' => 'object', - 'properties' => [ - 'ValueConstraint' => [ - 'title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'type' => 'string', - 'example' => 'NONE', - ], - 'ValueList' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'array', - 'items' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'string', - 'example' => '1', - ], - ], - 'MinMaxValueConfig' => [ - 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'type' => 'object', - 'properties' => [ - 'MinValue' => [ - 'title' => '最小值', - 'description' => '最小值', - 'type' => 'string', - 'example' => '0', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值', - 'description' => '最大值', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - 'LookupTableReference' => [ - 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Column' => [ - 'title' => '引用的码表字段', - 'description' => '引用的码表字段', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - 'DataphinAttributeType' => [ - 'title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'type' => 'string', - 'example' => 'DATAPHIN_ATTRIBUTE', - ], - ], - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'MonitorConfig' => [ - 'title' => '监控配置', - 'description' => '监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - ], - ], - ], - 'EnableMonitorConfig' => [ - 'title' => '是否开启监控配置', - 'description' => '是否开启监控配置', - 'type' => 'boolean', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'RefAttribute' => [ - 'title' => '引用的属性信息', - 'description' => '引用的属性信息', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'AttributeFromInfo' => [ - 'title' => '属性来源', - 'description' => '属性来源', - 'type' => 'object', - 'properties' => [ - 'AttributeFrom' => [ - 'title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'StandardReference' => [ - 'title' => '对应的标准,属性来源为 STANDARD 生效', - 'description' => '对应的标准,属性来源为 STANDARD 生效', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], - ], - ], - ], - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - ], - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'StandardGeneralMonitorConfig' => [ - 'title' => '标准监控配置', - 'description' => '标准监控配置', - 'type' => 'object', - 'properties' => [ - 'StandardMonitorConfigList' => [ - 'title' => '标准监控配置列表', - 'description' => '标准监控配置列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '规则描述', - 'description' => '规则描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'example' => 'METADATA', - ], - 'MonitorFrom' => [ - 'title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'type' => 'string', - 'example' => 'BY_SYSTEM_ATTRIBUTE', - ], - 'AttributeId' => [ - 'title' => '关联的属性Id', - 'description' => '关联的属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '112', - ], - 'AttributeName' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'teset', - ], - 'AttributeMonitorConfig' => [ - 'title' => '关联属性的监控配置', - 'description' => '关联属性的监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - ], - ], - ], - 'RuleSubType' => [ - 'title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'QualityRuleTemplate' => [ - 'title' => '规则模板, 当监控类型为 QUALITY 时必填', - 'description' => '规则模板, 当监控类型为 QUALITY 时必填', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '模板Id', - 'description' => '模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Type' => [ - 'title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - ], - ], - 'RuleConfigList' => [ - 'title' => '规则配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - ], - 'RuleValidateConfigList' => [ - 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '校验配置Id, 由业务随机生成且确保唯一', - 'description' => '校验配置Id, 由业务随机生成且确保唯一', - 'type' => 'string', - 'example' => 'abc', - ], - 'ParentId' => [ - 'title' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'type' => 'string', - 'example' => 'a', - ], - 'Type' => [ - 'title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'type' => 'string', - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'type' => 'string', - 'example' => 'AND', - ], - 'Metric' => [ - 'title' => '指标, 校验类型为 EXPRESSION 时必填', - 'description' => '指标, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'example' => 'a', - ], - 'MetricName' => [ - 'title' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'example' => 'test', - ], - 'Value' => [ - 'title' => '比较的值', - 'description' => '比较的值', - 'type' => 'string', - 'example' => '1', - ], - ], - ], + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '1001012'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'Modifier' => [ + 'title' => '修改者', + 'description' => '修改者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '1001012'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'OwnerList' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'array', + 'items' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '1001012'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], ], ], ], - ], - ], - ], - 'StandardRelations' => [ - 'title' => '关联标准列表', - 'description' => '关联标准列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'Version' => [ - 'title' => '标准版本号', - 'description' => '标准版本号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'StandardStage' => [ - 'title' => '标准所处阶段', - 'description' => '标准所处阶段', - 'type' => 'string', - 'example' => 'DEV', - ], - 'StandardStatus' => [ - 'title' => '标准状态', - 'description' => '标准状态', - 'type' => 'string', - 'example' => 'draft', - ], - 'RelationType' => [ - 'title' => '关联关系类型: RELATIVE', - 'description' => '关联关系类型: RELATIVE', - 'type' => 'string', - 'example' => 'RELATIVE', - ], - ], - ], - ], - 'LookupTableRelations' => [ - 'title' => '关联码表列表', - 'description' => '关联码表列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'LookupTableCode' => [ - 'title' => '码表编码', - 'description' => '码表编码', - 'type' => 'string', - 'example' => 'test', - ], - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1122', - ], - 'AttributeName' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'test', - ], - 'AttributeCode' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'zz', - ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-01-30 10:08:49'], + 'LastModifiedTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2024-01-30 10:08:49'], ], ], ], @@ -35594,68 +20830,78 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceList\\": [\\n {\\n \\"Id\\": \\"t_239496_20210411_246982077481\\",\\n \\"Type\\": \\"SUPPLEMENT\\",\\n \\"BizDate\\": 0,\\n \\"DueTime\\": 0,\\n \\"StatusList\\": [\\n \\"SUCCESS\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"60\\",\\n \\"Index\\": 1,\\n \\"ExtendInfo\\": \\"{\\\\\\"a\\\\\\":\\\\\\"b\\\\\\"}\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_239496\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"DryRun\\": true,\\n \\"SchedulePaused\\": true,\\n \\"HasProd\\": true,\\n \\"HasDev\\": true,\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2024-01-30 10:08:49\\",\\n \\"LastModifiedTime\\": \\"2024-01-30 10:08:49\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取补数据工作流Dagrun下实例列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"StandardInfo\\": {\\n \\"Id\\": 1234,\\n \\"Version\\": 1,\\n \\"Status\\": \\"draft\\",\\n \\"Stage\\": \\"dev\\",\\n \\"StandardTemplate\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"1121\\",\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"Version\\": 1\\n },\\n \\"StandardSet\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"cc\\",\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"EffectiveTimeConfig\\": {\\n \\"Type\\": \\"TIME_PERIOD\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-12-30 00:00:00\\"\\n },\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Name\\": \\"test\\",\\n \\"EnglishName\\": \\"test\\",\\n \\"Code\\": \\"zz\\",\\n \\"Type\\": \\"zz\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"Attribute\\": {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n },\\n \\"Value\\": \\"test\\"\\n }\\n ],\\n \\"StandardGeneralMonitorConfig\\": {\\n \\"StandardMonitorConfigList\\": [\\n {\\n \\"Id\\": 1,\\n \\"RuleName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Type\\": \\"METADATA\\",\\n \\"MonitorFrom\\": \\"BY_SYSTEM_ATTRIBUTE\\",\\n \\"AttributeId\\": 112,\\n \\"AttributeName\\": \\"teset\\",\\n \\"AttributeMonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"RuleSubType\\": \\"CUSTOMIZED\\",\\n \\"QualityRuleTemplate\\": {\\n \\"Id\\": 22,\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"Name\\": \\"CUSTOMIZED\\"\\n },\\n \\"RuleConfigList\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"RuleValidateConfigList\\": [\\n {\\n \\"Id\\": \\"abc\\",\\n \\"ParentId\\": \\"a\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"Metric\\": \\"a\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\"\\n }\\n ]\\n }\\n ]\\n },\\n \\"StandardRelations\\": [\\n {\\n \\"StandardId\\": 1121,\\n \\"Version\\": 1,\\n \\"StandardStage\\": \\"DEV\\",\\n \\"StandardStatus\\": \\"draft\\",\\n \\"RelationType\\": \\"RELATIVE\\"\\n }\\n ],\\n \\"LookupTableRelations\\": [\\n {\\n \\"LookupTableId\\": 1121,\\n \\"LookupTableCode\\": \\"test\\",\\n \\"AttributeId\\": 1122,\\n \\"AttributeName\\": \\"test\\",\\n \\"AttributeCode\\": \\"zz\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取标准详情', - ], - 'DeleteStandardWordRoot' => [ - 'summary' => '删除数据标准词根。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetSupplementDagrunInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GetTableColumnLineageByTaskId' => [ + 'summary' => '查询表字段血缘信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Name', - 'in' => 'query', + 'name' => 'TableColumnLineageByTaskIdQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', + 'title' => '查询表字段血缘的数据结构', + 'description' => '查询表字段血缘的数据结构', + 'type' => 'object', + 'properties' => [ + 'TaskId' => ['title' => '用于过滤要查询的任务(节点)Id', 'description' => '用于过滤要查询的任务(节点)Id', 'type' => 'string', 'required' => true, 'example' => 'n_123'], + 'TaskEnv' => [ + 'title' => '用于过滤要查询的任务所属的环境 DEV/PROD', + 'description' => '用于过滤要查询的任务所属的环境 DEV/PROD', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [], + 'example' => 'DEV', + ], + 'NeedNotExistObject' => ['title' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', 'description' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', 'type' => 'boolean', 'required' => false], + ], 'required' => true, - 'example' => '平均值', ], ], ], @@ -35663,143 +20909,151 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'array', + 'items' => [ + 'title' => '血缘详情', + 'description' => '血缘详情', + 'type' => 'object', + 'properties' => [ + 'TenantId' => ['title' => '租户id', 'description' => '租户id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'TaskId' => ['title' => '血缘对应的任务(节点)Id', 'description' => '血缘对应的任务(节点)Id', 'type' => 'string', 'example' => 'n_123'], + 'TaskEnv' => ['title' => '血缘对应的任务(节点)所属环境 DEV/PROD', 'description' => '血缘对应的任务(节点)所属环境 DEV/PROD', 'type' => 'string', 'example' => 'DEV'], + 'InputEnv' => ['title' => '输入表所属的env, DEV/PROD', 'description' => '输入表所属的env, DEV/PROD', 'type' => 'string', 'example' => 'DEV'], + 'InputTableId' => ['title' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" + .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" + .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" + .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', 'description' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" + ."\n" + .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" + .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" + .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', 'type' => 'string', 'example' => 'odps.123.test_project.order'], + 'InputTableName' => ['title' => '输入表名', 'description' => '输入表名', 'type' => 'string', 'example' => 'order'], + 'InputColumnId' => ['title' => '输入字段guid', 'description' => '输入字段guid', 'type' => 'string', 'example' => 'odps.123.test_project.input_table.id'], + 'InputColumnName' => ['title' => '输入字段名', 'description' => '输入字段名', 'type' => 'string', 'example' => 'id'], + 'InputTableType' => ['title' => '输入表类型'."\n" + .'- PHYSICAL_TABLE 物理表(计算源)'."\n" + .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" + .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" + .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" + .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" + .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" + .'- PHYSICAL_VIEW 物理视图'."\n" + .'- LOGICAL_VIEW 逻辑视图'."\n" + .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" + .'- DATA_SOURCE_VIEW 数据源视图'."\n" + .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', 'description' => '输入表类型'."\n" + .'- PHYSICAL_TABLE 物理表(计算源)'."\n" + .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" + .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" + .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" + .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" + .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" + .'- PHYSICAL_VIEW 物理视图'."\n" + .'- LOGICAL_VIEW 逻辑视图'."\n" + .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" + .'- DATA_SOURCE_VIEW 数据源视图'."\n" + .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'InputDataSourceType' => ['title' => '输入表存储格式', 'description' => '输入表存储格式', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputDbType' => ['title' => '输入数据源类型', 'description' => '输入数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputProjectId' => ['title' => '输入表所属项目Id', 'description' => '输入表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputBizUnitId' => ['title' => '输入表所属业务板块Id', 'description' => '输入表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputDataSourceId' => ['title' => '输入表所属数据源Id', 'description' => '输入表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputTableDeleted' => ['title' => '输入表是否已删除', 'description' => '输入表是否已删除', 'type' => 'boolean'], + 'OutputTableType' => ['title' => '输出表类型, 枚举值见: InputTableType', 'description' => '输出表类型, 枚举值见: InputTableType', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'OutputEnv' => ['title' => '输出表所属的env, DEV/PROD', 'description' => '输出表所属的env, DEV/PROD', 'type' => 'string', 'example' => 'DEV'], + 'OutputBizUnitId' => ['title' => '输出表所属业务板块Id', 'description' => '输出表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputDataSourceType' => ['title' => '输出表存储格式', 'description' => '输出表存储格式', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputDbType' => ['title' => '输出数据源类型', 'description' => '输出数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputProjectId' => ['title' => '输出表所属项目Id', 'description' => '输出表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputDataSourceId' => ['title' => '输出表所属数据源Id', 'description' => '输出表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputTableId' => ['title' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', 'description' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', 'type' => 'string', 'example' => 'odps.123.test_project.order'], + 'OutputTableName' => ['title' => '输出表名', 'description' => '输出表名', 'type' => 'string', 'example' => 'order'], + 'OutputColumnId' => ['title' => '输出字段guid', 'description' => '输出字段guid', 'type' => 'string', 'example' => 'odps.123.test_project.input_table.id'], + 'OutputColumnName' => ['title' => '输出字段名', 'description' => '输出字段名', 'type' => 'string', 'example' => 'id'], + 'OutputTableDeleted' => ['title' => '输出表是否已删除', 'description' => '输出表是否已删除', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"TenantId\\": 12345,\\n \\"TaskId\\": \\"n_123\\",\\n \\"TaskEnv\\": \\"DEV\\",\\n \\"InputEnv\\": \\"DEV\\",\\n \\"InputTableId\\": \\"odps.123.test_project.order\\",\\n \\"InputTableName\\": \\"order\\",\\n \\"InputColumnId\\": \\"odps.123.test_project.input_table.id\\",\\n \\"InputColumnName\\": \\"id\\",\\n \\"InputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputDbType\\": \\"MAX_COMPUTE\\",\\n \\"InputProjectId\\": 123,\\n \\"InputBizUnitId\\": 123,\\n \\"InputDataSourceId\\": 123,\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"OutputEnv\\": \\"DEV\\",\\n \\"OutputBizUnitId\\": 123,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputDbType\\": \\"MAX_COMPUTE\\",\\n \\"OutputProjectId\\": 123,\\n \\"OutputDataSourceId\\": 123,\\n \\"OutputTableId\\": \\"odps.123.test_project.order\\",\\n \\"OutputTableName\\": \\"order\\",\\n \\"OutputColumnId\\": \\"odps.123.test_project.input_table.id\\",\\n \\"OutputColumnName\\": \\"id\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '表字段血缘查询', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除数据标准词根', + 'ramActions' => [], ], - 'DeleteStandardValidMapping' => [ - 'summary' => '删除有效映射关系。'."\n" + 'GetTableColumnLineages' => [ + 'summary' => '查询资产表字段血缘信息。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'TableGuid', + 'in' => 'query', + 'schema' => ['title' => '表Guid,在资产唯一标识', 'description' => '表Guid,在资产唯一标识', 'type' => 'string', 'required' => true, 'example' => '1121'], + ], + [ + 'name' => 'FilterQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '过滤条件', + 'description' => '过滤条件', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'GuidList' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'array', - 'items' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1022', - ], - 'required' => false, - ], - 'BelongGuidList' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', + 'NodeEnv' => ['title' => '用于过滤要查询的任务所属环境: dev、prod', 'description' => '用于过滤要查询的任务所属环境: dev、prod', 'type' => 'string', 'required' => false, 'example' => 'dev'], + 'NodeIdList' => [ + 'title' => '用于过滤要查询的任务Id列表', + 'description' => '用于过滤要查询的任务Id列表', 'type' => 'array', - 'items' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1023', - ], + 'items' => ['title' => '用于过滤要查询的任务Id列表', 'description' => '用于过滤要查询的任务Id列表', 'type' => 'string', 'required' => false, 'example' => '110021'], 'required' => false, ], + 'NeedUpstream' => ['title' => '是否查询上游血缘, 默认:true', 'description' => '是否查询上游血缘, 默认:true', 'type' => 'boolean', 'required' => false], + 'NeedDownstream' => ['title' => '是否查询下游血缘, 默认:true', 'description' => '是否查询下游血缘, 默认:true', 'type' => 'boolean', 'required' => false], + 'NeedNotExistObject' => ['title' => '返回在资产清单中不存在的表, 默认:false', 'description' => '返回在资产清单中不存在的表, 默认:false', 'type' => 'boolean', 'required' => false], ], - 'required' => true, + 'required' => false, ], ], ], @@ -35810,35 +21064,44 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'TableColumnLineageList' => [ + 'title' => '表字段血缘列表', + 'description' => '表字段血缘列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '血缘对应的任务Id', 'description' => '血缘对应的任务Id', 'type' => 'string', 'example' => '110021'], + 'NodeEnv' => ['title' => '任务所属环境: dev、prod', 'description' => '任务所属环境: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'InputTableEnv' => ['title' => '输入表所属环境: dev、prod', 'description' => '输入表所属环境: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'InputTableGuid' => ['title' => '输入表Guid, 每个资产都有唯一标识', 'description' => '输入表Guid, 每个资产都有唯一标识', 'type' => 'string', 'example' => '123211'], + 'InputTableName' => ['title' => '输入表名', 'description' => '输入表名', 'type' => 'string', 'example' => 't_input'], + 'InputColumnName' => ['title' => '输入字段名称', 'description' => '输入字段名称', 'type' => 'string', 'example' => 'col1'], + 'InputColumnGuid' => ['title' => '输入字段Guid, 格式: 表Guid.字段名', 'description' => '输入字段Guid, 格式: 表Guid.字段名', 'type' => 'string', 'example' => '1121.col1'], + 'InputProjectId' => ['title' => '输入表所属项目Id', 'description' => '输入表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1233'], + 'InputBizUnitId' => ['title' => '输入表所属业务板块Id', 'description' => '输入表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'InputDataSourceId' => ['title' => '输入表所属数据源Id', 'description' => '输入表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'InputDataSourceType' => ['title' => '输入表所属数据源类型', 'description' => '输入表所属数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputTableDeleted' => ['title' => '输入表是否已删除', 'description' => '输入表是否已删除', 'type' => 'boolean'], + 'OutputTableEnv' => ['title' => '输出表所属的env: dev、prod', 'description' => '输出表所属的env: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'OutputTableGuid' => ['title' => '输出表Guid, 每个资产都有唯一标识', 'description' => '输出表Guid, 每个资产都有唯一标识', 'type' => 'string', 'example' => '2231'], + 'OutputTableName' => ['title' => '输出表名', 'description' => '输出表名', 'type' => 'string', 'example' => 't_output'], + 'OutputColumnName' => ['title' => '输出字段名称', 'description' => '输出字段名称', 'type' => 'string', 'example' => 'col2'], + 'OutputColumnGuid' => ['title' => '输出字段Guid, 格式为: 表Id.字段名', 'description' => '输出字段Guid, 格式为: 表Id.字段名', 'type' => 'string', 'example' => '2231.col2'], + 'OutputProjectId' => ['title' => '输出表所属项目Id', 'description' => '输出表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1233'], + 'OutputBizUnitId' => ['title' => '输出表所属业务板块Id', 'description' => '输出表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'OutputDataSourceId' => ['title' => '输出表所属数据源Id', 'description' => '输出表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'OutputDataSourceType' => ['title' => '输出表所属数据源类型', 'description' => '输出表所属数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputTableDeleted' => ['title' => '输出表是否已删除', 'description' => '输出表是否已删除', 'type' => 'boolean'], + ], + ], ], ], ], @@ -35846,70 +21109,50 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TableColumnLineageList\\": [\\n {\\n \\"NodeId\\": \\"110021\\",\\n \\"NodeEnv\\": \\"dev\\",\\n \\"InputTableEnv\\": \\"dev\\",\\n \\"InputTableGuid\\": \\"123211\\",\\n \\"InputTableName\\": \\"t_input\\",\\n \\"InputColumnName\\": \\"col1\\",\\n \\"InputColumnGuid\\": \\"1121.col1\\",\\n \\"InputProjectId\\": 1233,\\n \\"InputBizUnitId\\": 1,\\n \\"InputDataSourceId\\": 1,\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableEnv\\": \\"dev\\",\\n \\"OutputTableGuid\\": \\"2231\\",\\n \\"OutputTableName\\": \\"t_output\\",\\n \\"OutputColumnName\\": \\"col2\\",\\n \\"OutputColumnGuid\\": \\"2231.col2\\",\\n \\"OutputProjectId\\": 1233,\\n \\"OutputBizUnitId\\": 1,\\n \\"OutputDataSourceId\\": 1,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询资产表字段血缘信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除有效映射关系', + 'ramActions' => [], ], - 'DeleteStandardSet' => [ - 'summary' => '删除标准集。'."\n" + 'GetTableColumns' => [ + 'summary' => '查询资产清单中Dataphin表的字段,支持表类型:维度逻辑表、事实逻辑表、汇总逻辑表、标签逻辑表、逻辑表视图、物理表、物理视图、物化视图表。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'Catalog', 'in' => 'query', - 'schema' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], + 'schema' => ['title' => '资产表catalog: 业务板块或项目空间的名称', 'description' => '资产表catalog: 业务板块或项目空间的名称', 'type' => 'string', 'required' => true, 'example' => 'LD_test01_dev'], + ], + [ + 'name' => 'TableName', + 'in' => 'query', + 'schema' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'required' => true, 'example' => 't_test01'], ], ], 'responses' => [ @@ -35919,35 +21162,46 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ColumnList' => [ + 'title' => '资产表列列表', + 'description' => '资产表列列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => '列Guid', 'description' => '列Guid', 'type' => 'string', 'example' => '1121.col1'], + 'Env' => ['title' => '所属环境:dev、prod', 'description' => '所属环境:dev、prod', 'type' => 'string', 'example' => 'dev'], + 'TableGuid' => ['title' => '表Guid', 'description' => '表Guid', 'type' => 'string', 'example' => '1121'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3301'], + 'DataSourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_test'], + 'SeqNumber' => ['title' => '序号', 'description' => '序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Name' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'example' => 'age'], + 'DisplayName' => ['title' => '字段展示名', 'description' => '字段展示名', 'type' => 'string', 'example' => '年龄'], + 'Comment' => ['title' => '字段注释', 'description' => '字段注释', 'type' => 'string', 'example' => 'test'], + 'DataType' => ['title' => '数据类型', 'description' => '数据类型', 'type' => 'string', 'example' => 'varchar'], + 'Nullable' => ['title' => '是否允许为空', 'description' => '是否允许为空', 'type' => 'boolean'], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'example' => 'test'], + 'IsPrimaryKey' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean'], + 'IsForeignKey' => ['title' => '是否外键', 'description' => '是否外键', 'type' => 'boolean'], + 'IsPartitionColumn' => ['title' => '是否分区键', 'description' => '是否分区键', 'type' => 'boolean'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'LastModifier' => ['title' => '最近更新者', 'description' => '最近更新者', 'type' => 'string', 'example' => '30012011'], + 'VisitCount30d' => ['title' => '最近30天查询', 'description' => '最近30天查询', 'type' => 'integer', 'format' => 'int64', 'example' => '99'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ClassifyId' => ['title' => '数据分类Id', 'description' => '数据分类Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'ClassifyName' => ['title' => '数据分类名称', 'description' => '数据分类名称', 'type' => 'string', 'example' => 'test'], + 'LevelAbbreviation' => ['title' => '数据分级缩写', 'description' => '数据分级缩写', 'type' => 'string', 'example' => 'L1'], + ], + ], ], ], ], @@ -35955,104 +21209,52 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ColumnList\\": [\\n {\\n \\"Guid\\": \\"1121.col1\\",\\n \\"Env\\": \\"dev\\",\\n \\"TableGuid\\": \\"1121\\",\\n \\"DataSourceId\\": 3301,\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"SeqNumber\\": 1,\\n \\"Name\\": \\"age\\",\\n \\"DisplayName\\": \\"年龄\\",\\n \\"Comment\\": \\"test\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"Nullable\\": true,\\n \\"DefaultValue\\": \\"test\\",\\n \\"IsPrimaryKey\\": true,\\n \\"IsForeignKey\\": true,\\n \\"IsPartitionColumn\\": true,\\n \\"Creator\\": \\"30012011\\",\\n \\"LastModifier\\": \\"30012011\\",\\n \\"VisitCount30d\\": 99,\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ClassifyId\\": 12345,\\n \\"ClassifyName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"L1\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询资产清单中Dataphin表的字段', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除标准集', + 'ramActions' => [], ], - 'DeleteStandardRelations' => [ - 'summary' => '批量删除标准关联关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetTableLineageByTaskId' => [ + 'summary' => '查询表血缘信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'TableLineageByTaskIdQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '查询表血缘的数据结构', + 'description' => '查询表血缘的数据结构', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'StandardRefList' => [ - 'title' => '被引用的标准列表', - 'description' => '被引用的标准列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'RelationType' => [ - 'title' => '标准关联关系:RELATIVE', - 'description' => '标准关联关系:RELATIVE', - 'type' => 'string', - 'required' => true, - 'example' => 'RELATIVE', - ], + 'TaskId' => ['title' => '用于过滤要查询的任务(节点)Id', 'description' => '用于过滤要查询的任务(节点)Id', 'type' => 'string', 'required' => true, 'example' => 'n_123'], + 'TaskEnv' => ['title' => '用于过滤要查询的任务所属的环境 DEV/PROD', 'description' => '用于过滤要查询的任务所属的环境 DEV/PROD', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'NeedNotExistObject' => ['title' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', 'description' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', 'type' => 'boolean', 'required' => false], ], 'required' => true, ], @@ -36061,63 +21263,77 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '返回数据', + 'description' => '返回数据', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'object', - 'properties' => [ - 'SuccessCount' => [ - 'title' => '添加成功数目', - 'description' => '添加成功数目', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'NotExistStandardIdList' => [ - 'title' => '不存在标准Id列表', - 'description' => '不存在标准Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '不存在标准Id列表', - 'description' => '不存在标准Id列表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1021', - ], + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'array', + 'items' => [ + 'title' => '血缘详情', + 'description' => '血缘详情', + 'type' => 'object', + 'properties' => [ + 'TenantId' => ['title' => '租户id', 'description' => '租户id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'TaskId' => ['title' => '血缘对应的任务(节点)Id', 'description' => '血缘对应的任务(节点)Id', 'type' => 'string', 'example' => 'n_123'], + 'TaskEnv' => ['title' => '血缘对应的任务(节点)所属环境 DEV/PROD', 'description' => '血缘对应的任务(节点)所属环境 DEV/PROD', 'type' => 'string', 'example' => 'DEV'], + 'InputEnv' => ['title' => '输入表所属的env, DEV/PROD', 'description' => '输入表所属的env, DEV/PROD', 'type' => 'string', 'example' => 'DEV'], + 'InputTableId' => ['title' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" + .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" + .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" + .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', 'description' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" + ."\n" + .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" + .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" + .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', 'type' => 'string', 'example' => 'odps.123.test_project.order'], + 'InputTableName' => ['title' => '输入表名', 'description' => '输入表名', 'type' => 'string', 'example' => 'order'], + 'InputTableType' => ['title' => '输入表类型'."\n" + .'- PHYSICAL_TABLE 物理表(计算源)'."\n" + .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" + .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" + .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" + .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" + .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" + .'- PHYSICAL_VIEW 物理视图'."\n" + .'- LOGICAL_VIEW 逻辑视图'."\n" + .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" + .'- DATA_SOURCE_VIEW 数据源视图'."\n" + .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', 'description' => '输入表类型 '."\n" + ."\n" + .'- PHYSICAL_TABLE 物理表(计算源)'."\n" + .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" + .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" + .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" + .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" + .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" + .'- PHYSICAL_VIEW 物理视图'."\n" + .'- LOGICAL_VIEW 逻辑视图'."\n" + .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" + .'- DATA_SOURCE_VIEW 数据源视图'."\n" + .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'InputDataSourceType' => ['title' => '输入表存储格式', 'description' => '输入表存储格式', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputDbType' => ['title' => '输入数据源类型', 'description' => '输入数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputProjectId' => ['title' => '输入表所属项目Id', 'description' => '输入表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputBizUnitId' => ['title' => '输入表所属业务板块Id', 'description' => '输入表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputDataSourceId' => ['title' => '输入表所属数据源Id', 'description' => '输入表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'InputTableDeleted' => ['title' => '输入表是否已删除', 'description' => '输入表是否已删除', 'type' => 'boolean'], + 'OutputTableType' => ['title' => '输出表类型, 枚举值见: InputTableType', 'description' => '输出表类型, 枚举值见:InputTableType', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'OutputEnv' => ['title' => '输出表所属的env, DEV/PROD', 'description' => '输出表所属的env, DEV/PROD', 'type' => 'string', 'example' => 'DEV/PROD'], + 'OutputBizUnitId' => ['title' => '输出表所属业务板块Id', 'description' => '输出表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputDataSourceType' => ['title' => '输出表存储格式', 'description' => '输出表存储格式', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputDbType' => ['title' => '输出数据源类型', 'description' => '输出数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputProjectId' => ['title' => '输出表所属项目Id', 'description' => '输出表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputDataSourceId' => ['title' => '输出表所属数据源Id', 'description' => '输出表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'OutputTableId' => ['title' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', 'description' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', 'type' => 'string', 'example' => 'odps.123.test_project.order'], + 'OutputTableName' => ['title' => '输出表名', 'description' => '输出表名', 'type' => 'string', 'example' => 'order'], + 'OutputTableDeleted' => ['title' => '输出表是否已删除', 'description' => '输出表是否已删除', 'type' => 'boolean'], ], ], ], @@ -36127,69 +21343,69 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"TenantId\\": 12345,\\n \\"TaskId\\": \\"n_123\\",\\n \\"TaskEnv\\": \\"DEV\\",\\n \\"InputEnv\\": \\"DEV\\",\\n \\"InputTableId\\": \\"odps.123.test_project.order\\",\\n \\"InputTableName\\": \\"order\\",\\n \\"InputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputDbType\\": \\"MAX_COMPUTE\\",\\n \\"InputProjectId\\": 123,\\n \\"InputBizUnitId\\": 123,\\n \\"InputDataSourceId\\": 123,\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"OutputEnv\\": \\"DEV/PROD\\",\\n \\"OutputBizUnitId\\": 123,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputDbType\\": \\"MAX_COMPUTE\\",\\n \\"OutputProjectId\\": 123,\\n \\"OutputDataSourceId\\": 123,\\n \\"OutputTableId\\": \\"odps.123.test_project.order\\",\\n \\"OutputTableName\\": \\"order\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '表血缘查询', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"NotExistStandardIdList\\": [\\n 1021\\n ]\\n }\\n}","type":"json"}]', - 'title' => '批量删除标准关联关系', + 'ramActions' => [], ], - 'DeleteStandardLookupTable' => [ - 'summary' => '删除数据标准码表。'."\n" + 'GetTableLineages' => [ + 'summary' => '查询资产表血缘信息。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', + 'name' => 'TableGuid', 'in' => 'query', + 'schema' => ['title' => '表Guid, 每个资产的唯一标识', 'description' => '表Guid, 每个资产的唯一标识', 'type' => 'string', 'required' => true, 'example' => '1121'], + ], + [ + 'name' => 'FilterQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', + 'title' => '过滤条件', + 'description' => '过滤条件', + 'type' => 'object', + 'properties' => [ + 'NodeEnv' => ['title' => '用于过滤要查询的任务所属环境: dev、prod', 'description' => '用于过滤要查询的任务所属环境: dev、prod', 'type' => 'string', 'required' => false, 'example' => 'dev'], + 'NodeIdList' => [ + 'title' => '用于过滤要查询的任务Id列表', + 'description' => '用于过滤要查询的任务Id列表', + 'type' => 'array', + 'items' => ['title' => '用于过滤要查询的任务Id列表', 'description' => '用于过滤要查询的任务Id列表', 'type' => 'string', 'required' => false, 'example' => '110021'], + 'required' => false, + ], + 'NeedUpstream' => ['title' => '是否查询上游血缘, 默认:false', 'description' => '是否查询上游血缘, 默认:false', 'type' => 'boolean', 'required' => false], + 'NeedDownstream' => ['title' => '是否查询下游血缘, 默认:false', 'description' => '是否查询下游血缘, 默认:false', 'type' => 'boolean', 'required' => false], + 'NeedNotExistObject' => ['title' => '返回在资产清单中不存在的表, 默认:false', 'description' => '返回在资产清单中不存在的表, 默认:false', 'type' => 'boolean', 'required' => false], + ], + 'required' => false, ], ], ], @@ -36200,35 +21416,40 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'TableLineageList' => [ + 'title' => '表血缘列表', + 'description' => '表血缘列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '血缘对应的任务Id', 'description' => '血缘对应的任务Id', 'type' => 'string', 'example' => '110021'], + 'NodeEnv' => ['title' => '任务所属环境: dev、prod', 'description' => '任务所属环境: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'InputTableEnv' => ['title' => '输入表所属环境: dev、prod', 'description' => '输入表所属环境: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'InputTableGuid' => ['title' => '输入表Guid, 每个资产都有唯一标识', 'description' => '输入表Guid, 每个资产都有唯一标识', 'type' => 'string', 'example' => '123211'], + 'InputTableName' => ['title' => '输入表名', 'description' => '输入表名', 'type' => 'string', 'example' => 't_input'], + 'InputProjectId' => ['title' => '输入表所属项目Id', 'description' => '输入表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1233'], + 'InputBizUnitId' => ['title' => '输入表所属业务板块Id', 'description' => '输入表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'InputDataSourceId' => ['title' => '输入表所属数据源Id', 'description' => '输入表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'InputDataSourceType' => ['title' => '输入表所属数据源类型', 'description' => '输入表所属数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'InputTableDeleted' => ['title' => '输入表是否已删除', 'description' => '输入表是否已删除', 'type' => 'boolean'], + 'OutputTableEnv' => ['title' => '输出表所属的env: dev、prod', 'description' => '输出表所属的env: dev、prod', 'type' => 'string', 'example' => 'dev'], + 'OutputTableGuid' => ['title' => '输出表Guid, 每个资产都有唯一标识', 'description' => '输出表Guid, 每个资产都有唯一标识', 'type' => 'string', 'example' => '2231'], + 'OutputTableName' => ['title' => '输出表名', 'description' => '输出表名', 'type' => 'string', 'example' => 't_output'], + 'OutputProjectId' => ['title' => '输出表所属项目Id', 'description' => '输出表所属项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1233'], + 'OutputBizUnitId' => ['title' => '输出表所属业务板块Id', 'description' => '输出表所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'OutputDataSourceId' => ['title' => '输出表所属数据源Id', 'description' => '输出表所属数据源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'OutputDataSourceType' => ['title' => '输出表所属数据源类型', 'description' => '输出表所属数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'OutputTableDeleted' => ['title' => '输出表是否已删除', 'description' => '输出表是否已删除', 'type' => 'boolean'], + ], + ], ], ], ], @@ -36236,143 +21457,127 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TableLineageList\\": [\\n {\\n \\"NodeId\\": \\"110021\\",\\n \\"NodeEnv\\": \\"dev\\",\\n \\"InputTableEnv\\": \\"dev\\",\\n \\"InputTableGuid\\": \\"123211\\",\\n \\"InputTableName\\": \\"t_input\\",\\n \\"InputProjectId\\": 1233,\\n \\"InputBizUnitId\\": 1,\\n \\"InputDataSourceId\\": 1,\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableEnv\\": \\"dev\\",\\n \\"OutputTableGuid\\": \\"2231\\",\\n \\"OutputTableName\\": \\"t_output\\",\\n \\"OutputProjectId\\": 1233,\\n \\"OutputBizUnitId\\": 1,\\n \\"OutputDataSourceId\\": 1,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询资产表血缘信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除数据标准码表', + 'ramActions' => [], ], - 'DeleteStandardInValidMapping' => [ - 'summary' => '删除无效映射关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'GetTransferInfo' => [ + 'summary' => '根据转交任务ID查询转交任务的进度。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'GuidList' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'array', - 'items' => [ - 'title' => 'guid列表,上限为1000', - 'description' => 'guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1022', - ], - 'required' => false, - ], - 'BelongGuidList' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', - 'type' => 'array', - 'items' => [ - 'title' => '所属guid列表,上限为1000', - 'description' => '所属guid列表,上限为1000', - 'type' => 'string', - 'required' => false, - 'example' => '1023', - ], - 'required' => false, - ], - ], - 'required' => true, - ], + 'name' => 'ProposalId', + 'in' => 'query', + 'schema' => ['title' => '转交记录ID', 'description' => '转交记录ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'ProposalId' => ['title' => '审批单id', 'description' => '审批单id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FlowId' => ['title' => '审批单flowId', 'description' => '审批单flowId', 'type' => 'integer', 'format' => 'int64', 'example' => '1753669315426'], + 'Title' => ['title' => '审批单title', 'description' => '审批单title', 'type' => 'string', 'example' => 'transefer title'], + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30000001'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'OldOwner' => [ + 'title' => '旧的owner', + 'description' => '旧的owner', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30000001'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'NewOwner' => [ + 'title' => '新的owner', + 'description' => '新的owner', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30000001'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'PrivilegeTransferMode' => ['title' => '转交模式:一键转交-ONE_STOP,根据功能模块转交-FUNCTION_MODULE_BASED', 'description' => '转交模式:一键转交-ONE_STOP,根据功能模块转交-FUNCTION_MODULE_BASED', 'type' => 'string', 'example' => 'ONE_STOP'], + 'TransferComment' => ['title' => '转交描述', 'description' => '转交描述', 'type' => 'string', 'example' => 'comment'], + 'TransferStatus' => [ + 'title' => '转交状态', + 'description' => '转交状态', + 'type' => 'string', + 'enumValueTitles' => ['REVOKED' => '已被管理员强行撤回', 'SUCCESS' => '权限转交成功', 'FAILED' => '权限转交失败:处理中出错', 'APPROVING' => '审批中', 'CANCELED' => '已取消', 'APPROVED' => '审批人已同意,正在处理中', 'RETRY' => '已重试', 'REJECTED' => '审批人已拒绝'], + 'example' => 'APPROVED', + ], + 'LastModifier' => [ + 'title' => '最后修改人', + 'description' => '最后修改人', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '30000001'], + 'DisplayName' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + 'PrivilegeTransferResultEntries' => [ + 'title' => '功能模块的转交详情', + 'description' => '功能模块的转交详情', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Status' => ['description' => '转交模块状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'PrivilegeDisplayName' => ['description' => '转交模块名称', 'type' => 'string', 'example' => 'table owner'], + 'ErrMsg' => ['description' => '错误信息', 'type' => 'string', 'example' => 'userId is error'], + ], + 'description' => '', + ], + ], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '1632036495973809'], + 'GmtModified' => ['title' => '最后修改时间', 'description' => '最后修改时间', 'type' => 'string', 'example' => '1632036495973809'], + ], ], ], ], @@ -36380,79 +21585,49 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"ProposalId\\": 1,\\n \\"FlowId\\": 1753669315426,\\n \\"Title\\": \\"transefer title\\",\\n \\"Creator\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"OldOwner\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"NewOwner\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"PrivilegeTransferMode\\": \\"ONE_STOP\\",\\n \\"TransferComment\\": \\"comment\\",\\n \\"TransferStatus\\": \\"APPROVED\\",\\n \\"LastModifier\\": {\\n \\"UserId\\": \\"30000001\\",\\n \\"DisplayName\\": \\"zhangsan\\"\\n },\\n \\"PrivilegeTransferResultEntries\\": [\\n {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"PrivilegeDisplayName\\": \\"table owner\\",\\n \\"ErrMsg\\": \\"userId is error\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"1632036495973809\\",\\n \\"GmtModified\\": \\"1632036495973809\\"\\n }\\n}","type":"json"}]', + 'title' => '根据转交任务ID查询转交任务的进度', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除无效映射关系', + 'ramActions' => [], ], - 'DeleteStandard' => [ - 'summary' => '删除标准。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetUdf' => [ + 'summary' => '获取自定义函数详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1234', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1123'], ], ], 'responses' => [ @@ -36462,35 +21637,29 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'UdfInfo' => [ + 'title' => '自定义函数详情', + 'description' => '自定义函数详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'Name' => ['title' => '函数名', 'description' => '函数名', 'type' => 'string', 'example' => 'udf_to_lower'], + 'ComputeEngineType' => ['title' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', 'description' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', 'type' => 'string', 'example' => 'HADOOP'], + 'Directory' => ['title' => '存放目录', 'description' => '存放目录', 'type' => 'string', 'example' => '/'], + 'ClassName' => ['title' => '注册类名', 'description' => '注册类名', 'type' => 'string', 'example' => 'com.lydaas.dataphin.UdfTest'], + 'Category' => ['title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'CommandHelp' => ['title' => '命令帮助', 'description' => '命令帮助', 'type' => 'string', 'example' => 'udf_to_lower(char x)'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012110'], + 'LastModifier' => ['title' => '最后更新人', 'description' => '最后更新人', 'type' => 'string', 'example' => '30012110'], + ], ], ], ], @@ -36498,99 +21667,54 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UdfInfo\\": {\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"udf_to_lower\\",\\n \\"ComputeEngineType\\": \\"HADOOP\\",\\n \\"Directory\\": \\"/\\",\\n \\"ClassName\\": \\"com.lydaas.dataphin.UdfTest\\",\\n \\"Category\\": 10,\\n \\"CommandHelp\\": \\"udf_to_lower(char x)\\",\\n \\"Description\\": \\"test\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Creator\\": \\"30012110\\",\\n \\"LastModifier\\": \\"30012110\\"\\n }\\n}","type":"json"}]', + 'title' => '获取自定义函数详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '删除标准', + 'ramActions' => [], ], - 'CreateStandardWordRoot' => [ - 'summary' => '创建数据标准词根。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetUdfByVersion' => [ + 'summary' => '查询自定义函数版本详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', - 'required' => true, - 'example' => '平均值', - ], - 'FullName' => [ - 'title' => '词根全称', - 'description' => '词根全称', - 'type' => 'string', - 'required' => true, - 'example' => 'average', - ], - 'Abbreviation' => [ - 'title' => '词根缩写', - 'description' => '词根缩写', - 'type' => 'string', - 'required' => true, - 'example' => 'avg', - ], - 'Description' => [ - 'title' => '词根描述', - 'description' => '词根描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1123'], + ], + [ + 'name' => 'VersionId', + 'in' => 'query', + 'schema' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], ], ], 'responses' => [ @@ -36600,41 +21724,29 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '词根名称', - 'description' => '词根名称', - 'type' => 'string', - 'example' => 'average', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'UdfInfo' => [ + 'title' => '自定义函数详情', + 'description' => '自定义函数详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'Name' => ['title' => '函数名', 'description' => '函数名', 'type' => 'string', 'example' => 'udf_to_lower'], + 'ComputeEngineType' => ['title' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', 'description' => '计算引擎,支持 HADOOP、MAX_COMPUTE、FLINK', 'type' => 'string', 'example' => 'HADOOP'], + 'Directory' => ['title' => '存放目录', 'description' => '存放目录', 'type' => 'string', 'example' => '/'], + 'ClassName' => ['title' => '注册类名', 'description' => '注册类名', 'type' => 'string', 'example' => 'com.lydaas.dataphin.UdfTest'], + 'Category' => ['title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'CommandHelp' => ['title' => '命令帮助', 'description' => '命令帮助', 'type' => 'string', 'example' => 'udf_to_lower(char x)'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-d HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-d HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012110'], + 'LastModifier' => ['title' => '最后更新人', 'description' => '最后更新人', 'type' => 'string', 'example' => '30012110'], + ], ], ], ], @@ -36642,506 +21754,65 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UdfInfo\\": {\\n \\"Id\\": 1030111021,\\n \\"Name\\": \\"udf_to_lower\\",\\n \\"ComputeEngineType\\": \\"HADOOP\\",\\n \\"Directory\\": \\"/\\",\\n \\"ClassName\\": \\"com.lydaas.dataphin.UdfTest\\",\\n \\"Category\\": 10,\\n \\"CommandHelp\\": \\"udf_to_lower(char x)\\",\\n \\"Description\\": \\"test\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Creator\\": \\"30012110\\",\\n \\"LastModifier\\": \\"30012110\\"\\n }\\n}","type":"json"}]', + 'title' => '查询自定义函数指定版本详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"average\\"\\n}","type":"json"}]', - 'title' => '创建数据标准词根', + 'ramActions' => [], ], - 'CreateStandardTemplate' => [ - 'summary' => '创建数据标准模板。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'GetUserBySourceId' => [ + 'summary' => '通过原始用户ID获取用户详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '标准模板名称', - 'description' => '标准模板名称', - 'type' => 'string', - 'required' => true, - 'example' => '测试模板', - ], - 'Code' => [ - 'title' => '标准模板编码, 全局唯一;有引用时不可修改', - 'description' => '标准模板编码, 全局唯一;有引用时不可修改', - 'type' => 'string', - 'required' => true, - 'example' => 'test01', - ], - 'Description' => [ - 'title' => '标准模板描述', - 'description' => '标准模板描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'MaintainerList' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'array', - 'items' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'AttributesConfig' => [ - 'title' => '属性配置', - 'description' => '属性配置', - 'type' => 'object', - 'properties' => [ - 'AttributeList' => [ - 'title' => '属性列表', - 'description' => '属性列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'attr1', - ], - 'Code' => [ - 'title' => '属性编码', - 'description' => '属性编码,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'test_attr', - ], - 'Type' => [ - 'title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', - 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性,引用公共属性时非必填', - 'type' => 'string', - 'required' => false, - 'example' => 'BIZ_ATTRIBUTE', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填,引用公共属性时非必填', - 'type' => 'boolean', - 'required' => false, - ], - 'ValueConfig' => [ - 'title' => '取值配置', - 'description' => '取值配置,引用公共属性时非必填', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ValueRange' => [ - 'title' => '取值范围', - 'description' => '取值范围', - 'type' => 'object', - 'properties' => [ - 'ValueConstraint' => [ - 'title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', - 'type' => 'string', - 'required' => true, - 'example' => 'NONE', - ], - 'ValueList' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'array', - 'items' => [ - 'title' => '取值范围,当取值来源取值为 LIST 生效', - 'description' => '取值范围,当取值来源取值为 LIST 生效', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'MinMaxValueConfig' => [ - 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', - 'type' => 'object', - 'properties' => [ - 'MinValue' => [ - 'title' => '最小值', - 'description' => '最小值', - 'type' => 'string', - 'required' => true, - 'example' => '0', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - 'required' => true, - ], - 'MaxValue' => [ - 'title' => '最大值', - 'description' => '最大值', - 'type' => 'string', - 'required' => true, - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - 'LookupTableReference' => [ - 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', - 'type' => 'object', - 'properties' => [ - 'LookupTableId' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'Column' => [ - 'title' => '引用的码表字段', - 'description' => '引用的码表字段', - 'type' => 'string', - 'required' => false, - 'example' => 'col1', - ], - ], - 'required' => false, - ], - 'DataphinAttributeType' => [ - 'title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', - 'type' => 'string', - 'required' => false, - 'example' => 'DATAPHIN_ATTRIBUTE', - ], - ], - 'required' => true, - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'RefAttribute' => [ - 'title' => '引用的属性信息', - 'description' => '引用的属性信息', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'AttributeFromInfo' => [ - 'title' => '属性来源', - 'description' => '属性来源', - 'type' => 'object', - 'properties' => [ - 'AttributeFrom' => [ - 'title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOM', - ], - 'StandardReference' => [ - 'title' => '对应的标准,属性来源为 STANDARD 生效', - 'description' => '对应的标准,属性来源为 STANDARD 生效', - 'type' => 'object', - 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Version' => [ - 'title' => '版本号', - 'description' => '版本号', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - 'PublishInfo' => [ - 'title' => '标准模板发布信息', - 'description' => '标准模板发布信息', - 'type' => 'object', - 'properties' => [ - 'Comment' => [ - 'title' => '发布备注', - 'description' => '发布备注', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'CodeRuleConfig' => [ - 'title' => '标准编码自动生成规则配置', - 'description' => '标准编码自动生成规则配置', - 'type' => 'object', - 'properties' => [ - 'GenerateType' => [ - 'title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'AutoConfig' => [ - 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', - 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', - 'type' => 'object', - 'properties' => [ - 'NeedStrongValidate' => [ - 'title' => '是否强校验', - 'description' => '是否强校验', - 'type' => 'boolean', - 'required' => true, - ], - 'CodeRuleList' => [ - 'title' => '标准编码规则', - 'description' => '标准编码规则', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Index' => [ - 'title' => '编码规则位置索引', - 'description' => '编码规则位置索引', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'Type' => [ - 'title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', - 'type' => 'string', - 'required' => true, - 'example' => 'FIXED_STRING', - ], - 'Value' => [ - 'title' => '编码规则格式/值', - 'description' => '编码规则格式/值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'AutoIncrementSequenceConfig' => [ - 'title' => '自增序列配置', - 'description' => '自增序列配置', - 'type' => 'object', - 'properties' => [ - 'Digit' => [ - 'title' => '位数', - 'description' => '位数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '3', - ], - 'StartValue' => [ - 'title' => '起始值', - 'description' => '起始值', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'Step' => [ - 'title' => '步长', - 'description' => '步长', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'NeedPaddingZero' => [ - 'title' => '是否补零', - 'description' => '是否补零', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - ], - 'required' => true, - ], + 'name' => 'SourceId', + 'in' => 'query', + 'schema' => ['title' => '用户来源Id', 'description' => '用户来源Id', 'type' => 'string', 'required' => true, 'example' => '323131'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '标准模板Id', - 'description' => '标准模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'User' => [ + 'title' => '用户对象', + 'description' => '用户对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => '23231231'], + 'DisplayName' => ['title' => '用户显示名', 'description' => '用户显示名', 'type' => 'string', 'example' => 'xx测试'], + ], ], ], ], @@ -37149,250 +21820,157 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"User\\": {\\n \\"Id\\": \\"23231231\\",\\n \\"DisplayName\\": \\"xx测试\\"\\n }\\n}","type":"json"}]', + 'title' => '通过原始用户ID获取用户详情', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 22\\n}","type":"json"}]', - 'title' => '创建数据标准模板', - ], - 'CreateStandardSet' => [ - 'summary' => '创建标准集。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUserBySourceId', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'GetUserGroup' => [ + 'summary' => '获取用户组详情。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + 'name' => 'UserGroupId', + 'in' => 'query', + 'schema' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '1313213'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Code' => [ - 'title' => '标准集编码', - 'description' => '标准集编码', - 'type' => 'string', - 'required' => true, - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '标准集描述', - 'description' => '标准集描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '所属目录', - 'description' => '所属目录', - 'type' => 'string', - 'required' => true, - 'example' => '/dir1', - ], - ], - 'required' => false, - ], - 'MaintainerList' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'array', - 'items' => [ - 'title' => '维护人员', - 'description' => '维护人员', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'MemberList' => [ - 'title' => '成员列表', - 'description' => '成员列表', - 'type' => 'array', - 'items' => [ - 'title' => '成员列表', - 'description' => '成员列表', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'required' => false, - ], - 'MemberGroupList' => [ - 'title' => '成员组列表', - 'description' => '成员组列表', - 'type' => 'array', - 'items' => [ - 'title' => '成员组列表', - 'description' => '成员组列表', - 'type' => 'string', - 'required' => false, - 'example' => '1121', - ], - 'required' => false, - ], - 'VisibilityConfig' => [ - 'title' => '可见性配置', - 'description' => '可见性配置', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'UserGroupInfo' => [ + 'title' => '用户组详情', + 'description' => '用户组详情', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', - 'type' => 'string', - 'required' => true, - 'example' => 'PUBLIC', - ], - 'SpecifiedUserList' => [ - 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'Id' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'example' => '1313213'], + 'Name' => ['title' => '用户组名称', 'description' => '用户组名称', 'type' => 'string', 'example' => 'xx测试'], + 'Description' => ['title' => '用户组描述', 'description' => '用户组描述', 'type' => 'string', 'example' => 'xx'], + 'Active' => ['title' => '是否启用用户组', 'description' => '是否启用用户组', 'type' => 'boolean', 'example' => 'true'], + 'AdminList' => [ + 'title' => '用户组管理员', + 'description' => '用户组管理员', 'type' => 'array', 'items' => [ - 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', - 'type' => 'string', - 'required' => false, - 'example' => '1121', + 'description' => '用户组管理员', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '131313'], + 'DisplayName' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + 'AccountName' => ['title' => '用户账号名', 'description' => '用户账号名', 'type' => 'string', 'example' => 'xx'], + ], ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'ApprovalConfig' => [ - 'title' => '上线审批配置', - 'description' => '上线审批配置', - 'type' => 'object', - 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - 'required' => true, - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - 'required' => true, - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', - ], - ], - 'required' => false, - ], - 'OfflineApprovalConfig' => [ - 'title' => '下线审批配置', - 'description' => '下线审批配置', - 'type' => 'object', - 'properties' => [ - 'EnableApproval' => [ - 'title' => '是否开启审批', - 'description' => '是否开启审批', - 'type' => 'boolean', - 'required' => true, - ], - 'IsSubmitInBatch' => [ - 'title' => '是否批量提交审批', - 'description' => '是否批量提交审批', - 'type' => 'boolean', - 'required' => true, - ], - 'ApprovalType' => [ - 'title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_DEFAULT', - ], - 'TemplateId' => [ - 'title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', ], + 'MyRole' => ['title' => '当前用户在用户组角色', 'description' => '当前用户在用户组角色', 'type' => 'string', 'example' => 'xx'], ], - 'required' => false, - ], - 'DefaultStandardTemplateId' => [ - 'title' => '默认标准模板ID', - 'description' => '默认标准模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1001', ], ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserGroupInfo\\": {\\n \\"Id\\": \\"1313213\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx\\",\\n \\"Active\\": true,\\n \\"AdminList\\": [\\n {\\n \\"Id\\": \\"131313\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"AccountName\\": \\"xx\\"\\n }\\n ],\\n \\"MyRole\\": \\"xx\\"\\n }\\n}","type":"json"}]', + 'title' => '获取用户组详情', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'GetUsers' => [ + 'summary' => '根据UserId批量获取用户信息。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UserIdList', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '用户Id列表', + 'description' => '用户Id列表', + 'type' => 'array', + 'items' => ['description' => '用户Id', 'type' => 'string', 'required' => false, 'example' => '132313'], 'required' => true, ], ], @@ -37400,46 +21978,45 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1201', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'UserList' => [ + 'title' => '用户列表', + 'description' => '用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户对象', + 'description' => '用户对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '1233121'], + 'ParentId' => ['title' => '用户归属主账号Id', 'description' => '用户归属主账号Id', 'type' => 'string', 'example' => '231231'], + 'SourceType' => ['title' => '用户来源', 'description' => '用户来源', 'type' => 'string', 'example' => 'ALIYUN'], + 'SourceId' => ['title' => '用户来源Id', 'description' => '用户来源Id', 'type' => 'string', 'example' => '123@xx.com'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + 'DisplayName' => ['title' => '用户显示名', 'description' => '用户显示名', 'type' => 'string', 'example' => 'xx测试'], + 'DisplayNameWithoutStatus' => ['title' => '用户显示名(不含状态)', 'description' => '用户显示名(不含状态)', 'type' => 'string', 'example' => 'xx测试'], + 'AccountName' => ['title' => '账号名', 'description' => '账号名', 'type' => 'string', 'example' => '123@xx.com'], + 'RealName' => ['title' => '用户真实名称', 'description' => '用户真实名称', 'type' => 'string', 'example' => 'xx测试'], + 'NickName' => ['title' => '用户昵称', 'description' => '用户昵称', 'type' => 'string', 'example' => 'xx测试'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'MobilePhone' => ['title' => '电话号码', 'description' => '电话号码', 'type' => 'string', 'example' => '1388888888'], + 'Mail' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'example' => '123@xx.com'], + 'DingNumber' => ['title' => '钉钉号', 'description' => '钉钉号', 'type' => 'string', 'example' => '123@dingding'], + 'WeChatRobot' => ['title' => '企微机器人', 'description' => '企微机器人', 'type' => 'string', 'example' => 'xx'], + 'FeiShuRobot' => ['title' => '飞书机器人', 'description' => '飞书机器人', 'type' => 'string', 'example' => 'xx'], + 'EnableWhiteIp' => ['title' => '是否开启ip白名单', 'description' => '是否开启ip白名单', 'type' => 'string', 'example' => 'true'], + 'WhiteIp' => ['title' => '白名单', 'description' => '白名单', 'type' => 'string', 'example' => '*'], + 'GmtModified' => ['description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + ], + ], ], ], ], @@ -37447,33 +22024,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"1233121\\",\\n \\"ParentId\\": \\"231231\\",\\n \\"SourceType\\": \\"ALIYUN\\",\\n \\"SourceId\\": \\"123@xx.com\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"DisplayNameWithoutStatus\\": \\"xx测试\\",\\n \\"AccountName\\": \\"123@xx.com\\",\\n \\"RealName\\": \\"xx测试\\",\\n \\"NickName\\": \\"xx测试\\",\\n \\"GmtCreate\\": 1717343597000,\\n \\"MobilePhone\\": \\"1388888888\\",\\n \\"Mail\\": \\"123@xx.com\\",\\n \\"DingNumber\\": \\"123@dingding\\",\\n \\"WeChatRobot\\": \\"xx\\",\\n \\"FeiShuRobot\\": \\"xx\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"*\\",\\n \\"GmtModified\\": 1717343597000\\n }\\n ]\\n}","type":"json"}]', + 'title' => '根据UserId获取用户详情信息', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1201\\n}","type":"json"}]', - 'title' => '创建标准集', - ], - 'CreateStandardRelations' => [ - 'summary' => '创建标准关联关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUsers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'GrantDataServiceApi' => [ + 'summary' => 'API授权。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -37482,69 +22068,86 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'GrantCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '授权指令', + 'description' => '授权指令', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'StandardRefList' => [ - 'title' => '被引用的标准列表', - 'description' => '被引用的标准列表', + 'ExpireDate' => ['title' => '有效期,日期格式:yyyy-MM-dd', 'description' => '有效期,日期格式:yyyy-MM-dd', 'type' => 'string', 'required' => true, 'example' => '2025-06-30'], + 'Reason' => ['title' => '授权说明', 'description' => '申请原因', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'ApiId' => ['title' => 'API编号', 'description' => 'API编号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1021'], + 'AppId' => ['title' => 'AppID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1201'], + 'ProdFieldList' => [ + 'title' => 'PROD权限字段列表,basic模式下查询类API必填,操作类API无需填写', + 'description' => '查询类API生产环境权限字段列表,basic模式下必填,操作类API无需传', 'type' => 'array', 'items' => [ - 'title' => '', + 'title' => 'Api权限字段id', + 'description' => 'Api权限字段id', 'type' => 'object', 'properties' => [ - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2', - ], + 'Id' => ['title' => 'Api权限字段id', 'description' => 'API权限字段ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], 'required' => false, ], - 'required' => true, - ], - 'RelationType' => [ - 'title' => '标准关联关系:RELATIVE', - 'description' => '标准关联关系:RELATIVE', - 'type' => 'string', - 'required' => true, - 'example' => 'RELATIVE', + 'required' => false, ], + 'DevFieldList' => [ + 'title' => 'DEV权限字段列表,dev-prod模式下才需要填,查询类API devFieldList、prodFieldList至少填写1个,操作类API无需填写', + 'description' => '查询类API开发环境权限字段列表,dev-prod模式下需传,devFieldList、prodFieldList不能都为空,操作类API无需传', + 'type' => 'array', + 'items' => [ + 'title' => 'Api权限字段id', + 'description' => 'Api权限字段id', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Api权限字段id', 'description' => 'API权限字段ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], + 'required' => false, + ], + 'required' => false, + ], + 'ApplyDev' => ['title' => '是否授权操作类API的开发环境权限', 'description' => '是否申请操作类API的开发环境权限', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'ApplyProd' => ['title' => '是否授权操作类API的生产环境权限', 'description' => '是否申请操作类API的生产环境权限', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'AuthTypes' => [ + 'title' => '授权的权限类型:'."\n" + .'当授权的主体为应用时支持以下类型的权限类型(授权代理权限时必须同时授权使用权限)'."\n" + .'- USE:使用权限'."\n" + .'- DELEGATION:代理权限'."\n" + .'当授权的主体为个人时仅支持USE(使用)权限'."\n" + .'当未传入参数时,默认为USE(使用)权限。', + 'description' => '授权的权限类型列表:'."\n" + .'- 当授权的主体为应用时支持以下类型的权限类型(授权代理权限时必须同时授权使用权限)'."\n" + .' - USE:使用权限'."\n" + .' - DELEGATION:代理权限'."\n" + .'- 当授权的主体为个人时仅支持USE(使用)权限'."\n" + .'- 当未传入参数时,默认为USE(使用)权限', + 'type' => 'array', + 'items' => ['title' => '权限类型', 'description' => '授权的权限类型', 'type' => 'string', 'required' => false, 'example' => 'USE', 'default' => 'USE'], + 'required' => false, + ], + 'GranteeType' => ['title' => '被授权对象类型:'."\n" + .'APP:应用'."\n" + .'USER:用户', 'description' => '被授权对象类型:'."\n" + .'- APP:应用'."\n" + .'- USER:用户', 'type' => 'string', 'required' => false, 'example' => 'APP', 'default' => 'APP'], + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'required' => false, 'example' => '12345'], ], 'required' => true, ], @@ -37557,96 +22160,38 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '创建结果', - 'description' => '创建结果', - 'type' => 'object', - 'properties' => [ - 'SuccessCount' => [ - 'title' => '添加成功数目', - 'description' => '添加成功数目', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'NotExistStandardIdList' => [ - 'title' => '不存在标准Id列表', - 'description' => '不存在标准Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '不存在标准Id列表', - 'description' => '不存在标准Id列表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1021', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"NotExistStandardIdList\\": [\\n 1021\\n ]\\n }\\n}","type":"json"}]', - 'title' => '创建标准关联关系', - ], - 'CreateStandardMapping' => [ - 'summary' => '创建标准映射关系, 包括有效映射和无效映射。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '数据服务API授权', + 'changeSet' => [ + ['createdAt' => '2025-10-30T01:49:47.000Z', 'description' => '请求参数发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [], + 'ramActions' => [], + ], + 'GrantResourcePermission' => [ + 'summary' => '通过资源点对用户授权。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -37654,67 +22199,60 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'GrantCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '授权请求', + 'description' => '授权请求', 'type' => 'object', 'properties' => [ - 'AssetGuidList' => [ - 'title' => '资产guid列表', - 'description' => '资产guid列表', + 'ResourceType' => [ + 'title' => '资源类型', + 'description' => '资源类型', + 'type' => 'string', + 'required' => true, + 'example' => 'PHYSICAL_TABLE', + 'enum' => [], + ], + 'OperateList' => [ + 'title' => '操作类型', + 'description' => '操作类型', + 'type' => 'array', + 'items' => ['description' => '操作类型', 'type' => 'string', 'required' => false, 'example' => 'SELECT'], + 'required' => true, + ], + 'Reason' => ['title' => '授权原因', 'description' => '授权原因', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'ResourceList' => [ + 'title' => '资源列表', + 'description' => '资源列表', 'type' => 'array', 'items' => [ - 'title' => '资产guid列表', - 'description' => '资产guid列表', - 'type' => 'string', - 'required' => true, - 'example' => '1121', + 'title' => '资源对象', + 'description' => '资源对象', + 'type' => 'object', + 'properties' => [ + 'ResourceId' => ['title' => '资源Id', 'description' => '资源Id', 'type' => 'string', 'required' => false, 'example' => 'hadoop.300000806.data_distill.behavior_gameinfor_01'], + ], + 'required' => false, ], 'required' => true, ], - 'StandardId' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', + 'EffectiveEnd' => ['title' => '有效期,', 'description' => '有效期时间戳, 毫秒', 'type' => 'string', 'required' => true, 'example' => '1717343597000'], + 'UserIdList' => [ + 'title' => '待授权用户', + 'description' => '待授权用户', + 'type' => 'array', + 'items' => ['title' => '待授权用户', 'description' => '待授权用户', 'type' => 'string', 'required' => false, 'example' => '23244434'], 'required' => true, - 'example' => '1', - ], - 'RelationType' => [ - 'title' => '映射关系类型: VALID 有效映射、INVALID 无效映射, 默认: VALID', - 'description' => '映射关系类型: VALID 有效映射、INVALID 无效映射, 默认: VALID', - 'type' => 'string', - 'required' => false, - 'example' => 'VALID', - ], - 'InvalidMappingRelationOperationType' => [ - 'title' => '引入映射关系时针对无效映射的处理策略: SET_INVALID_TO_VALID 将无效映射置为有效映射、KEEP_INVALID_AND_SKIP 保留无效映射然后跳过, 默认:SET_INVALID_TO_VALID', - 'description' => '引入映射关系时针对无效映射的处理策略: SET_INVALID_TO_VALID 将无效映射置为有效映射、KEEP_INVALID_AND_SKIP 保留无效映射然后跳过, 默认:SET_INVALID_TO_VALID', - 'type' => 'string', - 'required' => false, - 'example' => 'SET_INVALID_TO_VALID', ], ], 'required' => true, @@ -37724,265 +22262,97 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '创建结果', - 'description' => '创建结果', - 'type' => 'object', - 'properties' => [ - 'SuccessCount' => [ - 'title' => '添加成功数目', - 'description' => '添加成功数目', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'FailedGuidList' => [ - 'title' => '创建失败资产guid列表', - 'description' => '创建失败资产guid列表', - 'type' => 'array', - 'items' => [ - 'title' => '创建失败资产guid列表', - 'description' => '创建失败资产guid列表', - 'type' => 'string', - 'example' => '1021', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '授权用户资源的权限', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"SuccessCount\\": 2,\\n \\"FailedGuidList\\": [\\n \\"1021\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => '创建标准映射关系', - ], - 'CreateStandardLookupTable' => [ - 'summary' => '创建数据标准码表。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:GrantResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListAddableRoles' => [ + 'summary' => '获取可配置到租户成员的全局角色。仅限内置的全局角色,不支持自定义全局角色。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], - [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '码表名称', - 'description' => '码表名称', - 'type' => 'string', - 'required' => true, - 'example' => '城市码表', - ], - 'Code' => [ - 'title' => '码表编码', - 'description' => '码表编码', - 'type' => 'string', - 'required' => true, - 'example' => 'CITY', - ], - 'Description' => [ - 'title' => '码表描述', - 'description' => '码表描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '码表负责人Id,默认为调用者用户Id', - 'description' => '码表负责人Id,默认为调用者用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '30012021', - ], - 'LookupTableValueList' => [ - 'title' => '码表值列表', - 'description' => '码表值列表', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'RoleList' => [ + 'title' => '角色列表', + 'description' => '角色列表', 'type' => 'array', 'items' => [ - 'title' => '', + 'title' => '角色', + 'description' => '角色', 'type' => 'object', 'properties' => [ - 'Value' => [ - 'title' => '代码值', - 'description' => '代码值', - 'type' => 'string', - 'required' => true, - 'example' => '杭州', - ], - 'Name' => [ - 'title' => '代码名称', - 'description' => '代码名称', - 'type' => 'string', - 'required' => true, - 'example' => 'Hangzhou', - ], - 'EnglishName' => [ - 'title' => '代码英文名', - 'description' => '代码英文名', - 'type' => 'string', - 'required' => false, - 'example' => 'HZ', - ], - 'Description' => [ - 'title' => '代码描述', - 'description' => '代码描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'DirectoryReference' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'object', - 'properties' => [ - 'Directory' => [ - 'title' => '归属目录', - 'description' => '归属目录', - 'type' => 'string', - 'required' => true, - 'example' => '/dir1/dir2', + 'Code' => ['title' => '角色编码', 'description' => '角色编码', 'type' => 'string', 'example' => 'SECURITY_ADMIN'], + 'Name' => ['title' => '角色名称', 'description' => '角色名称', 'type' => 'string', 'example' => '安全管理员'], ], ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '码表Id', - 'description' => '码表Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', ], ], ], @@ -37990,411 +22360,68 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"RoleList\\": [\\n {\\n \\"Code\\": \\"SECURITY_ADMIN\\",\\n \\"Name\\": \\"安全管理员\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '获取可配置用户的全局角色', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1234\\n}","type":"json"}]', - 'title' => '创建数据标准码表', - ], - 'CreateStandard' => [ - 'summary' => '创建标准。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAddableRoles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListAddableUsers' => [ + 'summary' => '查询租户可添加用户,仅限超级管理员(SuperAdmin)和系统管理员能调用。用户需添加到Dataphin实例的用户成员列表中,但尚未添加到租户成员列表中。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '请求对象', + 'description' => '请求对象', 'type' => 'object', 'properties' => [ - 'EffectiveTimeConfig' => [ - 'title' => '生效时间配置', - 'description' => '生效时间配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', - 'type' => 'string', - 'required' => true, - 'example' => 'TIME_PERIOD', - ], - 'StartTime' => [ - 'title' => '开始生效时间', - 'description' => '开始生效时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '结束生效时间', - 'description' => '结束生效时间', - 'type' => 'string', - 'required' => false, - 'example' => '2025-12-30 00:00:00', - ], - ], - 'required' => false, - ], - 'Description' => [ - 'title' => '描述信息', - 'description' => '描述信息', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人,不传为当前用户', - 'description' => '负责人,不传为当前用户', - 'type' => 'string', - 'required' => false, - 'example' => '300000913', - ], - 'StandardTemplateReference' => [ - 'title' => '标准所属的标准模板', - 'description' => '标准所属的标准模板', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准模板ID', - 'description' => '标准模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'Version' => [ - 'title' => '标准模板版本号, 默认去最新版本', - 'description' => '标准模板版本号, 默认去最新版本', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'AttributeValueList' => [ - 'title' => '引用模板下属性列表相应属性值, 若为空则使用默认值', - 'description' => '引用模板下属性列表相应属性值, 若为空则使用默认值', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'AttributeId' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1011', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => true, - ], - 'StandardSetReference' => [ - 'title' => '标准集的引用', - 'description' => '标准集的引用', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '标准集Id', - 'description' => '标准集Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - ], - 'required' => true, - ], - 'StandardGeneralMonitorConfig' => [ - 'title' => '标准监控配置', - 'description' => '标准监控配置', - 'type' => 'object', - 'properties' => [ - 'StandardMonitorConfigList' => [ - 'title' => '标准监控配置列表', - 'description' => '标准监控配置列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'RuleName' => [ - 'title' => '规则名称', - 'description' => '规则名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Description' => [ - 'title' => '规则描述', - 'description' => '规则描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'required' => true, - 'example' => 'METADATA', - ], - 'MonitorFrom' => [ - 'title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_SYSTEM_ATTRIBUTE', - ], - 'AttributeId' => [ - 'title' => '关联的属性Id', - 'description' => '关联的属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '112', - ], - 'AttributeName' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'required' => false, - 'example' => 'teset', - ], - 'AttributeMonitorConfig' => [ - 'title' => '关联属性的监控配置', - 'description' => '关联属性的监控配置', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', - 'type' => 'string', - 'required' => true, - 'example' => 'METADATA', - ], - 'ColumnName' => [ - 'title' => '检查的字段', - 'description' => '检查的字段', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'IsCaseSensitive' => [ - 'title' => '大小写是否敏感', - 'description' => '大小写是否敏感', - 'type' => 'boolean', - 'required' => true, - ], - ], - 'required' => false, - ], - 'RuleSubType' => [ - 'title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOMIZED', - ], - 'QualityRuleTemplate' => [ - 'title' => '规则模板, 当监控类型为 QUALITY 时必填', - 'description' => '规则模板, 当监控类型为 QUALITY 时必填', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '模板Id', - 'description' => '模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Type' => [ - 'title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'required' => true, - 'example' => 'CUSTOMIZED', - ], - ], - 'required' => false, - ], - 'RuleConfigList' => [ - 'title' => '规则配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'RuleValidateConfigList' => [ - 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '校验配置Id, 由业务随机生成且确保唯一', - 'description' => '校验配置Id, 由业务随机生成且确保唯一', - 'type' => 'string', - 'required' => true, - 'example' => 'abc', - ], - 'ParentId' => [ - 'title' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], - 'Type' => [ - 'title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', - 'type' => 'string', - 'required' => true, - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', - 'type' => 'string', - 'required' => true, - 'example' => 'AND', - ], - 'Metric' => [ - 'title' => '指标, 校验类型为 EXPRESSION 时必填', - 'description' => '指标, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'a', - ], - 'MetricName' => [ - 'title' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Value' => [ - 'title' => '比较的值', - 'description' => '比较的值', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => false, - ], - 'NeedGenerateStandardCode' => [ - 'title' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', - 'description' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', - 'type' => 'boolean', - 'required' => false, - ], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'SearchText' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'xx'], ], 'required' => true, ], @@ -38403,46 +22430,53 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '标准Id', - 'description' => '标准Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1234', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '66'], + 'UserList' => [ + 'title' => '用户列表', + 'description' => '用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户对象', + 'description' => '用户对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '123231'], + 'ParentId' => ['title' => '用户归属主账号Id', 'description' => '用户归属主账号Id', 'type' => 'string', 'example' => '231313'], + 'SourceType' => ['title' => '用户来源', 'description' => '用户来源', 'type' => 'string', 'example' => 'aliyun'], + 'SourceId' => ['title' => '用户来源Id', 'description' => '用户来源Id', 'type' => 'string', 'example' => '123@xx.com'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx'], + 'DisplayName' => ['title' => '用户显示名', 'description' => '用户显示名', 'type' => 'string', 'example' => 'xx'], + 'DisplayNameWithoutStatus' => ['title' => '用户显示名(不含状态)', 'description' => '用户显示名(不含状态)', 'type' => 'string', 'example' => 'xx'], + 'AccountName' => ['title' => '账号名', 'description' => '账号名', 'type' => 'string', 'example' => '123@xx.com'], + 'RealName' => ['title' => '用户真实名称', 'description' => '用户真实名称', 'type' => 'string', 'example' => 'xx'], + 'NickName' => ['title' => '用户昵称', 'description' => '用户昵称', 'type' => 'string', 'example' => 'xx'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + 'MobilePhone' => ['title' => '电话号码', 'description' => '电话号码', 'type' => 'string', 'example' => '13888888888'], + 'Mail' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'example' => '123@xx.com'], + 'DingNumber' => ['title' => '钉钉号', 'description' => '钉钉号', 'type' => 'string', 'example' => '123@dingding'], + 'WeChatRobot' => ['title' => '企微机器人', 'description' => '企微机器人', 'type' => 'string', 'example' => 'xx'], + 'FeiShuRobot' => ['title' => '飞书机器人', 'description' => '飞书机器人', 'type' => 'string', 'example' => 'xx'], + 'EnableWhiteIp' => ['title' => '是否开启ip白名单', 'description' => '是否开启ip白名单', 'type' => 'string', 'example' => 'true'], + 'WhiteIp' => ['title' => '白名单', 'description' => '白名单', 'type' => 'string', 'example' => '*'], + 'GmtModified' => ['description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717343597000'], + ], + ], + ], + ], ], ], ], @@ -38450,229 +22484,597 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1234\\n}","type":"json"}]', - 'title' => '创建标准', - ], - 'UpsertQualityWatchAlert' => [ - 'summary' => '新建或者修改监控对象告警设置。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 66,\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"123231\\",\\n \\"ParentId\\": \\"231313\\",\\n \\"SourceType\\": \\"aliyun\\",\\n \\"SourceId\\": \\"123@xx.com\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"DisplayNameWithoutStatus\\": \\"xx\\",\\n \\"AccountName\\": \\"123@xx.com\\",\\n \\"RealName\\": \\"xx\\",\\n \\"NickName\\": \\"xx\\",\\n \\"GmtCreate\\": 1717343597000,\\n \\"MobilePhone\\": \\"13888888888\\",\\n \\"Mail\\": \\"123@xx.com\\",\\n \\"DingNumber\\": \\"123@dingding\\",\\n \\"WeChatRobot\\": \\"xx\\",\\n \\"FeiShuRobot\\": \\"xx\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"*\\",\\n \\"GmtModified\\": 1717343597000\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询租户可添加用户', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAddableUsers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ListAlertEvents' => [ + 'summary' => '根据条件查询多个告警事件。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpsertCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更改指令', - 'description' => '更改指令', + 'title' => '查询请求', + 'description' => '查询请求', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', + 'UserIdList' => [ + 'title' => '告警接口人id列表', + 'description' => '告警接口人id列表', + 'type' => 'array', + 'items' => ['title' => '告警接口人id', 'description' => '告警接口人id', 'type' => 'string', 'required' => false, 'example' => '12345'], + 'required' => false, ], - 'QualityAlertInfo' => [ - 'title' => '告警设置详情', - 'description' => '告警设置详情', + 'AlertStartTime' => ['title' => '告警起始日期', 'description' => '告警起始日期', 'type' => 'string', 'required' => true, 'example' => '2024-11-16 00:00:00'], + 'AlertEndTime' => ['title' => '告警结束日期', 'description' => '告警结束日期', 'type' => 'string', 'required' => true, 'example' => '2024-11-27 13:47:00'], + 'StatusList' => [ + 'title' => '告警状态列表', + 'description' => '告警状态列表', + 'type' => 'array', + 'items' => ['title' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'description' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'type' => 'string', 'required' => false, 'example' => 'FINISH'], + 'required' => false, + ], + 'ProjectNameList' => [ + 'title' => '所属项目列表', + 'description' => '所属项目列表', + 'type' => 'array', + 'items' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'required' => false, 'example' => 'project_1'], + 'required' => false, + ], + 'BizNameList' => [ + 'title' => '业务板块列表', + 'description' => '业务板块列表', + 'type' => 'array', + 'items' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'required' => false, 'example' => 'biz_1'], + 'required' => false, + ], + 'AlertObjectTypeList' => [ + 'title' => '告警对象类型列表', + 'description' => '告警对象类型列表', + 'type' => 'array', + 'items' => ['title' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'description' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'type' => 'string', 'required' => false, 'example' => 'VDM_BATCH_PYTHON37'], + 'required' => false, + ], + 'AlertReasonList' => [ + 'title' => '告警原因列表', + 'description' => '告警原因列表', + 'type' => 'array', + 'items' => ['title' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'description' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'type' => 'string', 'required' => false, 'example' => 'VDM_BATCH_FINISH'], + 'required' => false, + ], + 'SourceSystem' => ['title' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'description' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'type' => 'string', 'required' => true, 'example' => 'ALL'], + 'MonitoredItemIdList' => [ + 'title' => '监控项id列表', + 'description' => '监控项id列表', + 'type' => 'array', + 'items' => ['title' => '监控项id', 'description' => '监控项id', 'type' => 'string', 'required' => false, 'example' => '12345'], + 'required' => false, + ], + 'Keyword' => ['title' => '关键字查询', 'description' => '关键字查询', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '一页数据条数', 'description' => '一页数据条数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'True'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ListResult' => [ + 'title' => '查询结果', + 'description' => '查询结果', 'type' => 'object', 'properties' => [ - 'AlertUserChannelList' => [ - 'title' => '用户告警渠道', - 'description' => '用户告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '用户告警渠道', - 'description' => '用户告警渠道', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'AlertUserList' => [ - 'title' => '用户告警列表', - 'description' => '用户告警列表', + 'TotalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'Data' => [ + 'title' => '告警事件查询结果', + 'description' => '告警事件查询结果', 'type' => 'array', 'items' => [ - 'title' => '', + 'title' => '告警事件信息', + 'description' => '告警事件信息', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户id', - 'description' => '用户id', - 'type' => 'string', - 'required' => false, - 'example' => '30012011', + 'Id' => ['title' => '告警事件id', 'description' => '告警事件id', 'type' => 'string', 'example' => '12345'], + 'AlertObject' => [ + 'title' => '告警对象', + 'description' => '告警对象', + 'type' => 'object', + 'properties' => [ + 'SourceSystemType' => ['title' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'description' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH'], + 'Name' => ['title' => '告警对象名称', 'description' => '告警对象名称', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'description' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'STREAM_TASK'], + ], ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'required' => false, - 'example' => 'test', + 'LatestAlertTime' => ['title' => '最新告警时间', 'description' => '最新告警时间', 'type' => 'string', 'example' => '2024-11-25 10:02:47'], + 'FirstAlertTime' => ['title' => '首次告警时间', 'description' => '首次告警时间', 'type' => 'string', 'example' => '2024-11-25 10:02:47'], + 'AlertReceiverList' => [ + 'title' => '告警接收人列表', + 'description' => '告警接收人列表', + 'type' => 'array', + 'items' => [ + 'title' => '告警接收人', + 'description' => '告警接收人', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'description' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'type' => 'string', 'example' => 'OWNER'], + 'AlertChannelTypeList' => [ + 'title' => '告警渠道类型列表', + 'description' => '告警渠道类型列表', + 'type' => 'array', + 'items' => ['title' => '告警渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'description' => '告警渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'type' => 'string', 'example' => 'SMS'], + ], + 'CustomAlertChannelIdList' => [ + 'title' => '自定义告警渠道id列表', + 'description' => '自定义告警渠道id列表', + 'type' => 'array', + 'items' => ['title' => '自定义告警渠道id', 'description' => '自定义告警渠道id', 'type' => 'string', 'example' => '12345'], + ], + 'UserList' => [ + 'title' => '告警用户列表', + 'description' => '告警用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户信息', + 'description' => '用户信息', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'ADMIN'], + ], + ], + ], + 'OnCallTableName' => ['title' => '值班表名称', 'description' => '值班表名称', 'type' => 'string', 'example' => 'test'], + ], + ], ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'AlertDutyList' => [ - 'title' => '值班表告警列表', - 'description' => '值班表告警列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '报警值班表ID', - 'description' => '报警值班表ID', - 'type' => 'string', - 'required' => false, - 'example' => '1', + 'AlertReason' => [ + 'title' => '告警原因', + 'description' => '告警原因', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'description' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH_FINISH'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2024-11-25 10:02:47'], + 'UniqueKey' => ['title' => '唯一标识', 'description' => '唯一标识', 'type' => 'string', 'example' => 't_6340134343289405440_20241124_639873707610'], + 'AlertReasonParamList' => [ + 'title' => '告警原因参数列表', + 'description' => '告警原因参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '告警原因参数', + 'description' => '告警原因参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '告警原因参数名', 'description' => '告警原因参数名', 'type' => 'string', 'example' => 'biz_date'], + 'Value' => ['title' => '告警原因参数值', 'description' => '告警原因参数值', 'type' => 'string', 'example' => '2024-11-24 00:00:00'], + ], + ], + ], + ], ], - 'Name' => [ - 'title' => '报警值班表名称', - 'description' => '报警值班表名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', + 'BelongProject' => [ + 'title' => '所属项目', + 'description' => '所属项目', + 'type' => 'object', + 'properties' => [ + 'ProjectName' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'example' => 'project_1'], + 'BizName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'biz_1'], + ], + ], + 'Status' => ['title' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'description' => '告警状态:'."\n" + .'- ALERTING:告警中'."\n" + .'- DO_NOT_DISTURB:免打扰'."\n" + .'- SILENCING:告警中(静默期)'."\n" + .'- FINISH:告警完成', 'type' => 'string', 'example' => 'FINISH'], + 'AlertFrequency' => ['title' => '告警频率', 'description' => '告警频率:'."\n" + .'- ONCE:即时告警'."\n" + .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', 'type' => 'string', 'example' => 'ONCE'], + 'TotalAlertTimes' => ['title' => '告警次数', 'description' => '告警次数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DoNotDisturbEndTime' => ['title' => '消息免打扰到期时间', 'description' => '消息免打扰到期时间', 'type' => 'string', 'example' => '2024-11-25 00:00:00'], + 'UrlConfig' => [ + 'title' => 'Url信息', + 'description' => 'Url信息', + 'type' => 'object', + 'properties' => [ + 'ObjectUrl' => ['title' => '告警对象页面url', 'description' => '告警对象页面url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test1'], + 'LogUrl' => ['title' => '日志页面url', 'description' => '日志页面url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test2'], + 'AlertConfigUrl' => ['title' => '告警配置页面url', 'description' => '告警配置页面url', 'type' => 'string', 'example' => 'https://dataphin.com/ops/test3'], + ], ], ], - 'required' => false, - ], - 'required' => false, - ], - 'AlertDutyChannelList' => [ - 'title' => '值班表告警渠道', - 'description' => '值班表告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '值班表告警渠道', - 'description' => '值班表告警渠道', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'EnableAlertQualityOwner' => [ - 'title' => '开启质量负责人告警', - 'description' => '开启质量负责人告警', - 'type' => 'boolean', - 'required' => false, - ], - 'AlertQualityOwnerChannelList' => [ - 'title' => '质量负责人告警渠道', - 'description' => '质量负责人告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '质量负责人告警渠道', - 'description' => '质量负责人告警渠道', - 'type' => 'string', - 'required' => false, - 'example' => 'test', ], - 'required' => false, ], ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'boolean', ], ], ], @@ -38680,263 +23082,513 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"12345\\",\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"VDM_BATCH\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"STREAM_TASK\\"\\n },\\n \\"LatestAlertTime\\": \\"2024-11-25 10:02:47\\",\\n \\"FirstAlertTime\\": \\"2024-11-25 10:02:47\\",\\n \\"AlertReceiverList\\": [\\n {\\n \\"Type\\": \\"OWNER\\",\\n \\"AlertChannelTypeList\\": [\\n \\"SMS\\"\\n ],\\n \\"CustomAlertChannelIdList\\": [\\n \\"12345\\"\\n ],\\n \\"UserList\\": [\\n {\\n \\"Name\\": \\"ADMIN\\"\\n }\\n ],\\n \\"OnCallTableName\\": \\"test\\"\\n }\\n ],\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"2024-11-25 10:02:47\\",\\n \\"UniqueKey\\": \\"t_6340134343289405440_20241124_639873707610\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-24 00:00:00\\"\\n }\\n ]\\n },\\n \\"BelongProject\\": {\\n \\"ProjectName\\": \\"project_1\\",\\n \\"BizName\\": \\"biz_1\\"\\n },\\n \\"Status\\": \\"FINISH\\",\\n \\"AlertFrequency\\": \\"ONCE\\",\\n \\"TotalAlertTimes\\": 1,\\n \\"DoNotDisturbEndTime\\": \\"2024-11-25 00:00:00\\",\\n \\"UrlConfig\\": {\\n \\"ObjectUrl\\": \\"https://dataphin.com/ops/test1\\",\\n \\"LogUrl\\": \\"https://dataphin.com/ops/test2\\",\\n \\"AlertConfigUrl\\": \\"https://dataphin.com/ops/test3\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询告警事件列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:32:13.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '新建或者修改监控对象告警设置', - ], - 'UpsertQualityWatch' => [ - 'summary' => '新建或更改质量监控对象, 支持添加多种类型的质量监控对象,包括:Dataphin表,全域表,数据源,指标,实时元表。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAlertEvents', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListAlertNotifications' => [ + 'summary' => '根据条件查询多个推送记录。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpsertCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更改指令', - 'description' => '更改指令', + 'title' => '查询条件', + 'description' => '查询条件', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '监控对象ID: 传递了代表更新,不传递代表新建', - 'description' => '监控对象ID: 传递了代表更新,不传递代表新建', - 'type' => 'integer', - 'format' => 'int64', + 'UserIdList' => [ + 'title' => '推送接收人id列表', + 'description' => '推送接收人id列表', + 'type' => 'array', + 'items' => ['title' => '推送接收人id', 'description' => '推送接收人id', 'type' => 'string', 'required' => false, 'example' => '12345'], 'required' => false, - 'example' => '1', - ], - 'Type' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表、DATASOURCE 数据源、INDEX 指标、REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表、DATASOURCE 数据源、INDEX 指标、REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', ], - 'DataSourceInfo' => [ - 'title' => '数据源详情', - 'description' => '数据源详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], + 'NotifyStartTime' => ['title' => '推送起始时间', 'description' => '推送起始时间', 'type' => 'string', 'required' => true, 'example' => '2024-11-16 00:00:00'], + 'NotifyEndTime' => ['title' => '推送结束时间', 'description' => '推送结束时间', 'type' => 'string', 'required' => true, 'example' => '2024-11-27 13:47:00'], + 'ChannelTypeList' => [ + 'title' => '推送渠道类型列表', + 'description' => '推送渠道类型列表', + 'type' => 'array', + 'items' => ['title' => '推送渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'description' => '推送渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'type' => 'string', 'required' => false, 'example' => 'SMS'], 'required' => false, ], - 'TableInfo' => [ - 'title' => '监控表对象', - 'description' => '监控表对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '表Id', - 'description' => '表Id', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], + 'CustomChannelIdList' => [ + 'title' => '自定义消息渠道id列表', + 'description' => '自定义消息渠道id列表', + 'type' => 'array', + 'items' => ['title' => '自定义消息渠道id', 'description' => '自定义消息渠道id', 'type' => 'string', 'required' => false, 'example' => '12345'], 'required' => false, ], - 'IndexInfo' => [ - 'title' => '监控指标对象', - 'description' => '监控指标对象', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '指标Id:', - 'description' => '指标Id:', - 'type' => 'string', - 'required' => false, - 'example' => '11', - ], - 'Name' => [ - 'title' => '指标名:', - 'description' => '指标名:', - 'type' => 'string', - 'required' => false, - 'example' => 'test_idx_', - ], - 'DisplayName' => [ - 'title' => '指标展示名:', - 'description' => '指标展示名:', - 'type' => 'string', - 'required' => false, - 'example' => 'logic', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'GranularityId' => [ - 'title' => '统计粒度id', - 'description' => '统计粒度id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '18755764', - ], - 'GranularityDisplayName' => [ - 'title' => '统计粒度名称', - 'description' => '统计粒度名称', - 'type' => 'string', - 'required' => false, - 'example' => '全站汇总表', - ], - 'ComputeType' => [ - 'title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'type' => 'string', - 'required' => false, - 'example' => 'AUTO', - ], - 'CellSumLogicTableName' => [ - 'title' => '单元汇总表名', - 'description' => '单元汇总表名', - 'type' => 'string', - 'required' => false, - 'example' => 'dws_all', - ], - 'Type' => [ - 'title' => '指标类型:INDEX', - 'description' => '指标类型:INDEX', - 'type' => 'string', - 'required' => false, - 'example' => 'INDEX', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1121', - ], - 'DateType' => [ - 'title' => '指标数据类型', - 'description' => '指标数据类型', - 'type' => 'string', - 'required' => false, - 'example' => 'bigint', - ], - ], + 'StatusList' => [ + 'title' => '推送状态列表', + 'description' => '推送状态列表', + 'type' => 'array', + 'items' => ['title' => '推送状态:'."\n" + .'- SUCCESS:发送成功'."\n" + .'- FAILED:发送失败'."\n" + .'- SENDING:发送中', 'description' => '推送状态:'."\n" + .'- SUCCESS:发送成功'."\n" + .'- FAILED:发送失败'."\n" + .'- SENDING:发送中', 'type' => 'string', 'required' => false, 'example' => 'SUCCESS'], 'required' => false, ], - 'QualityOwner' => [ - 'title' => '质量负责人', - 'description' => '质量负责人', - 'type' => 'string', - 'required' => true, - 'example' => '30001011', + 'AlertReasonList' => [ + 'title' => '告警原因列表', + 'description' => '告警原因列表', + 'type' => 'array', + 'items' => ['title' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'description' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'type' => 'string', 'required' => false, 'example' => 'VDM_BATCH_FINISH'], + 'required' => false, + ], + 'SourceSystem' => ['title' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'description' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'type' => 'string', 'required' => true, 'example' => 'ALL'], + 'MonitoredItemIdList' => [ + 'title' => '监控项id列表', + 'description' => '监控项id列表', + 'type' => 'array', + 'items' => ['title' => '监控项id', 'description' => '监控项id', 'type' => 'string', 'required' => false, 'example' => '12345'], + 'required' => false, ], + 'Keyword' => ['title' => '关键字查询', 'description' => '关键字查询', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '一页数据条数', 'description' => '一页数据条数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'True'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ListResult' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'Data' => [ + 'title' => '推送记录列表', + 'description' => '推送记录列表', + 'type' => 'array', + 'items' => [ + 'title' => '推送记录信息', + 'description' => '推送记录信息', + 'type' => 'object', + 'properties' => [ + 'AlertEventId' => ['title' => '告警事件id', 'description' => '告警事件id', 'type' => 'string', 'example' => '12345'], + 'AlertObject' => [ + 'title' => '告警对象', + 'description' => '告警对象', + 'type' => 'object', + 'properties' => [ + 'SourceSystemType' => ['title' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'description' => '来源系统:'."\n" + ."\n" + .'- ALL:所有'."\n" + .'- DQE:数据质量'."\n" + .'- OS:数据服务'."\n" + .'- STREAM:实时计算'."\n" + .'- VDM_BATCH:离线计算'."\n" + .'- SOP:运维平台'."\n" + .'- REAL_TIME_PIPELINE:实时集成'."\n" + .'- KGB:基线监控'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH'], + 'Name' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'description' => '告警对象类型:'."\n" + .'- OS_API:API接口'."\n" + .'- OS_APPLICATION_SERVICE:服务应用'."\n" + .'- STREAM_TASK:实时计算'."\n" + .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" + .'- VDM_BATCH_SHELL:SHELL'."\n" + .'- VDM_BATCH_PYTHON:PYTHON'."\n" + .'- VDM_BATCH_DATAX:DATAX'."\n" + .'- VDM_BATCH_DLINK:DLINK'."\n" + .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" + .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" + .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" + .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" + .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" + .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" + .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" + .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" + .'- DQE_LOGICAL_TABLE:逻辑表'."\n" + .'- DQE_PHYSICAL_TABLE:物理表'."\n" + .'- DQE_REALTIME_TABLE:实时元表'."\n" + .'- DQE_DATA_SOURCE:数据源'."\n" + .'- DQE_INDEX:指标'."\n" + .'- QD_DECISION_INVOKE:QD决策调用'."\n" + .'- BASELINE:基线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH_SHELL'], + ], + ], + 'AlertReason' => [ + 'title' => '告警原因', + 'description' => '告警原因', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'description' => '告警原因类型:'."\n" + .'- DQE_COLUMN:字段规则异'."\n" + .'- DQE_DATA_SOURCE:数据源规则异常'."\n" + .'- DQE_CUSTOMIZE:自定义规则异常'."\n" + .'- DQE_TABLE:表规则异常'."\n" + .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" + .'- DQE_INDEX:指标规则异常'."\n" + .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" + .'- OS_CALL_TIMES:调用次数异常'."\n" + .'- OS_ERROR_RATE:错误率异常'."\n" + .'- OS_OFFLINE:Offline百分比异常'."\n" + .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" + .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" + .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" + .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" + .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" + .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" + .'- STREAM_JOB_FAILURE:运行失败'."\n" + .'- VDM_BATCH_ERROR:出错'."\n" + .'- VDM_BATCH_FINISH:完成'."\n" + .'- VDM_BATCH_TIME_OUT:运行超时'."\n" + .'- VDM_BATCH_UNDONE:未完成'."\n" + .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" + .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" + .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" + .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" + .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" + .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" + .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" + .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" + .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" + .'- KGB_TASK_ERROR:基线任务出错'."\n" + .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" + .'- KGB_EARLY_WARNING:基线预警'."\n" + .'- KGB_BROKEN_LINE:基线破线'."\n" + ."\n" + .'等', 'type' => 'string', 'example' => 'VDM_BATCH_FINISH'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '20241125'], + 'UniqueKey' => ['title' => '唯一标识', 'description' => '唯一标识', 'type' => 'string', 'example' => '123456'], + 'AlertReasonParamList' => [ + 'title' => '告警参数列表', + 'description' => '告警参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '告警参数', + 'description' => '告警参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '告警参数名', 'description' => '告警参数名', 'type' => 'string', 'example' => 'biz_date'], + 'Value' => ['title' => '告警参数值', 'description' => '告警参数值', 'type' => 'string', 'example' => '2024-11-24 00:00:00'], + ], + ], + ], + ], + ], + 'AlertReceiver' => [ + 'title' => '接收人信息', + 'description' => '接收人信息', + 'type' => 'object', + 'properties' => [ + 'AlertChannelType' => ['title' => '推送渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'description' => '推送渠道类型:'."\n" + .'- VOICE:电话'."\n" + .'- SMS:短信'."\n" + .'- MAIL:邮件'."\n" + .'- DINGTALK_ROBOT:邮件'."\n" + .'- DINGDING:钉钉工作通知'."\n" + .'- CUSTOM:自定义消息渠道'."\n" + .'- WECHAT:企业微信'."\n" + .'- FEISHU:飞书'."\n" + .'- SILENCE:不发送', 'type' => 'string', 'example' => 'SMS'], + 'CustomAlertChannelId' => ['title' => '自定义消息消息渠道id', 'description' => '自定义消息消息渠道id', 'type' => 'string', 'example' => '123456'], + 'Type' => ['title' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'description' => '告警接收人类型:'."\n" + .'- ON_CALL_TABLE:值班表'."\n" + .'- USER_DEFINED:自定义用户'."\n" + .'- OWNER:负责人', 'type' => 'string', 'example' => 'OWNER'], + 'User' => [ + 'title' => '用户信息', + 'description' => '用户信息', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '告警接收人姓名', 'description' => '告警接收人姓名', 'type' => 'string', 'example' => 'ADMIN'], + ], + ], + 'OnCallTableId' => ['title' => '值班表id', 'description' => '值班表id', 'type' => 'string', 'example' => '12345'], + 'OnCallTableName' => ['title' => '值班表名称', 'description' => '值班表名称', 'type' => 'string', 'example' => 'test'], + ], + ], + 'AlertSend' => [ + 'title' => '告警发送信息', + 'description' => '告警发送信息', + 'type' => 'object', + 'properties' => [ + 'Status' => ['title' => '推送状态:'."\n" + .'- SUCCESS:发送成功'."\n" + .'- FAILE:发送失败'."\n" + .'- SENDING:发送中', 'description' => '推送状态:'."\n" + .'- SUCCESS:发送成功'."\n" + .'- FAILE:发送失败'."\n" + .'- SENDING:发送中', 'type' => 'string', 'example' => 'SUCCESS'], + 'FailReason' => ['title' => '告警原因', 'description' => '告警原因', 'type' => 'string', 'example' => '不合法'], + 'SendTime' => ['title' => '推送时间', 'description' => '推送时间', 'type' => 'string', 'example' => '2024-11-25 10:02:47'], + 'SendContent' => ['title' => '推送内容', 'description' => '推送内容', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + ], + ], + ], ], ], ], @@ -38944,158 +23596,72 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"AlertEventId\\": \\"12345\\",\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"VDM_BATCH\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"VDM_BATCH_SHELL\\"\\n },\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"20241125\\",\\n \\"UniqueKey\\": \\"123456\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-24 00:00:00\\"\\n }\\n ]\\n },\\n \\"AlertReceiver\\": {\\n \\"AlertChannelType\\": \\"SMS\\",\\n \\"CustomAlertChannelId\\": \\"123456\\",\\n \\"Type\\": \\"OWNER\\",\\n \\"User\\": {\\n \\"Name\\": \\"ADMIN\\"\\n },\\n \\"OnCallTableId\\": \\"12345\\",\\n \\"OnCallTableName\\": \\"test\\"\\n },\\n \\"AlertSend\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"FailReason\\": \\"不合法\\",\\n \\"SendTime\\": \\"2024-11-25 10:02:47\\",\\n \\"SendContent\\": \\"test\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询推送记录列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建或更改质量监控对象', - ], - 'UpsertQualityTemplate' => [ - 'summary' => '新建或者修改质量模板。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAlertNotifications', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListApiByApp' => [ + 'summary' => '根据app查询api列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpsertCommand', + 'name' => 'PageQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更改指令', - 'description' => '更改指令', - 'type' => 'object', + 'title' => '分页查询参数', + 'description' => '分页查询参数', + 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '模板ID: 传递了代表更新,不传递代表新建', - 'description' => '模板ID: 传递了代表更新,不传递代表新建', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'type' => 'string', - 'required' => true, - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'Description' => [ - 'title' => '模板描述', - 'description' => '模板描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '模板负责人ID', - 'description' => '模板负责人ID', - 'type' => 'string', - 'required' => true, - 'example' => '30012011', - ], - 'Catalog' => [ - 'title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'required' => true, - 'example' => 'CONSISTENT', - ], - 'SupportDataSourceTypeList' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'array', - 'items' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'string', - 'required' => false, - 'example' => 'MySQL', - ], - 'required' => false, - ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对', - 'description' => '规则配置键值对', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'required' => false, - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'required' => false, - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - ], - 'required' => false, - ], - 'required' => false, - ], + 'Keyword' => ['title' => '关键字', 'description' => '关键字', 'type' => 'string', 'required' => false, 'example' => 'apiName'], + 'PageSize' => ['title' => '分页大小', 'description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '20'], + 'PageNum' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => false, 'example' => '200000000'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'required' => false, 'example' => 'APP_200000000'], ], 'required' => true, ], @@ -39108,42 +23674,230 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'ListResult' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'Data' => [ + 'title' => 'api列表', + 'description' => 'api列表', + 'type' => 'array', + 'items' => [ + 'title' => 'API详情', + 'description' => 'API详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'API的id', 'description' => 'API的id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'Name' => ['title' => 'API名称', 'description' => 'API名称', 'type' => 'string', 'example' => 'exampleApi'], + 'GroupId' => ['title' => 'API分组id', 'description' => 'API分组id', 'type' => 'integer', 'format' => 'int64', 'example' => '67890'], + 'GroupName' => ['title' => 'API分组名', 'description' => 'API分组名', 'type' => 'string', 'example' => 'exampleGroup'], + 'RequestMethod' => ['title' => '请求方法', 'description' => '请求方法', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RequestMethodName' => ['title' => '请求方法名', 'description' => '请求方法名', 'type' => 'string', 'example' => 'GET'], + 'UpdateRate' => ['title' => '更新频率', 'description' => '更新频率', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'UpdateRateName' => ['title' => '更新频率名', 'description' => '更新频率名', 'type' => 'string', 'example' => '每日更新'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '这是一个示例API'], + 'ReturnType' => ['title' => '返回类型', 'description' => '返回类型', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'ReturnTypeName' => ['title' => '返回类型名', 'description' => '返回类型名', 'type' => 'string', 'example' => 'JSON'], + 'Protocol' => ['title' => '协议', 'description' => '协议', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'ProtocolName' => ['title' => '协议名', 'description' => '协议名', 'type' => 'string', 'example' => 'HTTP和HTTPS'], + 'SqlStatement' => ['title' => 'SQL语句', 'description' => 'SQL语句', 'type' => 'string', 'example' => 'SELECT * FROM example_table'], + 'RequestParamList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '请求参数响应DTO', + 'description' => '请求参数响应DTO', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '主键ID', 'description' => '主键ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1001'], + 'ParamName' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'param1'], + 'MappingColumn' => ['title' => '前端绑定字段', 'description' => '前端绑定字段', 'type' => 'string', 'example' => 'column1'], + 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'String'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'value1'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '这是一个示例参数'], + 'DescriptionCode' => ['title' => '参数描述码', 'description' => '参数描述码', 'type' => 'string', 'example' => 'CODE_001'], + 'Must' => ['title' => '请求参数是否必填', 'description' => '请求参数是否必填', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Optional' => ['title' => '是否可以编辑', 'description' => '是否可以编辑', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DateFormat' => ['title' => '日期格式', 'description' => '日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Operator' => ['title' => '操作符', 'description' => '操作符', 'type' => 'string', 'example' => '='], + 'OriginalColumn' => ['title' => '原字段名', 'description' => '原字段名', 'type' => 'string', 'example' => 'original_column'], + 'InitialValue' => ['title' => '初始化值', 'description' => '初始化值', 'type' => 'string', 'example' => 'app_key_value'], + 'TableAndDsList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '数据源简单DTO', + 'description' => '数据源简单DTO', + 'type' => 'object', + 'properties' => [ + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => 'ds12345'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'exampleDatasource'], + 'DatasourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DatasourceUrl' => ['title' => '数据源URL', 'description' => '数据源URL', 'type' => 'string', 'example' => 'https://example.com/datasource'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 'example_table'], + ], + ], + ], + 'ParameterLocation' => ['title' => '注册API-请求参数位置|返回参数取值路径', 'description' => '注册API-请求参数位置|返回参数取值路径', 'type' => 'string', 'example' => '/path/to/param'], + 'DefaultValue' => ['title' => '注册API-默认值', 'description' => '注册API-默认值', 'type' => 'string', 'example' => 'default_value'], + ], + ], + ], + 'ResponseParamList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '响应参数响应DTO', + 'description' => '响应参数响应DTO', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '主键ID', 'description' => '主键ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2001'], + 'ParamName' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'responseParam1'], + 'MappingColumn' => ['title' => '前端绑定字段', 'description' => '前端绑定字段', 'type' => 'string', 'example' => 'responseColumn1'], + 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'String'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'responseValue1'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '这是一个示例响应参数'], + 'DescriptionCode' => ['title' => '参数描述码', 'description' => '参数描述码', 'type' => 'string', 'example' => 'CODE_002'], + 'Must' => ['title' => '请求参数是否必填', 'description' => '请求参数是否必填', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Optional' => ['title' => '是否可以编辑', 'description' => '是否可以编辑', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DateFormat' => ['title' => '日期格式', 'description' => '日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Operator' => ['title' => '操作符', 'description' => '操作符', 'type' => 'string', 'example' => '='], + 'OriginalColumn' => ['title' => '原字段名', 'description' => '原字段名', 'type' => 'string', 'example' => 'original_response_column'], + 'InitialValue' => ['title' => '初始化值', 'description' => '初始化值', 'type' => 'string', 'example' => 'app_key_value'], + 'TableAndDsList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '数据源简单DTO', + 'description' => '数据源简单DTO', + 'type' => 'object', + 'properties' => [ + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => 'ds67890'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'responseDatasource'], + 'DatasourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'DatasourceUrl' => ['title' => '数据源URL', 'description' => '数据源URL', 'type' => 'string', 'example' => 'https://example.com/response_datasource'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 'response_table'], + ], + ], + ], + 'ParameterLocation' => ['title' => '注册API-请求参数位置|返回参数取值路径', 'description' => '注册API-请求参数位置|返回参数取值路径', 'type' => 'string', 'example' => '/path/to/response_param'], + 'DefaultValue' => ['title' => '注册API-默认值', 'description' => '注册API-默认值', 'type' => 'string', 'example' => 'default_response_value'], + ], + ], + ], + 'PublicParamList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '公共参数响应DTO', + 'description' => '公共参数响应DTO', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '主键ID', 'description' => '主键ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3001'], + 'ParamName' => ['title' => '前端参数名称', 'description' => '前端参数名称', 'type' => 'string', 'example' => 'publicParam1'], + 'MappingColumn' => ['title' => '前端绑定字段', 'description' => '前端绑定字段', 'type' => 'string', 'example' => 'publicColumn1'], + 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'String'], + 'Sample' => ['title' => '参数示例', 'description' => '参数示例', 'type' => 'string', 'example' => 'publicValue1'], + 'Description' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '这是一个示例公共参数'], + 'DescriptionCode' => ['title' => '参数描述码', 'description' => '参数描述码', 'type' => 'string', 'example' => 'CODE_003'], + 'Must' => ['title' => '请求参数是否必填', 'description' => '请求参数是否必填', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Optional' => ['title' => '是否可以编辑', 'description' => '是否可以编辑', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DateFormat' => ['title' => '日期格式', 'description' => '日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Operator' => ['title' => '操作符', 'description' => '操作符', 'type' => 'string', 'example' => '='], + 'OriginalColumn' => ['title' => '原字段名', 'description' => '原字段名', 'type' => 'string', 'example' => 'original_public_column'], + 'InitialValue' => ['title' => '初始化值', 'description' => '初始化值', 'type' => 'string', 'example' => 'app_key_value'], + 'TableAndDsList' => [ + 'title' => '-', + 'description' => '-', + 'type' => 'array', + 'items' => [ + 'title' => '数据源简单DTO', + 'description' => '数据源简单DTO', + 'type' => 'object', + 'properties' => [ + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => 'ds54321'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'publicDatasource'], + 'DatasourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'integer', 'format' => 'int64', 'example' => '3'], + 'DatasourceUrl' => ['title' => '数据源URL', 'description' => '数据源URL', 'type' => 'string', 'example' => 'https://example.com/public_datasource'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 'public_table'], + ], + ], + ], + 'ParameterLocation' => ['title' => '注册API-请求参数位置|返回参数取值路径', 'description' => '注册API-请求参数位置|返回参数取值路径', 'type' => 'string', 'example' => '/path/to/public_param'], + 'DefaultValue' => ['title' => '注册API-默认值', 'description' => '注册API-默认值', 'type' => 'string', 'example' => 'default_public_value'], + ], + ], + ], + 'SpecialSql' => ['title' => '特殊SQL标志', 'description' => '特殊SQL标志', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'CreateType' => ['title' => '创建类型', 'description' => '创建类型'."\n" + .'SQL_MODE(0, "逻辑表API-SQL模式"),'."\n" + .'WIZARD_MODE(1, "逻辑表API-向导模式"),'."\n" + .'DIRECT_API_MODE(2, "直连数据源-SQL模式"),'."\n" + .'REGISTER_API_MODE(3, "注册API模式"),'."\n" + .'COMPOSITE_API_MODE(4, "组合API模式");', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ApiNo' => ['title' => 'API编号', 'description' => 'API编号', 'type' => 'integer', 'format' => 'int64', 'example' => '987654321'], + 'ModelType' => ['title' => '模式', 'description' => '模式', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'DbEnv' => ['title' => '数据环境', 'description' => '数据环境', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'ResultSample' => ['title' => '调用结果样例', 'description' => '调用结果样例', 'type' => 'string', 'example' => '{"status":"success","data":[]}'], + 'BizModuleEnName' => ['title' => '业务板块名', 'description' => '业务板块名', 'type' => 'string', 'example' => 'exampleModule'], + 'TableName' => ['title' => '逻辑表名', 'description' => '逻辑表名', 'type' => 'string', 'example' => 'exampleTable'], + 'IsLogicalTable' => ['title' => '是否逻辑表', 'description' => '是否逻辑表', 'type' => 'boolean'], + 'DirectDatasourceId' => ['title' => '直连API的数据源ID', 'description' => '直连API的数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '54321'], + 'DirectDatasourceName' => ['title' => '直连API的数据源名称', 'description' => '直连API的数据源名称', 'type' => 'string', 'example' => 'directDatasource'], + 'ApiTimeout' => ['title' => 'API超时', 'description' => 'API超时', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'MaxReturnNum' => ['title' => '最大返回条数', 'description' => '最大返回条数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'ProjId' => ['title' => '服务项目ID', 'description' => '服务项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '112233'], + 'ProjName' => ['title' => '服务项目名称', 'description' => '服务项目名称', 'type' => 'string', 'example' => 'exampleProject'], + 'AppName' => ['title' => '我的应用', 'description' => '我的应用', 'type' => 'string', 'example' => 'exampleApp'], + 'RsGrpId' => ['title' => '资源组ID', 'description' => '资源组ID', 'type' => 'string', 'example' => 'grp12345'], + 'ResourceGroupName' => ['title' => '资源组名称', 'description' => '资源组名称', 'type' => 'string', 'example' => 'exampleResourceGroup'], + 'CacheSwitch' => ['title' => 'API缓存开关', 'description' => 'API缓存开关', 'type' => 'string', 'example' => '1'], + 'CacheTime' => ['title' => '缓存时长(秒)', 'description' => '缓存时长(秒)', 'type' => 'string', 'example' => '60'], + 'Timeout' => ['title' => '超时时长(秒)', 'description' => '超时时长(秒)', 'type' => 'string', 'example' => '10'], + 'ScriptType' => ['title' => '脚本类型', 'description' => '脚本类型', 'type' => 'string', 'example' => 'SQL'], + 'RegisterApi' => [ + 'title' => '注册API信息', + 'description' => '注册API信息', + 'type' => 'object', + 'properties' => [ + 'ApiId' => ['title' => 'data_api主键', 'description' => 'data_api主键', 'type' => 'integer', 'format' => 'int64', 'example' => '67890'], + 'ModelType' => ['title' => '模式', 'description' => '模式', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'HttpMethod' => ['title' => '注册API请求方式', 'description' => '注册API请求方式', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DatasourceId' => ['title' => 'API数据源ID', 'description' => 'API数据源ID', 'type' => 'string', 'example' => 'ds67890'], + 'DatasourceName' => ['title' => 'API数据源名称', 'description' => 'API数据源名称', 'type' => 'string', 'example' => 'registerDatasource'], + 'Url' => ['title' => 'API数据源URL地址', 'description' => 'API数据源URL地址', 'type' => 'string', 'example' => 'https://example.com/register_api'], + 'AuthenticationMode' => ['title' => 'API数据源认证方式', 'description' => 'API数据源认证方式', 'type' => 'string', 'example' => 'OAuth2'], + 'Protocol' => ['title' => 'API数据源请求协议', 'description' => 'API数据源请求协议', 'type' => 'string', 'example' => 'HTTPS'], + 'Path' => ['title' => '服务path', 'description' => '服务path', 'type' => 'string', 'example' => '/api/v1/register'], + 'Timeout' => ['title' => '超时时间', 'description' => '超时时间', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'SuccessExample' => ['title' => '成功示例', 'description' => '成功示例', 'type' => 'string', 'example' => '{"status":"success","data":[]}'], + 'FailExample' => ['title' => '失败示例', 'description' => '失败示例', 'type' => 'string', 'example' => '{"status":"error","message":"Invalid request"}'], + ], + ], + 'Version' => ['title' => 'API版本', 'description' => 'API版本', 'type' => 'string', 'example' => 'v1.0'], + 'IsPagedQuery' => ['title' => '是否是分页查询', 'description' => '是否是分页查询', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'AuthTypes' => [ + 'title' => '权限类型列表', + 'description' => '权限类型列表', + 'type' => 'array', + 'items' => ['title' => '权限类型', 'description' => '权限类型', 'type' => 'string', 'example' => 'USE'], + ], + ], + ], + ], + ], ], ], ], @@ -39151,221 +23905,161 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 12345,\\n \\"Name\\": \\"exampleApi\\",\\n \\"GroupId\\": 67890,\\n \\"GroupName\\": \\"exampleGroup\\",\\n \\"RequestMethod\\": 1,\\n \\"RequestMethodName\\": \\"GET\\",\\n \\"UpdateRate\\": 2,\\n \\"UpdateRateName\\": \\"每日更新\\",\\n \\"Description\\": \\"这是一个示例API\\",\\n \\"ReturnType\\": 3,\\n \\"ReturnTypeName\\": \\"JSON\\",\\n \\"Protocol\\": 3,\\n \\"ProtocolName\\": \\"HTTP和HTTPS\\",\\n \\"SqlStatement\\": \\"SELECT * FROM example_table\\",\\n \\"RequestParamList\\": [\\n {\\n \\"Id\\": 1001,\\n \\"ParamName\\": \\"param1\\",\\n \\"MappingColumn\\": \\"column1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"value1\\",\\n \\"Description\\": \\"这是一个示例参数\\",\\n \\"DescriptionCode\\": \\"CODE_001\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds12345\\",\\n \\"DatasourceName\\": \\"exampleDatasource\\",\\n \\"DatasourceType\\": 1,\\n \\"DatasourceUrl\\": \\"https://example.com/datasource\\",\\n \\"TableName\\": \\"example_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/param\\",\\n \\"DefaultValue\\": \\"default_value\\"\\n }\\n ],\\n \\"ResponseParamList\\": [\\n {\\n \\"Id\\": 2001,\\n \\"ParamName\\": \\"responseParam1\\",\\n \\"MappingColumn\\": \\"responseColumn1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"responseValue1\\",\\n \\"Description\\": \\"这是一个示例响应参数\\",\\n \\"DescriptionCode\\": \\"CODE_002\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_response_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds67890\\",\\n \\"DatasourceName\\": \\"responseDatasource\\",\\n \\"DatasourceType\\": 2,\\n \\"DatasourceUrl\\": \\"https://example.com/response_datasource\\",\\n \\"TableName\\": \\"response_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/response_param\\",\\n \\"DefaultValue\\": \\"default_response_value\\"\\n }\\n ],\\n \\"PublicParamList\\": [\\n {\\n \\"Id\\": 3001,\\n \\"ParamName\\": \\"publicParam1\\",\\n \\"MappingColumn\\": \\"publicColumn1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"publicValue1\\",\\n \\"Description\\": \\"这是一个示例公共参数\\",\\n \\"DescriptionCode\\": \\"CODE_003\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_public_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds54321\\",\\n \\"DatasourceName\\": \\"publicDatasource\\",\\n \\"DatasourceType\\": 3,\\n \\"DatasourceUrl\\": \\"https://example.com/public_datasource\\",\\n \\"TableName\\": \\"public_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/public_param\\",\\n \\"DefaultValue\\": \\"default_public_value\\"\\n }\\n ],\\n \\"SpecialSql\\": 0,\\n \\"CreateType\\": 1,\\n \\"ApiNo\\": 987654321,\\n \\"ModelType\\": 0,\\n \\"DbEnv\\": 0,\\n \\"ResultSample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"success\\\\\\",\\\\\\"data\\\\\\":[]}\\",\\n \\"BizModuleEnName\\": \\"exampleModule\\",\\n \\"TableName\\": \\"exampleTable\\",\\n \\"IsLogicalTable\\": true,\\n \\"DirectDatasourceId\\": 54321,\\n \\"DirectDatasourceName\\": \\"directDatasource\\",\\n \\"ApiTimeout\\": 30,\\n \\"MaxReturnNum\\": 100,\\n \\"ProjId\\": 112233,\\n \\"ProjName\\": \\"exampleProject\\",\\n \\"AppName\\": \\"exampleApp\\",\\n \\"RsGrpId\\": \\"grp12345\\",\\n \\"ResourceGroupName\\": \\"exampleResourceGroup\\",\\n \\"CacheSwitch\\": \\"1\\",\\n \\"CacheTime\\": \\"60\\",\\n \\"Timeout\\": \\"10\\",\\n \\"ScriptType\\": \\"SQL\\",\\n \\"RegisterApi\\": {\\n \\"ApiId\\": 67890,\\n \\"ModelType\\": 0,\\n \\"HttpMethod\\": 1,\\n \\"DatasourceId\\": \\"ds67890\\",\\n \\"DatasourceName\\": \\"registerDatasource\\",\\n \\"Url\\": \\"https://example.com/register_api\\",\\n \\"AuthenticationMode\\": \\"OAuth2\\",\\n \\"Protocol\\": \\"HTTPS\\",\\n \\"Path\\": \\"/api/v1/register\\",\\n \\"Timeout\\": 30,\\n \\"SuccessExample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"success\\\\\\",\\\\\\"data\\\\\\":[]}\\",\\n \\"FailExample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"error\\\\\\",\\\\\\"message\\\\\\":\\\\\\"Invalid request\\\\\\"}\\"\\n },\\n \\"Version\\": \\"v1.0\\",\\n \\"IsPagedQuery\\": 0,\\n \\"AuthTypes\\": [\\n \\"USE\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询应用下api详情列表', + 'description' => '可以根据appKey查询已发布接口的详细信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建或者修改质量模板', + 'ramActions' => [], ], - 'UpsertQualitySchedule' => [ - 'summary' => '新建或者修改调度设置。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListAuthorizedDataServiceApiDetails' => [ + 'summary' => '查询应用已申请的API的具体的字段列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpsertCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更改指令', - 'description' => '更改指令', + 'title' => '查询请求', + 'description' => '查询请求', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '调度对象ID: 传递代表更新,不传递代表新建', - 'description' => '调度对象ID: 传递代表更新,不传递代表新建', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'WatchId' => [ - 'title' => '监控对象Id', - 'description' => '监控对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'Name' => [ - 'title' => '调度对象名称', - 'description' => '调度对象名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Type' => [ - 'title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'type' => 'string', - 'required' => true, - 'example' => 'PERIOD_SCHEDULE', - ], - 'PartitionType' => [ - 'title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOM', - ], - 'PartitionExpression' => [ - 'title' => '分区表达式-自定义表达式', - 'description' => '分区表达式-自定义表达式', - 'type' => 'string', - 'required' => false, - 'example' => 'ds=${yyyyMMdd}', - ], - 'TriggerNodeList' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'array', - 'items' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'string', - 'required' => false, - 'example' => 'n_1121', - ], - 'required' => false, - ], - 'StaticTaskTriggerType' => [ - 'title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'type' => 'string', - 'required' => false, - 'example' => 'ONE_TASKS_FINISHED', - ], - 'TriggerType' => [ - 'title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'type' => 'string', - 'required' => false, - 'example' => 'STATIC_TASK_TRIGGER', - ], - 'PeriodScheduleIntervalType' => [ - 'title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'PeriodScheduleParamList' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', - 'type' => 'array', - 'items' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'required' => false, - ], - 'CronExpression' => [ - 'title' => '定时调度-cron表达式', - 'description' => '定时调度-cron表达式', - 'type' => 'string', - 'required' => false, - 'example' => '* * 1/* * * *', - ], - 'ValidatePartitionType' => [ - 'title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'type' => 'string', - 'required' => false, - 'example' => 'TASK_REFERRED_PARTITION', - ], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => false, 'example' => '200000000'], + 'Page' => ['title' => '页码,从1开始', 'description' => '页码,从1开始', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'minimum' => '1', 'example' => '1'], + 'PageSize' => ['title' => '每页显示的条数,最大100条', 'description' => '每页显示的条数,最大100条', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'maximum' => '100', 'minimum' => '1', 'example' => '20'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'required' => false, 'example' => 'APP_200000000'], ], 'required' => true, + 'example' => '30001011', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '调度对象ID', - 'description' => '调度对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'RequestId' => ['title' => '请求标识ID,一次请求的唯一标识', 'description' => '请求标识ID,一次请求的唯一标识', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求是否成功', 'description' => '请求是否成功', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP 状态码', 'description' => 'HTTP 状态码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码,OK表示请求正常', 'description' => '请求错误码,OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => '非法入参'], + 'Result' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '返回总数', 'description' => '返回总数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'Data' => [ + 'title' => '返回授权的API详情列表', + 'description' => '返回授权的API详情列表', + 'type' => 'array', + 'items' => [ + 'title' => '授权的API详情', + 'description' => '授权的API详情', + 'type' => 'object', + 'properties' => [ + 'ApiId' => ['title' => 'API_ID', 'description' => 'API_ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'ApiName' => ['title' => 'API名称', 'description' => 'API名称', 'type' => 'string', 'example' => 'GetData'], + 'AppId' => ['title' => '应用 ID', 'description' => '应用 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + 'ProjectId' => ['title' => '数据服务项目ID', 'description' => '数据服务项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '10000'], + 'Description' => ['title' => 'API描述信息', 'description' => 'API描述信息', 'type' => 'string', 'example' => 'Description1'], + 'DevAuthPeriod' => ['title' => '开发环境API权限有效期', 'description' => '开发环境API权限有效期', 'type' => 'string', 'example' => '2035-12-31'], + 'ProdAuthPeriod' => ['title' => '生产环境API权限有效期', 'description' => '生产环境API权限有效期', 'type' => 'string', 'example' => '2035-12-31'], + 'AuthType' => ['title' => '权限类型', 'description' => '权限类型', 'type' => 'string', 'example' => '使用权限'], + 'AuthorizedDevReturnParameters' => [ + 'title' => 'API开发环境授权的字段列表', + 'description' => 'API开发环境授权的字段列表', + 'type' => 'array', + 'items' => [ + 'title' => '字段对象', + 'description' => '字段对象', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'param1'], + 'ParameterDataType' => [ + 'title' => '参数类型', + 'description' => '参数类型', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + 'enum' => ['0:String', '1:Int', '2:Short', '3:Long', '4:Float', '5:Double', '6:Byte', '7:Boolean', '8:Binary', '9:Bigdecimal', '10:DATE(yyy-MM-dd HH:mm:ss)', '11:Array', '12:Array(int)', '13:Array(string)'], + ], + 'ParameterDescription' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'description1'], + 'ExampleValue' => ['title' => '示例值', 'description' => '示例值', 'type' => 'string', 'example' => 'example1'], + 'IsAuthorized' => [ + 'title' => '字段授权情况', + 'description' => '字段授权情况', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + 'enum' => ['0:未授权', '1:已授权'], + ], + ], + ], + ], + 'AuthorizedProdReturnParameters' => [ + 'title' => 'API生产环境授权的字段列表', + 'description' => 'API生产环境授权的字段列表', + 'type' => 'array', + 'items' => [ + 'title' => '字段对象', + 'description' => '字段对象', + 'type' => 'object', + 'properties' => [ + 'ParameterName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'param1'], + 'ParameterDataType' => [ + 'title' => '参数类型', + 'description' => '参数类型', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + 'enum' => ['0:String', '1:Int', '2:Short', '3:Long', '4:Float', '5:Double', '6:Byte', '7:Boolean', '8:Binary', '9:Bigdecimal', '10:DATE(yyy-MM-dd HH:mm:ss)', '11:Array', '12:Array(int)', '13:Array(string)'], + ], + 'ParameterDescription' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'description1'], + 'ExampleValue' => ['title' => '示例值', 'description' => '示例值', 'type' => 'string', 'example' => 'example1'], + 'IsAuthorized' => [ + 'title' => '字段授权情况', + 'description' => '字段授权情况', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + 'enum' => ['0:未授权', '1:已授权'], + ], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -39373,505 +24067,329 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建或者修改调度设置', - ], - 'UpsertQualityRule' => [ - 'summary' => '新建或者修改质量规则。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"非法入参\\",\\n \\"Result\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"ApiId\\": 12345,\\n \\"ApiName\\": \\"GetData\\",\\n \\"AppId\\": 12345,\\n \\"ProjectId\\": 10000,\\n \\"Description\\": \\"Description1\\",\\n \\"DevAuthPeriod\\": \\"2035-12-31\\",\\n \\"ProdAuthPeriod\\": \\"2035-12-31\\",\\n \\"AuthType\\": \\"使用权限\\",\\n \\"AuthorizedDevReturnParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterDataType\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsAuthorized\\": 1\\n }\\n ],\\n \\"AuthorizedProdReturnParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterDataType\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsAuthorized\\": 1\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询应用已申请的API的具体的字段列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAuthorizedDataServiceApiDetails', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListBatchTemplates' => [ + 'summary' => '分页查询离线计算模板,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123456'], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '运行环境,默认:PROD', 'description' => '运行环境,默认:PROD', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'title' => '分页查询条件', + 'description' => '分页查询条件', + 'type' => 'object', + 'properties' => [ + 'Keyword' => ['title' => '模板名称关键字', 'description' => '模板名称关键字', 'type' => 'string', 'required' => false, 'example' => '数据处理模板'], + 'PageNum' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + 'required' => false, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'TemplateList' => [ + 'title' => '分页模板记录列表', + 'description' => '分页模板记录列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板ID, 和菜单树节点ID一致', 'description' => '模板ID, 和菜单树节点ID一致', 'type' => 'integer', 'format' => 'int64', 'example' => '1001'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '数据处理模板'], + 'OperatorType' => ['title' => '节点类型: 10(Shell) / 21(Python)', 'description' => '节点类型: 10(Shell) / 21(Python)', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'Engine' => ['title' => '计算引擎的版本,目前支持python:Python 2.7,Python 3.7', 'description' => '计算引擎的版本,目前支持python:Python 2.7,Python 3.7', 'type' => 'string', 'example' => 'Python 3.7'], + 'Content' => ['title' => '模板内容', 'description' => '模板内容', 'type' => 'string', 'example' => '#!/bin/bash'."\n" + .'echo \'hello world\''], + 'CurrentVersion' => ['title' => '当前最新版本', 'description' => '当前最新版本', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Status' => ['title' => '模板状态:0(草稿态) / 2(已提交) / 100(开发中)', 'description' => '模板状态:0(草稿态) / 2(已提交) / 100(开发中)', 'type' => 'string', 'example' => '2'], + 'Description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => '用于数据处理的Shell模板'], + 'Owner' => ['title' => '模板负责人', 'description' => '模板负责人', 'type' => 'string', 'example' => '张三'], + 'OwnerId' => ['title' => '模板负责人ID', 'description' => '模板负责人ID', 'type' => 'string', 'example' => '100001'], + 'Comment' => ['title' => '模板提交备注', 'description' => '模板提交备注', 'type' => 'string', 'example' => '初始化提交'], + 'Modifier' => ['title' => '模板最后更新人', 'description' => '模板最后更新人', 'type' => 'string', 'example' => '李四'], + 'ModifierId' => ['title' => '模板最后更新人ID', 'description' => '模板最后更新人ID', 'type' => 'string', 'example' => '100002'], + 'GmtCreate' => ['title' => '模板创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '模板创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2026-01-01 10:00:00'], + 'GmtModified' => ['title' => '模板更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '模板更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2026-05-28 15:30:00'], + ], + ], + ], + ], + ], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '分页查询离线计算模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 100,\\n \\"TemplateList\\": [\\n {\\n \\"Id\\": 1001,\\n \\"ProjectId\\": 123456,\\n \\"Name\\": \\"数据处理模板\\",\\n \\"OperatorType\\": 10,\\n \\"Engine\\": \\"Python 3.7\\",\\n \\"Content\\": \\"#!/bin/bash\\\\necho \'hello world\'\\",\\n \\"CurrentVersion\\": 1,\\n \\"Status\\": \\"2\\",\\n \\"Description\\": \\"用于数据处理的Shell模板\\",\\n \\"Owner\\": \\"张三\\",\\n \\"OwnerId\\": \\"100001\\",\\n \\"Comment\\": \\"初始化提交\\",\\n \\"Modifier\\": \\"李四\\",\\n \\"ModifierId\\": \\"100002\\",\\n \\"GmtCreate\\": \\"2026-01-01 10:00:00\\",\\n \\"GmtModified\\": \\"2026-05-28 15:30:00\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'ListBizEntities' => [ + 'summary' => '查询业务实体列表。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'UpsertCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更改指令', - 'description' => '更改指令', + 'title' => '查询请求', + 'description' => '查询请求', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '规则ID,非空时代表修改,为空时代表新建', - 'description' => '规则ID,非空时代表修改,为空时代表新建', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '11', - ], - 'Name' => [ - 'title' => '质量规则名称', - 'description' => '质量规则名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Strength' => [ - 'title' => '规则强弱: STRONG、WEAK', - 'description' => '规则强弱: STRONG、WEAK', - 'type' => 'string', - 'required' => true, - 'example' => 'STRONG', - ], - 'CatalogList' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'required' => true, - 'example' => 'CONSISTENT', + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'object_'], + 'Page' => ['title' => '页码, 默认 1', 'description' => '页码, 默认 1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认 10', 'description' => '分页记录数, 默认 10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'FilterCriteria' => [ + 'title' => '查询过滤条件', + 'description' => '查询过滤条件', + 'type' => 'object', + 'properties' => [ + 'BizUnitIdList' => [ + 'title' => '所属业务板块', + 'description' => '所属业务板块', + 'type' => 'array', + 'items' => ['title' => '所属业务板块', 'description' => '所属业务板块', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102323411'], + 'required' => false, + ], + 'BizUnitNameList' => [ + 'title' => '所属业务板块', + 'description' => '所属业务板块', + 'type' => 'array', + 'items' => ['title' => '所属业务板块', 'description' => '所属业务板块', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'required' => false, + ], + 'DataDomainIdList' => [ + 'title' => '所属主题域', + 'description' => '所属主题域', + 'type' => 'array', + 'items' => ['title' => '所属业务板块', 'description' => '所属业务板块', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102323411'], + 'required' => false, + ], + 'DataDomainNameList' => [ + 'title' => '所属主题域', + 'description' => '所属主题域', + 'type' => 'array', + 'items' => ['title' => '所属主题域', 'description' => '所属主题域', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'required' => false, + ], + 'SubTypeList' => [ + 'title' => '业务实体细分类型: 普通对象 NORMAL、枚举对象 ENUM、虚拟对象 VIRTUAL、层级对象 HIERARCHY、业务事件 BIZ_EVENT、业务快照 BIZ_SNAPSHOT、业务流程 BIZ_PROCESS', + 'description' => '业务实体细分类型,参考”查询业务实体详情“接口', + 'type' => 'array', + 'items' => ['title' => '所属主题域', 'description' => '所属主题域', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'required' => false, + ], + 'OwnerUserIdList' => [ + 'title' => '所属负责人Id', + 'description' => '所属负责人Id', + 'type' => 'array', + 'items' => ['title' => '所属负责人Id', 'description' => '所属负责人Id', 'type' => 'string', 'required' => true, 'example' => '30001326'], + 'required' => false, + ], + 'HasTableRef' => ['title' => '是否有逻辑表关联', 'description' => '是否有逻辑表关联', 'type' => 'boolean', 'required' => false], + 'StatusList' => [ + 'title' => '业务实体状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', + 'description' => '业务实体状态,参考”查询业务实体详情“接口', + 'type' => 'array', + 'items' => ['title' => '业务实体状态', 'description' => '业务实体状态', 'type' => 'string', 'required' => true, 'example' => 'PUBLISHED'], + 'required' => false, + ], ], - 'required' => true, - ], - 'TemplateType' => [ - 'title' => '模板类型:FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', - 'description' => '模板类型:'."\n" - .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" - .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" - .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" - .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" - .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" - .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" - .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" - .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" - .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" - .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" - .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" - .' - CODE_TABLE_COMPARE 码表参照对比'."\n" - .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" - .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" - .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" - .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" - .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" - .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" - .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" - .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" - .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" - .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" - .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" - .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" - .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" - .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', - 'type' => 'string', - 'required' => true, - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'TemplateId' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'WatchId' => [ - 'title' => '所属监控ID', - 'description' => '所属监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'EnableErrorArchive' => [ - 'title' => '是否启动异常归档', - 'description' => '是否启动异常归档', - 'type' => 'boolean', 'required' => false, ], - 'ValidateConditionList' => [ - 'title' => '校验条件', - 'description' => '校验条件', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '条件节点id', - 'description' => '条件节点id', - 'type' => 'string', - 'required' => false, - 'example' => '268', - ], - 'Type' => [ - 'title' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'type' => 'string', - 'required' => false, - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'type' => 'string', - 'required' => false, - 'example' => 'AND', - ], - 'Metric' => [ - 'title' => '指标', - 'description' => '指标', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Value' => [ - 'title' => '值', - 'description' => '值', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'ParentId' => [ - 'title' => '条件父节点Id', - 'description' => '条件父节点Id', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'required' => false, - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'required' => false, - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'AttributeWithValueList' => [ - 'title' => '规则业务属性配置', - 'description' => '规则业务属性配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'AttributeInfo' => [ - 'title' => '属性详情', - 'description' => '属性详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '711484689131', - ], - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'required' => false, - 'example' => 'attr01', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Enabled' => [ - 'title' => '是否启用', - 'description' => '是否启用', - 'type' => 'boolean', - 'required' => false, - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - 'required' => false, - ], - 'Searchable' => [ - 'title' => '是否可搜索', - 'description' => '是否可搜索', - 'type' => 'boolean', - 'required' => false, - ], - 'ValueConfig' => [ - 'title' => '属性值配置详情', - 'description' => '属性值配置详情', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'type' => 'string', - 'required' => false, - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '986992', - ], - 'ValueEnumList' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'DefaultValue' => [ - 'title' => '属性默认值', - 'description' => '属性默认值', - 'type' => 'object', - 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - 'required' => false, - ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - 'required' => false, - ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'required' => false, - 'example' => '11', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - 'required' => false, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'AttributeValue' => [ - 'title' => '属性值', - 'description' => '属性值', + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页结果', + 'description' => '分页结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '66'], + 'BizEntityList' => [ + 'title' => '业务实体列表', + 'description' => '业务实体列表', + 'type' => 'array', + 'items' => [ + 'title' => '业务实体', + 'description' => '业务实体', 'type' => 'object', 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'Id' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12121111'], + 'Name' => ['title' => '业务实体名称', 'description' => '业务实体名称', 'type' => 'string', 'example' => 'create_process_code_name'], + 'DisplayName' => ['title' => '业务实体展示名', 'description' => '业务实体展示名', 'type' => 'string', 'example' => '业务活动测试'], + 'Description' => ['title' => '业务实体描述', 'description' => '业务实体描述', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务实体负责人', 'description' => '业务实体负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务实体负责人', 'description' => '业务实体负责人', 'type' => 'string', 'example' => '张三'], + 'Type' => ['title' => '业务实体类型:业务对象 BIZ_OBJECT、业务活动 BIZ_PROCESS', 'description' => '业务实体类型:业务对象 BIZ_OBJECT、业务活动 BIZ_PROCESS', 'type' => 'string', 'example' => 'BIZ_OBJECT'], + 'SubType' => ['title' => '业务实体细分类型', 'description' => '业务实体细分类型', 'type' => 'string', 'example' => 'NORMAL'], + 'DataDomainId' => ['title' => '业务活动所属主题域Id', 'description' => '业务活动所属主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '20101011'], + 'BizUnitId' => ['title' => '业务活动所属业务板块Id', 'description' => '业务活动所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '6798087749072704'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'OnlineStatus' => ['title' => '上线状态: 未上线 SUBMITTED、审批中 APPROVING、已上线 PUBLISHED、上线失败 REJECT', 'description' => '上线状态 '."\n" + .'- 未上线 SUBMITTED'."\n" + .'- 审批中 APPROVING'."\n" + .'- 已上线 PUBLISHED'."\n" + .'- 上线失败 REJECT', 'type' => 'string', 'example' => 'SUBMITTED'], + 'Status' => ['title' => '状态: 草稿态/未上线 DRAFT、提交中 SUBMITTING、已提交 SUBMITTED、开发中 DEVELOPING、发布中 PUBLISHING、已发布 PUBLISHED', 'description' => '状态:'."\n" + .'- 草稿态/未上线 DRAFT'."\n" + .'- 提交中 SUBMITTING'."\n" + .'- 已提交 SUBMITTED'."\n" + .'- 开发中 DEVELOPING'."\n" + .'- 发布中 PUBLISHING'."\n" + .'- 已发布 PUBLISHED', 'type' => 'string', 'example' => 'SUBMITTED'], + 'RefTableCount' => ['title' => '关联逻辑表数量', 'description' => '关联逻辑表数量', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'HasChildBizEntity' => ['title' => '是否子业务对象', 'description' => '是否子业务对象', 'type' => 'boolean'], + 'LevelSubBizObject' => ['title' => '是否层级维度的子层级', 'description' => '是否层级维度的子层级', 'type' => 'boolean'], + 'RefBizEntityIdList' => [ + 'title' => '被关联的中心业务实体列表', + 'description' => '被关联的中心业务实体列表', 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - 'required' => false, + 'items' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11023'], ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - 'required' => false, + 'BelongToBizEntityIdList' => [ + 'title' => '被从属的业务流程, 当前类型是业务活动时有效', + 'description' => '被从属的业务流程, 当前类型是业务活动时有效', + 'type' => 'array', + 'items' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11023'], ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'required' => false, - 'example' => '11', + 'ChildBizEntityIdList' => [ + 'title' => '子业务对象Id列表, 当前类型是业务对象时有效', + 'description' => '子业务对象Id列表, 当前类型是业务对象时有效', + 'type' => 'array', + 'items' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11023'], ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - 'required' => false, + 'SuffixBizEntityIdList' => [ + 'title' => '后续业务流程, 当前类型是业务活动时有效', + 'description' => '后续业务流程, 当前类型是业务活动时有效', + 'type' => 'array', + 'items' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11023'], ], ], - 'required' => false, ], ], - 'required' => false, ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '任务规则ID', - 'description' => '任务规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', ], ], ], @@ -39879,136 +24397,113 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 66,\\n \\"BizEntityList\\": [\\n {\\n \\"Id\\": 12121111,\\n \\"Name\\": \\"create_process_code_name\\",\\n \\"DisplayName\\": \\"业务活动测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Type\\": \\"BIZ_OBJECT\\",\\n \\"SubType\\": \\"NORMAL\\",\\n \\"DataDomainId\\": 20101011,\\n \\"BizUnitId\\": 6798087749072704,\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"OnlineStatus\\": \\"SUBMITTED\\",\\n \\"Status\\": \\"SUBMITTED\\",\\n \\"RefTableCount\\": 1,\\n \\"HasChildBizEntity\\": true,\\n \\"LevelSubBizObject\\": true,\\n \\"RefBizEntityIdList\\": [\\n 11023\\n ],\\n \\"BelongToBizEntityIdList\\": [\\n 11023\\n ],\\n \\"ChildBizEntityIdList\\": [\\n 11023\\n ],\\n \\"SuffixBizEntityIdList\\": [\\n 11023\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询业务实体列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建或者修改质量规则', - ], - 'UpdateQualityWatchSwitch' => [ - 'summary' => '批量开启或关闭质量监控对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListBizEntities', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListBizUnits' => [ + 'summary' => '获取当前租户下的所有数据板块。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'Open' => [ - 'title' => '是否开启', - 'description' => '是否开启', - 'type' => 'boolean', - 'required' => true, - ], - 'WatchIdList' => [ - 'title' => '监控Id列表', - 'description' => '监控Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '监控Id列表', - 'description' => '监控Id列表', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2', - ], - 'required' => true, - ], - ], - 'required' => true, - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], 'Data' => [ - 'title' => '生效记录数', - 'description' => '生效记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'BizUnitList' => [ + 'title' => '数据板块详情', + 'description' => '数据板块详情', + 'type' => 'array', + 'items' => [ + 'title' => '数据板块详情', + 'description' => '数据板块详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据板块Id', 'description' => '数据板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '101001201'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'test01'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => '测试'], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'Icon' => ['title' => '数据板块图标', 'description' => '数据板块图标', 'type' => 'string', 'example' => 'icon-e-commerce'], + 'Env' => ['title' => '环境标识: DEV:开发环境,PROD:生产环境', 'description' => '环境标识: DEV:开发环境,PROD:生产环境', 'type' => 'string', 'example' => 'DEV'], + 'Mode' => ['title' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'description' => '生产模式:单环境模式 BASIC、开发/生产双环境模式 DEV_PROD', 'type' => 'string', 'example' => 'DEV_PROD'], + 'AccountList' => [ + 'title' => '板块架构师', + 'description' => '板块架构师', + 'type' => 'array', + 'items' => [ + 'title' => '用户', + 'description' => '用户', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '20001201'], + ], + ], + ], + ], + ], + ], + ], ], ], ], @@ -40016,88 +24511,71 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"BizUnitList\\": [\\n {\\n \\"Id\\": 101001201,\\n \\"Name\\": \\"test01\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"Icon\\": \\"icon-e-commerce\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Mode\\": \\"DEV_PROD\\",\\n \\"AccountList\\": [\\n {\\n \\"Id\\": \\"20001201\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询当前租户下的所有数据板块', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量开启或关闭质量监控对象', - ], - 'UpdateQualityRuleSwitch' => [ - 'summary' => '批量开启或关闭质量规则。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListBizUnits', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListCatalogAssets' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'ListCatalogAssetsQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => '查询参数', + 'description' => '查询参数', 'type' => 'object', 'properties' => [ - 'Open' => [ - 'title' => '是否开启', - 'description' => '是否开启', - 'type' => 'boolean', - 'required' => true, - ], - 'RuleIdList' => [ - 'title' => '规则Id列表', - 'description' => '规则Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '规则Id列表', - 'description' => '规则Id列表', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '2', - ], - 'required' => true, - ], + 'AssetType' => ['title' => '资产类型。默认为TABLE,枚举值:TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'description' => '资产类型。默认为TABLE,枚举值:TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'type' => 'string', 'required' => false, 'example' => 'TABLE'], + 'QueryMode' => ['title' => '查询类型;决定使用name精准匹配还是使用keyword模糊搜索。默认为EXACT_MATCH,枚举值:EXACT_MATCH(精准匹配)、ASSET_SEARCH(模糊搜索)', 'description' => '查询类型;决定使用name精准匹配还是使用keyword模糊搜索。默认为EXACT_MATCH,枚举值:EXACT_MATCH(精准匹配)、ASSET_SEARCH(模糊搜索)', 'type' => 'string', 'required' => false, 'example' => 'EXACT_MATCH'], + 'Name' => ['title' => '资产名称;queryMode=EXACT_MATCH(精准匹配)时使用。不填则默认查全量', 'description' => '资产名称;queryMode=EXACT_MATCH(精准匹配)时使用。不填则默认查全量', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'Keyword' => ['title' => '搜索关键词;queryMode=ASSET_SEARCH(模糊搜索)时使用,支持对资产全名、资产名称、资产展示名、资产描述做关键词匹配。不填默认查全量', 'description' => '搜索关键词;queryMode=ASSET_SEARCH(模糊搜索)时使用,支持对资产全名、资产名称、资产展示名、资产描述做关键词匹配。不填默认查全量', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'PageNum' => ['title' => '分页页码,默认为1', 'description' => '分页页码,默认为1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页大小,默认为10', 'description' => '分页大小,默认为10', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], ], 'required' => true, ], @@ -40110,42 +24588,79 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端响应异常详情', 'type' => 'string', 'example' => 'internal error'], 'Data' => [ - 'title' => '生效记录数', - 'description' => '生效记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'title' => '数据目录资产列表', + 'description' => '数据目录资产列表', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'AssetList' => [ + 'title' => '资产列表', + 'description' => '资产列表', + 'type' => 'array', + 'items' => [ + 'title' => '资产目录查询结果', + 'description' => '资产目录查询结果', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => '资产GUID,作为资产的唯一标识;', 'description' => '资产GUID,作为资产的唯一标识;', 'type' => 'string', 'example' => 'dp_ds_table.300023201.7311626611751680256.load_test.abc'], + 'AssetType' => ['title' => '资产类型;TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'description' => '资产类型;TABLE(表,包含视图、物化视图)、INDEX(技术指标)、BIZ_INDEX(业务指标)、API、PAGE(仪表板)', 'type' => 'string', 'example' => 'TABLE'], + 'IsDeleted' => ['title' => '是否已删除;', 'description' => '是否已删除;', 'type' => 'boolean'], + 'AssetName' => ['title' => '资产名称;', 'description' => '资产名称;', 'type' => 'string', 'example' => 'abc'], + 'AssetDisplayName' => ['title' => '资产展示名;当资产类型为TABLE / INDEX / BIZ_INDEX时返回。', 'description' => '资产展示名;当资产类型为TABLE / INDEX / BIZ_INDEX时返回。', 'type' => 'string', 'example' => 'abc表'], + 'AssetFullName' => ['title' => '资产全名;当资产类型为TABLE / INDEX时返回。', 'description' => '资产全名;当资产类型为TABLE / INDEX时返回。', 'type' => 'string', 'example' => 'dwd_all.abc'], + 'MaxSecurityLevel' => ['title' => '最高敏感等级;当资产类型为TABLE时返回。', 'description' => '最高敏感等级;当资产类型为TABLE时返回。', 'type' => 'string', 'example' => 'L3'], + 'AssetTags' => [ + 'title' => '资产标签;', + 'description' => '资产标签;', + 'type' => 'array', + 'items' => ['title' => '资产标签;', 'description' => '资产标签;', 'type' => 'string', 'example' => '["标签1", "标签2"]'], + ], + 'AssetDescription' => ['title' => '资产描述;', 'description' => '资产描述;', 'type' => 'string', 'example' => 'abc'], + 'AssetFrom' => ['title' => '资产来源。TABLE(物理表)返回"Dataphin-空间类型-项目中文名(项目英文名)";TABLE(逻辑表)返回"Dataphin-空间类型-数据板块中文名(数据板块英文名)";TABLE(数据源表)返回"来源系统名-数据源名-Database/schema名";INDEX(规范建模指标)返回所属汇总逻辑表的资产来源;INDEX(自定义指标)返回来源表的资产来源;API返回"数据服务项目名";PAGE返回"应用系统名"', 'description' => '资产来源。TABLE(物理表)返回"Dataphin-空间类型-项目中文名(项目英文名)";TABLE(逻辑表)返回"Dataphin-空间类型-数据板块中文名(数据板块英文名)";TABLE(数据源表)返回"来源系统名-数据源名-Database/schema名";INDEX(规范建模指标)返回所属汇总逻辑表的资产来源;INDEX(自定义指标)返回来源表的资产来源;API返回"数据服务项目名";PAGE返回"应用系统名"', 'type' => 'string', 'example' => 'Dataphin-中间层-服饰零售 (LD_Fashion)'], + 'BizUnitId' => ['title' => '所属数据板块ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属数据板块ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '6865277495315392'], + 'BizUnitName' => ['title' => '所属数据板块名称:当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属数据板块名称:当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '服饰零售(LD_Fashion)'], + 'ProjectId' => ['title' => '所属项目ID;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'description' => '所属项目ID;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '6865331517728384'], + 'ProjectName' => ['title' => '所属项目名称;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'description' => '所属项目名称;当资产类型为TABLE(仅物理表) / INDEX(仅来源表为物理表的技术指标)时返回。', 'type' => 'string', 'example' => 'train'], + 'DatasourceId' => ['title' => '所属数据源ID;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'description' => '所属数据源ID;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '7305549302863001856'], + 'DataSourceName' => ['title' => '所属数据源名称;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'description' => '所属数据源名称;当资产类型为TABLE(仅数据源表) / INDEX(仅来源表为数据源表的技术指标)时返回。', 'type' => 'string', 'example' => 'demo_mysql'], + 'SubType' => ['title' => '子类型;DIM_NORMAL(普通维度逻辑表)、DIM_ENUM(枚举维度逻辑表)、DIM_VIRTUAL(虚拟维度逻辑表)、SUM_BIZ_UNIT(汇总逻辑表)、FACT_EVENT(事件事实逻辑表)、FACT_SNAPSHOT(快照事实逻辑表)、DATASOURCE_TABLE(数据源表)、PHYSICAL_TABLE(物理表)、DATASOURCE_VIEW(视图-数据源视图)、PHYSICAL_VIEW(物理视图)、MATERIALIZED_VIEW(物化视图)BIZ_INDEX(业务指标)、INDEX(技术指标-规范建模指标)、CUSTOM_INDEX(技术指标-自定义指标);', 'description' => '子类型;DIM_NORMAL(普通维度逻辑表)、DIM_ENUM(枚举维度逻辑表)、DIM_VIRTUAL(虚拟维度逻辑表)、SUM_BIZ_UNIT(汇总逻辑表)、FACT_EVENT(事件事实逻辑表)、FACT_SNAPSHOT(快照事实逻辑表)、DATASOURCE_TABLE(数据源表)、PHYSICAL_TABLE(物理表)、DATASOURCE_VIEW(视图-数据源视图)、PHYSICAL_VIEW(物理视图)、MATERIALIZED_VIEW(物化视图)BIZ_INDEX(业务指标)、INDEX(技术指标-规范建模指标)、CUSTOM_INDEX(技术指标-自定义指标);', 'type' => 'string', 'example' => 'DIM_NORMAL'], + 'Directories' => [ + 'title' => '归属目录:专题ID、专题名称、目录ID、目录名称;', + 'description' => '归属目录:专题ID、专题名称、目录ID、目录名称;', + 'type' => 'array', + 'items' => [ + 'title' => '资产归属目录信息', + 'description' => '资产归属目录信息', + 'type' => 'object', + 'properties' => [ + 'TopicId' => ['title' => '专题ID', 'description' => '专题ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101676'], + 'TopicName' => ['title' => '专题名称', 'description' => '专题名称', 'type' => 'string', 'example' => '全渠道数据专题'], + 'DirectoryId' => ['title' => '目录ID', 'description' => '目录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '102260'], + 'DirectoryName' => ['title' => '目录名称', 'description' => '目录名称', 'type' => 'string', 'example' => '线上电商平台'], + ], + ], + ], + 'SumTableGuid' => ['title' => '所属汇总表GUID;当资产类型为INDEX时返回。', 'description' => '所属汇总表GUID;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => 'odps.300023201.test.ads_gross'], + 'SumTableName' => ['title' => '所属汇总表名称;当资产类型为INDEX时返回。', 'description' => '所属汇总表名称;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => 'ads_gross'], + 'Granularity' => ['title' => '技术指标的统计粒度名称;当资产类型为INDEX时返回。', 'description' => '技术指标的统计粒度名称;当资产类型为INDEX时返回。', 'type' => 'string', 'example' => '课程'], + 'DataCellId' => ['title' => '所属主题域ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属主题域ID;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '49837403'], + 'DataCellName' => ['title' => '所属主题域名称;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'description' => '所属主题域名称;当资产类型为TABLE(仅逻辑表) / INDEX(仅来源表为逻辑表的技术指标)时返回。', 'type' => 'string', 'example' => '课程域'], + 'ApiId' => ['title' => 'API ID;当资产类型为API时返回。', 'description' => 'API ID;当资产类型为API时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '10441'], + 'ApiGroupName' => ['title' => 'API分组名;当资产类型为API时返回。', 'description' => 'API分组名;当资产类型为API时返回。', 'type' => 'string', 'example' => '默认API分组'], + 'ApiRequestMethod' => ['title' => 'API操作类型;当资产类型为API时返回。枚举值:1=Get,2=List,3=Create,4=Update,5=Delete。', 'description' => 'API操作类型;当资产类型为API时返回。枚举值:1=Get,2=List,3=Create,4=Update,5=Delete。', 'type' => 'string', 'example' => '1'], + 'ApiCallMode' => ['title' => 'API调用模式;当资产类型为API时返回。枚举值:1=同步调用,2=异步调用。', 'description' => 'API调用模式;当资产类型为API时返回。枚举值:1=同步调用,2=异步调用。', 'type' => 'string', 'example' => '1'], + 'BiCatalog' => ['title' => '所属BI空间/目录;当资产类型为PAGE(仪表板)时返回。', 'description' => '所属BI空间/目录;当资产类型为PAGE(仪表板)时返回。', 'type' => 'string', 'example' => 'dataphin演示空间'], + 'ChartCount' => ['title' => '图表总数;当资产类型为PAGE(仪表板)时返回。', 'description' => '图表总数;当资产类型为PAGE(仪表板)时返回。', 'type' => 'integer', 'format' => 'int64', 'example' => '23'], + ], + ], + ], + ], ], ], ], @@ -40153,96 +24668,55 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询资产目录列表', + 'summary' => '查询资产目录列表,上线版本号:v6.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量开启或关闭质量规则', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"TotalCount\\": 68,\\n \\"AssetList\\": [\\n {\\n \\"Guid\\": \\"dp_ds_table.300023201.7311626611751680256.load_test.abc\\",\\n \\"AssetType\\": \\"TABLE\\",\\n \\"IsDeleted\\": true,\\n \\"AssetName\\": \\"abc\\",\\n \\"AssetDisplayName\\": \\"abc表\\",\\n \\"AssetFullName\\": \\"dwd_all.abc\\",\\n \\"MaxSecurityLevel\\": \\"L3\\",\\n \\"AssetTags\\": [\\n \\"[\\\\\\"标签1\\\\\\", \\\\\\"标签2\\\\\\"]\\"\\n ],\\n \\"AssetDescription\\": \\"abc\\",\\n \\"AssetFrom\\": \\"Dataphin-中间层-服饰零售 (LD_Fashion)\\",\\n \\"BizUnitId\\": 6865277495315392,\\n \\"BizUnitName\\": \\"服饰零售(LD_Fashion)\\",\\n \\"ProjectId\\": 6865331517728384,\\n \\"ProjectName\\": \\"train\\",\\n \\"DatasourceId\\": 7305549302863002000,\\n \\"DataSourceName\\": \\"demo_mysql\\",\\n \\"SubType\\": \\"DIM_NORMAL\\",\\n \\"Directories\\": [\\n {\\n \\"TopicId\\": 101676,\\n \\"TopicName\\": \\"全渠道数据专题\\",\\n \\"DirectoryId\\": 102260,\\n \\"DirectoryName\\": \\"线上电商平台\\"\\n }\\n ],\\n \\"SumTableGuid\\": \\"odps.300023201.test.ads_gross\\",\\n \\"SumTableName\\": \\"ads_gross\\",\\n \\"Granularity\\": \\"课程\\",\\n \\"DataCellId\\": \\"49837403\\",\\n \\"DataCellName\\": \\"课程域\\",\\n \\"ApiId\\": 10441,\\n \\"ApiGroupName\\": \\"默认API分组\\",\\n \\"ApiRequestMethod\\": \\"1\\",\\n \\"ApiCallMode\\": \\"1\\",\\n \\"BiCatalog\\": \\"dataphin演示空间\\",\\n \\"ChartCount\\": 23\\n }\\n ]\\n }\\n}","type":"json"}]', ], - 'SubmitQualityWatchTasks' => [ - 'summary' => '批量提交监控对象校验任务。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListComputeSources' => [ + 'summary' => '查询计算源列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SubmitCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '提交指令', - 'description' => '提交指令', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'WatchIdList' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'array', - 'items' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'required' => true, - ], - 'PartitionExpression' => [ - 'title' => '分区表达式-自定义表达式', - 'description' => '分区表达式-自定义表达式', - 'type' => 'string', - 'required' => false, - 'example' => 'ds=${yyyyMMdd}', - ], - 'BizDate' => [ - 'title' => '业务日期,格式:yyyy-MM-dd', - 'description' => '业务日期,格式:yyyy-MM-dd', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30', - ], + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'required' => false, 'example' => 'MaxCompute'], + 'BindProject' => ['title' => '是否绑定项目', 'description' => '是否绑定项目', 'type' => 'boolean', 'required' => false], + 'Keyword' => ['title' => '关键字', 'description' => '关键字', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], 'required' => true, ], @@ -40255,51 +24729,41 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SubmitResult' => [ - 'title' => '执行结果', - 'description' => '执行结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'WatchTaskIdList' => [ - 'title' => '监控对象校验任务ID列表', - 'description' => '监控对象校验任务ID列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'ComputeSourceList' => [ + 'title' => '分页计算源列表', + 'description' => '分页计算源列表', 'type' => 'array', 'items' => [ - 'title' => '监控对象校验任务ID列表', - 'description' => '监控对象校验任务ID列表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Owner' => ['title' => '计算源归属人', 'description' => '计算源归属人', 'type' => 'string', 'example' => '30012211'], + 'OwnerName' => ['title' => '计算源归属人', 'description' => '计算源归属人', 'type' => 'string', 'example' => '张三'], + 'BindProjectId' => ['title' => '绑定项目Id', 'description' => '绑定项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10132131111'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'BindProject' => ['title' => '是否绑定项目', 'description' => '是否绑定项目', 'type' => 'boolean'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012211'], + 'Name' => ['title' => '计算源名', 'description' => '计算源名', 'type' => 'string', 'example' => 'test1011'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'example' => 'MaxCompute'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'test1011'], + 'Id' => ['title' => '计算源Id', 'description' => '计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '102111'], + 'BindProjectName' => ['title' => '绑定项目名称', 'description' => '绑定项目名称', 'type' => 'string', 'example' => 'testPrj'], + 'CreatorName' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '张三'], + ], ], ], ], @@ -40310,132 +24774,63 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ComputeSourceList\\": [\\n {\\n \\"Owner\\": \\"30012211\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"BindProjectId\\": 10132131111,\\n \\"Description\\": \\"test\\",\\n \\"BindProject\\": true,\\n \\"GmtModified\\": \\"2025-06-30 08:00:00\\",\\n \\"Creator\\": \\"30012211\\",\\n \\"Name\\": \\"test1011\\",\\n \\"GmtCreate\\": \\"2025-06-30 08:00:00\\",\\n \\"Type\\": \\"MaxCompute\\",\\n \\"DisplayName\\": \\"test1011\\",\\n \\"Id\\": 102111,\\n \\"BindProjectName\\": \\"testPrj\\",\\n \\"CreatorName\\": \\"张三\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询计算源列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SubmitResult\\": {\\n \\"WatchTaskIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', - 'title' => '批量提交监控对象校验任务', + 'ramActions' => [], ], - 'SubmitQualityRuleTasks' => [ - 'summary' => '批量提交规则任务,支持试跑。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListDataDomains' => [ + 'summary' => '获取主题域列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'SubmitCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '提交指令', - 'description' => '提交指令', + 'title' => '查询请求', + 'description' => '查询请求', 'type' => 'object', 'properties' => [ - 'IsTestRun' => [ - 'title' => '是否为试跑: true 试跑、false 正式运行, 默认 true', - 'description' => '是否为试跑: true 试跑、false 正式运行', - 'type' => 'boolean', - 'required' => true, + 'BizUnitIdList' => [ + 'title' => '所属数据板块Id', + 'description' => '所属数据板块Id', + 'type' => 'array', + 'items' => ['title' => '所属数据板块Id', 'description' => '所属数据板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '545844456'], + 'required' => false, ], - 'WatchRuleIdList' => [ - 'title' => '监控及规则ID', - 'description' => '监控及规则ID', + 'ParentIdList' => [ + 'title' => '上级主题域Id', + 'description' => '上级主题域Id', 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'RuleId' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - 'PartitionExpressionFrom' => [ - 'title' => '试跑分区表达式来源: SCHEDULE 已有调度、CUSTOM 自定义', - 'description' => '试跑分区表达式来源: SCHEDULE 已有调度、CUSTOM 自定义', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOM', - ], - 'ScheduleId' => [ - 'title' => '已有调度ID', - 'description' => '已有调度ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'PartitionExpression' => [ - 'title' => '分区表达式-自定义表达式', - 'description' => '分区表达式-自定义表达式', - 'type' => 'string', - 'required' => false, - 'example' => 'ds=${yyyyMMdd}', - ], - 'BizDate' => [ - 'title' => '业务日期,格式:yyyy-MM-dd', - 'description' => '业务日期,格式:yyyy-MM-dd', - 'type' => 'string', + 'items' => ['title' => '上级主题域Id', 'description' => '上级主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10232311'], 'required' => false, - 'example' => '2025-06-30', ], + 'Keyword' => ['title' => '搜索关键词: 主题名称/编码/描述', 'description' => '搜索关键词: 主题名称/编码/描述', 'type' => 'string', 'required' => false, 'example' => 'test'], ], 'required' => true, ], @@ -40444,67 +24839,43 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SubmitResult' => [ - 'title' => '执行结果', - 'description' => '执行结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '查询结果', + 'description' => '查询结果', 'type' => 'object', 'properties' => [ - 'RuleTaskIdList' => [ - 'title' => '规则任务Id,试跑场景返回', - 'description' => '规则任务Id,试跑场景返回', - 'type' => 'array', - 'items' => [ - 'title' => '规则任务Id,试跑场景返回', - 'description' => '规则任务Id,试跑场景返回', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], - 'WatchTaskIdList' => [ - 'title' => '监控对象任务ID,非试跑场景返回', - 'description' => '监控对象任务ID,非试跑场景返回', + 'DataDomainList' => [ + 'title' => '主题域详情', + 'description' => '主题域详情', 'type' => 'array', 'items' => [ - 'title' => '监控对象任务ID,非试跑场景返回', - 'description' => '监控对象任务ID,非试跑场景返回', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'title' => '主题域详情', + 'description' => '主题域详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '主题域Id', 'description' => '主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1241844456'], + 'BizUnitId' => ['title' => '所属数据板块', 'description' => '所属数据板块', 'type' => 'integer', 'format' => 'int64', 'example' => '545844456'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'dm_code_name'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => '测试'], + 'Abbreviation' => ['title' => '主题域缩写', 'description' => '主题域缩写', 'type' => 'string', 'example' => 'dm_code_name'], + 'Description' => ['title' => '业务对象描述信息', 'description' => '业务对象描述信息', 'type' => 'string', 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '30010010'], + 'OwnerName' => ['title' => '业务对象负责人', 'description' => '业务对象负责人', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModified' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'LastModifier' => ['title' => '最近一次修改人ID', 'description' => '最近一次修改人ID', 'type' => 'string', 'example' => '30010010'], + 'LastModifierName' => ['title' => '最近一次修改人', 'description' => '最近一次修改人', 'type' => 'string', 'example' => '张三'], + 'ParentId' => ['title' => '上级主题域Id', 'description' => '上级主题域Id', 'type' => 'integer', 'format' => 'int64', 'example' => '10232311'], + ], ], ], ], @@ -40515,98 +24886,77 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"DataDomainList\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"BizUnitId\\": 545844456,\\n \\"Name\\": \\"dm_code_name\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Abbreviation\\": \\"dm_code_name\\",\\n \\"Description\\": \\"test\\",\\n \\"OwnerUserId\\": \\"30010010\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModified\\": \\"2024-10-10 10:00:00\\",\\n \\"LastModifier\\": \\"30010010\\",\\n \\"LastModifierName\\": \\"张三\\",\\n \\"ParentId\\": 10232311\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询主题域列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SubmitResult\\": {\\n \\"RuleTaskIdList\\": [\\n 1\\n ],\\n \\"WatchTaskIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', - 'title' => '批量提交规则任务', - ], - 'RemoveQualityRuleSchedules' => [ - 'summary' => '批量删除质量规则和调度的绑定关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListDataDomains', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListDataServiceApiCallStatistics' => [ + 'summary' => '运维分析:API调用统计信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RemoveCommand', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '解绑指令', - 'description' => '解绑指令', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '平均值', - ], - 'RuleId' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'ScheduleIdList' => [ - 'title' => '调度ID', - 'description' => '调度ID', - 'type' => 'array', - 'items' => [ - 'title' => '调度ID', - 'description' => '调度ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'required' => true, - ], + 'OrderColumn' => ['title' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率, AVG_RESPONSE_TIME 平均响应时长、OFFLINE_RATE offline百分比; 默认:CALL_COUNT', 'description' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率, AVG_RESPONSE_TIME 平均响应时长、OFFLINE_RATE offline百分比; 默认:CALL_COUNT', 'type' => 'string', 'required' => false, 'example' => 'CALL_COUNT'], + 'OrderType' => ['title' => '排序方式:1 顺序、2 倒序;默认:1', 'description' => '排序方式:1 顺序、2 倒序;默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'StartTime' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + 'EndTime' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], 'required' => true, ], @@ -40619,42 +24969,49 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'integer', - 'format' => 'int32', - 'example' => 'true', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'CallStatisticsList' => [ + 'title' => 'API调用统计分析列表', + 'description' => 'API调用统计分析列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ApiName' => ['title' => 'API名称', 'description' => 'API名称', 'type' => 'string', 'example' => 'test'], + 'ProjectName' => ['title' => '数据服务项目', 'description' => '数据服务项目', 'type' => 'string', 'example' => 'test'], + 'AppNameList' => [ + 'title' => '', + 'description' => '授权应用名称', + 'type' => 'array', + 'items' => ['title' => '', 'description' => '授权应用名称', 'type' => 'string', 'example' => '授权应用名称'], + ], + 'ProjectId' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'example' => '101201'], + 'Creator' => ['title' => '创建人', 'description' => '创建人', 'type' => 'string', 'example' => '30012011'], + 'ErrorCount' => ['title' => '调用异常次数', 'description' => '调用异常次数', 'type' => 'string', 'example' => '22'], + 'AuthorizedAppCount' => ['title' => '授权应用数', 'description' => '授权应用数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'SqlId' => ['title' => 'sql表主键', 'description' => 'sql表主键', 'type' => 'integer', 'format' => 'int32', 'example' => '1121'], + 'OfflineRate' => ['title' => 'offline百分比', 'description' => 'offline百分比', 'type' => 'string', 'example' => '23.2%'], + 'LastCallTime' => ['title' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'CallCount' => ['title' => '调用次数', 'description' => '调用次数', 'type' => 'integer', 'format' => 'int64', 'example' => '100'], + 'AvgResponseTime' => ['title' => '平均响应时长, 单位毫秒', 'description' => '平均响应时长, 单位毫秒', 'type' => 'number', 'format' => 'double', 'example' => '11'], + 'ApiId' => ['title' => 'api编码', 'description' => 'api编码', 'type' => 'integer', 'format' => 'int64', 'example' => '1003'], + 'ErrorRate' => ['title' => '错误率', 'description' => '错误率', 'type' => 'string', 'example' => '23.2%'], + ], + ], + ], + ], ], ], ], @@ -40662,33 +25019,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"CallStatisticsList\\": [\\n {\\n \\"ApiName\\": \\"test\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"AppNameList\\": [\\n \\"授权应用名称\\"\\n ],\\n \\"ProjectId\\": 101201,\\n \\"Creator\\": \\"30012011\\",\\n \\"ErrorCount\\": \\"22\\",\\n \\"AuthorizedAppCount\\": 1,\\n \\"SqlId\\": 1121,\\n \\"OfflineRate\\": \\"23.2%\\",\\n \\"LastCallTime\\": \\"2025-06-30 08:00:00\\",\\n \\"CallCount\\": 100,\\n \\"AvgResponseTime\\": 11,\\n \\"ApiId\\": 1003,\\n \\"ErrorRate\\": \\"23.2%\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询API调用统计', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 0\\n}","type":"json"}]', - 'title' => '批量删除质量规则和调度的绑定关系', + 'ramActions' => [], ], - 'ListQualityWatches' => [ - 'summary' => '分页查询质量监控对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServiceApiCalls' => [ + 'summary' => '分页查询数据服务调用日志。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -40697,247 +25046,168 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => false, 'example' => '12345'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'required' => false, 'example' => 'app12345'], + 'ApiName' => ['title' => 'api名称', 'description' => 'api名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ApiId' => ['title' => 'api编码', 'description' => 'api编码', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '20122'], + 'StartTime' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + 'EndTime' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], + 'ClientIp' => ['title' => 'IP地址', 'description' => 'IP地址', 'type' => 'string', 'required' => false, 'example' => '192.168.1.1'], + 'Successful' => ['title' => '成功/失败', 'description' => '成功/失败', 'type' => 'boolean', 'required' => false], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'CallLogList' => [ + 'title' => '分页API调用列表', + 'description' => '分页API调用列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ApiId' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'example' => '102112'], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'example' => '12345'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'example' => 'abc12345'], + 'Sql' => ['title' => 'sql语句', 'description' => 'sql语句', 'type' => 'string', 'example' => 'select col1 from t_test1 limit 100;'], + 'ClientIp' => ['title' => '请求IP', 'description' => '请求IP', 'type' => 'string', 'example' => '192.168.1.1'], + 'StartTime' => ['title' => '请求开始时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', 'description' => '请求开始时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', 'type' => 'string', 'example' => '2024-11-01 01:01:01.000'], + 'EndTime' => ['title' => '请求结束时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', 'description' => '请求结束时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', 'type' => 'string', 'example' => '2024-11-01 01:01:03.000'], + 'CostTime' => ['title' => '请求耗时(ms)', 'description' => '请求耗时(ms)', 'type' => 'integer', 'format' => 'int32', 'example' => '2000'], + 'RequestParameter' => ['title' => '请求参数', 'description' => '请求参数', 'type' => 'string', 'example' => '{"name":"test"}'], + 'ResponseParameter' => ['title' => '返回参数', 'description' => '返回参数', 'type' => 'string', 'example' => '{"code":"200","message":"success"}'], + 'RequestSize' => ['title' => '请求大小', 'description' => '请求大小', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'], + 'ResponseSize' => ['title' => '响应大小', 'description' => '响应大小', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'], + 'ResultCount' => ['title' => '返回数据条数', 'description' => '返回数据条数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Successful' => ['title' => '是否成功', 'description' => '是否成功', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'http 状态码', 'description' => 'http 状态码', 'type' => 'string', 'example' => '200'], + 'HttpStatusDescription' => ['title' => '状态码描述', 'description' => '状态码描述', 'type' => 'string', 'example' => 'OK'], + 'BizCode' => ['title' => '业务状态码', 'description' => '业务状态码', 'type' => 'string', 'example' => 'OK'], + 'BizCodeDescription' => ['title' => '业务状态码描述', 'description' => '业务状态码描述', 'type' => 'string', 'example' => 'OK'], + 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '1234567890-232sds-3e232-ae2e232'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int32', 'example' => '102356'], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'example' => 'test'], + 'ApiName' => ['title' => 'api名称', 'description' => 'api名称', 'type' => 'string', 'example' => 'test'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'Env' => ['title' => '环境:0 dev,1 prod', 'description' => '环境:0 dev,1 prod', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'JobId' => ['title' => '任务ID', 'description' => '任务ID', 'type' => 'string', 'example' => '102356'], + 'Status' => ['title' => '任务调用状态', 'description' => '任务调用状态', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExecuteMode' => ['title' => '执行模式 1-同步 2-异步', 'description' => '执行模式 1-同步 2-异步', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExecuteCostTime' => ['title' => '执行耗时', 'description' => '执行耗时', 'type' => 'integer', 'format' => 'int32', 'example' => '1000'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"CallLogList\\": [\\n {\\n \\"ApiId\\": 102112,\\n \\"AppKey\\": 12345,\\n \\"AppKeyStr\\": \\"abc12345\\",\\n \\"Sql\\": \\"select col1 from t_test1 limit 100;\\",\\n \\"ClientIp\\": \\"192.168.1.1\\",\\n \\"StartTime\\": \\"2024-11-01 01:01:01.000\\",\\n \\"EndTime\\": \\"2024-11-01 01:01:03.000\\",\\n \\"CostTime\\": 2000,\\n \\"RequestParameter\\": \\"{\\\\\\"name\\\\\\":\\\\\\"test\\\\\\"}\\",\\n \\"ResponseParameter\\": \\"{\\\\\\"code\\\\\\":\\\\\\"200\\\\\\",\\\\\\"message\\\\\\":\\\\\\"success\\\\\\"}\\",\\n \\"RequestSize\\": 1024,\\n \\"ResponseSize\\": 1024,\\n \\"ResultCount\\": 1,\\n \\"Successful\\": true,\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"HttpStatusDescription\\": \\"OK\\",\\n \\"BizCode\\": \\"OK\\",\\n \\"BizCodeDescription\\": \\"OK\\",\\n \\"RequestId\\": \\"1234567890-232sds-3e232-ae2e232\\",\\n \\"ProjectId\\": 102356,\\n \\"AppName\\": \\"test\\",\\n \\"ApiName\\": \\"test\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"Env\\": 1,\\n \\"JobId\\": \\"102356\\",\\n \\"Status\\": 1,\\n \\"ExecuteMode\\": 1,\\n \\"ExecuteCostTime\\": 1000\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询数据服务调用日志', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'ListDataServiceApiImpacts' => [ + 'summary' => '运维分析:API调用异常影响分析。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], [ 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'WatchTypeList' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'array', - 'items' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => false, - 'example' => 'TABLE', - ], - 'required' => false, - ], - 'StatusList' => [ - 'title' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'array', - 'items' => [ - 'title' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'required' => false, - 'example' => 'ENABLE', - ], - 'required' => false, - ], - 'LatestWatchTaskStatusList' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'array', - 'items' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'CurrentUserOwned' => [ - 'title' => '是否当前用户负责的监控对象', - 'description' => '是否当前用户负责的监控对象', - 'type' => 'boolean', - 'required' => false, - ], - 'QualityOwnerList' => [ - 'title' => '质量负责人', - 'description' => '质量负责人', - 'type' => 'array', - 'items' => [ - 'title' => '质量负责人', - 'description' => '质量负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'TableOwnerList' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'array', - 'items' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'TableTypeList' => [ - 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'array', - 'items' => [ - 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => false, - 'example' => 'LOGIC_DIM_TABLE', - ], - 'required' => false, - ], - 'DataSourceIdList' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'array', - 'items' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'DataSourceTypeList' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'type' => 'array', - 'items' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], - 'required' => false, - ], - 'BizUnitNameList' => [ - 'title' => '所属板块名称', - 'description' => '所属板块名称', - 'type' => 'array', - 'items' => [ - 'title' => '所属板块名称', - 'description' => '所属板块名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'ProjectNameList' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'array', - 'items' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'DataSourceScopeList' => [ - 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'type' => 'array', - 'items' => [ - 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', - ], - 'required' => false, - ], - 'DataSourceOwnerList' => [ - 'title' => '数据源负责人', - 'description' => '数据源负责人', - 'type' => 'array', - 'items' => [ - 'title' => '数据源负责人', - 'description' => '数据源负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'IndexOwnerList' => [ - 'title' => '指标负责人', - 'description' => '指标负责人', - 'type' => 'array', - 'items' => [ - 'title' => '指标负责人', - 'description' => '指标负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'IndexComputeTypeList' => [ - 'title' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', - 'description' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', - 'type' => 'array', - 'items' => [ - 'title' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', - 'description' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', - 'type' => 'string', - 'required' => false, - 'example' => 'AUTO', - ], - 'required' => false, - ], - 'Keyword' => [ - 'title' => '搜索关键词: 监控表名称', - 'description' => '搜索关键词: 监控表名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + 'StartTime' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 08:00:00'], + 'EndTime' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => true, 'example' => '2025-06-30 20:00:00'], + 'ApiId' => ['title' => '调用的apiId', 'description' => '调用的apiId', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1021'], + 'OrderColumn' => ['title' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率; 默认:CALL_COUNT', 'description' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率; 默认:CALL_COUNT', 'type' => 'string', 'required' => false, 'example' => 'CALL_COUNT'], + 'OrderType' => ['title' => '排序方式:1 顺序、2 倒序;默认:1', 'description' => '排序方式:1 顺序、2 倒序;默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'AppName' => ['title' => 'app名称', 'description' => 'app名称', 'type' => 'string', 'required' => false, 'example' => 'test'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -40948,434 +25218,41 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'QualityWatchList' => [ - 'title' => '分页质量告警列表', - 'description' => '分页质量告警列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'ImpactList' => [ + 'title' => 'API影响分析列表', + 'description' => 'API影响分析列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'TABLE', - ], - 'Id' => [ - 'title' => '监控Id', - 'description' => '监控Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Name' => [ - 'title' => '监控名称', - 'description' => '监控名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Status' => [ - 'title' => '状态:ENABLE,DISABLE', - 'description' => '状态:ENABLE,DISABLE', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'DataSourceInfo' => [ - 'title' => '数据源详情', - 'description' => '数据源详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'string', - 'example' => '1', - ], - 'Name' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => '1', - ], - 'Type' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Env' => [ - 'title' => '环境标识:PROD、DEV', - 'description' => '环境标识:PROD、DEV', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - 'TableInfo' => [ - 'title' => '监控表对象', - 'description' => '监控表对象', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'LOGIC_DIM_TABLE', - ], - 'Catalog' => [ - 'title' => '表catalog', - 'description' => '表catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '表Id', - 'description' => '表Id', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '表名称', - 'description' => '表名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Env' => [ - 'title' => '环境标识:DEV、PROD', - 'description' => '环境标识:DEV、PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DataSourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => '22', - ], - 'IsPartitionTable' => [ - 'title' => '是否分区表', - 'description' => '是否分区表', - 'type' => 'boolean', - ], - ], - ], - 'IndexInfo' => [ - 'title' => '指标详情', - 'description' => '指标详情', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Catalog' => [ - 'title' => '指标catalog', - 'description' => '指标catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '指标Id:', - 'description' => '指标Id:', - 'type' => 'string', - 'example' => '11', - ], - 'Guid' => [ - 'title' => '指标guid:', - 'description' => '指标guid:', - 'type' => 'string', - 'example' => '1121', - ], - 'Name' => [ - 'title' => '指标名:', - 'description' => '指标名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'DisplayName' => [ - 'title' => '指标展示名:', - 'description' => '指标展示名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'GranularityId' => [ - 'title' => '统计粒度id', - 'description' => '统计粒度id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18755764', - ], - 'GranularityDisplayName' => [ - 'title' => '统计粒度名称', - 'description' => '统计粒度名称', - 'type' => 'string', - 'example' => '全站汇总表', - ], - 'ComputeType' => [ - 'title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'type' => 'string', - 'example' => 'AUTO', - ], - 'CellSumLogicTableName' => [ - 'title' => '单元汇总表名', - 'description' => '单元汇总表名', - 'type' => 'string', - 'example' => 'dws_all', - ], - 'Type' => [ - 'title' => '指标类型:INDEX', - 'description' => '指标类型:INDEX', - 'type' => 'string', - 'example' => 'INDEX', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'DateType' => [ - 'title' => '指标数据类型', - 'description' => '指标数据类型', - 'type' => 'string', - 'example' => 'bigint', - ], - ], - ], - 'QualityOwner' => [ - 'title' => '质量负责人用户ID', - 'description' => '质量负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'QualityOwnerName' => [ - 'title' => '质量负责人显示名称', - 'description' => '质量负责人显示名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LatestWatchTaskId' => [ - 'title' => '最近一次监控对象校验记录ID', - 'description' => '最近一次监控对象校验记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LatestWatchTaskStatus' => [ - 'title' => '最近一次监控对象校验记录状态', - 'description' => '最近一次监控对象校验记录状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'RuleCount' => [ - 'title' => '规则数', - 'description' => '规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'EnabledRuleCount' => [ - 'title' => '生效规则数', - 'description' => '生效规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], + 'ClientFailCount' => ['title' => '客户端失败数', 'description' => '客户端失败数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + 'TotalTimeCost' => ['title' => '接口总耗时(包括失败的)', 'description' => '接口总耗时(包括失败的)', 'type' => 'string', 'example' => '231'], + 'SuccessTimeCost' => ['title' => '成功调用的总耗时', 'description' => '成功调用的总耗时', 'type' => 'string', 'example' => '99'], + 'ErrorCount' => ['title' => '异常次数', 'description' => '异常次数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ClientIp' => ['title' => '访问来源IP', 'description' => '访问来源IP', 'type' => 'string', 'example' => '192.168.1.1'], + 'AppName' => ['title' => 'app名称', 'description' => 'app名称', 'type' => 'string', 'example' => 'test'], + 'ErrorApiCount' => ['title' => 'api调用异常数', 'description' => 'api调用异常数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'TotalCount' => ['title' => '调用总数', 'description' => '调用总数', 'type' => 'integer', 'format' => 'int64', 'example' => '88'], + 'LastCallTime' => ['title' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'Minute' => ['title' => '网关统计时间: yyyy_MMdd_HHmm', 'description' => '网关统计时间: yyyy_MMdd_HHmm', 'type' => 'string', 'example' => '2025_0611_1011'], + 'OfflineCount' => ['title' => '离线数', 'description' => '离线数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'AppKey' => ['title' => 'appKey', 'description' => 'appKey', 'type' => 'integer', 'format' => 'int64', 'example' => '1101'], + 'CallCount' => ['title' => '调用次数', 'description' => '调用次数', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'ApiId' => ['title' => 'apiNo', 'description' => 'apiNo', 'type' => 'integer', 'format' => 'int64', 'example' => '2011'], + 'ErrorRate' => ['title' => '错误率', 'description' => '错误率', 'type' => 'string', 'example' => '10.0'], ], ], ], @@ -41387,33 +25264,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ImpactList\\": [\\n {\\n \\"ClientFailCount\\": 2,\\n \\"TotalTimeCost\\": \\"231\\",\\n \\"SuccessTimeCost\\": \\"99\\",\\n \\"ErrorCount\\": 1,\\n \\"ClientIp\\": \\"192.168.1.1\\",\\n \\"AppName\\": \\"test\\",\\n \\"ErrorApiCount\\": 1,\\n \\"TotalCount\\": 88,\\n \\"LastCallTime\\": \\"2025-06-30 08:00:00\\",\\n \\"Minute\\": \\"2025_0611_1011\\",\\n \\"OfflineCount\\": 1,\\n \\"AppKey\\": 1101,\\n \\"CallCount\\": 11,\\n \\"ApiId\\": 2011,\\n \\"ErrorRate\\": \\"10.0\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询数据服务API异常调用影响', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityWatchList\\": [\\n {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询质量监控对象', + 'ramActions' => [], ], - 'ListQualityWatchTasks' => [ - 'summary' => '分页查询质量监控任务。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServiceApps' => [ + 'summary' => '查询数据服务租户下所有的应用列表,所有租户成员均可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -41422,227 +25292,28 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '查询租户下所有的应用列表', + 'description' => '查询租户下所有的应用列表', 'type' => 'object', 'properties' => [ - 'WatchTypeList' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'array', - 'items' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => false, - 'example' => 'TABLE', - ], - 'required' => false, - ], - 'DataSourceIdList' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'array', - 'items' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - 'required' => false, - ], - 'DataSourceScopeList' => [ - 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'type' => 'array', - 'items' => [ - 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL', - ], - 'required' => false, - ], - 'DataSourceTypeList' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'type' => 'array', - 'items' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], - 'required' => false, - ], - 'ErrorRuleStrengthList' => [ - 'title' => '规则异常类型:STRONG 强、WEAK 弱', - 'description' => '规则异常类型:STRONG 强、WEAK 弱', - 'type' => 'array', - 'items' => [ - 'title' => '规则异常类型:STRONG 强、WEAK 弱', - 'description' => '规则异常类型:STRONG 强、WEAK 弱', - 'type' => 'string', - 'required' => false, - 'example' => 'STRONG', - ], - 'required' => false, - ], - 'TableTypeList' => [ - 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'array', - 'items' => [ - 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => false, - 'example' => 'LOGIC_DIM_TABLE', - ], - 'required' => false, - ], - 'ProjectNameList' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'array', - 'items' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'BizUnitNameList' => [ - 'title' => '所属板块名称', - 'description' => '所属板块名称', - 'type' => 'array', - 'items' => [ - 'title' => '所属板块名称', - 'description' => '所属板块名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'CurrentUserOwned' => [ - 'title' => '我负责的监控任务对象', - 'description' => '我负责的监控任务对象', - 'type' => 'boolean', - 'required' => false, - ], - 'QualityOwnerList' => [ - 'title' => '质量负责人', - 'description' => '质量负责人', - 'type' => 'array', - 'items' => [ - 'title' => '质量负责人', - 'description' => '质量负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'StatusList' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'array', - 'items' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'BizDate' => [ - 'title' => '业务日期过滤', - 'description' => '业务日期过滤', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30', - ], - 'Keyword' => [ - 'title' => '搜索关键词: 监控表名称', - 'description' => '搜索关键词: 监控表名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'DataSourceOwnerList' => [ - 'title' => '数据源负责人', - 'description' => '数据源负责人', - 'type' => 'array', - 'items' => [ - 'title' => '数据源负责人', - 'description' => '数据源负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'TableOwnerList' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'array', - 'items' => [ - 'title' => '表负责人', - 'description' => '表负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Keyword' => ['title' => '应用名称搜索关键字', 'description' => '应用名称搜索关键字', 'type' => 'string', 'required' => false, 'example' => '营销看板'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'default' => '20'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '1'], + 'AppGroupId' => ['title' => '应用分组ID', 'description' => '应用分组ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '12345'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -41653,299 +25324,74 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '查询租户下所有的应用列表', + 'description' => '查询租户下所有的应用列表', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'QualityWatchTaskList' => [ - 'title' => '分页质量模板列表', - 'description' => '分页质量模板列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'AppList' => [ + 'title' => '应用列表', + 'description' => '应用列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '监控任务ID', - 'description' => '监控任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'StartTime' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 20:00:00', - ], - 'QualityOwner' => [ - 'title' => '质量负责人用户ID', - 'description' => '质量负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'QualityOwnerName' => [ - 'title' => '质量负责人名称', - 'description' => '质量负责人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'RuleCountInfo' => [ - 'title' => '质量规则计数', - 'description' => '质量规则计数', - 'type' => 'object', - 'properties' => [ - 'ValidateRuleCount' => [ - 'title' => '校验规则技术', - 'description' => '校验规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], - ], - 'StrongRuleCount' => [ - 'title' => '强规则技术', - 'description' => '强规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], - ], - 'WeakRuleCount' => [ - 'title' => '弱规则技术', - 'description' => '弱规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], - ], - ], - ], - 'RuleIdList' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'example' => '12345'], + 'OwnerList' => [ + 'title' => '负责人列表', + 'description' => '负责人列表', 'type' => 'array', 'items' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'example' => '12345'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => '张三'], + ], ], ], - 'Status' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'example' => 'RUNNING', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'BizDateFormat' => [ - 'title' => '业务日期格式', - 'description' => '业务日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], + 'AppGroup' => ['title' => '应用分组名称', 'description' => '应用分组名称', 'type' => 'string', 'example' => '默认分组'], + 'IsMember' => ['title' => '当前用户是否已加入应用', 'description' => '当前用户是否已加入应用', 'type' => 'boolean'], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'example' => '默认应用'], ], ], ], ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"TotalCount\\": 68,\\n \\"AppList\\": [\\n {\\n \\"AppId\\": 12345,\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"12345\\",\\n \\"Name\\": \\"张三\\"\\n }\\n ],\\n \\"AppGroup\\": \\"默认分组\\",\\n \\"IsMember\\": true,\\n \\"AppName\\": \\"默认应用\\"\\n }\\n ]\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '查询数据服务应用列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityWatchTaskList\\": [\\n {\\n \\"Id\\": 1,\\n \\"WatchId\\": 1,\\n \\"StartTime\\": \\"2025-06-30 08:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 20:00:00\\",\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"RuleCountInfo\\": {\\n \\"ValidateRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"StrongRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"WeakRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n }\\n },\\n \\"RuleIdList\\": [\\n 2\\n ],\\n \\"Status\\": \\"RUNNING\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询质量监控任务', + 'ramActions' => [], ], - 'ListQualityTemplates' => [ - 'summary' => '分页查询质量模板。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServiceAuthorizedApps' => [ + 'summary' => '查询当前用户有权限的应用列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -41954,140 +25400,30 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'CatalogList' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'required' => false, - 'example' => 'CONSISTENT', - ], - 'required' => false, - ], - 'SupportDataSourceTypeList' => [ - 'title' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', - 'description' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', - 'type' => 'array', - 'items' => [ - 'title' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', - 'description' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', - 'type' => 'string', - 'required' => false, - 'example' => 'MAX_COMPUTE', - ], - 'required' => false, - ], - 'TemplateTypeList' => [ - 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'type' => 'array', - 'items' => [ - 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'type' => 'string', - 'required' => false, - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'required' => false, - ], - 'WatchTypeList' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'array', - 'items' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => false, - 'example' => 'TABLE', - ], - 'required' => false, - ], - 'TemplateSourceList' => [ - 'title' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', - 'description' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', - 'type' => 'array', - 'items' => [ - 'title' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', - 'description' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', - 'type' => 'string', - 'required' => false, - 'example' => 'CUSTOM', - ], - 'required' => false, - ], - 'CurrentUserOwned' => [ - 'title' => '是否当前用户负责的模板', - 'description' => '是否当前用户负责的模板', - 'type' => 'boolean', - 'required' => false, - ], - 'TemplateOwnerList' => [ - 'title' => '模板负责人', - 'description' => '模板负责人', - 'type' => 'array', - 'items' => [ - 'title' => '模板负责人', - 'description' => '模板负责人', - 'type' => 'string', - 'required' => false, - 'example' => '30012011', - ], - 'required' => false, - ], - 'Keyword' => [ - 'title' => '搜索词筛选,支持模板名称', - 'description' => '搜索词筛选,支持模板名称', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], 'required' => false, ], @@ -42100,199 +25436,63 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'QualityTemplateList' => [ - 'title' => '分页质量模板列表', - 'description' => '分页质量模板列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'AuthorizedAppList' => [ + 'title' => '分页App授权列表', + 'description' => '分页App授权列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '模板Id', - 'description' => '模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'type' => 'string', - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'TypeName' => [ - 'title' => '模板类型展示名', - 'description' => '模板类型展示名', - 'type' => 'string', - 'example' => '字段空值校验', - ], - 'Description' => [ - 'title' => '模板描述', - 'description' => '模板描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '归属人用户ID', - 'description' => '归属人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '归属人名称', - 'description' => '归属人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Catalog' => [ - 'title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'example' => 'CONSISTENT', - ], - 'CatalogName' => [ - 'title' => '模板分类展示名', - 'description' => '模板分类展示名', + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '1121'], + 'RealHasOwnerPrivilege' => ['title' => '是否真的有这个app负责人权限(可能因为过期了或者其他情况而无权限)', 'description' => '是否真的有这个app负责人权限(可能因为过期了或者其他情况而无权限)', 'type' => 'boolean'], + 'ExpireDate' => ['title' => '有效期,日期格式:yyyy-MM-dd', 'description' => '有效期,日期格式:yyyy-MM-dd', 'type' => 'string', 'example' => '2025-06-30'], + 'ProjectName' => ['title' => '项目名', 'description' => '项目名', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int32', 'example' => '102122'], + 'RevocableDetail' => ['title' => '这个按钮详细的状态:-1 超管不可交还,-2 负责人无法交还,-3 项管且无实际权限置灰,-4 普通用户没权限不可交还,1 项管且有实际权限可以交还,2 普通用户有权限可以交还', 'description' => '这个按钮详细的状态:-1 超管不可交还,-2 负责人无法交还,-3 项管且无实际权限置灰,-4 普通用户没权限不可交还,1 项管且有实际权限可以交还,2 普通用户有权限可以交还', 'type' => 'integer', 'format' => 'int32', 'example' => '-1'], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'example' => 'test'], + 'ApplyUserId' => [ + 'title' => '权限账号ID(即申请人ID)', + 'description' => '权限账号ID(即申请人ID)', 'type' => 'string', - 'example' => '一致性', - ], - 'SupportAllDataSourceType' => [ - 'title' => '支持所有数据源类型', - 'description' => '支持所有数据源类型', - 'type' => 'boolean', - ], - 'SupportDataSourceTypeList' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'array', - 'items' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'string', - 'example' => 'MySQL', - ], - ], - 'IsSystemTemplate' => [ - 'title' => '是否系统模板', - 'description' => '是否系统模板', - 'type' => 'boolean', + 'enumValueTitles' => [], + 'example' => '30012101', ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对', - 'description' => '规则配置键值对', + 'ApplyUserName' => ['title' => '权限账号(即申请人)', 'description' => '权限账号(即申请人)', 'type' => 'string', 'example' => '测试'], + 'AppId' => ['title' => '应用主键id', 'description' => '应用主键id', 'type' => 'integer', 'format' => 'int32', 'example' => '1022'], + 'RealHasPrivilege' => ['title' => '是否实际有权限', 'description' => '是否实际有权限', 'type' => 'boolean'], + 'PrivilegeAccount' => ['title' => '权限账号:0 个人账号', 'description' => '权限账号:0 个人账号', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'OwnerUserName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => 'test'], + 'IsProjectManager' => ['title' => '当前用户是否项管', 'description' => '当前用户是否项管', 'type' => 'boolean'], + 'Id' => ['title' => '申请ID', 'description' => '申请ID', 'type' => 'integer', 'format' => 'int32', 'example' => '1121'], + 'RemarkForDebugList' => [ + 'title' => '描述,用于排查问题', + 'description' => '描述,用于排查问题', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'abc', - ], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'v1'], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'example' => 'k1'], ], ], ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建人名称', - 'description' => '创建人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改人ID', - 'description' => '最近修改人ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'ModifierName' => [ - 'title' => '最近修改人名称', - 'description' => '最近修改人名称', - 'type' => 'string', - 'example' => 'test', - ], + 'Revocable' => ['title' => '是否可以交还/回收', 'description' => '是否可以交还/回收', 'type' => 'boolean'], + 'PrivilegeType' => ['title' => '权限类型:0 使用权限、1 开发权限', 'description' => '权限类型:0 使用权限、1 开发权限', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], @@ -42304,33 +25504,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"AuthorizedAppList\\": [\\n {\\n \\"Owner\\": \\"1121\\",\\n \\"RealHasOwnerPrivilege\\": true,\\n \\"ExpireDate\\": \\"2025-06-30\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102122,\\n \\"RevocableDetail\\": -1,\\n \\"AppName\\": \\"test\\",\\n \\"ApplyUserId\\": \\"30012101\\",\\n \\"ApplyUserName\\": \\"测试\\",\\n \\"AppId\\": 1022,\\n \\"RealHasPrivilege\\": true,\\n \\"PrivilegeAccount\\": 0,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"IsProjectManager\\": true,\\n \\"Id\\": 1121,\\n \\"RemarkForDebugList\\": [\\n {\\n \\"Value\\": \\"v1\\",\\n \\"Key\\": \\"k1\\"\\n }\\n ],\\n \\"Revocable\\": true,\\n \\"PrivilegeType\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询当前用户有权限数据服务应用列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityTemplateList\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TypeName\\": \\"字段空值校验\\",\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Catalog\\": \\"CONSISTENT\\",\\n \\"CatalogName\\": \\"一致性\\",\\n \\"SupportAllDataSourceType\\": true,\\n \\"SupportDataSourceTypeList\\": [\\n \\"MySQL\\"\\n ],\\n \\"IsSystemTemplate\\": true,\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询质量模板', + 'ramActions' => [], ], - 'ListQualityRules' => [ - 'summary' => '分页查询质量规则。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServiceMyApiPermissions' => [ + 'summary' => '获取我管理的API权限列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -42339,143 +25531,30 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控ID', - 'description' => '监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'StatusList' => [ - 'title' => '规则生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '规则生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'array', - 'items' => [ - 'title' => '规则生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '规则生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'required' => false, - 'example' => 'ENABLE', - ], - 'required' => false, - ], - 'CatalogList' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'required' => false, - 'example' => 'CONSISTENT', - ], - 'required' => false, - ], - 'TemplateIdList' => [ - 'title' => '规则模板', - 'description' => '规则模板', - 'type' => 'array', - 'items' => [ - 'title' => '规则模板', - 'description' => '规则模板', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '2', - ], - 'required' => false, - ], - 'RuleStrengthList' => [ - 'title' => '规则强度: STRONG 强、WEAK 弱', - 'description' => '规则强度: STRONG 强、WEAK 弱', - 'type' => 'array', - 'items' => [ - 'title' => '规则强度: STRONG 强、WEAK 弱', - 'description' => '规则强度: STRONG 强、WEAK 弱', - 'type' => 'string', - 'required' => false, - 'example' => 'STRONG', - ], - 'required' => false, - ], - 'TestRunTaskValidateResultList' => [ - 'title' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'description' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'type' => 'array', - 'items' => [ - 'title' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'description' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'TestRunTaskStatusList' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'array', - 'items' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'Keyword' => [ - 'title' => '搜索词筛选,支持规则名称和校验对象搜索', - 'description' => '搜索词筛选,支持规则名称和校验对象搜索', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], 'required' => false, ], @@ -42488,525 +25567,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'QualityRuleList' => [ - 'title' => '分页质量规则任务列表', - 'description' => '分页质量规则任务列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'PermissionList' => [ + 'title' => '分页权限列表', + 'description' => '分页权限列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '质量规则名称', - 'description' => '质量规则名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Status' => [ - 'title' => '质量规则状态: ENABLE,DISABLE', - 'description' => '质量规则状态: ENABLE,DISABLE', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Strength' => [ - 'title' => '规则强弱: STRONG、WEAK', - 'description' => '规则强弱: STRONG、WEAK', - 'type' => 'string', - 'example' => 'STRONG', - ], - 'CatalogList' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'example' => 'CONSISTENT', - ], - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => '模板类型:'."\n" - .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" - .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" - .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" - .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" - .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" - .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" - .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" - .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" - .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" - .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" - .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" - .' - CODE_TABLE_COMPARE 码表参照对比'."\n" - .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" - .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" - .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" - .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" - .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" - .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" - .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" - .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" - .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" - .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" - .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" - .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" - .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" - .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', - 'type' => 'string', - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'TemplateId' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'TemplateName' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'example' => '1', - ], - 'TemplateScope' => [ - 'title' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', - 'description' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'WatchId' => [ - 'title' => '所属监控ID', - 'description' => '所属监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'EnableErrorArchive' => [ - 'title' => '是否启动异常归档', - 'description' => '是否启动异常归档', - 'type' => 'boolean', - ], - 'ValidateConditionList' => [ - 'title' => '校验条件列表', - 'description' => '校验条件列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '条件节点id', - 'description' => '条件节点id', - 'type' => 'string', - 'example' => '268', - ], - 'Type' => [ - 'title' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'type' => 'string', - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'type' => 'string', - 'example' => 'AND', - ], - 'OperatorName' => [ - 'title' => '操作符名称', - 'description' => '操作符名称', - 'type' => 'string', - 'example' => '且', - ], - 'Metric' => [ - 'title' => '指标', - 'description' => '指标', - 'type' => 'string', - 'example' => 'test', - ], - 'MetricName' => [ - 'title' => '指标名称', - 'description' => '指标名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Value' => [ - 'title' => '值', - 'description' => '值', - 'type' => 'string', - 'example' => '1', - ], - 'ParentId' => [ - 'title' => '条件父节点Id', - 'description' => '条件父节点Id', - 'type' => 'string', - 'example' => '123', - ], - ], - ], - ], - 'TestRunRuleTaskId' => [ - 'title' => '最近一次试跑任务ID', - 'description' => '最近一次试跑任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'TestRunRuleTaskStatus' => [ - 'title' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', - 'description' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'TestRunRuleValidateResult' => [ - 'title' => '试跑校验是否通过', - 'description' => '试跑校验是否通过', - 'type' => 'boolean', - ], - 'ScheduleBindList' => [ - 'title' => '规则绑定的调度列表', - 'description' => '规则绑定的调度列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ScheduleId' => [ - 'title' => '调度Id', - 'description' => '调度Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ScheduleName' => [ - 'title' => '调度名称', - 'description' => '调度名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'abc', - ], - ], - ], - ], - 'ValidateObject' => [ - 'title' => '校验对象', - 'description' => '校验对象', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', - 'description' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', - 'type' => 'string', - 'example' => 'TABLE', - ], - 'Name' => [ - 'title' => '校验对象名称', - 'description' => '校验对象名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'AttributeWithValueList' => [ - 'title' => '规则业务属性配置', - 'description' => '规则业务属性配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'AttributeInfo' => [ - 'title' => '属性详情', - 'description' => '属性详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '-168890138815', - ], - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'attr01', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Enabled' => [ - 'title' => '是否启用', - 'description' => '是否启用', - 'type' => 'boolean', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - ], - 'Searchable' => [ - 'title' => '是否可搜索', - 'description' => '是否可搜索', - 'type' => 'boolean', - ], - 'ValueConfig' => [ - 'title' => '属性值配置详情', - 'description' => '属性值配置详情', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'type' => 'string', - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '6997283', - ], - 'ValueEnumList' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'string', - 'example' => 'test', - ], - ], - 'DefaultValue' => [ - 'title' => '属性默认值', - 'description' => '属性默认值', - 'type' => 'object', - 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'example' => '123', - ], - ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - ], - 'AttributeValue' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'object', - 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'example' => '123', - ], - ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'ModifierName' => [ - 'title' => '最近修改用户名称', - 'description' => '最近修改用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], + 'Role' => ['title' => '角色: 0 负责人', 'description' => '角色: 0 负责人', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '1121'], + 'PrivilegeBelongTo' => ['title' => '权限归属人', 'description' => '权限归属人', 'type' => 'string', 'example' => '1121'], + 'ApiName' => ['title' => 'API名称', 'description' => 'API名称', 'type' => 'string', 'example' => 'teset'], + 'PrivilegeFrom' => ['title' => '授权来源:0 负责人', 'description' => '授权来源:0 负责人', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'ProjectName' => ['title' => '项目名', 'description' => '项目名', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int32', 'example' => '102122'], + 'OwnerUserName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => 'test'], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '1121'], + 'ApiId' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'example' => '1322'], + 'CreateUserName' => ['title' => '创建人', 'description' => '创建人', 'type' => 'string', 'example' => 'test'], ], ], ], @@ -43018,33 +25609,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"PermissionList\\": [\\n {\\n \\"Role\\": 0,\\n \\"Owner\\": \\"1121\\",\\n \\"PrivilegeBelongTo\\": \\"1121\\",\\n \\"ApiName\\": \\"teset\\",\\n \\"PrivilegeFrom\\": 0,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102122,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"Creator\\": \\"1121\\",\\n \\"ApiId\\": 1322,\\n \\"CreateUserName\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询我管理的数据服务API权限列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityRuleList\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"Description\\": \\"test\\",\\n \\"Strength\\": \\"STRONG\\",\\n \\"CatalogList\\": [\\n \\"CONSISTENT\\"\\n ],\\n \\"TemplateType\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TemplateId\\": 1,\\n \\"TemplateName\\": \\"1\\",\\n \\"TemplateScope\\": \\"CUSTOM\\",\\n \\"WatchId\\": 1,\\n \\"EnableErrorArchive\\": true,\\n \\"ValidateConditionList\\": [\\n {\\n \\"Id\\": \\"268\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"OperatorName\\": \\"且\\",\\n \\"Metric\\": \\"test\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\",\\n \\"ParentId\\": \\"123\\"\\n }\\n ],\\n \\"TestRunRuleTaskId\\": 22,\\n \\"TestRunRuleTaskStatus\\": \\"SUCCESS\\",\\n \\"TestRunRuleValidateResult\\": true,\\n \\"ScheduleBindList\\": [\\n {\\n \\"ScheduleId\\": 1,\\n \\"ScheduleName\\": \\"test\\"\\n }\\n ],\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"ValidateObject\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Name\\": \\"test\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"AttributeInfo\\": {\\n \\"Id\\": -168890138815,\\n \\"Name\\": \\"attr01\\",\\n \\"Description\\": \\"test\\",\\n \\"Enabled\\": true,\\n \\"Required\\": true,\\n \\"Searchable\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 6997283,\\n \\"ValueEnumList\\": [\\n \\"test\\"\\n ],\\n \\"DefaultValue\\": {\\n \\"ValueList\\": [\\n \\"123\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n },\\n \\"AttributeValue\\": {\\n \\"ValueList\\": [\\n \\"123\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询质量规则', + 'ramActions' => [], ], - 'ListQualityRuleTasks' => [ - 'summary' => '分页查询质量规则任务。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServiceMyAppPermissions' => [ + 'summary' => '查询当前用户有权限的应用。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -43053,138 +25636,32 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '检索条件', + 'description' => '检索条件', 'type' => 'object', 'properties' => [ - 'WatchTaskId' => [ - 'title' => '监控表任务ID', - 'description' => '监控表任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'CatalogList' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'required' => false, - 'example' => 'CONSISTENT', - ], - 'required' => false, - ], - 'RuleStrengthList' => [ - 'title' => '规则强度: STRONG 强、WEAK 弱', - 'description' => '规则强度: STRONG 强、WEAK 弱', - 'type' => 'array', - 'items' => [ - 'title' => '规则强度: STRONG 强、WEAK 弱', - 'description' => '规则强度: STRONG 强、WEAK 弱', - 'type' => 'string', - 'required' => false, - 'example' => 'STRONG', - ], - 'required' => false, - ], - 'StatusList' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'array', - 'items' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'ValidateResultList' => [ - 'title' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'description' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'type' => 'array', - 'items' => [ - 'title' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'description' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'RuleTagList' => [ - 'title' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', - 'description' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', - 'type' => 'array', - 'items' => [ - 'title' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', - 'description' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', - 'type' => 'string', - 'required' => false, - 'example' => 'DEFAULT', - ], - 'required' => false, - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'required' => false, - 'example' => '2025-06-30', - ], - 'Keyword' => [ - 'title' => '搜索词,字段名或者规则名搜索', - 'description' => '搜索词,字段名或者规则名搜索', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -43195,168 +25672,51 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'QualityRuleTaskList' => [ - 'title' => '分页质量规则任务列表', - 'description' => '分页质量规则任务列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'PermissionList' => [ + 'title' => '分页权限列表', + 'description' => '分页权限列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '所属监控ID', - 'description' => '所属监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'WatchTaskId' => [ - 'title' => '监控任务ID,试跑的规则任务这个ID为空', - 'description' => '监控任务ID,试跑的规则任务这个ID为空', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Id' => [ - 'title' => '规则任务ID', - 'description' => '规则任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RuleId' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'TemplateId' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Status' => [ - 'title' => '任务状态', - 'description' => '任务状态', - 'type' => 'string', - 'example' => 'running', - ], - 'StartTime' => [ - 'title' => '起始时间', - 'description' => '起始时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间', - 'description' => '截止时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ValidatePartition' => [ - 'title' => '校验分区', - 'description' => '校验分区', - 'type' => 'string', - 'example' => '20251011', - ], - 'ValidateObjectType' => [ - 'title' => '校验对象类型', - 'description' => '校验对象类型', - 'type' => 'string', - 'example' => 'column', - ], - 'ValidateObjectName' => [ - 'title' => '校验对象名称', - 'description' => '校验对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ValidateSuccess' => [ - 'title' => '是否校验通过', - 'description' => '是否校验通过', - 'type' => 'boolean', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'BizDateFormat' => [ - 'title' => '业务日期格式', - 'description' => '业务日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名', 'description' => '项目名', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int32', 'example' => '112101'], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '1121'], + 'CreateUserName' => ['title' => '创建人', 'description' => '创建人', 'type' => 'string', 'example' => 'test'], + 'AppName' => ['title' => 'App名称', 'description' => 'App名称', 'type' => 'string', 'example' => 'test'], + 'Role' => ['title' => '角色: 0 负责人', 'description' => '角色: 0 负责人', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'PrivilegeBelongTo' => ['title' => '权限归属人', 'description' => '权限归属人', 'type' => 'string', 'example' => '1121'], + 'AppId' => ['title' => 'AppId', 'description' => 'AppId', 'type' => 'integer', 'format' => 'int32', 'example' => '1021'], + 'PrivilegeFrom' => ['title' => '授权来源:0 负责人', 'description' => '授权来源:0 负责人', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'OwnerUserName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => 'test'], + 'CurrentUserRole' => ['title' => '当前登录用户相对于这条记录的角色: SuperAdmin 当前用户是超管,ProjMan 当前用户对于这条数据是项管,NormalUser 当前用户对于这条数据是普通用户(即非超管且非项管)', 'description' => '当前登录用户相对于这条记录的角色: SuperAdmin 当前用户是超管,ProjMan 当前用户对于这条数据是项管,NormalUser 当前用户对于这条数据是普通用户(即非超管且非项管)', 'type' => 'string', 'example' => 'NormalUser'], + 'RemarkForDebugList' => [ + 'title' => '描述,用于排查问题', + 'description' => '描述,用于排查问题', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'v1'], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'example' => 'k1'], + ], + ], ], ], ], @@ -43369,33 +25729,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"PermissionList\\": [\\n {\\n \\"Owner\\": \\"1121\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 112101,\\n \\"Creator\\": \\"1121\\",\\n \\"CreateUserName\\": \\"test\\",\\n \\"AppName\\": \\"test\\",\\n \\"Role\\": 0,\\n \\"PrivilegeBelongTo\\": \\"1121\\",\\n \\"AppId\\": 1021,\\n \\"PrivilegeFrom\\": 0,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"CurrentUserRole\\": \\"NormalUser\\",\\n \\"RemarkForDebugList\\": [\\n {\\n \\"Value\\": \\"v1\\",\\n \\"Key\\": \\"k1\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询当前用户有权限数据服务应用列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityRuleTaskList\\": [\\n {\\n \\"WatchId\\": 1,\\n \\"WatchTaskId\\": 1,\\n \\"Id\\": 1,\\n \\"RuleId\\": 11,\\n \\"TemplateId\\": 11,\\n \\"Status\\": \\"running\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ValidatePartition\\": \\"20251011\\",\\n \\"ValidateObjectType\\": \\"column\\",\\n \\"ValidateObjectName\\": \\"test\\",\\n \\"ValidateSuccess\\": true,\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询质量规则任务', + 'ramActions' => [], ], - 'GetQualityWatchTaskLog' => [ - 'summary' => '获取监控任务对象的日志内容。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListDataServicePublishedApis' => [ + 'summary' => '分页查询已发布的API列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -43404,34 +25756,33 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'WatchTaskId', + 'name' => 'ProjectId', 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '监控任务ID', - 'description' => '监控任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'GroupId' => ['title' => '分组Id', 'description' => '分组Id', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '102113'], + 'ApiName' => ['title' => 'Api名称', 'description' => 'Api名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + 'required' => false, ], ], ], @@ -43442,41 +25793,68 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '日志内容', - 'description' => '日志内容', - 'type' => 'string', - 'example' => 'test', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'ApiList' => [ + 'title' => '分页API列表', + 'description' => '分页API列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'GroupName' => ['title' => 'api分组名', 'description' => 'api分组名', 'type' => 'string', 'example' => 'test'], + 'GroupId' => ['title' => '分组id', 'description' => '分组id', 'type' => 'integer', 'format' => 'int32', 'example' => '102131'], + 'ApiId' => ['title' => 'api编码', 'description' => 'api编码', 'type' => 'integer', 'format' => 'int64', 'example' => '1022'], + 'ApiName' => ['title' => 'api名称', 'description' => 'api名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => 'api描述', 'description' => 'api描述', 'type' => 'string', 'example' => 'test xx'], + 'OwnerUserName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => '张三'], + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '30012011'], + 'DeployTime' => ['title' => '发布时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '发布时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'UpdateRate' => ['title' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', 'description' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'CustomUpdateRate' => ['title' => '更新频率自定义内容', 'description' => '更新频率自定义内容', 'type' => 'string', 'example' => '0 0 0/1 * * *'], + 'AppCount' => ['title' => '绑定的应用数', 'description' => '绑定的应用数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'AppInfoList' => [ + 'title' => '所引用的app信息列表', + 'description' => '所引用的app信息列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'example' => '10211'], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'example' => 'test'], + 'AppKey' => ['title' => '应用Key,已弃用,请使用AppKeyStr', 'description' => '应用Key'."\n" + .'>已弃用,请使用AppKeyStr>', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'example' => '200000000'], + 'AppKeyStr' => ['title' => '应用Key', 'description' => '应用Key', 'type' => 'string', 'example' => 'APP_200000000'], + ], + ], + ], + 'CallCount' => ['title' => '调用次数', 'description' => '调用次数', 'type' => 'integer', 'format' => 'int32', 'example' => '21'], + 'LogicUnitNo' => ['title' => '服务单元编号', 'description' => '服务单元编号', 'type' => 'integer', 'format' => 'int64', 'example' => '1022'], + 'Mode' => ['title' => '模式:0 basic,1 dev_prod', 'description' => '模式:0 basic,1 dev_prod', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ApplyStatus' => ['title' => '申请状态:0 未全部申请:1 已申请、2 无app、需要先申请app', 'description' => '申请状态:0 未全部申请:1 已申请、2 无app、需要先申请app', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'UpdateTime' => ['title' => '修改时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '修改时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'CreateType' => ['title' => '创建类型:0自定义模式,1.向导模式,2-直连API', 'description' => '创建类型:0自定义模式,1.向导模式,2-直连API', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ExecuteMode' => ['title' => '调用类型 1-同步 2-异步', 'description' => '调用类型 1-同步 2-异步', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ProjectId' => ['title' => '数据服务项目ID', 'description' => '数据服务项目ID', 'type' => 'integer', 'format' => 'int32', 'example' => '102101'], + 'ProjectName' => ['title' => '服务项目名称', 'description' => '服务项目名称', 'type' => 'string', 'example' => 'test'], + 'Version' => ['title' => 'api版本', 'description' => 'api版本', 'type' => 'string', 'example' => '1.0'], + ], + ], + ], + ], ], ], ], @@ -43484,34 +25862,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ApiList\\": [\\n {\\n \\"GroupName\\": \\"test\\",\\n \\"GroupId\\": 102131,\\n \\"ApiId\\": 1022,\\n \\"ApiName\\": \\"test\\",\\n \\"Description\\": \\"test xx\\",\\n \\"OwnerUserName\\": \\"张三\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"DeployTime\\": \\"2025-06-30 08:00:00\\",\\n \\"UpdateRate\\": 1,\\n \\"CustomUpdateRate\\": \\"0 0 0/1 * * *\\",\\n \\"AppCount\\": 1,\\n \\"AppInfoList\\": [\\n {\\n \\"AppId\\": 10211,\\n \\"AppName\\": \\"test\\",\\n \\"AppKey\\": 200000000,\\n \\"AppKeyStr\\": \\"APP_200000000\\"\\n }\\n ],\\n \\"CallCount\\": 21,\\n \\"LogicUnitNo\\": 1022,\\n \\"Mode\\": 1,\\n \\"ApplyStatus\\": 1,\\n \\"UpdateTime\\": \\"2025-06-30 08:00:00\\",\\n \\"CreateType\\": 1,\\n \\"ExecuteMode\\": 1,\\n \\"ProjectId\\": 102101,\\n \\"ProjectName\\": \\"test\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询数据服务已发布API列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"test\\"\\n}","type":"json"}]', - 'title' => '获取监控任务对象的日志内容', + 'ramActions' => [], ], - 'GetQualityWatchTask' => [ - 'summary' => '获取监控任务对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListDataSourceWithConfig' => [ + 'summary' => '搜索数据源,所属结果包含数据源配置项。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -43519,283 +25888,157 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'WatchTaskId', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '监控任务ID', - 'description' => '监控任务ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '分页查询', + 'description' => '分页查询', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '数据源名字', 'description' => '数据源名字', 'type' => 'string', 'required' => false, 'example' => 'vcns-test'], + 'TypeList' => [ + 'title' => '数据源类型', + 'description' => '数据源类型', + 'type' => 'array', + 'items' => ['description' => '数据源类型', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], + 'required' => false, + ], + 'ScopeList' => [ + 'title' => '数据源使用范围,支持如下:'."\n" + .'STREAMING 实时'."\n" + .'OFFLINE 离线'."\n" + .'DIP_META_SYNC 元仓初始化'."\n" + .'DATA_DISTILL 数据萃取'."\n" + .'CUMPUTE_SOURCE_SHADOW 影子计算源'."\n" + .'LABEL 标签'."\n" + .'ALL 离线+实时', + 'description' => '数据源使用范围,支持如下:'."\n" + .'- STREAMING 实时'."\n" + .'- OFFLINE 离线'."\n" + .'- DIP_META_SYNC 元仓初始化'."\n" + .'- DATA_DISTILL 数据萃取'."\n" + .'- CUMPUTE_SOURCE_SHADOW 影子计算源'."\n" + .'- LABEL 标签'."\n" + .'- ALL 离线+实时', + 'type' => 'array', + 'items' => ['description' => '数据源使用范围', 'type' => 'string', 'required' => false, 'example' => 'ALL'], + 'required' => false, + ], + 'OwnerList' => [ + 'title' => '数据源负责人', + 'description' => '数据源负责人', + 'type' => 'array', + 'items' => ['description' => '用户ID', 'type' => 'string', 'required' => false, 'example' => '2323131'], + 'required' => false, + ], + 'Tag' => ['title' => '创建数据源时标记的tag', 'description' => '创建数据源时标记的标签', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Page' => ['title' => '页码,起始页是1', 'description' => '页码,起始页是1', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1', 'default' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20', 'default' => '20'], + ], 'required' => true, - 'example' => '11', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'WatchTaskInfo' => [ - 'title' => '监控任务对象详情', - 'description' => '监控任务对象详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'description' => '查询结果。', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '监控任务ID', - 'description' => '监控任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'StartTime' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 20:00:00', - ], - 'QualityOwner' => [ - 'title' => '质量负责人用户ID', - 'description' => '质量负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'QualityOwnerName' => [ - 'title' => '质量负责人名称', - 'description' => '质量负责人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'RuleCountInfo' => [ - 'title' => '质量规则计数', - 'description' => '质量规则计数', - 'type' => 'object', - 'properties' => [ - 'ValidateRuleCount' => [ - 'title' => '校验规则技术', - 'description' => '校验规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - ], - ], - 'StrongRuleCount' => [ - 'title' => '强规则技术', - 'description' => '强规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'TotalCount' => ['description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '39'], + 'DataSourceList' => [ + 'description' => '分页列表', + 'type' => 'array', + 'items' => [ + 'description' => '数据源', + 'type' => 'object', + 'properties' => [ + 'ProdDataSourceInfo' => [ + 'description' => '生产环境数据源', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '300000028799'], + 'Name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Scope' => ['title' => '数据源使用范围', 'description' => '数据源使用范围', 'type' => 'string', 'required' => false, 'example' => 'ALL'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1708303959000'], + 'ModifyTime' => ['title' => '编辑时间', 'description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1708303959000'], + 'Creator' => ['title' => '创建者ID', 'description' => '创建者ID', 'type' => 'string', 'example' => '212211111'], + 'CreatorName' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '张三'], + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '212211111'], + 'OwnerName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => '张三'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx 测试'], + 'Env' => ['title' => '数据源所属环境', 'description' => '数据源所属环境', 'type' => 'string', 'example' => 'PROD'], + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'array', + 'items' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项Id', 'description' => '配置项Id', 'type' => 'string', 'example' => 'param1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'value1'], + ], + ], + ], ], ], - ], - 'WeakRuleCount' => [ - 'title' => '弱规则技术', - 'description' => '弱规则技术', - 'type' => 'object', - 'properties' => [ - 'TotalRuleCount' => [ - 'title' => '总规则数', - 'description' => '总规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'FinishedRuleCount' => [ - 'title' => '执行完成规则数', - 'description' => '执行完成规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ErrorRuleCount' => [ - 'title' => '执行失败规则数', - 'description' => '执行失败规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'SuccessRuleCount' => [ - 'title' => '执行成功规则数', - 'description' => '执行成功规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'DevDataSourceInfo' => [ + 'description' => '开发环境数据源', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '12313123131'], + 'Name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Scope' => ['title' => '数据源使用范围', 'description' => '数据源使用范围', 'type' => 'string', 'required' => false, 'example' => 'ALL'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1710209552704'], + 'ModifyTime' => ['title' => '编辑时间', 'description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1710209552704'], + 'Creator' => ['title' => '创建者ID', 'description' => '创建者ID', 'type' => 'string', 'example' => '212211111'], + 'CreatorName' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '张三'], + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'example' => '212211111'], + 'OwnerName' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'example' => '张三'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx 项目'], + 'Env' => ['title' => '数据源所属环境', 'description' => '数据源所属环境', 'type' => 'string', 'example' => 'DEV'], + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'array', + 'items' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项Id', 'description' => '配置项Id', 'type' => 'string', 'example' => 'param1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'value1'], + ], + ], + ], ], ], ], ], ], - 'RuleIdList' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', - 'type' => 'array', - 'items' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - ], - 'Status' => [ - 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', - 'type' => 'string', - 'example' => 'RUNNING', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'BizDateFormat' => [ - 'title' => '业务日期格式', - 'description' => '业务日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], ], ], ], @@ -43804,500 +26047,411 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 39,\\n \\"DataSourceList\\": [\\n {\\n \\"ProdDataSourceInfo\\": {\\n \\"Id\\": 300000028799,\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Scope\\": \\"ALL\\",\\n \\"CreateTime\\": 1708303959000,\\n \\"ModifyTime\\": 1708303959000,\\n \\"Creator\\": \\"212211111\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"Owner\\": \\"212211111\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Env\\": \\"PROD\\",\\n \\"ConfigItemList\\": [\\n {\\n \\"Key\\": \\"param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n },\\n \\"DevDataSourceInfo\\": {\\n \\"Id\\": 12313123131,\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Scope\\": \\"ALL\\",\\n \\"CreateTime\\": 1710209552704,\\n \\"ModifyTime\\": 1710209552704,\\n \\"Creator\\": \\"212211111\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"Owner\\": \\"212211111\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"xx 项目\\",\\n \\"Env\\": \\"DEV\\",\\n \\"ConfigItemList\\": [\\n {\\n \\"Key\\": \\"param1\\",\\n \\"Value\\": \\"value1\\"\\n }\\n ]\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询数据源列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"WatchTaskInfo\\": {\\n \\"Id\\": 1,\\n \\"WatchId\\": 1,\\n \\"StartTime\\": \\"2025-06-30 08:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 20:00:00\\",\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"RuleCountInfo\\": {\\n \\"ValidateRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"StrongRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"WeakRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n }\\n },\\n \\"RuleIdList\\": [\\n 2\\n ],\\n \\"Status\\": \\"RUNNING\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', - 'title' => '获取监控任务对象', - ], - 'GetQualityWatchByObjectId' => [ - 'summary' => '通过监控对象原始ID获取监控对象记录,例如:数据源、表、指标等的ID。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListDataSourceWithConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListDatasets' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'DatasetQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'description' => '请求体', + 'type' => 'object', + 'properties' => [ + 'TenantId' => ['title' => '租户id,根据OpTenantId自动填充', 'description' => '租户 ID'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '30001011'], + 'ProjectId' => ['description' => '项目 ID'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7273382541481536'], + 'Keyword' => ['title' => '关键词', 'description' => '关键词', 'type' => 'string', 'required' => false, 'example' => 'rds'], + 'TypeList' => [ + 'title' => '数据集类型,为空则全部查询', + 'description' => '数据集类型,为空则全部查询', + 'type' => 'array', + 'items' => ['description' => '类型列表', 'type' => 'string', 'required' => false, 'example' => '[\\"APPLICATION\\",\\"AUDIO\\"]'], + 'required' => false, + ], + 'StorageType' => ['title' => '存储类型:OSS/S3', 'description' => '存储类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'OSS'], + 'ContentType' => ['title' => '内容类型:GENERAL/TEXT/AUDIO/VIDEO/IMAGE/TABLE/INDEX', 'description' => '内容类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'GENERAL'], + 'DataUnit' => ['title' => '主题域ID', 'description' => '主题域ID', 'type' => 'string', 'required' => false, 'example' => '74280'], + 'Owner' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'required' => false, 'example' => '300001391'], + 'Scenario' => ['title' => '数据集场景:OFFLINE(离线)/REALTIME(实时)', 'description' => '数据集场景:OFFLINE(离线)/REALTIME(实时)', 'type' => 'string', 'required' => false, 'example' => 'OFFLINE'], + 'IncludeVersionList' => ['title' => '是否包括版本详情,默认FALSE', 'description' => '是否包括版本详情,默认FALSE', 'type' => 'boolean', 'required' => false], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '每页数量', 'description' => '每页数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + 'required' => false, ], ], - [ - 'name' => 'WatchType', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '监控对象类型:TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型:TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', + 'title' => 'Schema of Response', + 'description' => '后端响应码 `OK`'."\n", + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页结果', + 'description' => '分页结果', + 'type' => 'object', + 'properties' => [ + 'ResultData' => [ + 'title' => '对象', + 'description' => '对象', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据集ID(业务主键)', 'description' => '数据集 ID(业务主键)'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '7128268454335680'], + 'ProjectId' => ['title' => '所属项目ID', 'description' => '所属项目 ID'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '7290731813137728'], + 'ProjectName' => ['title' => '所属项目名称', 'description' => '所属项目名称'."\n", 'type' => 'string', 'example' => 'ds_tm'], + 'Name' => ['title' => '数据集名称', 'description' => '数据集名称'."\n", 'type' => 'string', 'example' => 'audio_dataset'], + 'FileId' => ['title' => '文件ID', 'description' => '文件 ID'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '7285340579984832'], + 'Directory' => ['title' => '目录(通过fileId从文件服务获取)', 'description' => '目录(通过 fileId 从文件服务获取)'."\n", 'type' => 'string', 'example' => '/'], + 'DataCellId' => ['title' => '主题域ID', 'description' => '主题域 ID'."\n", 'type' => 'string', 'example' => '74280'], + 'DataCellName' => ['title' => '主题域名称', 'description' => '**主题域名称**'."\n", 'type' => 'string', 'example' => '离线数据主题域'], + 'Type' => ['title' => '数据集类型', 'description' => '**数据集类型**'."\n", 'type' => 'string', 'example' => 'HYBRID'], + 'StorageType' => ['title' => '存储类型', 'description' => '**存储类型**'."\n", 'type' => 'string', 'example' => 'OSS'], + 'MetadataStorageType' => ['title' => '元数据存储类型', 'description' => '**元数据存储类型**'."\n", 'type' => 'string', 'example' => 'POSTGRESQL'], + 'Scenario' => ['title' => '数据集使用场景: OFFLINE(离线,默认) / REALTIME(实时)', 'description' => '数据集使用场景: OFFLINE(离线,默认) / REALTIME(实时)', 'type' => 'string', 'example' => 'OFFLINE'], + 'ContentType' => ['title' => '内容类型', 'description' => '内容类型', 'type' => 'string', 'example' => 'GENERAL'], + 'OwnerList' => [ + 'title' => '负责人列表', + 'description' => '负责人列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'UserId' => ['description' => '用户 ID'."\n", 'type' => 'string', 'example' => '300001391'], + 'UserName' => ['description' => '用户名'."\n", 'type' => 'string', 'example' => '张三'], + ], + 'description' => '', + ], + ], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '300001391'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间'."\n", 'type' => 'string', 'format' => 'date-time', 'example' => '2026-05-18 17:07:54.237771'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'format' => 'date-time', 'example' => '2026-05-18 17:07:54.237771'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试数据集'], + 'TenantId' => ['title' => '租户ID', 'description' => '租户 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '300001413'], + 'VersionList' => [ + 'title' => '版本列表', + 'description' => '版本列表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '版本ID', 'description' => '版本 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7280840713415040'], + 'DatasetId' => ['title' => '数据集ID', 'description' => '数据集 ID', 'type' => 'integer', 'format' => 'int64', 'example' => '7280832407583104'], + 'Version' => ['title' => '版本号', 'description' => '版本号'."\n", 'type' => 'string', 'example' => 'V4'], + 'DataVersionConfig' => [ + 'title' => '数据集版本配置', + 'description' => '数据集版本配置'."\n", + 'type' => 'object', + 'properties' => [ + 'VersionDescription' => ['title' => '版本描述', 'description' => '版本描述'."\n", 'type' => 'string', 'example' => '测试数据集版本'], + 'FileStorageConfig' => [ + 'title' => '文件存储配置', + 'description' => '文件存储配置'."\n", + 'type' => 'object', + 'properties' => [ + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源 ID'."\n", 'type' => 'string', 'required' => true, 'example' => '7445343860022804608'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称'."\n", 'type' => 'string', 'example' => '测试数据源'], + 'DevPath' => ['title' => '开发路径(basic项目不需要)', 'description' => '开发路径 (basic 项目不需要)'."\n", 'type' => 'string', 'example' => 'HTML正文提取/test423/'], + 'ProdPath' => ['title' => '生产路径', 'description' => '生产路径'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'MountPath' => ['title' => '挂载路径', 'description' => '挂载路径'."\n", 'type' => 'string', 'required' => true, 'example' => '/var/run/openresty/cache/corp'], + ], + ], + 'MetadataStorageConfig' => [ + 'title' => '元数据存储配置', + 'description' => '元数据存储配置', + 'type' => 'object', + 'properties' => [ + 'MetadataStorageMode' => ['title' => '存储至', 'description' => '存储至(新建表/已有表)'."\n", 'type' => 'string', 'required' => true, 'example' => 'CREATE'], + 'MetadataStorageType' => ['title' => '元数据存储类型', 'description' => '元数据存储类型'."\n", 'type' => 'string', 'example' => 'MILVUS'], + 'DataSourceId' => ['title' => '数据源 ID', 'description' => '数据源 ID'."\n", 'type' => 'string', 'required' => true, 'example' => '7445343860022804608'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称'."\n", 'type' => 'string', 'example' => '测试数据源'], + 'DevSchema' => ['title' => '开发database/schema', 'description' => '开发 database/schema'."\n", 'type' => 'string', 'example' => 'HTML正文提取/test423/'], + 'ProdSchema' => ['title' => '生产database/schema', 'description' => '生产 database/schema'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'TableName' => ['title' => '表名称', 'description' => '表名称'."\n", 'type' => 'string', 'required' => true, 'example' => 's_crm_all_plt_jala_shop'], + 'TableSchema' => [ + 'title' => '表结构配置', + 'description' => '表结构配置'."\n", + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '字段名称'."\n", 'type' => 'string', 'required' => true, 'example' => 'id'], + 'Type' => ['title' => '字段类型', 'description' => '字段类型'."\n", 'type' => 'string', 'required' => true, 'example' => 'int8'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '数组元素子类型,仅当 type=ARRAY 时有效'."\n", 'type' => 'string', 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '数组最大容量', 'description' => '数组最大容量,仅当 type=ARRAY 时有效,默认 4096'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '20'], + 'Pk' => ['title' => '是否为主键', 'description' => '是否为主键', 'type' => 'boolean', 'required' => true, 'example' => 'true'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明'."\n", 'type' => 'string', 'example' => '主键'], + 'Url' => ['title' => '是否为 URL', 'description' => '是否为 URL', 'type' => 'boolean', 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置', + 'description' => '向量索引配置', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'MultiModal-Embedding'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance:mongodb'], + 'IndexType' => ['title' => '索引类型', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'object'], + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + ], + ], + 'RealtimeMetaTableConfig' => [ + 'title' => '实时元表配置(仅当 metadataStorageType=REALTIME_META_TABLE 时生效)', + 'description' => '实时元表配置(仅当 `metadataStorageType=REALTIME_META_TABLE` 时生效)'."\n", + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '元表所属项目ID(支持跨项目)', 'description' => '元表所属项目 ID(支持跨项目)'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7128268454335680'], + 'MetaTableName' => ['title' => '元表名称', 'description' => '元表名称'."\n", 'type' => 'string', 'required' => true, 'example' => '测试元表'], + 'DatasourceType' => ['title' => '元表数据源类型(本期仅开放 KAFKA)', 'description' => '元表数据源类型(本期仅开放 KAFKA)'."\n", 'type' => 'string', 'required' => true, 'example' => 'KAFKA'], + 'TableSchema' => [ + 'title' => '表结构配置(复用 MetadataStorageConfigDTO.TableSchemaDTO)', + 'description' => '表结构配置(复用 `MetadataStorageConfigDTO.TableSchemaDTO`)'."\n", + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表'."\n", + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '**字段名称**'."\n", 'type' => 'string', 'required' => true, 'example' => 'happen_time'], + 'Type' => ['title' => '字段类型', 'description' => '**字段类型**'."\n", 'type' => 'string', 'required' => true, 'example' => 'date'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '**数组元素子类型,仅当 type=ARRAY 时有效**'."\n", 'type' => 'string', 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '数组最大容量', 'description' => '**数组最大容量,仅当 type=ARRAY 时有效,默认 4096**'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '35'], + 'Pk' => ['title' => '是否为主键', 'description' => '是否为主键', 'type' => 'boolean', 'required' => true, 'example' => 'false'], + 'Comment' => ['title' => '字段说明', 'description' => '**字段说明**'."\n", 'type' => 'string', 'example' => '录入时间'], + 'Url' => ['title' => '是否为 URL', 'description' => '是否为 URL', 'type' => 'boolean', 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置', + 'description' => '向量索引配置', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'multimodal-embedding-v1'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance'], + 'IndexType' => ['title' => '索引类型', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数', 'description' => '索引构建参数', 'type' => 'object'], + ], + ], + ], + 'description' => '', + ], + ], + ], + ], + ], + ], + ], + ], + 'Creator' => ['title' => '创建人ID', 'description' => '创建人ID', 'type' => 'string', 'example' => '300001391'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间'."\n", 'type' => 'string', 'format' => 'date-time', 'example' => '2026-04-28 10:03:49'], + 'GmtModified' => ['title' => '修改时间', 'description' => '修改时间'."\n", 'type' => 'string', 'format' => 'date-time', 'example' => '1749450490000'], + ], + 'description' => '', + ], + ], + 'LockOwner' => ['title' => '开发负责人id', 'description' => '开发负责人 ID'."\n", 'type' => 'string', 'example' => '300001391'], + 'LockOwnerName' => ['title' => '这个给界面显示的字段', 'description' => '开发负责人名称(界面显示字段)'."\n", 'type' => 'string', 'example' => '张三'], + ], + 'description' => '', + ], + ], + 'Count' => ['title' => '实际总数', 'description' => '实际总数', 'type' => 'integer', 'format' => 'int32', 'example' => '12'], + ], + ], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '数据集列表查询', + 'summary' => '用于根据指定条件查询项目下的数据集列表,上线版本:v6.2.0。', + 'description' => '## 请求说明'."\n" + ."\n" + .'该 API 允许用户通过提供租户 ID、项目 ID 以及其他可选参数(如关键词、类型列表等)来获取特定项目下的数据集信息。支持分页查询,返回的数据包括数据集的基本信息及其版本详情。请注意,`ProjectId` 是必填项,而其他参数则为可选项,可以根据需要进行设置以过滤结果。'."\n", + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"ResultData\\": [\\n {\\n \\"Id\\": 7128268454335680,\\n \\"ProjectId\\": 7290731813137728,\\n \\"ProjectName\\": \\"ds_tm\\",\\n \\"Name\\": \\"audio_dataset\\",\\n \\"FileId\\": 7285340579984832,\\n \\"Directory\\": \\"/\\",\\n \\"DataCellId\\": \\"74280\\",\\n \\"DataCellName\\": \\"离线数据主题域\\",\\n \\"Type\\": \\"HYBRID\\",\\n \\"StorageType\\": \\"OSS\\",\\n \\"MetadataStorageType\\": \\"POSTGRESQL\\",\\n \\"Scenario\\": \\"OFFLINE\\",\\n \\"ContentType\\": \\"GENERAL\\",\\n \\"OwnerList\\": [\\n {\\n \\"UserId\\": \\"300001391\\",\\n \\"UserName\\": \\"张三\\"\\n }\\n ],\\n \\"Creator\\": \\"300001391\\",\\n \\"CreatorName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2026-05-18 17:07:54.237771\\",\\n \\"GmtModified\\": \\"2026-05-18 17:07:54.237771\\",\\n \\"Description\\": \\"测试数据集\\",\\n \\"TenantId\\": 300001413,\\n \\"VersionList\\": [\\n {\\n \\"Id\\": 7280840713415040,\\n \\"DatasetId\\": 7280832407583104,\\n \\"Version\\": \\"V4\\",\\n \\"DataVersionConfig\\": {\\n \\"VersionDescription\\": \\"测试数据集版本\\",\\n \\"FileStorageConfig\\": {\\n \\"DataSourceId\\": \\"7445343860022804608\\",\\n \\"DataSourceName\\": \\"测试数据源\\",\\n \\"DevPath\\": \\"HTML正文提取/test423/\\",\\n \\"ProdPath\\": \\"HTML正文提取/test423/\\",\\n \\"MountPath\\": \\"/var/run/openresty/cache/corp\\"\\n },\\n \\"MetadataStorageConfig\\": {\\n \\"MetadataStorageMode\\": \\"CREATE\\",\\n \\"MetadataStorageType\\": \\"MILVUS\\",\\n \\"DataSourceId\\": \\"7445343860022804608\\",\\n \\"DataSourceName\\": \\"测试数据源\\",\\n \\"DevSchema\\": \\"HTML正文提取/test423/\\",\\n \\"ProdSchema\\": \\"HTML正文提取/test423/\\",\\n \\"TableName\\": \\"s_crm_all_plt_jala_shop\\",\\n \\"TableSchema\\": {\\n \\"Columns\\": [\\n {\\n \\"Name\\": \\"id\\",\\n \\"Type\\": \\"int8\\",\\n \\"ElementType\\": \\"INT64\\",\\n \\"MaxCapacity\\": 20,\\n \\"Pk\\": true,\\n \\"Comment\\": \\"主键\\",\\n \\"Url\\": false,\\n \\"VectorIndexConfig\\": {\\n \\"EmbeddingModel\\": \\"MultiModal-Embedding\\",\\n \\"Dimension\\": 0,\\n \\"IndexType\\": \\"AUTOINDEX\\",\\n \\"SimilarityType\\": \\"COSINE\\",\\n \\"IndexParams\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ]\\n }\\n },\\n \\"RealtimeMetaTableConfig\\": {\\n \\"ProjectId\\": 7128268454335680,\\n \\"MetaTableName\\": \\"测试元表\\",\\n \\"DatasourceType\\": \\"KAFKA\\",\\n \\"TableSchema\\": {\\n \\"Columns\\": [\\n {\\n \\"Name\\": \\"happen_time\\",\\n \\"Type\\": \\"date\\",\\n \\"ElementType\\": \\"INT64\\",\\n \\"MaxCapacity\\": 35,\\n \\"Pk\\": false,\\n \\"Comment\\": \\"录入时间\\",\\n \\"Url\\": false,\\n \\"VectorIndexConfig\\": {\\n \\"EmbeddingModel\\": \\"multimodal-embedding-v1\\",\\n \\"Dimension\\": 0,\\n \\"IndexType\\": \\"AUTOINDEX\\",\\n \\"SimilarityType\\": \\"COSINE\\",\\n \\"IndexParams\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n }\\n ]\\n }\\n }\\n },\\n \\"Creator\\": \\"300001391\\",\\n \\"GmtCreate\\": \\"2026-04-28 10:03:49\\",\\n \\"GmtModified\\": \\"1749450490000\\"\\n }\\n ],\\n \\"LockOwner\\": \\"300001391\\",\\n \\"LockOwnerName\\": \\"张三\\"\\n }\\n ],\\n \\"Count\\": 12\\n }\\n}","type":"json"}]', + ], + 'ListFiles' => [ + 'summary' => '查询目录树文件列表。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], + 'parameters' => [ [ - 'name' => 'WatchObjectId', + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '对象ID,例如表ID,数据源ID,指标ID等', - 'description' => '对象ID,例如表ID,数据源ID,指标ID等', - 'type' => 'string', + 'title' => '查询条件', + 'description' => '查询条件', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11112311'], + 'Category' => ['title' => '菜单树类目'."\n" + .'即席查询:tempCode'."\n" + .'代码任务:codeManage'."\n" + .'离线管道:offlinePipeline'."\n" + .'管道自定义组件:offlinePipelineCustomPlugin'."\n" + .'同步任务:dataX'."\n" + .'实时元表:streamMeta'."\n" + .'实时自定义源:streamCustomDataSource'."\n" + .'实时计算模板:streamTemplate'."\n" + .'资源管理:resourceManage'."\n" + .'离线函数:udfResource'."\n" + .'实时函数:streamFunction', 'description' => '菜单树类目'."\n" + .'- 即席查询:tempCode'."\n" + .'- 代码任务:codeManage'."\n" + .'- 离线管道:offlinePipeline'."\n" + .'- 管道自定义组件:offlinePipelineCustomPlugin'."\n" + .'- 同步任务:dataX'."\n" + .'- 实时元表:streamMeta'."\n" + .'- 实时自定义源:streamCustomDataSource'."\n" + .'- 实时计算模板:streamTemplate'."\n" + .'- 资源管理:resourceManage'."\n" + .'- 离线函数:udfResource'."\n" + .'- 实时函数:streamFunction', 'type' => 'string', 'required' => true, 'example' => 'tempCode'], + 'Recursive' => ['title' => '是否递归遍历查询'."\n" + .'true:是, 返回目录下的所有节点'."\n" + .'false:否,返回目录下第一层级节点', 'description' => '是否递归遍历查询'."\n" + .'- true:是, 返回目录下的所有节点'."\n" + .'- false:否,返回目录下第一层级节点', 'type' => 'boolean', 'required' => true, 'example' => 'true'], + 'Directory' => ['title' => '文件目录', 'description' => '文件目录', 'type' => 'string', 'required' => true, 'example' => '/xx/x'], + 'Env' => ['title' => '环境标识'."\n" + .'DEV'."\n" + .'PROD', 'description' => '环境标识'."\n" + .'- DEV'."\n" + .'- PROD', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => 'cc', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityWatchInfo' => [ - 'title' => '监控对象详情', - 'description' => '监控对象详情', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'TABLE', - ], - 'Id' => [ - 'title' => '监控Id', - 'description' => '监控Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Name' => [ - 'title' => '监控名称', - 'description' => '监控名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Status' => [ - 'title' => '状态:ENABLE,DISABLE', - 'description' => '状态:ENABLE,DISABLE', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'DataSourceInfo' => [ - 'title' => '数据源详情', - 'description' => '数据源详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'string', - 'example' => '1', - ], - 'Name' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => '1', - ], - 'Type' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Env' => [ - 'title' => '环境标识:PROD、DEV', - 'description' => '环境标识:PROD、DEV', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - 'TableInfo' => [ - 'title' => '监控表对象', - 'description' => '监控表对象', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'LOGIC_DIM_TABLE', - ], - 'Catalog' => [ - 'title' => '表catalog', - 'description' => '表catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '表Id', - 'description' => '表Id', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '表名称', - 'description' => '表名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Env' => [ - 'title' => '环境标识:DEV、PROD', - 'description' => '环境标识:DEV、PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DataSourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => '22', - ], - 'IsPartitionTable' => [ - 'title' => '是否分区表', - 'description' => '是否分区表', - 'type' => 'boolean', - ], - ], - ], - 'IndexInfo' => [ - 'title' => '指标详情', - 'description' => '指标详情', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Catalog' => [ - 'title' => '指标catalog', - 'description' => '指标catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '指标Id:', - 'description' => '指标Id:', - 'type' => 'string', - 'example' => '11', - ], - 'Guid' => [ - 'title' => '指标guid:', - 'description' => '指标guid:', - 'type' => 'string', - 'example' => '1121', - ], - 'Name' => [ - 'title' => '指标名:', - 'description' => '指标名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'DisplayName' => [ - 'title' => '指标展示名:', - 'description' => '指标展示名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'GranularityId' => [ - 'title' => '统计粒度id', - 'description' => '统计粒度id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18755764', - ], - 'GranularityDisplayName' => [ - 'title' => '统计粒度名称', - 'description' => '统计粒度名称', - 'type' => 'string', - 'example' => '全站汇总表', - ], - 'ComputeType' => [ - 'title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'type' => 'string', - 'example' => 'AUTO', - ], - 'CellSumLogicTableName' => [ - 'title' => '单元汇总表名', - 'description' => '单元汇总表名', - 'type' => 'string', - 'example' => 'dws_all', - ], - 'Type' => [ - 'title' => '指标类型:INDEX', - 'description' => '指标类型:INDEX', - 'type' => 'string', - 'example' => 'INDEX', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'DateType' => [ - 'title' => '指标数据类型', - 'description' => '指标数据类型', - 'type' => 'string', - 'example' => 'bigint', - ], - ], - ], - 'QualityOwner' => [ - 'title' => '质量负责人用户ID', - 'description' => '质量负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'QualityOwnerName' => [ - 'title' => '质量负责人显示名称', - 'description' => '质量负责人显示名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LatestWatchTaskId' => [ - 'title' => '最近一次监控对象校验记录ID', - 'description' => '最近一次监控对象校验记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LatestWatchTaskStatus' => [ - 'title' => '最近一次监控对象校验记录状态', - 'description' => '最近一次监控对象校验记录状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'RuleCount' => [ - 'title' => '规则数', - 'description' => '规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'EnabledRuleCount' => [ - 'title' => '生效规则数', - 'description' => '生效规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'FileList' => [ + 'title' => '文件列表', + 'description' => '文件列表', + 'type' => 'array', + 'items' => [ + 'title' => '文件', + 'description' => '文件', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'example' => '111231112'], + 'Name' => ['title' => '文件名', 'description' => '文件名', 'type' => 'string', 'example' => 'xx测试'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '312112121'], + 'Category' => ['title' => '文件类目', 'description' => '文件类目', 'type' => 'string', 'example' => 'tempCode'], + 'FileType' => ['title' => '文件类型, 如 directory', 'description' => '文件类型, 如 directory', 'type' => 'string', 'example' => 'directory'], + 'Directory' => ['title' => '文件目录', 'description' => '文件目录', 'type' => 'string', 'example' => '/xx/x'], + 'Content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'example' => 'select 1;'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717483193830'], + 'GmtModified' => ['title' => '编辑时间', 'description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1717483193830'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '1212111'], + 'LastModifier' => ['title' => '修改者', 'description' => '修改者', 'type' => 'string', 'example' => '1212111'], ], ], ], @@ -44307,34 +26461,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FileList\\": [\\n {\\n \\"Id\\": 111231112,\\n \\"Name\\": \\"xx测试\\",\\n \\"ProjectId\\": 312112121,\\n \\"Category\\": \\"tempCode\\",\\n \\"FileType\\": \\"directory\\",\\n \\"Directory\\": \\"/xx/x\\",\\n \\"Content\\": \\"select 1;\\",\\n \\"GmtCreate\\": 1717483193830,\\n \\"GmtModified\\": 1717483193830,\\n \\"Creator\\": \\"1212111\\",\\n \\"LastModifier\\": \\"1212111\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询文件列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityWatchInfo\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', - 'title' => '通过监控对象原始ID获取监控对象记录', - ], - 'GetQualityWatch' => [ - 'summary' => '获取质量监控对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListFiles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListInstances' => [ + 'summary' => '分页查询实例。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -44342,456 +26504,245 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'title' => '查询请求', + 'description' => '查询请求', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['description' => '节点ID', 'type' => 'string', 'required' => false, 'example' => 'n_23131'], + 'RunStatusList' => [ + 'title' => 'INIT(初始化)、WAIT_SUBMISSION(等待提交)、WAIT_SCHEDULE(等待调度时间)、DISPATCH_BLOCKED(限流中)、WAIT_RESOURCE(等待调度资源)、RUNNING(运行中)、SUCCESS(成功)、FAILED(失败) ', + 'description' => '运行状态'."\n" + .'- INIT:初始化'."\n" + .'- WAIT_SUBMISSION:等待提交'."\n" + .'- WAIT_SCHEDULE:等待调度时间'."\n" + .'- DISPATCH_BLOCKED:限流中'."\n" + .'- WAIT_RESOURCE:等待调度资源'."\n" + .'- RUNNING:运行中'."\n" + .'- SUCCESS:成功'."\n" + .'- FAILED:失败', + 'type' => 'array', + 'items' => ['title' => '允许状态', 'description' => '运行状态', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'MinBizDate' => ['title' => '开始业务日期时间,时间格式须符合业务板块指定的分区格式', 'description' => '开始业务日期时间,时间格式须符合业务板块指定的分区格式', 'type' => 'string', 'required' => false, 'example' => '2024-05-30'], + 'MaxBizDate' => ['title' => '截止业务日期时间,时间格式须符合业务板块指定的分区格式'."\n", 'description' => '截止业务日期时间,时间格式须符合业务板块指定的分区格式'."\n", 'type' => 'string', 'required' => false, 'example' => '2024-05-31'], + 'BizType' => ['title' => '业务类型', 'description' => '业务类型'."\n" + ."\n" + .'- SCRIPT:脚本实例'."\n" + .'- LOGICAL_TABLE:逻辑表', 'type' => 'string', 'required' => false, 'example' => 'SCRIPT'], + 'SubBizTypeList' => [ + 'title' => '子业务类型', + 'description' => '子业务类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL', + 'type' => 'array', + 'items' => ['description' => '子业务类型', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], + 'required' => false, + ], + 'SchedulePeriodList' => [ + 'title' => '调度周期', + 'description' => '调度周期'."\n" + .'- YEARLY'."\n" + .'- MONTHLY'."\n" + .'- WEEKLY'."\n" + .'- DAILY'."\n" + .'- HOURLY'."\n" + .'- MINUTELY', + 'type' => 'array', + 'items' => ['description' => '调度周期', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'required' => false, + ], + 'OwnerList' => [ + 'title' => '节点负责人', + 'description' => '节点负责人', + 'type' => 'array', + 'items' => ['title' => '负责人', 'description' => '负责人', 'type' => 'string', 'required' => false, 'example' => '123131'], + 'required' => false, + ], + 'PriorityList' => [ + 'title' => '优先级', + 'description' => '优先级'."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', + 'type' => 'array', + 'items' => ['description' => '优先级', 'type' => 'string', 'required' => false, 'example' => 'MIDDLE'], + 'required' => false, + ], + 'SchedulePaused' => ['title' => '是否暂停调度', 'description' => '是否暂停调度', 'type' => 'boolean', 'required' => false], + 'MinRunDate' => ['title' => '实例运行日期', 'description' => '最小实例运行时间', 'type' => 'string', 'required' => false, 'example' => '2024-05-30'], + 'MaxRunDate' => ['title' => '实例运行日期', 'description' => '最大实例运行时间', 'type' => 'string', 'required' => false, 'example' => '2024-05-31'], + 'ScheduleType' => ['title' => '实例调度类型'."\n" + .'NORMAL(周期实例)'."\n" + .'MANUAL(手动实例)', 'description' => '实例调度类型'."\n" + .'- NORMAL(周期实例)'."\n" + .'- MANUAL(手动实例)', 'type' => 'string', 'required' => true, 'example' => 'NORMAL'], + 'SearchText' => ['title' => '节点名称模糊匹配或节点ID精确匹配', 'description' => '节点名称模糊匹配或节点ID精确匹配', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131311111321'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], + 'BizUnitId' => ['title' => '业务板块id,查询汇总逻辑表时需要传入', 'description' => '业务板块id,查询汇总逻辑表时需要传入', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '6232322111'], + 'FlowId' => ['title' => '任务流Id', 'description' => '任务流Id', 'type' => 'string', 'required' => false, 'example' => '1021'], + ], + 'required' => false, ], ], [ - 'name' => 'Id', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '监控Id', - 'description' => '监控Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityWatchInfo' => [ - 'title' => '监控对象详情', - 'description' => '监控对象详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'description' => '分页结果', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'TABLE', - ], - 'Id' => [ - 'title' => '监控Id', - 'description' => '监控Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Name' => [ - 'title' => '监控名称', - 'description' => '监控名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Status' => [ - 'title' => '状态:ENABLE,DISABLE', - 'description' => '状态:ENABLE,DISABLE', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'DataSourceInfo' => [ - 'title' => '数据源详情', - 'description' => '数据源详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '数据源Id', - 'description' => '数据源Id', - 'type' => 'string', - 'example' => '1', - ], - 'Name' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => '1', - ], - 'Type' => [ - 'title' => '数据源类型: MAX_COMPUTE、HADOOP', - 'description' => '数据源类型: MAX_COMPUTE、HADOOP', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Env' => [ - 'title' => '环境标识:PROD、DEV', - 'description' => '环境标识:PROD、DEV', - 'type' => 'string', - 'example' => 'DEV', - ], - ], - ], - 'TableInfo' => [ - 'title' => '监控表对象', - 'description' => '监控表对象', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', - 'type' => 'string', - 'example' => 'LOGIC_DIM_TABLE', - ], - 'Catalog' => [ - 'title' => '表catalog', - 'description' => '表catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '表Id', - 'description' => '表Id', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '表名称', - 'description' => '表名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Env' => [ - 'title' => '环境标识:DEV、PROD', - 'description' => '环境标识:DEV、PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DataSourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => '22', - ], - 'IsPartitionTable' => [ - 'title' => '是否分区表', - 'description' => '是否分区表', - 'type' => 'boolean', - ], - ], - ], - 'IndexInfo' => [ - 'title' => '指标详情', - 'description' => '指标详情', - 'type' => 'object', - 'properties' => [ - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Catalog' => [ - 'title' => '指标catalog', - 'description' => '指标catalog', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '指标Id:', - 'description' => '指标Id:', - 'type' => 'string', - 'example' => '11', - ], - 'Guid' => [ - 'title' => '指标guid:', - 'description' => '指标guid:', - 'type' => 'string', - 'example' => '1121', - ], - 'Name' => [ - 'title' => '指标名:', - 'description' => '指标名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'DisplayName' => [ - 'title' => '指标展示名:', - 'description' => '指标展示名:', - 'type' => 'string', - 'example' => 'logic', - ], - 'GranularityId' => [ - 'title' => '统计粒度id', - 'description' => '统计粒度id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '18755764', - ], - 'GranularityDisplayName' => [ - 'title' => '统计粒度名称', - 'description' => '统计粒度名称', - 'type' => 'string', - 'example' => '全站汇总表', - ], - 'ComputeType' => [ - 'title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', - 'type' => 'string', - 'example' => 'AUTO', - ], - 'CellSumLogicTableName' => [ - 'title' => '单元汇总表名', - 'description' => '单元汇总表名', - 'type' => 'string', - 'example' => 'dws_all', - ], - 'Type' => [ - 'title' => '指标类型:INDEX', - 'description' => '指标类型:INDEX', - 'type' => 'string', - 'example' => 'INDEX', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1121', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人用户名称', - 'description' => '负责人用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'DateType' => [ - 'title' => '指标数据类型', - 'description' => '指标数据类型', - 'type' => 'string', - 'example' => 'bigint', + 'TotalCount' => ['description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '107'], + 'Data' => [ + 'description' => '分页记录', + 'type' => 'array', + 'items' => [ + 'description' => '实例信息', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_23231'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2024-05-30'], + 'DueTime' => ['title' => '调度时间', 'description' => '调度时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'StatusList' => [ + 'title' => '实例状态', + 'description' => '实例状态', + 'type' => 'array', + 'items' => ['description' => '实例状态', 'type' => 'string', 'example' => 'RUNNING'], + ], + 'StartExecuteTime' => ['title' => '运行', 'description' => '执行开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-05-30 16:46:13'], + 'EndExecuteTime' => ['title' => '执行结束时间', 'description' => '执行结束时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-05-30 16:47:13'."\n"], + 'Duration' => ['title' => '运行耗时,单位:秒', 'description' => '运行耗时,单位:秒', 'type' => 'string', 'example' => '60s'], + 'Index' => ['title' => '小时分钟实例序号', 'description' => '小时分钟实例序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'NodeInfo' => [ + 'title' => '节点详情', + 'description' => '节点详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_132331'], + 'From' => ['title' => '节点来源', 'description' => '节点来源', 'type' => 'string', 'example' => 'DATA_PROCES'], + 'Type' => ['title' => '节点业务类型', 'description' => '节点业务类型'."\n" + .'- SCRIPT:脚本'."\n" + .'- LOGICAL_TABLE:逻辑表', 'type' => 'string', 'example' => 'DATA_PROCES'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'."\n"], + 'SubDetailType' => ['title' => '子业务类型', 'description' => '子业务类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL', 'type' => 'string', 'example' => 'SHELL'], + 'Description' => ['title' => '节点描述', 'description' => '节点描述', 'type' => 'string', 'example' => 'xx 测试'], + 'DryRun' => ['title' => '是否空跑', 'description' => '是否空跑', 'type' => 'boolean', 'example' => 'false'], + 'SchedulePaused' => ['title' => '是否暂停调度', 'description' => '是否暂停调度', 'type' => 'boolean', 'example' => 'false'], + 'HasProd' => ['title' => '是否有生产环境', 'description' => '是否有生产环境', 'type' => 'boolean', 'example' => 'true'], + 'HasDev' => ['title' => '是否有开发环境', 'description' => '是否有开发环境', 'type' => 'boolean', 'example' => 'false'], + 'PriorityList' => [ + 'description' => '优先级'."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', + 'type' => 'array', + 'items' => ['description' => '优先级', 'type' => 'string', 'example' => 'MIDDLE'], + ], + 'ResourceGroupList' => [ + 'title' => '运行资源组', + 'description' => '运行资源组', + 'type' => 'array', + 'items' => ['description' => '资源组', 'type' => 'string', 'example' => 'rs_group_test'], + ], + 'SchedulePeriodList' => [ + 'title' => '调度周期', + 'description' => '调度周期', + 'type' => 'array', + 'items' => ['description' => '调度周期'."\n" + .'- YEARLY'."\n" + .'- MONTHLY'."\n" + .'- WEEKLY'."\n" + .'- DAILY'."\n" + .'- HOURLY'."\n" + .'- MINUTELY', 'type' => 'string', 'example' => 'DAILY'], + ], + 'BizUnitName' => ['title' => '业务板块', 'description' => '业务板块', 'type' => 'string', 'example' => 'xx测试'], + 'Creator' => [ + 'title' => '节点创建人', + 'description' => '节点创建人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '21313112'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'Modifier' => [ + 'title' => '编辑人', + 'description' => '编辑人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户名', 'type' => 'string', 'example' => '21313112'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'OwnerList' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '21313112'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + 'description' => '', + ], + ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'LastModifiedTime' => ['title' => '编辑时间', 'description' => '编辑时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'."\n"], + ], + ], + 'ExtendInfo' => ['title' => '节点扩展信息:不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名 ', 'description' => '节点扩展信息:不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名 ', 'type' => 'string', 'example' => 'xx'], ], ], ], - 'QualityOwner' => [ - 'title' => '质量负责人用户ID', - 'description' => '质量负责人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'QualityOwnerName' => [ - 'title' => '质量负责人显示名称', - 'description' => '质量负责人显示名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LatestWatchTaskId' => [ - 'title' => '最近一次监控对象校验记录ID', - 'description' => '最近一次监控对象校验记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LatestWatchTaskStatus' => [ - 'title' => '最近一次监控对象校验记录状态', - 'description' => '最近一次监控对象校验记录状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'RuleCount' => [ - 'title' => '规则数', - 'description' => '规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'EnabledRuleCount' => [ - 'title' => '生效规则数', - 'description' => '生效规则数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], ], ], ], @@ -44800,34 +26751,44 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 107,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"t_23231\\",\\n \\"BizDate\\": \\"2024-05-30\\",\\n \\"DueTime\\": \\"2024-05-30 16:47:13\\",\\n \\"StatusList\\": [\\n \\"RUNNING\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"60s\\",\\n \\"Index\\": 1,\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_132331\\",\\n \\"From\\": \\"DATA_PROCES\\",\\n \\"Type\\": \\"DATA_PROCES\\",\\n \\"Name\\": \\"xx测试\\\\n\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"DryRun\\": false,\\n \\"SchedulePaused\\": false,\\n \\"HasProd\\": true,\\n \\"HasDev\\": false,\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2024-05-30 16:47:13\\",\\n \\"LastModifiedTime\\": \\"2024-05-30 16:47:13\\\\n\\"\\n },\\n \\"ExtendInfo\\": \\"xx\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取实例列表', + 'changeSet' => [ + ['createdAt' => '2025-07-01T03:29:33.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2025-06-30T08:34:27.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityWatchInfo\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', - 'title' => '获取质量监控对象', - ], - 'GetQualityTemplate' => [ - 'summary' => '获取质量模板对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListNodeDownStream' => [ + 'summary' => '查询节点下游,创建补数据工作流时可以作为数据参考。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -44835,460 +26796,116 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '查询节点下游请求', + 'description' => '查询节点下游请求', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityTemplateInfo' => [ - 'title' => '模板对象详情', - 'description' => '模板对象详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '模板Id', - 'description' => '模板Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', - 'type' => 'string', - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'TypeName' => [ - 'title' => '模板类型展示名', - 'description' => '模板类型展示名', - 'type' => 'string', - 'example' => '字段空值校验', - ], - 'Description' => [ - 'title' => '模板描述', - 'description' => '模板描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '归属人用户ID', - 'description' => '归属人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '归属人名称', - 'description' => '归属人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Catalog' => [ - 'title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'example' => 'CONSISTENT', - ], - 'CatalogName' => [ - 'title' => '模板分类展示名', - 'description' => '模板分类展示名', - 'type' => 'string', - 'example' => '一致性', - ], - 'SupportAllDataSourceType' => [ - 'title' => '支持所有数据源类型', - 'description' => '支持所有数据源类型', - 'type' => 'boolean', - ], - 'SupportDataSourceTypeList' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'array', - 'items' => [ - 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', - 'type' => 'string', - 'example' => 'MySQL', + 'NodeIdList' => [ + 'title' => '节点列表', + 'description' => '节点列表', + 'type' => 'array', + 'items' => [ + 'title' => '节点', + 'description' => '节点', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => false, 'example' => 'n_23431'], + 'FieldIdList' => [ + 'title' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', + 'description' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', + 'type' => 'array', + 'items' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'required' => false, 'example' => '23211121'], + 'required' => false, + 'example' => '112', ], ], - 'IsSystemTemplate' => [ - 'title' => '是否系统模板', - 'description' => '是否系统模板', - 'type' => 'boolean', - ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对', - 'description' => '规则配置键值对', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'abc', - ], - ], + 'required' => false, + ], + 'required' => true, + ], + 'DownStreamDepth' => ['title' => '深度, 默认3', 'description' => '深度,默认3层 ', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'FilterList' => [ + 'title' => '过滤器', + 'description' => '过滤器:可以根据项目、节点等进行正选和反选,默认为空', + 'type' => 'array', + 'items' => [ + 'description' => '过滤器', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => '筛选键,支持:'."\n" + .'- PROJECT: 项目'."\n" + .'- PHYSICAL_NODE_ID: 物理任务id'."\n" + .'- LOGICAL_TABLE_NODE_ID: 逻辑表id', 'type' => 'string', 'required' => false, 'example' => 'PROJECT'], + 'ValueList' => [ + 'description' => '过滤值列表', + 'type' => 'array', + 'items' => ['description' => '过滤值', 'type' => 'string', 'required' => false, 'example' => '102113'], + 'required' => false, ], + 'Exclude' => ['description' => '是否反选,默认:false', 'type' => 'boolean', 'required' => false, 'example' => 'false'], ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建人名称', - 'description' => '创建人名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改人ID', - 'description' => '最近修改人ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'ModifierName' => [ - 'title' => '最近修改人名称', - 'description' => '最近修改人名称', - 'type' => 'string', - 'example' => 'test', - ], + 'required' => false, ], + 'required' => false, ], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123011'], ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityTemplateInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TypeName\\": \\"字段空值校验\\",\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Catalog\\": \\"CONSISTENT\\",\\n \\"CatalogName\\": \\"一致性\\",\\n \\"SupportAllDataSourceType\\": true,\\n \\"SupportDataSourceTypeList\\": [\\n \\"MySQL\\"\\n ],\\n \\"IsSystemTemplate\\": true,\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\"\\n }\\n}","type":"json"}]', - 'title' => '获取质量模板对象', - ], - 'GetQualitySchedulesByWatchId' => [ - 'summary' => '通过监控对象ID获取调度设置列表。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'WatchId', + 'name' => 'Env', 'in' => 'query', - 'schema' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityScheduleList' => [ - 'title' => '调度对象列表', - 'description' => '调度对象列表', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeInfoList' => [ + 'title' => '节点列表', + 'description' => '节点列表', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '节点', + 'description' => '节点', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象Id', - 'description' => '监控对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Id' => [ - 'title' => '调度对象Id', - 'description' => '调度对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '调度对象名称', - 'description' => '调度对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'IsRefByRule' => [ - 'title' => '是否被规则引用', - 'description' => '是否被规则引用', - 'type' => 'boolean', - ], - 'Type' => [ - 'title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'type' => 'string', - 'example' => 'PERIOD_SCHEDULE', - ], - 'PartitionType' => [ - 'title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'PartitionExpression' => [ - 'title' => '分区表达式-自定义表达式', - 'description' => '分区表达式-自定义表达式', - 'type' => 'string', - 'example' => 'ds=${yyyyMMdd}', - ], - 'TriggerType' => [ - 'title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'type' => 'string', - 'example' => 'STATIC_TASK_TRIGGER', - ], - 'TriggerNodeList' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'array', - 'items' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'string', - 'example' => 'n_1121', - ], - ], - 'StaticTaskTriggerType' => [ - 'title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'type' => 'string', - 'example' => 'ONE_TASKS_FINISHED', - ], - 'PeriodScheduleIntervalType' => [ - 'title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'PeriodScheduleParamList' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_2423351'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'Type' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'FieldIdList' => [ + 'title' => '字段id列表', + 'description' => '字段id列表', 'type' => 'array', - 'items' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', - 'type' => 'string', - 'example' => 'DAILY', - ], - ], - 'CronExpression' => [ - 'title' => '定时调度-cron表达式', - 'description' => '定时调度-cron表达式', - 'type' => 'string', - 'example' => '* * 1/* * * *', - ], - 'ValidatePartitionType' => [ - 'title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'type' => 'string', - 'example' => 'TASK_REFERRED_PARTITION', - ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'Modifier' => [ - 'title' => '最近修改人ID', - 'description' => '最近修改人ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', + 'items' => ['description' => '字段id', 'type' => 'string', 'example' => '123'], ], + 'Depth' => ['title' => '层级', 'description' => '层级', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], @@ -45298,34 +26915,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfoList\\": [\\n {\\n \\"Id\\": \\"n_2423351\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ],\\n \\"Depth\\": 1\\n }\\n ]\\n}","type":"json"}]', + 'title' => '查询节点下游', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityScheduleList\\": [\\n {\\n \\"WatchId\\": 22,\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"IsRefByRule\\": true,\\n \\"Type\\": \\"PERIOD_SCHEDULE\\",\\n \\"PartitionType\\": \\"CUSTOM\\",\\n \\"PartitionExpression\\": \\"ds=${yyyyMMdd}\\",\\n \\"TriggerType\\": \\"STATIC_TASK_TRIGGER\\",\\n \\"TriggerNodeList\\": [\\n \\"n_1121\\"\\n ],\\n \\"StaticTaskTriggerType\\": \\"ONE_TASKS_FINISHED\\",\\n \\"PeriodScheduleIntervalType\\": \\"DAILY\\",\\n \\"PeriodScheduleParamList\\": [\\n \\"DAILY\\"\\n ],\\n \\"CronExpression\\": \\"* * 1/* * * *\\",\\n \\"ValidatePartitionType\\": \\"TASK_REFERRED_PARTITION\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '通过监控对象ID获取调度设置列表', - ], - 'GetQualitySchedule' => [ - 'summary' => '获取质量调度对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListNodeDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListNodes' => [ + 'summary' => '获取任务节点列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -45333,198 +26958,196 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '调度对象Id', - 'description' => '调度对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '查询条件', + 'description' => '查询条件', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12111'], + 'NodeBizType' => ['title' => '节点业务类型(脚本、逻辑表、萃取):SCRIPT/LOGICAL_TABLE/ONE_ID', 'description' => '节点业务类型'."\n" + .'- SCRIPT:脚本'."\n" + .'- LOGICAL_TABLE:逻辑表', 'type' => 'string', 'required' => true, 'example' => 'SCRIPT'], + 'NodeSubBizTypeList' => [ + 'title' => '子业务类型(HIVE_SQL/HADOOP_MR/SHELL/DATAX/PYTHON等)'."\n", + 'description' => '子业务类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL等', + 'type' => 'array', + 'items' => ['description' => '子业务类型', 'type' => 'string', 'required' => false, 'example' => 'SHELL'], + 'required' => true, ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'SchedulePeriodList' => [ + 'title' => '调度周期(年、月、周、日、时、分):YEARLY/MONTHLY/WEEKLY/DAILY/HOURLY/MINUTELY', + 'description' => '调度周期'."\n" + .'- YEARLY'."\n" + .'- MONTHLY'."\n" + .'- WEEKLY'."\n" + .'- DAILY'."\n" + .'- HOURLY'."\n" + .'- MINUTELY', + 'type' => 'array', + 'items' => ['description' => '调度周期', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'required' => false, ], - 'QualityScheduleInfo' => [ - 'title' => '调度对象详情', - 'description' => '调度对象详情', + 'OwnerList' => [ + 'title' => '负责人用户ID', + 'description' => '负责人用户ID', + 'type' => 'array', + 'items' => ['description' => '负责人', 'type' => 'string', 'required' => false, 'example' => '121112'], + 'required' => false, + ], + 'PriorityList' => [ + 'title' => '节点优先级(最高,高,中,低,最低):HIGHEST/HIGH/MIDDLE/LOW/LOWEST', + 'description' => '节点优先级'."\n" + .'- HIGHEST'."\n" + .'- HIGH'."\n" + .'- MIDDLE'."\n" + .'- LOW'."\n" + .'- LOWEST', + 'type' => 'array', + 'items' => ['description' => '优先级', 'type' => 'string', 'required' => false, 'example' => 'MIDDLE'], + 'required' => false, + ], + 'SchedulePaused' => ['title' => '是否暂停', 'description' => '是否暂停调度', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'DryRun' => ['title' => '是否空跑', 'description' => '是否空跑', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'ScheduleType' => ['title' => '节点调度类型(如周期、补数据、手工):NORMAL/SUPPLEMENT/MANUAL', 'description' => '节点调度类型'."\n" + .'- NORMAL:周期'."\n" + .'- SUPPLEMENT:补数据'."\n" + .'- MANUAL:手工', 'type' => 'string', 'required' => false, 'example' => 'NORMAL'], + 'SearchText' => ['title' => '关键词搜索:支持节点名称模糊搜索,节点id精确搜索', 'description' => '关键词搜索:支持节点名称模糊搜索,节点id精确搜索', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + ], + 'required' => true, + ], + ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象Id', - 'description' => '监控对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Id' => [ - 'title' => '调度对象Id', - 'description' => '调度对象Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '调度对象名称', - 'description' => '调度对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'IsRefByRule' => [ - 'title' => '是否被规则引用', - 'description' => '是否被规则引用', - 'type' => 'boolean', - ], - 'Type' => [ - 'title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', - 'type' => 'string', - 'example' => 'PERIOD_SCHEDULE', - ], - 'PartitionType' => [ - 'title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'PartitionExpression' => [ - 'title' => '分区表达式-自定义表达式', - 'description' => '分区表达式-自定义表达式', - 'type' => 'string', - 'example' => 'ds=${yyyyMMdd}', - ], - 'TriggerType' => [ - 'title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', - 'type' => 'string', - 'example' => 'STATIC_TASK_TRIGGER', - ], - 'TriggerNodeList' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'array', - 'items' => [ - 'title' => '触发调度-触发任务清单', - 'description' => '触发调度-触发任务清单', - 'type' => 'string', - 'example' => 'n_1121', - ], - ], - 'StaticTaskTriggerType' => [ - 'title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', - 'type' => 'string', - 'example' => 'ONE_TASKS_FINISHED', - ], - 'PeriodScheduleIntervalType' => [ - 'title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'PeriodScheduleParamList' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'NodeList' => [ + 'title' => '分页节点列表', + 'description' => '分页节点列表', 'type' => 'array', 'items' => [ - 'title' => '定时调度-调度周期值', - 'description' => '定时调度-调度周期值', - 'type' => 'string', - 'example' => 'DAILY', + 'title' => '节点详情', + 'description' => '节点详情', + 'type' => 'object', + 'properties' => [ + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'xx test'], + 'PriorityList' => [ + 'title' => '优先级', + 'description' => '优先级', + 'type' => 'array', + 'items' => ['description' => '优先级', 'type' => 'string', 'example' => 'MIDDLE'], + ], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'DryRun' => ['title' => '是否空跑', 'description' => '是否空跑', 'type' => 'boolean', 'example' => 'true'], + 'OwnerList' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'array', + 'items' => [ + 'description' => '负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '23222'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + ], + 'From' => ['title' => '来源', 'description' => '来源', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '23222'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'SubDetailType' => ['title' => '节点子类型(如数据处理中的MAX_COMPUTER_SQL/HIVE_SQL/SHELL等,如逻辑表中的维度表/事实表/汇总表等)。如DATA_PROCESS中的MAX_COMPUTER_SQL、HIVE_SQL、SHELL等,如BBOX_LOGIC_TABLE_NODE中的DIM_LOGICAL_TABLE、FACT_LOGICAL_TABLE、SUMMARY_LOGICAL_TABLE等', 'description' => '子业务类型'."\n" + .'- MAX_COMPUTE_SQL'."\n" + .'- HIVE_SQL'."\n" + .'- SHELL'."\n" + .'- PYTHON'."\n" + .'- ONE_SERVICE_SQL'."\n" + .'- DATABASE_SQL等', 'type' => 'string', 'example' => 'SHELL'], + 'Name' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'xx测试'], + 'HasProd' => ['title' => '是否有生产环境', 'description' => '是否有生产环境', 'type' => 'boolean', 'example' => 'true'], + 'Type' => ['title' => '节点类型', 'description' => '节点类型', 'type' => 'string', 'example' => 'DATA_PROCESS'], + 'HasDev' => ['title' => '是否有开发环境', 'description' => '是否有开发环境', 'type' => 'boolean', 'example' => 'true'], + 'SchedulePaused' => ['title' => '是否暂停', 'description' => '是否暂停', 'type' => 'boolean', 'example' => 'true'], + 'SchedulePeriodList' => [ + 'title' => '调度周期', + 'description' => '调度周期', + 'type' => 'array', + 'items' => ['description' => '调度周期', 'type' => 'string', 'example' => 'HOURLY'], + ], + 'ProjectInfo' => [ + 'title' => '归属项目', + 'description' => '归属项目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '项目ID', 'type' => 'string', 'example' => '1121321'], + 'Name' => ['description' => '项目名称', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'LastModifiedTime' => ['description' => '编辑时间', 'type' => 'string', 'example' => '2024-05-30 16:47:13'], + 'BizUnitName' => ['title' => '所属业务板块名称', 'description' => '所属业务板块名称', 'type' => 'string', 'example' => 'xx测试'], + 'Id' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_31111'], + 'Modifier' => [ + 'title' => '节点更新者', + 'description' => '节点更新者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '用户ID', 'type' => 'string', 'example' => '311131'], + 'Name' => ['description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + ], + ], + 'ExtendInfo' => ['title' => '扩展信息', 'description' => '扩展信息', 'type' => 'string', 'example' => '{"xx":"zz"}'], + ], ], ], - 'CronExpression' => [ - 'title' => '定时调度-cron表达式', - 'description' => '定时调度-cron表达式', - 'type' => 'string', - 'example' => '* * 1/* * * *', - ], - 'ValidatePartitionType' => [ - 'title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', - 'type' => 'string', - 'example' => 'TASK_REFERRED_PARTITION', - ], - 'Creator' => [ - 'title' => '创建人用户ID', - 'description' => '创建人用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'Modifier' => [ - 'title' => '最近修改人ID', - 'description' => '最近修改人ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], ], ], ], @@ -45533,69 +27156,111 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 100,\\n \\"NodeList\\": [\\n {\\n \\"Description\\": \\"xx test\\",\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"CreateTime\\": \\"2024-05-30 16:47:13\\",\\n \\"DryRun\\": true,\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"23222\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"23222\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"HasProd\\": true,\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"HasDev\\": true,\\n \\"SchedulePaused\\": true,\\n \\"SchedulePeriodList\\": [\\n \\"HOURLY\\"\\n ],\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"1121321\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"LastModifiedTime\\": \\"2024-05-30 16:47:13\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Id\\": \\"n_31111\\",\\n \\"Modifier\\": {\\n \\"Id\\": \\"311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"ExtendInfo\\": \\"{\\\\\\"xx\\\\\\":\\\\\\"zz\\\\\\"}\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '查询调度节点列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:30:25.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityScheduleInfo\\": {\\n \\"WatchId\\": 22,\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"IsRefByRule\\": true,\\n \\"Type\\": \\"PERIOD_SCHEDULE\\",\\n \\"PartitionType\\": \\"CUSTOM\\",\\n \\"PartitionExpression\\": \\"ds=${yyyyMMdd}\\",\\n \\"TriggerType\\": \\"STATIC_TASK_TRIGGER\\",\\n \\"TriggerNodeList\\": [\\n \\"n_1121\\"\\n ],\\n \\"StaticTaskTriggerType\\": \\"ONE_TASKS_FINISHED\\",\\n \\"PeriodScheduleIntervalType\\": \\"DAILY\\",\\n \\"PeriodScheduleParamList\\": [\\n \\"DAILY\\"\\n ],\\n \\"CronExpression\\": \\"* * 1/* * * *\\",\\n \\"ValidatePartitionType\\": \\"TASK_REFERRED_PARTITION\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', - 'title' => '获取质量调度对象', - ], - 'GetQualityRuleTaskLog' => [ - 'summary' => '获取质量任务对象日志内容。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListNodes', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListOperationRecord' => [ + 'summary' => '分页查询运行记录列表,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RuleTaskId', - 'in' => 'query', + 'name' => 'ListCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '规则任务ID', - 'description' => '规则任务ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '查询命令', + 'description' => '查询命令', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'Page' => ['title' => '页码,默认1', 'description' => '页码,默认1', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '每页数量,默认20', 'description' => '每页数量,默认20', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], + 'Status' => [ + 'title' => '任务状态列表', + 'description' => '任务状态列表', + 'type' => 'array', + 'items' => ['title' => '任务状态:运行中4、运行成功5、运行失败6', 'description' => '任务状态:运行中4、运行成功5、运行失败6', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + 'required' => false, + ], + 'ObjectType' => [ + 'title' => '对象类型列表', + 'description' => '对象类型列表', + 'type' => 'array', + 'items' => ['title' => '对象类型:onedata-ide、onedata3-server、DATA_CATALOG、openapi', 'description' => '对象类型:onedata-ide、onedata3-server、DATA_CATALOG、openapi', 'type' => 'string', 'required' => false, 'example' => 'onedata-ide'], + 'required' => false, + ], + 'CodeType' => [ + 'title' => '代码类型列表', + 'description' => '代码类型列表', + 'type' => 'array', + 'items' => ['title' => '代码类型:SQL0、shell1、Python2、MR3、Spark4', 'description' => '代码类型:SQL0、shell1、Python2、MR3、Spark4', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'required' => false, + ], + 'UserIds' => [ + 'title' => '运行人id列表', + 'description' => '运行人id列表', + 'type' => 'array', + 'items' => ['title' => '运行人id', 'description' => '运行人id', 'type' => 'string', 'required' => false, 'example' => '30231123'], + 'required' => false, + ], + 'BeginTimeStart' => ['title' => '开始时间区间起,格式yyyy-MM-dd HH:mm:ss', 'description' => '开始时间区间起,格式yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2025-01-01 00:00:00'], + 'BeginTimeEnd' => ['title' => '开始时间区间止,格式yyyy-MM-dd HH:mm:ss', 'description' => '开始时间区间止,格式yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2025-12-31 23:59:59'], + 'Duration' => [ + 'title' => '持续时长列表', + 'description' => '持续时长列表', + 'type' => 'array', + 'items' => ['title' => '持续时长:10分钟内0、10~30分钟1、30~60分钟2、超过1小时3', 'description' => '持续时长:10分钟内0、10~30分钟1、30~60分钟2、超过1小时3', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'required' => false, + ], + 'CodeContent' => ['title' => '代码搜索关键字', 'description' => '代码搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'select'], + 'FileName' => ['title' => '脚本名称', 'description' => '脚本名称', 'type' => 'string', 'required' => false, 'example' => '测试脚本'], + 'SortType' => ['title' => '排序类型:开始时间正序0、开始时间倒序1、对象名称2', 'description' => '排序类型:开始时间正序0、开始时间倒序1、对象名称2', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], 'required' => true, - 'example' => '11', ], ], ], @@ -45606,41 +27271,48 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '日志内容', - 'description' => '日志内容', - 'type' => 'string', - 'example' => 'test', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'OperationLogListResponse' => [ + 'title' => '运行记录列表响应', + 'description' => '运行记录列表响应', + 'type' => 'object', + 'properties' => [ + 'ResultData' => [ + 'title' => '运行记录列表', + 'description' => '运行记录列表', + 'type' => 'array', + 'items' => [ + 'title' => '运行记录条目', + 'description' => '运行记录条目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '记录id', 'description' => '记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '123456'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => '测试任务'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => 'onedata-ide'], + 'CodeType' => ['title' => '代码类型', 'description' => '代码类型', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'Status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'BeginTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '2025-01-15 10:30:00'], + 'Runner' => ['title' => '运行人id', 'description' => '运行人id', 'type' => 'string', 'example' => '30231123'], + 'RunnerName' => ['title' => '运行人名称', 'description' => '运行人名称', 'type' => 'string', 'example' => '张三'], + 'RelationTables' => [ + 'title' => '关联表列表', + 'description' => '关联表列表', + 'type' => 'array', + 'items' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 'ods_test_table'], + ], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '131211211'], + 'TenantId' => ['title' => '租户id', 'description' => '租户id', 'type' => 'integer', 'format' => 'int64', 'example' => '10001'], + 'OperationId' => ['title' => '操作记录id', 'description' => '操作记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '987654321'], + 'Duration' => ['title' => '执行时长(秒)', 'description' => '执行时长(毫秒)', 'type' => 'integer', 'format' => 'int64', 'example' => '120'], + ], + ], + ], + 'Count' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + ], ], ], ], @@ -45648,33 +27320,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '分页查询运行记录列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"test\\"\\n}","type":"json"}]', - 'title' => '获取质量任务对象日志内容', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"OperationLogListResponse\\": {\\n \\"ResultData\\": [\\n {\\n \\"Id\\": 123456,\\n \\"Name\\": \\"测试任务\\",\\n \\"ObjectType\\": \\"onedata-ide\\",\\n \\"CodeType\\": 0,\\n \\"Status\\": 5,\\n \\"BeginTime\\": \\"2025-01-15 10:30:00\\",\\n \\"Runner\\": \\"30231123\\",\\n \\"RunnerName\\": \\"张三\\",\\n \\"RelationTables\\": [\\n \\"ods_test_table\\"\\n ],\\n \\"ProjectId\\": 131211211,\\n \\"TenantId\\": 10001,\\n \\"OperationId\\": 987654321,\\n \\"Duration\\": 120\\n }\\n ],\\n \\"Count\\": 100\\n }\\n}","type":"json"}]', ], - 'GetQualityRuleTask' => [ - 'summary' => '获取质量任务对象详情。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListProjectMembers' => [ + 'summary' => '查询项目成员列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -45683,34 +27347,33 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RuleTaskId', + 'name' => 'Id', 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '规则任务ID', - 'description' => '规则任务ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '检索条件', + 'description' => '请求对象', + 'type' => 'object', + 'properties' => [ + 'Env' => ['title' => '环境标识', 'description' => '项目环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'PageSize' => ['title' => '分页记录数, 默认:20', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + 'PageNo' => ['title' => '页码, 默认:1', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + ], 'required' => true, - 'example' => '11', + 'example' => '1030111021', ], ], ], @@ -45718,155 +27381,44 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'RuleTaskInfo' => [ - 'title' => '规则任务详情', - 'description' => '规则任务详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '所属监控ID', - 'description' => '所属监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'WatchTaskId' => [ - 'title' => '监控任务ID,试跑的规则任务这个ID为空', - 'description' => '监控任务ID,试跑的规则任务这个ID为空', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Id' => [ - 'title' => '规则任务ID', - 'description' => '规则任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RuleId' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'TemplateId' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'Status' => [ - 'title' => '任务状态', - 'description' => '任务状态', - 'type' => 'string', - 'example' => 'running', - ], - 'StartTime' => [ - 'title' => '起始时间', - 'description' => '起始时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间', - 'description' => '截止时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ValidatePartition' => [ - 'title' => '校验分区', - 'description' => '校验分区', - 'type' => 'string', - 'example' => '20251011', - ], - 'ValidateObjectType' => [ - 'title' => '校验对象类型', - 'description' => '校验对象类型', - 'type' => 'string', - 'example' => 'column', - ], - 'ValidateObjectName' => [ - 'title' => '校验对象名称', - 'description' => '校验对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ValidateSuccess' => [ - 'title' => '是否校验通过', - 'description' => '是否校验通过', - 'type' => 'boolean', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'BizDateFormat' => [ - 'title' => '业务日期格式', - 'description' => '业务日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', + 'TotalCount' => ['title' => '总记录数', 'description' => '项目成员总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '101'], + 'ProjectMemberList' => [ + 'title' => '分页用户成员列表', + 'description' => '项目成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '项目成员', + 'type' => 'object', + 'properties' => [ + 'RoleIdList' => [ + 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', + 'description' => '角色', + 'type' => 'array', + 'items' => ['title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', 'description' => '角色编码,编码列表参考新增项目成员', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间戳', 'type' => 'string', 'example' => '1702692675000'], + 'LastModifier' => ['title' => '最后编辑用户Id', 'description' => '编辑人Id', 'type' => 'string', 'example' => '101111'], + 'UserName' => ['title' => '用户名', 'description' => '成员用户名', 'type' => 'string', 'example' => '测试用户'], + 'UserId' => ['title' => '用户ID', 'description' => '成员用户Id', 'type' => 'string', 'example' => '101111'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间戳', 'type' => 'string', 'example' => '1721720955000'], + 'Id' => ['title' => '用户成员ID', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12356'], + 'LastModifierName' => ['title' => '最后编辑用户名', 'description' => '编辑人', 'type' => 'string', 'example' => '测试用户'], + ], + ], ], ], ], @@ -45876,33 +27428,25 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 101,\\n \\"ProjectMemberList\\": [\\n {\\n \\"RoleIdList\\": [\\n 1\\n ],\\n \\"GmtCreate\\": \\"1702692675000\\",\\n \\"LastModifier\\": \\"101111\\",\\n \\"UserName\\": \\"测试用户\\",\\n \\"UserId\\": \\"101111\\",\\n \\"GmtModified\\": \\"1721720955000\\",\\n \\"Id\\": 12356,\\n \\"LastModifierName\\": \\"测试用户\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询项目成员列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"RuleTaskInfo\\": {\\n \\"WatchId\\": 1,\\n \\"WatchTaskId\\": 1,\\n \\"Id\\": 1,\\n \\"RuleId\\": 11,\\n \\"TemplateId\\": 11,\\n \\"Status\\": \\"running\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ValidatePartition\\": \\"20251011\\",\\n \\"ValidateObjectType\\": \\"column\\",\\n \\"ValidateObjectName\\": \\"test\\",\\n \\"ValidateSuccess\\": true,\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n}","type":"json"}]', - 'title' => '获取质量任务对象详情', + 'ramActions' => [], ], - 'GetQualityRule' => [ - 'summary' => '获取质量规则对象。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListProjects' => [ + 'summary' => '获取项目列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -45911,34 +27455,36 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'Keyword' => ['title' => '关键字模糊匹配', 'description' => '关键字模糊匹配', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'TagList' => [ + 'title' => '项目标签', + 'description' => '项目标签', + 'type' => 'array', + 'items' => ['title' => '项目标签', 'description' => '项目标签', 'type' => 'string', 'required' => false, 'example' => 'GENERAL'], + 'required' => false, + ], + 'Mode' => ['title' => '项目模式', 'description' => '项目模式', 'type' => 'string', 'required' => false, 'example' => 'BASIC'], + 'Env' => ['title' => '环境标识', 'description' => '环境标识', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'PageNo' => ['title' => '页码, 默认:1', 'description' => '页码, 默认:1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认:20', 'description' => '分页记录数, 默认:20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], 'required' => true, - 'example' => '11', ], ], ], @@ -45949,509 +27495,187 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityRuleInfo' => [ - 'title' => '质量规则详情', - 'description' => '质量规则详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '质量规则Id', - 'description' => '质量规则Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '质量规则名称', - 'description' => '质量规则名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Status' => [ - 'title' => '质量规则状态: ENABLE,DISABLE', - 'description' => '质量规则状态: ENABLE,DISABLE', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Strength' => [ - 'title' => '规则强弱: STRONG、WEAK', - 'description' => '规则强弱: STRONG、WEAK', - 'type' => 'string', - 'example' => 'STRONG', - ], - 'CatalogList' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'array', - 'items' => [ - 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', - 'type' => 'string', - 'example' => 'CONSISTENT', - ], - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => '模板类型:'."\n" - .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" - .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" - .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" - .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" - .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" - .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" - .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" - .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" - .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" - .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" - .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" - .' - CODE_TABLE_COMPARE 码表参照对比'."\n" - .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" - .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" - .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" - .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" - .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" - .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" - .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" - .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" - .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" - .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" - .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" - .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" - .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" - .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" - .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" - .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', - 'type' => 'string', - 'example' => 'FIELD_NULL_VALUE_VALIDATE', - ], - 'TemplateId' => [ - 'title' => '模板ID', - 'description' => '模板ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'TemplateName' => [ - 'title' => '模板名称', - 'description' => '模板名称', - 'type' => 'string', - 'example' => '1', - ], - 'TemplateScope' => [ - 'title' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', - 'description' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', - 'type' => 'string', - 'example' => 'CUSTOM', - ], - 'WatchId' => [ - 'title' => '所属监控ID', - 'description' => '所属监控ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'EnableErrorArchive' => [ - 'title' => '是否启动异常归档', - 'description' => '是否启动异常归档', - 'type' => 'boolean', - ], - 'ValidateConditionList' => [ - 'title' => '校验条件列表', - 'description' => '校验条件列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'ProjectList' => [ + 'title' => '分页项目列表', + 'description' => '分页项目列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '条件节点id', - 'description' => '条件节点id', - 'type' => 'string', - 'example' => '268', - ], - 'Type' => [ - 'title' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', - 'type' => 'string', - 'example' => 'RELATION', - ], - 'Operator' => [ - 'title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', - 'type' => 'string', - 'example' => 'AND', - ], - 'OperatorName' => [ - 'title' => '操作符名称', - 'description' => '操作符名称', - 'type' => 'string', - 'example' => '且', - ], - 'Metric' => [ - 'title' => '指标', - 'description' => '指标', - 'type' => 'string', - 'example' => 'test', - ], - 'MetricName' => [ - 'title' => '指标名称', - 'description' => '指标名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Value' => [ - 'title' => '值', - 'description' => '值', - 'type' => 'string', - 'example' => '1', - ], - 'ParentId' => [ - 'title' => '条件父节点Id', - 'description' => '条件父节点Id', - 'type' => 'string', - 'example' => '123', - ], + 'RealtimeDataSourceName' => ['title' => '实时计算源名', 'description' => '实时计算源名', 'type' => 'string', 'example' => 'ds2'], + 'Owner' => ['title' => '项目负责人', 'description' => '项目负责人', 'type' => 'string', 'example' => '30012112'], + 'OwnerName' => ['title' => '项目负责人', 'description' => '项目负责人', 'type' => 'string', 'example' => '张三'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试'], + 'Mode' => ['title' => '项目模式', 'description' => '项目模式', 'type' => 'string', 'example' => 'BASIC'], + 'GmtModified' => ['title' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '更新时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'Env' => ['title' => '环境标识', 'description' => '环境标识', 'type' => 'string', 'example' => 'DEV'], + 'Name' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'demo'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '162112'], + 'Type' => ['title' => '项目类型', 'description' => '项目类型', 'type' => 'string', 'example' => 'GENERAL'], + 'GmtCreate' => ['title' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'description' => '创建时间, 格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-10 10:01:01'], + 'DataSourceName' => ['title' => '计算源名', 'description' => '计算源名', 'type' => 'string', 'example' => 'ds1'], + 'DisplayName' => ['title' => '项目展示名', 'description' => '项目展示名', 'type' => 'string', 'example' => '测试'], + 'Id' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1030111021'], + 'DataSourceId' => ['title' => '计算源Id', 'description' => '计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'RealtimeDataSourceId' => ['title' => '实时计算源Id', 'description' => '实时计算源Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1122'], ], ], ], - 'TestRunRuleTaskId' => [ - 'title' => '最近一次试跑任务ID', - 'description' => '最近一次试跑任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ProjectList\\": [\\n {\\n \\"RealtimeDataSourceName\\": \\"ds2\\",\\n \\"Owner\\": \\"30012112\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"Description\\": \\"测试\\",\\n \\"Mode\\": \\"BASIC\\",\\n \\"GmtModified\\": \\"2025-06-10 10:01:01\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Name\\": \\"demo\\",\\n \\"BizUnitId\\": 162112,\\n \\"Type\\": \\"GENERAL\\",\\n \\"GmtCreate\\": \\"2025-06-10 10:01:01\\",\\n \\"DataSourceName\\": \\"ds1\\",\\n \\"DisplayName\\": \\"测试\\",\\n \\"Id\\": 1030111021,\\n \\"DataSourceId\\": 1121,\\n \\"RealtimeDataSourceId\\": 1122\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询项目列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'ListPublishRecords' => [ + 'summary' => '分页获取发布记录列表。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '查询指令', + 'description' => '查询指令', + 'type' => 'object', + 'properties' => [ + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'SearchFilter' => [ + 'title' => '发布记录过滤器', + 'description' => '发布记录过滤器', + 'type' => 'object', + 'properties' => [ + 'ProjectIdList' => [ + 'title' => '项目id列表', + 'description' => '项目id列表', + 'type' => 'array', + 'items' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234567890'], + 'required' => true, ], - 'TestRunRuleTaskStatus' => [ - 'title' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', - 'description' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', - 'type' => 'string', - 'example' => 'SUCCESS', + 'SubmitterList' => [ + 'title' => '提交人id列表', + 'description' => '提交人id列表', + 'type' => 'array', + 'items' => ['title' => '提交人id', 'description' => '提交人id', 'type' => 'string', 'required' => true, 'example' => '30897000'], + 'required' => false, ], - 'TestRunRuleValidateResult' => [ - 'title' => '试跑校验是否通过', - 'description' => '试跑校验是否通过', - 'type' => 'boolean', + 'ChangeTypeList' => [ + 'title' => '变更类型列表(0:新增/1:更新/2:删除', + 'description' => '变更类型列表(0:新增/1:更新/2:删除', + 'type' => 'array', + 'items' => ['title' => '变更类型', 'description' => '变更类型', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + 'required' => false, ], - 'ScheduleBindList' => [ - 'title' => '规则绑定的调度列表', - 'description' => '规则绑定的调度列表', + 'PublishStatusList' => [ + 'title' => '发布状态列表(0:失败/1:成功/2:发布中', + 'description' => '发布状态列表(0:失败/1:成功/2:发布中', 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ScheduleId' => [ - 'title' => '调度Id', - 'description' => '调度Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ScheduleName' => [ - 'title' => '调度名称', - 'description' => '调度名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], + 'items' => ['title' => '发布状态', 'description' => '发布状态', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + 'required' => false, ], - 'FormPropertyList' => [ - 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ComponentType' => [ - 'title' => '控件类型', - 'description' => '控件类型', - 'type' => 'string', - 'example' => 'expression', - ], - 'Name' => [ - 'title' => '属性名', - 'description' => '属性名', - 'type' => 'string', - 'example' => 'col', - ], - 'Value' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'string', - 'example' => 'abc', - ], - ], - ], - ], - 'ValidateObject' => [ - 'title' => '校验对象', - 'description' => '校验对象', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', - 'description' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', - 'type' => 'string', - 'example' => 'TABLE', - ], - 'Name' => [ - 'title' => '校验对象名称', - 'description' => '校验对象名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'AttributeWithValueList' => [ - 'title' => '规则业务属性配置', - 'description' => '规则业务属性配置', + 'PublishStartTime' => ['title' => '发布开始时间 yyyy-MM-dd HH:mm:ss', 'description' => '发布开始时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2024-10-10 10:00:00'], + 'PublishEndTime' => ['title' => '发布结束时间 yyyy-MM-dd HH:mm:ss', 'description' => '发布结束时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2024-10-10 10:00:00'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页条数', 'description' => '分页条数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], + ], + 'required' => true, + ], + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ListResult' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'Data' => [ + 'title' => '发布记录列表查询结果', + 'description' => '发布记录列表查询结果', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '发布记录', + 'description' => '发布记录', 'type' => 'object', 'properties' => [ - 'AttributeInfo' => [ - 'title' => '属性详情', - 'description' => '属性详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '属性Id', - 'description' => '属性Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '612415804007', - ], - 'Name' => [ - 'title' => '属性名称', - 'description' => '属性名称', - 'type' => 'string', - 'example' => 'attr01', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Enabled' => [ - 'title' => '是否启用', - 'description' => '是否启用', - 'type' => 'boolean', - ], - 'Required' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - ], - 'Searchable' => [ - 'title' => '是否可搜索', - 'description' => '是否可搜索', - 'type' => 'boolean', - ], - 'ValueConfig' => [ - 'title' => '属性值配置详情', - 'description' => '属性值配置详情', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', - 'type' => 'string', - 'example' => 'CUSTOMIZED', - ], - 'DataType' => [ - 'title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', - 'type' => 'string', - 'example' => 'STRING', - ], - 'Length' => [ - 'title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '6921666', - ], - 'ValueEnumList' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', - 'type' => 'string', - 'example' => 'test', - ], - ], - 'DefaultValue' => [ - 'title' => '属性默认值', - 'description' => '属性默认值', - 'type' => 'object', - 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'example' => 'abc', - ], - ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], - ], - ], - ], - ], - 'AttributeValue' => [ - 'title' => '属性值', - 'description' => '属性值', - 'type' => 'object', - 'properties' => [ - 'ValueList' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'array', - 'items' => [ - 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', - 'type' => 'string', - 'example' => 'abc', - ], - ], - 'MinValue' => [ - 'title' => '最小值,适用于范围区间属性', - 'description' => '最小值,适用于范围区间属性', - 'type' => 'string', - 'example' => '1', - ], - 'IncludeMinValue' => [ - 'title' => '是否包含最小值', - 'description' => '是否包含最小值', - 'type' => 'boolean', - ], - 'MaxValue' => [ - 'title' => '最大值,适用于范围区间属性', - 'description' => '最大值,适用于范围区间属性', - 'type' => 'string', - 'example' => '100', - ], - 'IncludeMaxValue' => [ - 'title' => '是否包含最大值', - 'description' => '是否包含最大值', - 'type' => 'boolean', - ], - ], - ], + 'Id' => ['title' => '发布记录id(非对象ID,在发布列表中全局唯一', 'description' => '发布记录id(非对象ID,在发布列表中全局唯一', 'type' => 'integer', 'format' => 'int64', 'example' => '1241844456'], + 'PublishName' => ['title' => '发布名称', 'description' => '发布名称', 'type' => 'string', 'example' => 'test_lc__20241118171502'], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'string', 'example' => '1241844456'], + 'Publisher' => ['title' => '发布人id', 'description' => '发布人id', 'type' => 'string', 'example' => '307999999'], + 'PublisherName' => ['title' => '发布人名称', 'description' => '发布人名称', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间 yyyy-MM-dd HH:mm:ss', 'description' => '创建时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModify' => ['title' => '修改时间 yyyy-MM-dd HH:mm:ss', 'description' => '修改时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'ChangeType' => ['title' => '变更类型 0:新增/1:更新/2:删除', 'description' => '变更类型 0:新增/1:更新/2:删除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'ObjectName' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'example' => '对象A'], + 'ObjectId' => ['title' => '对象id', 'description' => '对象id', 'type' => 'string', 'example' => '1234567'], + 'NodeId' => ['title' => '节点id', 'description' => '节点id', 'type' => 'string', 'example' => 'n_123456'], + 'ObjectVersion' => ['title' => '对象版本', 'description' => '对象版本', 'type' => 'string', 'example' => '1'], + 'FinishTime' => ['title' => '发布完成时间 yyyy-MM-dd HH:mm:ss', 'description' => '发布完成时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2024-10-10 10:10:10'], + 'ErrorMessage' => ['title' => '发布错误信息', 'description' => '发布错误信息', 'type' => 'string', 'example' => 'error'], + 'PublishStatus' => ['title' => '发布状态 0:失败/1:成功/2:发布中', 'description' => '发布状态 0:失败/1:成功/2:发布中', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Modifier' => [ - 'title' => '最近修改用户ID', - 'description' => '最近修改用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'ModifierName' => [ - 'title' => '最近修改用户名称', - 'description' => '最近修改用户名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], ], ], ], @@ -46460,33 +27684,43 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"PublishName\\": \\"test_lc__20241118171502\\",\\n \\"ProjectId\\": \\"1241844456\\",\\n \\"Publisher\\": \\"307999999\\",\\n \\"PublisherName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModify\\": \\"2024-10-10 10:00:00\\",\\n \\"ChangeType\\": 0,\\n \\"ObjectType\\": \\"2024-10-10 10:00:00\\",\\n \\"ObjectName\\": \\"对象A\\",\\n \\"ObjectId\\": \\"1234567\\",\\n \\"NodeId\\": \\"n_123456\\",\\n \\"ObjectVersion\\": \\"1\\",\\n \\"FinishTime\\": \\"2024-10-10 10:10:10\\",\\n \\"ErrorMessage\\": \\"error\\",\\n \\"PublishStatus\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询发布记录', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:35.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityRuleInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"Description\\": \\"test\\",\\n \\"Strength\\": \\"STRONG\\",\\n \\"CatalogList\\": [\\n \\"CONSISTENT\\"\\n ],\\n \\"TemplateType\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TemplateId\\": 1,\\n \\"TemplateName\\": \\"1\\",\\n \\"TemplateScope\\": \\"CUSTOM\\",\\n \\"WatchId\\": 1,\\n \\"EnableErrorArchive\\": true,\\n \\"ValidateConditionList\\": [\\n {\\n \\"Id\\": \\"268\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"OperatorName\\": \\"且\\",\\n \\"Metric\\": \\"test\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\",\\n \\"ParentId\\": \\"123\\"\\n }\\n ],\\n \\"TestRunRuleTaskId\\": 22,\\n \\"TestRunRuleTaskStatus\\": \\"SUCCESS\\",\\n \\"TestRunRuleValidateResult\\": true,\\n \\"ScheduleBindList\\": [\\n {\\n \\"ScheduleId\\": 1,\\n \\"ScheduleName\\": \\"test\\"\\n }\\n ],\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"ValidateObject\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Name\\": \\"test\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"AttributeInfo\\": {\\n \\"Id\\": 612415804007,\\n \\"Name\\": \\"attr01\\",\\n \\"Description\\": \\"test\\",\\n \\"Enabled\\": true,\\n \\"Required\\": true,\\n \\"Searchable\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 6921666,\\n \\"ValueEnumList\\": [\\n \\"test\\"\\n ],\\n \\"DefaultValue\\": {\\n \\"ValueList\\": [\\n \\"abc\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n },\\n \\"AttributeValue\\": {\\n \\"ValueList\\": [\\n \\"abc\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n}","type":"json"}]', - 'title' => '获取质量规则对象', - ], - 'GetQualityAlertOfAllRuleScopeByWatchId' => [ - 'summary' => '通过监控对象ID获取告警设置。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListPublishRecords', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ListQualityRuleTasks' => [ + 'summary' => '分页查询质量规则任务。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -46495,34 +27729,64 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'WatchId', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', + 'title' => '分页查询条件', + 'description' => '分页查询条件', + 'type' => 'object', + 'properties' => [ + 'WatchTaskId' => ['title' => '监控表任务ID', 'description' => '监控表任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'CatalogList' => [ + 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'type' => 'array', + 'items' => ['title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'required' => false, 'example' => 'CONSISTENT'], + 'required' => false, + ], + 'RuleStrengthList' => [ + 'title' => '规则强度: STRONG 强、WEAK 弱', + 'description' => '规则强度: STRONG 强、WEAK 弱', + 'type' => 'array', + 'items' => ['title' => '规则强度: STRONG 强、WEAK 弱', 'description' => '规则强度: STRONG 强、WEAK 弱', 'type' => 'string', 'required' => false, 'example' => 'STRONG'], + 'required' => false, + ], + 'StatusList' => [ + 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'type' => 'array', + 'items' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'ValidateResultList' => [ + 'title' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', + 'description' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', + 'type' => 'array', + 'items' => ['title' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', 'description' => '校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'RuleTagList' => [ + 'title' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', + 'description' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', + 'type' => 'array', + 'items' => ['title' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', 'description' => '规则标签: DEFAULT 默认标签、DATA_STANDARD_MANUAL 手工创建的标准规则、、DATA_STANDARD_AUTO 标准自动创建的质量规则、PIPELINE PIPELINE创建的规则、DATA_MODELING 数据建模', 'type' => 'string', 'required' => false, 'example' => 'DEFAULT'], + 'required' => false, + ], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'required' => false, 'example' => '2025-06-30'], + 'Keyword' => ['title' => '搜索词,字段名或者规则名搜索', 'description' => '搜索词,字段名或者规则名搜索', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + 'required' => false, ], ], ], @@ -46533,134 +27797,47 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'QualityAlertInfo' => [ - 'title' => '告警设置详情', - 'description' => '告警设置详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'AlertUserChannelList' => [ - 'title' => '用户告警渠道', - 'description' => '用户告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '用户告警渠道', - 'description' => '用户告警渠道', - 'type' => 'string', - 'example' => 'test', - ], - ], - 'AlertUserList' => [ - 'title' => '用户告警列表', - 'description' => '用户告警列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'QualityRuleTaskList' => [ + 'title' => '分页质量规则任务列表', + 'description' => '分页质量规则任务列表', 'type' => 'array', 'items' => [ 'title' => '', 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '用户id', - 'description' => '用户id', - 'type' => 'string', - 'example' => '30012011', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'test', - ], + 'WatchId' => ['title' => '所属监控ID', 'description' => '所属监控ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'WatchTaskId' => ['title' => '监控任务ID,试跑的规则任务这个ID为空', 'description' => '监控任务ID,试跑的规则任务这个ID为空', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Id' => ['title' => '规则任务ID', 'description' => '规则任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'RuleId' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Status' => ['title' => '任务状态', 'description' => '任务状态', 'type' => 'string', 'example' => 'running'], + 'StartTime' => ['title' => '起始时间', 'description' => '起始时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '截止时间', 'description' => '截止时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ValidatePartition' => ['title' => '校验分区', 'description' => '校验分区', 'type' => 'string', 'example' => '20251011'], + 'ValidateObjectType' => ['title' => '校验对象类型', 'description' => '校验对象类型', 'type' => 'string', 'example' => 'column'], + 'ValidateObjectName' => ['title' => '校验对象名称', 'description' => '校验对象名称', 'type' => 'string', 'example' => 'test'], + 'ValidateSuccess' => ['title' => '是否校验通过', 'description' => '是否校验通过', 'type' => 'boolean'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'BizDateFormat' => ['title' => '业务日期格式', 'description' => '业务日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], ], ], ], - 'AlertDutyList' => [ - 'title' => '值班表告警列表', - 'description' => '值班表告警列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '报警值班表ID', - 'description' => '报警值班表ID', - 'type' => 'string', - 'example' => '1', - ], - 'Name' => [ - 'title' => '报警值班表名称', - 'description' => '报警值班表名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'AlertDutyChannelList' => [ - 'title' => '值班表告警渠道', - 'description' => '值班表告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '值班表告警渠道', - 'description' => '值班表告警渠道', - 'type' => 'string', - 'example' => 'test', - ], - ], - 'EnableAlertQualityOwner' => [ - 'title' => '开启质量负责人告警', - 'description' => '开启质量负责人告警', - 'type' => 'boolean', - ], - 'AlertQualityOwnerChannelList' => [ - 'title' => '质量负责人告警渠道', - 'description' => '质量负责人告警渠道', - 'type' => 'array', - 'items' => [ - 'title' => '质量负责人告警渠道', - 'description' => '质量负责人告警渠道', - 'type' => 'string', - 'example' => 'test', - ], - ], ], ], ], @@ -46669,84 +27846,98 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityRuleTaskList\\": [\\n {\\n \\"WatchId\\": 1,\\n \\"WatchTaskId\\": 1,\\n \\"Id\\": 1,\\n \\"RuleId\\": 11,\\n \\"TemplateId\\": 11,\\n \\"Status\\": \\"running\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ValidatePartition\\": \\"20251011\\",\\n \\"ValidateObjectType\\": \\"column\\",\\n \\"ValidateObjectName\\": \\"test\\",\\n \\"ValidateSuccess\\": true,\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询质量规则任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"QualityAlertInfo\\": {\\n \\"WatchId\\": 1,\\n \\"AlertUserChannelList\\": [\\n \\"test\\"\\n ],\\n \\"AlertUserList\\": [\\n {\\n \\"Id\\": \\"30012011\\",\\n \\"Name\\": \\"test\\"\\n }\\n ],\\n \\"AlertDutyList\\": [\\n {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"test\\"\\n }\\n ],\\n \\"AlertDutyChannelList\\": [\\n \\"test\\"\\n ],\\n \\"EnableAlertQualityOwner\\": true,\\n \\"AlertQualityOwnerChannelList\\": [\\n \\"test\\"\\n ]\\n }\\n}","type":"json"}]', - 'title' => '通过监控对象ID获取告警设置', + 'ramActions' => [], ], - 'DeleteQualityWatches' => [ - 'summary' => '批量删除质量监控对象。'."\n" + 'ListQualityRules' => [ + 'summary' => '分页查询质量规则。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '分页查询条件', + 'description' => '分页查询条件', 'type' => 'object', 'properties' => [ - 'WatchIdList' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', + 'WatchId' => ['title' => '监控ID', 'description' => '监控ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'StatusList' => [ + 'title' => '规则生效状态: ENABLE 启用、DISABLE 禁用', + 'description' => '规则生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'array', - 'items' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'required' => true, + 'items' => ['title' => '规则生效状态: ENABLE 启用、DISABLE 禁用', 'description' => '规则生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'required' => false, 'example' => 'ENABLE'], + 'required' => false, + ], + 'CatalogList' => [ + 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'type' => 'array', + 'items' => ['title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'required' => false, 'example' => 'CONSISTENT'], + 'required' => false, + ], + 'TemplateIdList' => [ + 'title' => '规则模板', + 'description' => '规则模板', + 'type' => 'array', + 'items' => ['title' => '规则模板', 'description' => '规则模板', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '2'], + 'required' => false, + ], + 'RuleStrengthList' => [ + 'title' => '规则强度: STRONG 强、WEAK 弱', + 'description' => '规则强度: STRONG 强、WEAK 弱', + 'type' => 'array', + 'items' => ['title' => '规则强度: STRONG 强、WEAK 弱', 'description' => '规则强度: STRONG 强、WEAK 弱', 'type' => 'string', 'required' => false, 'example' => 'STRONG'], + 'required' => false, ], + 'TestRunTaskValidateResultList' => [ + 'title' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', + 'description' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', + 'type' => 'array', + 'items' => ['title' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', 'description' => '规则试跑校验结果: NOT_RUN 未执行、WAITING 等待执行、RUNNING 执行中、PASS 通过、NOT_PASS 不通过、FAILED 执行失败、OFFLINE 掉线,需要重新拉起、CANCEL 任务取消、TIMEOUT 任务超时', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'TestRunTaskStatusList' => [ + 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'type' => 'array', + 'items' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'Keyword' => ['title' => '搜索词筛选,支持规则名称和校验对象搜索', 'description' => '搜索词筛选,支持规则名称和校验对象搜索', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], - 'required' => true, + 'required' => false, ], ], ], @@ -46757,42 +27948,220 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除监控对象个数', - 'description' => '删除监控对象个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'QualityRuleList' => [ + 'title' => '分页质量规则任务列表', + 'description' => '分页质量规则任务列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '质量规则Id', 'description' => '质量规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '质量规则名称', 'description' => '质量规则名称', 'type' => 'string', 'example' => 'test'], + 'Status' => ['title' => '质量规则状态: ENABLE,DISABLE', 'description' => '质量规则状态: ENABLE,DISABLE', 'type' => 'string', 'example' => 'ENABLE'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Strength' => ['title' => '规则强弱: STRONG、WEAK', 'description' => '规则强弱: STRONG、WEAK', 'type' => 'string', 'example' => 'STRONG'], + 'CatalogList' => [ + 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'type' => 'array', + 'items' => ['title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'example' => 'CONSISTENT'], + ], + 'TemplateType' => ['title' => '模板类型', 'description' => '模板类型:'."\n" + .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" + .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" + .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" + .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" + .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" + .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" + .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" + .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" + .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" + .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" + .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" + .' - CODE_TABLE_COMPARE 码表参照对比'."\n" + .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" + .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" + .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" + .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" + .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" + .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" + .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" + .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" + .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" + .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" + .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" + .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" + .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" + .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', 'type' => 'string', 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'TemplateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '1'], + 'TemplateScope' => ['title' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', 'description' => '模板类型分组: SYSTEM 系统预置、CUSTOM 自定义模板、TEMPLATE SYSTEM及CUSTOM并集、 CUSTOM_SQL 自定义SQL模板', 'type' => 'string', 'example' => 'CUSTOM'], + 'WatchId' => ['title' => '所属监控ID', 'description' => '所属监控ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'EnableErrorArchive' => ['title' => '是否启动异常归档', 'description' => '是否启动异常归档', 'type' => 'boolean'], + 'ValidateConditionList' => [ + 'title' => '校验条件列表', + 'description' => '校验条件列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '条件节点id', 'description' => '条件节点id', 'type' => 'string', 'example' => '268'], + 'Type' => ['title' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'type' => 'string', 'example' => 'RELATION'], + 'Operator' => ['title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'type' => 'string', 'example' => 'AND'], + 'OperatorName' => ['title' => '操作符名称', 'description' => '操作符名称', 'type' => 'string', 'example' => '且'], + 'Metric' => ['title' => '指标', 'description' => '指标', 'type' => 'string', 'example' => 'test'], + 'MetricName' => ['title' => '指标名称', 'description' => '指标名称', 'type' => 'string', 'example' => 'test'], + 'Value' => ['title' => '值', 'description' => '值', 'type' => 'string', 'example' => '1'], + 'ParentId' => ['title' => '条件父节点Id', 'description' => '条件父节点Id', 'type' => 'string', 'example' => '123'], + ], + ], + ], + 'TestRunRuleTaskId' => ['title' => '最近一次试跑任务ID', 'description' => '最近一次试跑任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'TestRunRuleTaskStatus' => ['title' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', 'description' => '最近一次试跑任务状态:NOT_RUN,WAITING,RUNNING,SUCCESS,FAILED', 'type' => 'string', 'example' => 'SUCCESS'], + 'TestRunRuleValidateResult' => ['title' => '试跑校验是否通过', 'description' => '试跑校验是否通过', 'type' => 'boolean'], + 'ScheduleBindList' => [ + 'title' => '规则绑定的调度列表', + 'description' => '规则绑定的调度列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ScheduleId' => ['title' => '调度Id', 'description' => '调度Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ScheduleName' => ['title' => '调度名称', 'description' => '调度名称', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + 'FormPropertyList' => [ + 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', + 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'abc'], + ], + ], + ], + 'ValidateObject' => [ + 'title' => '校验对象', + 'description' => '校验对象', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', 'description' => '校验对象类型: UNKNOWN,TABLE,COLUMN,DATASOURCE,DATASOURCE_TABLE,REALTIME,INDEX,CHAIN', 'type' => 'string', 'example' => 'TABLE'], + 'Name' => ['title' => '校验对象名称', 'description' => '校验对象名称', 'type' => 'string', 'example' => 'test'], + ], + ], + 'AttributeWithValueList' => [ + 'title' => '规则业务属性配置', + 'description' => '规则业务属性配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'AttributeInfo' => [ + 'title' => '属性详情', + 'description' => '属性详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '-168890138815'], + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'attr01'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Enabled' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean'], + 'Searchable' => ['title' => '是否可搜索', 'description' => '是否可搜索', 'type' => 'boolean'], + 'ValueConfig' => [ + 'title' => '属性值配置详情', + 'description' => '属性值配置详情', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'type' => 'string', 'example' => 'STRING'], + 'Length' => ['title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'type' => 'integer', 'format' => 'int32', 'example' => '6997283'], + 'ValueEnumList' => [ + 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'type' => 'string', 'example' => 'test'], + ], + 'DefaultValue' => [ + 'title' => '属性默认值', + 'description' => '属性默认值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'example' => '123'], + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + ], + ], + ], + ], + 'AttributeValue' => [ + 'title' => '属性值', + 'description' => '属性值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'example' => '123'], + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + ], + ], + ], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + 'ModifierName' => ['title' => '最近修改用户名称', 'description' => '最近修改用户名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + ], + ], + ], + ], ], ], ], @@ -46800,84 +28169,98 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityRuleList\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"Description\\": \\"test\\",\\n \\"Strength\\": \\"STRONG\\",\\n \\"CatalogList\\": [\\n \\"CONSISTENT\\"\\n ],\\n \\"TemplateType\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TemplateId\\": 1,\\n \\"TemplateName\\": \\"1\\",\\n \\"TemplateScope\\": \\"CUSTOM\\",\\n \\"WatchId\\": 1,\\n \\"EnableErrorArchive\\": true,\\n \\"ValidateConditionList\\": [\\n {\\n \\"Id\\": \\"268\\",\\n \\"Type\\": \\"RELATION\\",\\n \\"Operator\\": \\"AND\\",\\n \\"OperatorName\\": \\"且\\",\\n \\"Metric\\": \\"test\\",\\n \\"MetricName\\": \\"test\\",\\n \\"Value\\": \\"1\\",\\n \\"ParentId\\": \\"123\\"\\n }\\n ],\\n \\"TestRunRuleTaskId\\": 22,\\n \\"TestRunRuleTaskStatus\\": \\"SUCCESS\\",\\n \\"TestRunRuleValidateResult\\": true,\\n \\"ScheduleBindList\\": [\\n {\\n \\"ScheduleId\\": 1,\\n \\"ScheduleName\\": \\"test\\"\\n }\\n ],\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"ValidateObject\\": {\\n \\"Type\\": \\"TABLE\\",\\n \\"Name\\": \\"test\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"AttributeInfo\\": {\\n \\"Id\\": -168890138815,\\n \\"Name\\": \\"attr01\\",\\n \\"Description\\": \\"test\\",\\n \\"Enabled\\": true,\\n \\"Required\\": true,\\n \\"Searchable\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 6997283,\\n \\"ValueEnumList\\": [\\n \\"test\\"\\n ],\\n \\"DefaultValue\\": {\\n \\"ValueList\\": [\\n \\"123\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n },\\n \\"AttributeValue\\": {\\n \\"ValueList\\": [\\n \\"123\\"\\n ],\\n \\"MinValue\\": \\"1\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n }\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询质量规则', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量删除质量监控对象', + 'ramActions' => [], ], - 'DeleteQualityTemplates' => [ - 'summary' => '批量删除质量模板对象。'."\n" + 'ListQualityTemplates' => [ + 'summary' => '分页查询质量模板。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '分页查询条件', + 'description' => '分页查询条件', 'type' => 'object', 'properties' => [ - 'TemplateIdList' => [ - 'title' => '模板对象ID', - 'description' => '模板对象ID', + 'CatalogList' => [ + 'title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'array', - 'items' => [ - 'title' => '模板对象ID', - 'description' => '模板对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'required' => true, + 'items' => ['title' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则类型: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'required' => false, 'example' => 'CONSISTENT'], + 'required' => false, + ], + 'SupportDataSourceTypeList' => [ + 'title' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', + 'description' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', + 'type' => 'array', + 'items' => ['title' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', 'description' => '支持的数据源类型: MAX_COMPUTE、MYSQL、HIVE等', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], + 'required' => false, + ], + 'TemplateTypeList' => [ + 'title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', + 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', + 'type' => 'array', + 'items' => ['title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'type' => 'string', 'required' => false, 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'required' => false, + ], + 'WatchTypeList' => [ + 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', + 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', + 'type' => 'array', + 'items' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => false, 'example' => 'TABLE'], + 'required' => false, + ], + 'TemplateSourceList' => [ + 'title' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', + 'description' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', + 'type' => 'array', + 'items' => ['title' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', 'description' => '模板来源,SYSTEM 系统模板、CUSTOM 自定义模板', 'type' => 'string', 'required' => false, 'example' => 'CUSTOM'], + 'required' => false, ], + 'CurrentUserOwned' => ['title' => '是否当前用户负责的模板', 'description' => '是否当前用户负责的模板', 'type' => 'boolean', 'required' => false], + 'TemplateOwnerList' => [ + 'title' => '模板负责人', + 'description' => '模板负责人', + 'type' => 'array', + 'items' => ['title' => '模板负责人', 'description' => '模板负责人', 'type' => 'string', 'required' => false, 'example' => '30012011'], + 'required' => false, + ], + 'Keyword' => ['title' => '搜索词筛选,支持模板名称', 'description' => '搜索词筛选,支持模板名称', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], - 'required' => true, + 'required' => false, ], ], ], @@ -46888,42 +28271,68 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除模板个数', - 'description' => '删除模板个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'QualityTemplateList' => [ + 'title' => '分页质量模板列表', + 'description' => '分页质量模板列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => 'test'], + 'Type' => ['title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'type' => 'string', 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'TypeName' => ['title' => '模板类型展示名', 'description' => '模板类型展示名', 'type' => 'string', 'example' => '字段空值校验'], + 'Description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '归属人用户ID', 'description' => '归属人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '归属人名称', 'description' => '归属人名称', 'type' => 'string', 'example' => 'test'], + 'Catalog' => ['title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'example' => 'CONSISTENT'], + 'CatalogName' => ['title' => '模板分类展示名', 'description' => '模板分类展示名', 'type' => 'string', 'example' => '一致性'], + 'SupportAllDataSourceType' => ['title' => '支持所有数据源类型', 'description' => '支持所有数据源类型', 'type' => 'boolean'], + 'SupportDataSourceTypeList' => [ + 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'type' => 'array', + 'items' => ['title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'type' => 'string', 'example' => 'MySQL'], + ], + 'IsSystemTemplate' => ['title' => '是否系统模板', 'description' => '是否系统模板', 'type' => 'boolean'], + 'FormPropertyList' => [ + 'title' => '规则配置键值对', + 'description' => '规则配置键值对', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'abc'], + ], + ], + ], + 'Creator' => ['title' => '创建人用户ID', 'description' => '创建人用户ID', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建人名称', 'description' => '创建人名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改人ID', 'description' => '最近修改人ID', 'type' => 'string', 'example' => '30012011'], + 'ModifierName' => ['title' => '最近修改人名称', 'description' => '最近修改人名称', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + ], ], ], ], @@ -46931,261 +28340,234 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityTemplateList\\": [\\n {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"FIELD_NULL_VALUE_VALIDATE\\",\\n \\"TypeName\\": \\"字段空值校验\\",\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Catalog\\": \\"CONSISTENT\\",\\n \\"CatalogName\\": \\"一致性\\",\\n \\"SupportAllDataSourceType\\": true,\\n \\"SupportDataSourceTypeList\\": [\\n \\"MySQL\\"\\n ],\\n \\"IsSystemTemplate\\": true,\\n \\"FormPropertyList\\": [\\n {\\n \\"ComponentType\\": \\"expression\\",\\n \\"Name\\": \\"col\\",\\n \\"Value\\": \\"abc\\"\\n }\\n ],\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifierName\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询质量模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量删除质量模板对象', + 'ramActions' => [], ], - 'DeleteQualitySchedules' => [ - 'summary' => '批量删除质量调度对象。'."\n" + 'ListQualityWatchTasks' => [ + 'summary' => '分页查询质量监控任务。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '分页查询条件', + 'description' => '分页查询条件', 'type' => 'object', 'properties' => [ - 'ScheduleIdList' => [ - 'title' => '调度对象ID', - 'description' => '调度对象ID', + 'WatchTypeList' => [ + 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', + 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'array', - 'items' => [ - 'title' => '调度对象ID', - 'description' => '调度对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'required' => true, + 'items' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => false, 'example' => 'TABLE'], + 'required' => false, ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', + 'DataSourceIdList' => [ + 'title' => '数据源Id', + 'description' => '数据源Id', + 'type' => 'array', + 'items' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'string', 'required' => false, 'example' => '1'], + 'required' => false, ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'DataSourceScopeList' => [ + 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', + 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', + 'type' => 'array', + 'items' => ['title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', 'type' => 'string', 'required' => false, 'example' => 'ALL'], + 'required' => false, ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', + 'DataSourceTypeList' => [ + 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', + 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', + 'type' => 'array', + 'items' => ['title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], + 'required' => false, ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', + 'ErrorRuleStrengthList' => [ + 'title' => '规则异常类型:STRONG 强、WEAK 弱', + 'description' => '规则异常类型:STRONG 强、WEAK 弱', + 'type' => 'array', + 'items' => ['title' => '规则异常类型:STRONG 强、WEAK 弱', 'description' => '规则异常类型:STRONG 强、WEAK 弱', 'type' => 'string', 'required' => false, 'example' => 'STRONG'], + 'required' => false, ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'TableTypeList' => [ + 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', + 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', + 'type' => 'array', + 'items' => ['title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => false, 'example' => 'LOGIC_DIM_TABLE'], + 'required' => false, ], - 'Data' => [ - 'title' => '删除调度个数', - 'description' => '删除调度个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', + 'ProjectNameList' => [ + 'title' => '所属项目名称', + 'description' => '所属项目名称', + 'type' => 'array', + 'items' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'BizUnitNameList' => [ + 'title' => '所属板块名称', + 'description' => '所属板块名称', + 'type' => 'array', + 'items' => ['title' => '所属板块名称', 'description' => '所属板块名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'CurrentUserOwned' => ['title' => '我负责的监控任务对象', 'description' => '我负责的监控任务对象', 'type' => 'boolean', 'required' => false], + 'QualityOwnerList' => [ + 'title' => '质量负责人', + 'description' => '质量负责人', + 'type' => 'array', + 'items' => ['title' => '质量负责人', 'description' => '质量负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, + ], + 'StatusList' => [ + 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'type' => 'array', + 'items' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, + ], + 'BizDate' => ['title' => '业务日期过滤', 'description' => '业务日期过滤', 'type' => 'string', 'required' => false, 'example' => '2025-06-30'], + 'Keyword' => ['title' => '搜索关键词: 监控表名称', 'description' => '搜索关键词: 监控表名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'DataSourceOwnerList' => [ + 'title' => '数据源负责人', + 'description' => '数据源负责人', + 'type' => 'array', + 'items' => ['title' => '数据源负责人', 'description' => '数据源负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, + ], + 'TableOwnerList' => [ + 'title' => '表负责人', + 'description' => '表负责人', + 'type' => 'array', + 'items' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, ], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], + 'required' => false, ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量删除质量调度对象', - ], - 'DeleteQualityRules' => [ - 'summary' => '批量删除质量规则对象。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'DeleteCommand', - 'in' => 'formData', - 'style' => 'json', + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RuleIdList' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'array', - 'items' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'QualityWatchTaskList' => [ + 'title' => '分页质量模板列表', + 'description' => '分页质量模板列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '监控任务ID', 'description' => '监控任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'StartTime' => ['title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 08:00:00'], + 'EndTime' => ['title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2025-06-30 20:00:00'], + 'QualityOwner' => ['title' => '质量负责人用户ID', 'description' => '质量负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'QualityOwnerName' => ['title' => '质量负责人名称', 'description' => '质量负责人名称', 'type' => 'string', 'example' => 'test'], + 'RuleCountInfo' => [ + 'title' => '质量规则计数', + 'description' => '质量规则计数', + 'type' => 'object', + 'properties' => [ + 'ValidateRuleCount' => [ + 'title' => '校验规则技术', + 'description' => '校验规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + 'StrongRuleCount' => [ + 'title' => '强规则技术', + 'description' => '强规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + 'WeakRuleCount' => [ + 'title' => '弱规则技术', + 'description' => '弱规则技术', + 'type' => 'object', + 'properties' => [ + 'TotalRuleCount' => ['title' => '总规则数', 'description' => '总规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'FinishedRuleCount' => ['title' => '执行完成规则数', 'description' => '执行完成规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ErrorRuleCount' => ['title' => '执行失败规则数', 'description' => '执行失败规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'], + 'SuccessRuleCount' => ['title' => '执行成功规则数', 'description' => '执行成功规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + ], + ], + 'RuleIdList' => [ + 'title' => '质量规则Id', + 'description' => '质量规则Id', + 'type' => 'array', + 'items' => ['title' => '质量规则Id', 'description' => '质量规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], + ], + 'Status' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'example' => 'RUNNING'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'BizDateFormat' => ['title' => '业务日期格式', 'description' => '业务日期格式', 'type' => 'string', 'example' => 'yyyy-MM-dd'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + ], + ], + ], ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除规则个数', - 'description' => '删除规则个数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', ], ], ], @@ -47193,245 +28575,156 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityWatchTaskList\\": [\\n {\\n \\"Id\\": 1,\\n \\"WatchId\\": 1,\\n \\"StartTime\\": \\"2025-06-30 08:00:00\\",\\n \\"EndTime\\": \\"2025-06-30 20:00:00\\",\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"RuleCountInfo\\": {\\n \\"ValidateRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"StrongRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n },\\n \\"WeakRuleCount\\": {\\n \\"TotalRuleCount\\": 1,\\n \\"FinishedRuleCount\\": 1,\\n \\"ErrorRuleCount\\": 0,\\n \\"SuccessRuleCount\\": 1\\n }\\n },\\n \\"RuleIdList\\": [\\n 2\\n ],\\n \\"Status\\": \\"RUNNING\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"BizDateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询质量监控任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '批量删除质量规则对象', + 'ramActions' => [], ], - 'AssignQualityRuleOfAllRuleScopeSchedules' => [ - 'summary' => '指定质量规则和调度设置进行绑定。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListQualityWatches' => [ + 'summary' => '分页查询质量监控对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AssignCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分派绑定指令', - 'description' => '分派绑定指令', + 'title' => '分页查询条件', + 'description' => '分页查询条件', 'type' => 'object', 'properties' => [ - 'WatchId' => [ - 'title' => '监控对象ID', - 'description' => '监控对象ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '平均值', + 'WatchTypeList' => [ + 'title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', + 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', + 'type' => 'array', + 'items' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => false, 'example' => 'TABLE'], + 'required' => false, ], - 'RuleIdList' => [ - 'title' => '规则ID', - 'description' => '规则ID', + 'StatusList' => [ + 'title' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', + 'description' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'array', - 'items' => [ - 'title' => '规则ID', - 'description' => '规则ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '11', - ], - 'required' => true, + 'items' => ['title' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', 'description' => '监控对象生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'required' => false, 'example' => 'ENABLE'], + 'required' => false, ], - 'ScheduleIdList' => [ - 'title' => '调度ID', - 'description' => '调度ID', + 'LatestWatchTaskStatusList' => [ + 'title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', + 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'array', - 'items' => [ - 'title' => '调度ID', - 'description' => '调度ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '22', - ], - 'required' => true, + 'items' => ['title' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'description' => '任务状态: NOT_RUN 未执行、WAITING 等待中、RUNNING 执行中、SUCCESS 执行成功、FAILED 执行失败、CANCEL 取消、TIMEOUT 超时、OFFLINE 离线', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'], + 'required' => false, ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', + 'CurrentUserOwned' => ['title' => '是否当前用户负责的监控对象', 'description' => '是否当前用户负责的监控对象', 'type' => 'boolean', 'required' => false], + 'QualityOwnerList' => [ + 'title' => '质量负责人', + 'description' => '质量负责人', + 'type' => 'array', + 'items' => ['title' => '质量负责人', 'description' => '质量负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', + 'TableOwnerList' => [ + 'title' => '表负责人', + 'description' => '表负责人', + 'type' => 'array', + 'items' => ['title' => '表负责人', 'description' => '表负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', + 'TableTypeList' => [ + 'title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', + 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', + 'type' => 'array', + 'items' => ['title' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '表类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => false, 'example' => 'LOGIC_DIM_TABLE'], + 'required' => false, ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', + 'DataSourceIdList' => [ + 'title' => '数据源Id', + 'description' => '数据源Id', + 'type' => 'array', + 'items' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'required' => false, ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'DataSourceTypeList' => [ + 'title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', + 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', + 'type' => 'array', + 'items' => ['title' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', 'description' => '数据源类型: MAX_COMPUTE、HADOOP、MYSQL等', 'type' => 'string', 'required' => false, 'example' => 'MAX_COMPUTE'], + 'required' => false, ], - 'Data' => [ - 'title' => '请求结果', - 'description' => '请求结果', - 'type' => 'boolean', + 'BizUnitNameList' => [ + 'title' => '所属板块名称', + 'description' => '所属板块名称', + 'type' => 'array', + 'items' => ['title' => '所属板块名称', 'description' => '所属板块名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '指定质量规则和调度设置进行绑定', - ], - 'UpdateSecurityLevel' => [ - 'summary' => '更新数据分级。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', + 'ProjectNameList' => [ + 'title' => '所属项目名称', + 'description' => '所属项目名称', + 'type' => 'array', + 'items' => ['title' => '所属项目名称', 'description' => '所属项目名称', 'type' => 'string', 'required' => false, 'example' => 'test'], 'required' => false, - 'example' => 'test', ], - 'Index' => [ - 'title' => '分级顺序, 不传递时将按照分级名称匹配', - 'description' => '分级顺序, 不传递时将按照分级名称匹配', - 'type' => 'integer', - 'format' => 'int64', + 'DataSourceScopeList' => [ + 'title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', + 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', + 'type' => 'array', + 'items' => ['title' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', 'description' => '数据源用途: STREAMING 仅实时、OFFLINE 仅离线、ALL 实时和离线', 'type' => 'string', 'required' => false, 'example' => 'ALL'], 'required' => false, - 'example' => '1', ], - 'Description' => [ - 'title' => '分级描述', - 'description' => '分级描述', - 'type' => 'string', + 'DataSourceOwnerList' => [ + 'title' => '数据源负责人', + 'description' => '数据源负责人', + 'type' => 'array', + 'items' => ['title' => '数据源负责人', 'description' => '数据源负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], 'required' => false, - 'example' => 'test', ], - ], - 'required' => true, - ], - ], + 'IndexOwnerList' => [ + 'title' => '指标负责人', + 'description' => '指标负责人', + 'type' => 'array', + 'items' => ['title' => '指标负责人', 'description' => '指标负责人', 'type' => 'string', 'required' => false, 'example' => '30001011'], + 'required' => false, + ], + 'IndexComputeTypeList' => [ + 'title' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', + 'description' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', + 'type' => 'array', + 'items' => ['title' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', 'description' => '指标计算类型: AUTO 自动化编码方式、CUSTOM 专家编码方式、MOUNT 外部表注册的方式、COMBINE 衍生指标专用', 'type' => 'string', 'required' => false, 'example' => 'AUTO'], + 'required' => false, + ], + 'Keyword' => ['title' => '搜索关键词: 监控表名称', 'description' => '搜索关键词: 监控表名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + 'required' => false, + ], + ], ], 'responses' => [ 200 => [ @@ -47440,35 +28733,109 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'QualityWatchList' => [ + 'title' => '分页质量告警列表', + 'description' => '分页质量告警列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表,DATASOURCE 数据源,INDEX 指标,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'TABLE'], + 'Id' => ['title' => '监控Id', 'description' => '监控Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Name' => ['title' => '监控名称', 'description' => '监控名称', 'type' => 'string', 'example' => 'test'], + 'Status' => ['title' => '状态:ENABLE,DISABLE', 'description' => '状态:ENABLE,DISABLE', 'type' => 'string', 'example' => 'ENABLE'], + 'DataSourceInfo' => [ + 'title' => '数据源详情', + 'description' => '数据源详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'string', 'example' => '1'], + 'Name' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => '1'], + 'Type' => ['title' => '数据源类型: MAX_COMPUTE、HADOOP', 'description' => '数据源类型: MAX_COMPUTE、HADOOP', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Env' => ['title' => '环境标识:PROD、DEV', 'description' => '环境标识:PROD、DEV', 'type' => 'string', 'example' => 'DEV'], + ], + ], + 'TableInfo' => [ + 'title' => '监控表对象', + 'description' => '监控表对象', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'description' => '类型:LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'example' => 'LOGIC_DIM_TABLE'], + 'Catalog' => ['title' => '表catalog', 'description' => '表catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '表Id', 'description' => '表Id', 'type' => 'string', 'example' => 'test'], + 'Name' => ['title' => '表名称', 'description' => '表名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'Env' => ['title' => '环境标识:DEV、PROD', 'description' => '环境标识:DEV、PROD', 'type' => 'string', 'example' => 'DEV'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'DataSourceType' => ['title' => '数据源类型', 'description' => '数据源类型', 'type' => 'string', 'example' => 'MAX_COMPUTE'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'string', 'example' => '22'], + 'IsPartitionTable' => ['title' => '是否分区表', 'description' => '是否分区表', 'type' => 'boolean'], + ], + ], + 'IndexInfo' => [ + 'title' => '指标详情', + 'description' => '指标详情', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'Catalog' => ['title' => '指标catalog', 'description' => '指标catalog', 'type' => 'string', 'example' => 'test'], + 'Id' => ['title' => '指标Id:', 'description' => '指标Id:', 'type' => 'string', 'example' => '11'], + 'Guid' => ['title' => '指标guid:', 'description' => '指标guid:', 'type' => 'string', 'example' => '1121'], + 'Name' => ['title' => '指标名:', 'description' => '指标名:', 'type' => 'string', 'example' => 'logic'], + 'DisplayName' => ['title' => '指标展示名:', 'description' => '指标展示名:', 'type' => 'string', 'example' => 'logic'], + 'GranularityId' => ['title' => '统计粒度id', 'description' => '统计粒度id', 'type' => 'integer', 'format' => 'int64', 'example' => '18755764'], + 'GranularityDisplayName' => ['title' => '统计粒度名称', 'description' => '统计粒度名称', 'type' => 'string', 'example' => '全站汇总表'], + 'ComputeType' => ['title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'type' => 'string', 'example' => 'AUTO'], + 'CellSumLogicTableName' => ['title' => '单元汇总表名', 'description' => '单元汇总表名', 'type' => 'string', 'example' => 'dws_all'], + 'Type' => ['title' => '指标类型:INDEX', 'description' => '指标类型:INDEX', 'type' => 'string', 'example' => 'INDEX'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1121'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'Owner' => ['title' => '负责人用户ID', 'description' => '负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'OwnerName' => ['title' => '负责人用户名称', 'description' => '负责人用户名称', 'type' => 'string', 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'DateType' => ['title' => '指标数据类型', 'description' => '指标数据类型', 'type' => 'string', 'example' => 'bigint'], + ], + ], + 'QualityOwner' => ['title' => '质量负责人用户ID', 'description' => '质量负责人用户ID', 'type' => 'string', 'example' => '30012011'], + 'QualityOwnerName' => ['title' => '质量负责人显示名称', 'description' => '质量负责人显示名称', 'type' => 'string', 'example' => 'test'], + 'LatestWatchTaskId' => ['title' => '最近一次监控对象校验记录ID', 'description' => '最近一次监控对象校验记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LatestWatchTaskStatus' => ['title' => '最近一次监控对象校验记录状态', 'description' => '最近一次监控对象校验记录状态', 'type' => 'string', 'example' => 'SUCCESS'], + 'RuleCount' => ['title' => '规则数', 'description' => '规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'EnabledRuleCount' => ['title' => '生效规则数', 'description' => '生效规则数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => '30012011'], + 'CreatorName' => ['title' => '创建者名称', 'description' => '创建者名称', 'type' => 'string', 'example' => 'test'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Modifier' => ['title' => '最近修改用户ID', 'description' => '最近修改用户ID', 'type' => 'string', 'example' => '30012011'], + ], + ], + ], + ], ], ], ], @@ -47476,88 +28843,52 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"QualityWatchList\\": [\\n {\\n \\"Type\\": \\"TABLE\\",\\n \\"Id\\": 11,\\n \\"Name\\": \\"test\\",\\n \\"Status\\": \\"ENABLE\\",\\n \\"DataSourceInfo\\": {\\n \\"Id\\": \\"1\\",\\n \\"Name\\": \\"1\\",\\n \\"Type\\": \\"MAX_COMPUTE\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"TableInfo\\": {\\n \\"Type\\": \\"LOGIC_DIM_TABLE\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"test\\",\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Env\\": \\"DEV\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"DataSourceId\\": \\"22\\",\\n \\"IsPartitionTable\\": true\\n },\\n \\"IndexInfo\\": {\\n \\"ProjectId\\": 1121,\\n \\"ProjectName\\": \\"test\\",\\n \\"Catalog\\": \\"test\\",\\n \\"Id\\": \\"11\\",\\n \\"Guid\\": \\"1121\\",\\n \\"Name\\": \\"logic\\",\\n \\"DisplayName\\": \\"logic\\",\\n \\"GranularityId\\": 18755764,\\n \\"GranularityDisplayName\\": \\"全站汇总表\\",\\n \\"ComputeType\\": \\"AUTO\\",\\n \\"CellSumLogicTableName\\": \\"dws_all\\",\\n \\"Type\\": \\"INDEX\\",\\n \\"BizUnitId\\": 1121,\\n \\"BizUnitName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"DateType\\": \\"bigint\\"\\n },\\n \\"QualityOwner\\": \\"30012011\\",\\n \\"QualityOwnerName\\": \\"test\\",\\n \\"LatestWatchTaskId\\": 1,\\n \\"LatestWatchTaskStatus\\": \\"SUCCESS\\",\\n \\"RuleCount\\": 11,\\n \\"EnabledRuleCount\\": 1,\\n \\"Creator\\": \\"30012011\\",\\n \\"CreatorName\\": \\"test\\",\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Modifier\\": \\"30012011\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询质量监控对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '更新数据分级', + 'ramActions' => [], ], - 'UpdateSecurityIdentifyResultStatus' => [ - 'summary' => '更新安全识别结果的生效状态。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListResourcePermissionOperationLog' => [ + 'summary' => '分页获取权限操作列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => '分页请求', + 'description' => '分页请求', 'type' => 'object', 'properties' => [ - 'Enable' => [ - 'title' => '是否生效', - 'description' => '是否生效', - 'type' => 'boolean', - 'required' => true, - ], - 'IdentifyResultIdList' => [ - 'title' => '识别结果ID列表', - 'description' => '识别结果ID列表', - 'type' => 'array', - 'items' => [ - 'title' => '识别结果ID列表', - 'description' => '识别结果ID列表', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'required' => true, - ], + 'TabType' => ['title' => 'TAB名称:表:TABLE;数据源:DATASOURCE', 'description' => 'TAB名称:表:TABLE;数据源:DATASOURCE', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'SearchText' => ['title' => '搜索关键词', 'description' => '搜索关键词', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], 'required' => true, ], @@ -47566,44 +28897,132 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '更新结果', - 'description' => '更新结果', - 'type' => 'boolean', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '121'], + 'Data' => [ + 'title' => '分页记录', + 'description' => '分页记录', + 'type' => 'array', + 'items' => [ + 'title' => '操作日志', + 'description' => '操作日志', + 'type' => 'object', + 'properties' => [ + 'OperateId' => ['title' => '操作Id', 'description' => '操作Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123133'], + 'OperateType' => ['title' => '操作类型: 申请:APPLY;授权:GRANT', 'description' => '操作类型:'."\n" + .'- APPLY 申请'."\n" + .'- GRANT 授权', 'type' => 'string', 'example' => 'APPLY'], + 'ResourceInfo' => [ + 'title' => '权限资源', + 'description' => '权限资源', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '权限资源ID', 'description' => '权限资源ID', 'type' => 'string', 'example' => 'a.tb1'], + 'Name' => ['title' => '权限资源名称', 'description' => '权限资源名称', 'type' => 'string', 'example' => 'tb1'], + 'DisplayName' => ['title' => '资源展示名称', 'description' => '资源展示名称', 'type' => 'string', 'example' => 'tb1'], + 'Type' => ['title' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', 'description' => '资源类型'."\n" + .'- PHYSICAL_TABLE:物理表'."\n" + .'- PHYSICAL_VIEW:物理视图'."\n" + .'- LOGICAL_TABLE:事实逻辑表'."\n" + .'- LOGICAL_VIEW:事实逻辑视图'."\n" + .'- REALTIME_LOGICAL_TABLE:实时元表'."\n" + .'- REALTIME_MIRROR_TABLE:实时元表'."\n" + .'- DATASOURCE:数据源', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'Env' => ['title' => '资源环境类型 开发:DEV;生产:PROD', 'description' => '资源环境'."\n" + .'- DEV'."\n" + .'- PROD', 'type' => 'string', 'example' => 'DEV'], + 'BizUnitInfo' => [ + 'title' => '业务板块', + 'description' => '业务板块', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Id', 'description' => 'Id', 'type' => 'string', 'example' => '121323'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'xx'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'xx'], + 'Env' => ['title' => '环境标识 开发:DEV;生产:PROD', 'description' => '环境标识 '."\n" + .'- DEV'."\n" + .'- PROD', 'type' => 'string', 'example' => 'DEV'], + ], + ], + 'ProjectInfo' => [ + 'title' => '项目', + 'description' => '项目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1123131'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'xx'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'xx'], + 'Env' => ['title' => '环境标识 开发:DEV;生产:PROD', 'description' => '环境标识 '."\n" + .'- DEV'."\n" + .'- PROD', 'type' => 'string', 'example' => 'DEV'], + ], + ], + ], + ], + 'Account' => [ + 'title' => '操作人', + 'description' => '操作人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '账号ID'."\n" + .'- 个人账号:Dataphin侧userId'."\n" + .'- 生产账号:UserId,通过GetProjectProduceUser接口获取'."\n" + .'- 用户组:用户组Id,通过ListUserGroup接口获取', 'type' => 'string', 'example' => '1212131'], + 'Name' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '账号名称', 'type' => 'string', 'example' => 'xx'], + 'Type' => ['title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', 'description' => '授权账号类型'."\n" + .'- PERSONAL:个人账号'."\n" + .'- PRODUCE:生产账号'."\n" + .'- USER_GROUP:用户组', 'type' => 'string', 'example' => 'PERSONAL'], + ], + ], + 'TargetAccount' => [ + 'title' => '被授权对象', + 'description' => '被授权对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '账号ID', 'type' => 'string', 'example' => '1212131'], + 'Name' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '账号名称', 'type' => 'string', 'example' => 'xx'], + 'Type' => ['title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', 'description' => '授权账号类型', 'type' => 'string', 'example' => 'PERSONAL'], + ], + ], + 'Reason' => ['title' => '原因', 'description' => '原因', 'type' => 'string', 'example' => 'xx测试'], + 'OperateTime' => ['title' => '操作时间', 'description' => '操作时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1710012121000'], + 'Period' => [ + 'title' => '有效期设置', + 'description' => '有效期设置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '有效期类型'."\n" + .'自定义:CUSTOM;长期:LONG_TERM', 'description' => '有效期类型'."\n" + .'- CUSTOM:自定义'."\n" + .'- LONG_TERM:长期有效'."\n" + .'- DAYS_30:30天有效'."\n" + .'- DAYS_90:90天有效'."\n" + .'- DAYS_180:180天有效', 'type' => 'string', 'example' => 'CUSTOM'], + 'EndTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '1712000000000'], + ], + ], + 'AuthScope' => ['title' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', 'description' => '表的授权范围'."\n" + .'- selectTable:指定表'."\n" + .'- projectAllTable:项目下所有表'."\n" + .'- bizUnitAllLogicTable:板块下所有逻辑表', 'type' => 'string', 'example' => 'selectTable'], + ], + ], + ], + ], ], ], ], @@ -47611,109 +29030,69 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"OperateId\\": 123133,\\n \\"OperateType\\": \\"APPLY\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": \\"a.tb1\\",\\n \\"Name\\": \\"tb1\\",\\n \\"DisplayName\\": \\"tb1\\",\\n \\"Type\\": \\"PHYSICAL_TABLE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": \\"121323\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"ProjectInfo\\": {\\n \\"Id\\": 1123131,\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n }\\n },\\n \\"Account\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"TargetAccount\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"Reason\\": \\"xx测试\\",\\n \\"OperateTime\\": 1710012121000,\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n },\\n \\"AuthScope\\": \\"selectTable\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页获取权限操作日志', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '更新安全识别结果的生效状态', - ], - 'UpdateSecurityClassifyCatalog' => [ - 'summary' => '更新数据分类目录。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListResourcePermissionOperationLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListResourcePermissions' => [ + 'summary' => '分页获取权限授权记录。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => '分页请求', + 'description' => '分页请求', 'type' => 'object', 'properties' => [ - 'Path' => [ - 'title' => '目录的原始完整路径', - 'description' => '目录的原始完整路径', - 'type' => 'string', - 'required' => true, - 'example' => '/d1/d2/', - ], - 'Name' => [ - 'title' => '分类目录名称', - 'description' => '分类目录名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'ParentPath' => [ - 'title' => '分类父目录完整路径,默认/', - 'description' => '分类父目录完整路径,默认/', - 'type' => 'string', - 'required' => false, - 'example' => '/d1/', - ], - 'OwnerList' => [ - 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'type' => 'array', - 'items' => [ - 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'VisibleType' => [ - 'title' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', - 'description' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', - 'type' => 'string', - 'required' => false, - 'example' => 'PUBLIC', - ], + 'TabType' => ['title' => 'TAB名称:表:TABLE;数据源:DATASOURCE', 'description' => 'TAB名称:表:TABLE;数据源:DATASOURCE', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'SearchText' => ['title' => '搜索关键词', 'description' => '搜索关键词', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], 'required' => true, ], @@ -47722,321 +29101,115 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '更新后的目录的完整路径', - 'description' => '更新后的目录的完整路径', - 'type' => 'string', - 'example' => '/d1/d3/', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"/d1/d3/\\"\\n}","type":"json"}]', - 'title' => '更新数据分类目录', - ], - 'UpdateSecurityClassify' => [ - 'summary' => '更新数据分类。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'UpdateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '分类ID,不传递时按照分类名称+分类父路径匹配分类进行更新', - 'description' => '分类ID,不传递时按照分类名称+分类父路径匹配分类进行更新', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Name' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ParentPath' => [ - 'title' => '分类父路径', - 'description' => '分类父路径', - 'type' => 'string', - 'required' => false, - 'example' => '/a/b/', - ], - 'Abbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Description' => [ - 'title' => '分类描述', - 'description' => '分类描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'LevelName' => [ - 'title' => '数据分级名称', - 'description' => '数据分级名称', - 'type' => 'string', - 'required' => true, - 'example' => 'L2', - ], - 'FeatureNameList' => [ - 'title' => '特征名称', - 'description' => '特征名称', - 'type' => 'array', - 'items' => [ - 'title' => '特征名称', - 'description' => '特征名称', - 'type' => 'string', - 'required' => false, - 'example' => '行业', - ], - 'required' => false, - ], - 'Priority' => [ - 'title' => '优先级,默认: 5', - 'description' => '优先级,默认: 5', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], - 'AdvancedConditionList' => [ - 'title' => '高级配置', - 'description' => '高级配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'ParentId' => [ - 'title' => '特征条件父节点', - 'description' => '特征条件父节点', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - 'Id' => [ - 'title' => '特征条件节点id,由业务随机生成且确保唯一', - 'description' => '特征条件节点id,由业务随机生成且确保唯一', - 'type' => 'string', - 'required' => true, - 'example' => '234', - ], - 'Relation' => [ - 'title' => '条件关系: EXPRESSION 表达式、RELATION 关系', - 'description' => '条件关系: EXPRESSION 表达式、RELATION 关系', - 'type' => 'string', - 'required' => true, - 'example' => 'EXPRESSION', - ], - 'Property' => [ - 'title' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', - 'description' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', - 'type' => 'string', - 'required' => false, - 'example' => 'TABLE_NAME', - ], - 'Operate' => [ - 'title' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', - 'description' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', - 'type' => 'string', - 'required' => true, - 'example' => 'AND', - ], - 'ValueList' => [ - 'title' => '条件取值', - 'description' => '条件取值', - 'type' => 'array', - 'items' => [ - 'title' => '条件取值', - 'description' => '条件取值', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - 'required' => false, - ], - 'OptionList' => [ - 'title' => '额外属性,如字段内容', - 'description' => '额外属性,如字段内容', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '121'], + 'Data' => [ + 'title' => '分页列表', + 'description' => '分页列表', + 'type' => 'array', + 'items' => [ + 'title' => '资源权限明细', + 'description' => '资源权限明细', + 'type' => 'object', + 'properties' => [ + 'RecordId' => ['title' => '记录ID', 'description' => '记录ID', 'type' => 'string', 'example' => '12123111'], + 'ResourceInfo' => [ + 'title' => '权限资源', + 'description' => '权限资源', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '权限资源ID', 'description' => '权限资源ID', 'type' => 'string', 'example' => 'a.tb1'], + 'Name' => ['title' => '权限资源名称', 'description' => '权限资源名称', 'type' => 'string', 'example' => 'tb1'], + 'DisplayName' => ['title' => '资源展示名称', 'description' => '资源展示名称', 'type' => 'string', 'example' => 'tb1'], + 'Type' => ['title' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', 'description' => '资源类型 PHYSICAL_TABLE,PHYSICAL_VIEW,LOGICAL_TABLE,LOGICAL_VIEW,REALTIME_LOGICAL_TABLE,REALTIME_MIRROR_TABLE,DATASOURCE', 'type' => 'string', 'example' => 'PHYSICAL_TABLE'], + 'Env' => ['title' => '资源环境类型 开发:DEV;生产:PROD', 'description' => '资源环境类型 开发:DEV;生产:PROD', 'type' => 'string', 'example' => 'DEV'], + 'BizUnitInfo' => [ + 'title' => '业务板块', + 'description' => '业务板块', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => 'Id', 'description' => 'Id', 'type' => 'string', 'example' => '121323'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'xx'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'xx'], + 'Env' => ['title' => '环境标识 开发:DEV;生产:PROD', 'description' => '环境标识 开发:DEV;生产:PROD', 'type' => 'string', 'example' => 'DEV'], + ], + ], + 'ProjectInfo' => [ + 'title' => '项目', + 'description' => '项目', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1123131'], + 'Name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => 'xx'], + 'DisplayName' => ['title' => '展示名', 'description' => '展示名', 'type' => 'string', 'example' => 'xx'], + 'Env' => ['title' => '环境标识 开发:DEV;生产:PROD', 'description' => '环境标识 开发:DEV;生产:PROD', 'type' => 'string', 'example' => 'DEV'], + ], + ], ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', + ], + 'TargetAccount' => [ + 'title' => '被授权对象', + 'description' => '被授权对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'type' => 'string', 'example' => '1212131'], + 'Name' => ['title' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'description' => '个人账号:Dataphin侧userId;生产账号:UserId(通过GetProjectProduceUser接口获取),用户组:用户组Id(通过ListUserGroup接口获取)', 'type' => 'string', 'example' => 'xx'], + 'Type' => ['title' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', 'description' => '授权账号类型:PERSONAL(个人账号),PRODUCE(生产账号),USER_GROUP(用户组)', 'type' => 'string', 'example' => 'PERSONAL'], + ], + ], + 'Period' => [ + 'title' => '有效期设置', + 'description' => '有效期设置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '有效期类型'."\n" + .'自定义:CUSTOM;长期:LONG_TERM', 'description' => '有效期类型'."\n" + .'自定义:CUSTOM;长期:LONG_TERM', 'type' => 'string', 'example' => 'CUSTOM'], + 'EndTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '1712000000000'], + ], + ], + 'AuthScope' => ['title' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', 'description' => '表的授权范围 制定表:selectTable 项目下所有表:projectAllTable,板块下所有逻辑表:bizUnitAllLogicTable', 'type' => 'string', 'example' => 'selectTable'], + 'PermissionPeriodList' => [ + 'title' => '不同权限类型有效期列表', + 'description' => '不同权限类型有效期列表', + 'type' => 'array', + 'items' => [ + 'title' => '权限有效期', + 'description' => '权限有效期', + 'type' => 'object', + 'properties' => [ + 'PermissionType' => ['title' => '权限类型', 'description' => '权限类型', 'type' => 'string', 'example' => 'SELECT'], + 'Period' => [ + 'title' => '有效期设置', + 'description' => '有效期设置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '有效期类型'."\n" + .'自定义:CUSTOM;长期:LONG_TERM', 'description' => '有效期类型'."\n" + .'自定义:CUSTOM;长期:LONG_TERM', 'type' => 'string', 'example' => 'CUSTOM'], + 'EndTime' => ['title' => '到期时间', 'description' => '到期时间', 'type' => 'string', 'example' => '1712000000000'], + ], + ], + ], ], ], - 'required' => false, ], - 'required' => false, ], ], - 'required' => false, ], - 'required' => false, - ], - 'Status' => [ - 'title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'required' => false, - 'example' => 'ENABLE', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '数据分类ID', - 'description' => '数据分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', ], ], ], @@ -48044,451 +29217,239 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"RecordId\\": \\"12123111\\",\\n \\"ResourceInfo\\": {\\n \\"Id\\": \\"a.tb1\\",\\n \\"Name\\": \\"tb1\\",\\n \\"DisplayName\\": \\"tb1\\",\\n \\"Type\\": \\"PHYSICAL_TABLE\\",\\n \\"Env\\": \\"DEV\\",\\n \\"BizUnitInfo\\": {\\n \\"Id\\": \\"121323\\",\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n },\\n \\"ProjectInfo\\": {\\n \\"Id\\": 1123131,\\n \\"Name\\": \\"xx\\",\\n \\"DisplayName\\": \\"xx\\",\\n \\"Env\\": \\"DEV\\"\\n }\\n },\\n \\"TargetAccount\\": {\\n \\"Id\\": \\"1212131\\",\\n \\"Name\\": \\"xx\\",\\n \\"Type\\": \\"PERSONAL\\"\\n },\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n },\\n \\"AuthScope\\": \\"selectTable\\",\\n \\"PermissionPeriodList\\": [\\n {\\n \\"PermissionType\\": \\"SELECT\\",\\n \\"Period\\": {\\n \\"Type\\": \\"CUSTOM\\",\\n \\"EndTime\\": \\"1712000000000\\"\\n }\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页获取权限授权记录', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '更新数据分类', - ], - 'ListSecurityIdentifyResults' => [ - 'summary' => '分页查询安全识别结果。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListResourcePermissions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListRowPermission' => [ + 'summary' => '分页查询行级权限。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'PageRowPermissionQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'ClassifyId' => [ - 'title' => '数据分类Id', - 'description' => '数据分类Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Env' => [ - 'title' => '所属数据源/项目/板块环境标识', - 'description' => '所属数据源/项目/板块环境标识', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'BizUnitNameList' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'array', - 'items' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'ProjectNameList' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'array', - 'items' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'DatasourceNameList' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'array', - 'items' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'required' => false, - ], - 'Status' => [ - 'title' => '生效状态筛选: ENABLE 开启、DISABLE 关闭', - 'description' => '生效状态筛选: ENABLE 开启、DISABLE 关闭', - 'type' => 'string', - 'required' => false, - 'example' => 'ENABLE', - ], - 'IsLocked' => [ - 'title' => '是否已锁定', - 'description' => '是否已锁定', - 'type' => 'boolean', - 'required' => false, - ], - 'Keyword' => [ - 'title' => '搜索词筛选: 支持按表catalog、表名、表中文名、字段名匹配', - 'description' => '搜索词筛选: 支持按表catalog、表名、表中文名、字段名匹配', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => '业务'], + 'PageNum' => ['title' => '分页页码', 'description' => '分页页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['description' => '分页条数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'SecurityIdentifyResultList' => [ - 'title' => '分页识别结果列表', - 'description' => '分页识别结果列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'Data' => [ + 'description' => '查询结果', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '识别结果ID', - 'description' => '识别结果ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ScanTaskId' => [ - 'title' => '扫描任务ID', - 'description' => '扫描任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'TableTaskId' => [ - 'title' => '识别表任务ID', - 'description' => '识别表任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'ClassifyId' => [ - 'title' => '分类ID', - 'description' => '分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '33', - ], - 'ClassifyName' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ClassifyAbbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelIndex' => [ - 'title' => '分级等级', - 'description' => '分级等级', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LevelName' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelAbbreviation' => [ - 'title' => '分级简短名称', - 'description' => '分级简短名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelColor' => [ - 'title' => '分级颜色', - 'description' => '分级颜色', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BizUnitId' => [ - 'title' => '业务板块ID', - 'description' => '业务板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'LD_test', - ], - 'BizUnitDisplayName' => [ - 'title' => '业务板块中文名称', - 'description' => '业务板块中文名称', - 'type' => 'string', - 'example' => 'LD_test', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectDisplayName' => [ - 'title' => '项目中文名称', - 'description' => '项目中文名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101121', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'ds1', - ], - 'TableEnv' => [ - 'title' => '表环境', - 'description' => '表环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'TableType' => [ - 'title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'type' => 'string', - 'example' => 'LOGIC_TABLE', - ], - 'TableCatalog' => [ - 'title' => '表Catalog', - 'description' => '表Catalog', - 'type' => 'string', - 'example' => 'testdb', - ], - 'TableId' => [ - 'title' => '表ID', - 'description' => '表ID', - 'type' => 'string', - 'example' => '1', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_test', - ], - 'TableDescription' => [ - 'title' => '表描述', - 'description' => '表描述', - 'type' => 'string', - 'example' => 'test', - ], - 'FieldId' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => 't_test.col1', - ], - 'FieldName' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'example' => 'col1', - ], - 'FieldDescription' => [ - 'title' => '字段描述', - 'description' => '字段描述', - 'type' => 'string', - 'example' => 'test', - ], - 'IsCustomIdentify' => [ - 'title' => '是否是自定义打标规则', - 'description' => '是否是自定义打标规则', - 'type' => 'boolean', - ], - 'IsLocked' => [ - 'title' => '是否已锁定', - 'description' => '是否已锁定', - 'type' => 'boolean', - ], - 'HasBetterRule' => [ - 'title' => '是否存在更匹配的结果', - 'description' => '是否存在更匹配的结果', - 'type' => 'boolean', - ], - 'IdentifyRecordId' => [ - 'title' => '识别记录ID', - 'description' => '识别记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '99', - ], - 'Status' => [ - 'title' => '状态: ENABLE 启用、DISABLE 禁用', - 'description' => '状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'Creator' => [ - 'title' => '创建人', - 'description' => '创建人', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 10:30:30', + 'RowPermissionId' => ['title' => '行级权限ID', 'description' => '行级权限ID', 'type' => 'integer', 'format' => 'int64', 'example' => '30008888'], + 'RowPermissionDesc' => ['title' => '行级权限描述', 'description' => '行级权限描述', 'type' => 'string', 'example' => '管控业务数据'], + 'RowPermissionName' => ['title' => '行级权限名称', 'description' => '行级权限名称', 'type' => 'string', 'example' => '业务管控'], + 'MappingColumns' => [ + 'title' => '映射字段', + 'description' => '映射字段', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'example' => 'business_id'], + 'ColumnType' => [ + 'title' => '映射字段类型', + 'description' => '映射字段类型', + 'type' => 'string', + 'example' => 'string', + 'enum' => ['STRING', 'NUMBER'], + ], + 'ColumnDesc' => ['title' => '映射字段描述', 'description' => '映射字段描述', 'type' => 'string', 'example' => '业务ID'], + ], + 'description' => '', + ], ], - 'Modifier' => [ - 'title' => '修改人', - 'description' => '修改人', - 'type' => 'string', - 'example' => '30012011', + 'Rules' => [ + 'title' => '规则', + 'description' => '规则', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '规则Id', 'description' => '规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => '管控ID 100以内数据'], + 'ScopeType' => [ + 'title' => '规则范围类型', + 'description' => '规则范围类型', + 'type' => 'string', + 'example' => 'SELECT_COLUMN', + 'enum' => ['ALL_COLUMN', 'SELECT_COLUMN'], + ], + 'IsDelete' => [ + 'title' => '是否删除', + 'description' => '是否删除', + 'type' => 'boolean', + 'enum' => ['0', '1'], + ], + 'Status' => [ + 'title' => '规则状态', + 'description' => '规则状态', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + 'enum' => ['0', '1'], + ], + 'Expressions' => [ + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'example' => 'business_id'], + 'Values' => [ + 'title' => '表达式操作值', + 'description' => '表达式操作值', + 'type' => 'array', + 'items' => ['description' => '表达式操作值', 'type' => 'string', 'example' => '123'], + ], + 'Type' => [ + 'title' => '表达式类型', + 'description' => '表达式类型', + 'type' => 'string', + 'example' => 'EXPRESSION', + 'enum' => ['EXPRESSION', 'RELATION'], + ], + 'SubConditions' => [ + 'title' => '子表达式', + 'description' => '子表达式', + 'type' => 'array', + 'items' => ['description' => '子表达式,同Expressions', 'type' => 'any', 'example' => '同Expressions'], + ], + 'Operator' => [ + 'title' => '表达式操作符号', + 'description' => '表达式操作符号', + 'type' => 'string', + 'example' => '30008888', + 'enum' => ['EQUAL', 'NOT_EQUAL', 'IN', 'NOT_IN', 'LIKE', 'NOT_LIKE', 'GT', 'LT', 'GE', 'LE', 'OR', 'AND'], + ], + ], + 'description' => '', + ], + ], + 'UserMappingList' => [ + 'title' => '规则绑定账号(list接口中不返回)', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountType' => ['title' => '规则绑定账号类型', 'description' => '规则绑定账号类型', 'type' => 'string', 'example' => 'PERSONAL'], + 'Accounts' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '规则绑定账号ID', 'description' => '规则绑定账号ID', 'type' => 'string', 'example' => '30008888'], + ], + 'description' => '', + ], + 'enumValueTitles' => ['PERSONAL' => 'PERSONAL', 'USER_GROUP' => 'USER_GROUP', 'APPLICATION' => 'APPLICATION', 'PRODUCE' => 'PRODUCE'], + 'enum' => ['PERSONAL', 'PRODUCE', 'USER_GROUP'], + ], + ], + 'description' => '', + ], + ], + ], + 'description' => '', + ], ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 10:30:30', + 'Tables' => [ + 'title' => '相关表', + 'description' => '相关表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'example' => 'business_id'], + 'ResourceId' => ['title' => '表GUID', 'description' => '表GUID', 'type' => 'string', 'example' => 'odps.300199897.project_name.table_name'], + 'ColumnName' => ['title' => '表字段', 'description' => '表字段', 'type' => 'string', 'example' => 'business_id'], + ], + 'description' => '', + ], ], + 'GmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2023-08-23T08:01:44Z'], + 'GmtModified' => ['description' => '更新时间', 'type' => 'string', 'example' => '2025-02-12T02:16:45Z'], + 'Creator' => ['description' => '创建者', 'type' => 'string', 'example' => '30008888'], + 'Modifier' => ['description' => '修改者', 'type' => 'string', 'example' => '30008888'], + 'TenantId' => ['description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '30000001'], ], + 'description' => '', ], ], ], @@ -48499,132 +29460,55 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 10,\\n \\"Data\\": [\\n {\\n \\"RowPermissionId\\": 30008888,\\n \\"RowPermissionDesc\\": \\"管控业务数据\\",\\n \\"RowPermissionName\\": \\"业务管控\\",\\n \\"MappingColumns\\": [\\n {\\n \\"ColumnName\\": \\"business_id\\",\\n \\"ColumnType\\": \\"string\\",\\n \\"ColumnDesc\\": \\"业务ID\\"\\n }\\n ],\\n \\"Rules\\": [\\n {\\n \\"Id\\": 123,\\n \\"RuleName\\": \\"管控ID 100以内数据\\",\\n \\"ScopeType\\": \\"SELECT_COLUMN\\",\\n \\"IsDelete\\": true,\\n \\"Status\\": 1,\\n \\"Expressions\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"Values\\": [\\n \\"123\\"\\n ],\\n \\"Type\\": \\"EXPRESSION\\",\\n \\"SubConditions\\": [\\n \\"同Expressions\\"\\n ],\\n \\"Operator\\": \\"30008888\\"\\n }\\n ],\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"30008888\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"Tables\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"ResourceId\\": \\"odps.300199897.project_name.table_name\\",\\n \\"ColumnName\\": \\"business_id\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2023-08-23T08:01:44Z\\",\\n \\"GmtModified\\": \\"2025-02-12T02:16:45Z\\",\\n \\"Creator\\": \\"30008888\\",\\n \\"Modifier\\": \\"30008888\\",\\n \\"TenantId\\": 30000001\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询行级权限', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"SecurityIdentifyResultList\\": [\\n {\\n \\"Id\\": 1,\\n \\"ScanTaskId\\": 11,\\n \\"TableTaskId\\": 22,\\n \\"ClassifyId\\": 33,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"LevelColor\\": 1,\\n \\"BizUnitId\\": 1,\\n \\"BizUnitName\\": \\"LD_test\\",\\n \\"BizUnitDisplayName\\": \\"LD_test\\",\\n \\"ProjectId\\": 101121,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test\\",\\n \\"DatasourceId\\": 101121,\\n \\"DatasourceName\\": \\"ds1\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"TableCatalog\\": \\"testdb\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"HasBetterRule\\": true,\\n \\"IdentifyRecordId\\": 99,\\n \\"Status\\": \\"ENABLE\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 10:30:30\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifyTime\\": \\"2025-06-30 10:30:30\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询安全识别结果', + 'ramActions' => [], ], - 'ListSecurityIdentifyRecords' => [ - 'summary' => '分页查询安全识别结果的识别记录。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListRowPermissionByUserId' => [ + 'summary' => '分页查询指定用户行级权限。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'ListRowPermissionByUserIdQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'IsDatasourceTable' => [ - 'title' => '是否数据源表, 默认否(视为Dataphin表)', - 'description' => '是否数据源表, 默认否(视为Dataphin表)', - 'type' => 'boolean', - 'required' => false, - ], - 'DatasourceName' => [ - 'title' => '数据源名称,仅数据源表需要填写', - 'description' => '数据源名称,仅数据源表需要填写', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'DatasourceEnv' => [ - 'title' => '数据源环境标识,仅数据源表需要填写', - 'description' => '数据源环境标识,仅数据源表需要填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'TableCatalog' => [ - 'title' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', - 'description' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'required' => true, - 'example' => 't_test', - ], - 'FieldName' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'required' => true, - 'example' => 'col1', - ], - 'Keyword' => [ - 'title' => '搜索词范围: 字段名称', - 'description' => '搜索词范围: 字段名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'Operator' => ['title' => '指定操作人', 'description' => '指定操作人', 'type' => 'string', 'required' => true, 'example' => '30008888'], + 'PageNum' => ['title' => '分页页码', 'description' => '分页页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页大小', 'description' => '分页大小', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], 'required' => true, ], @@ -48633,240 +29517,146 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], 'PageResult' => [ 'title' => '分页查询结果', 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'IdentifyRecordList' => [ - 'title' => '识别记录列表', - 'description' => '识别记录列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '121'], + 'Data' => [ + 'description' => '查询结果', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '识别记录ID', - 'description' => '识别记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'BizUnitId' => [ - 'title' => '业务板块ID', - 'description' => '业务板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'test', - ], - 'BizUnitDisplayName' => [ - 'title' => '业务板块展示名', - 'description' => '业务板块展示名', - 'type' => 'string', - 'example' => 'test_abc', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1001', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectDisplayName' => [ - 'title' => '项目展示名', - 'description' => '项目展示名', - 'type' => 'string', - 'example' => 'test_abc', - ], - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'test', - ], - 'TableEnv' => [ - 'title' => '表环境', - 'description' => '表环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'TableId' => [ - 'title' => '表ID', - 'description' => '表ID', - 'type' => 'string', - 'example' => '1', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_test', - ], - 'TableDescription' => [ - 'title' => '表描述', - 'description' => '表描述', - 'type' => 'string', - 'example' => 'test', - ], - 'TableType' => [ - 'title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'type' => 'string', - 'example' => 'LOGIC_TABLE', - ], - 'FieldId' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => 't_test.col1', - ], - 'FieldName' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'example' => 'col1', - ], - 'FieldDescription' => [ - 'title' => '字段描述', - 'description' => '字段描述', - 'type' => 'string', - 'example' => 'test', - ], - 'ActualIdentifyRate' => [ - 'title' => '实际匹配度', - 'description' => '实际匹配度', - 'type' => 'number', - 'format' => 'double', - 'example' => '0.1', - ], - 'ClassifyId' => [ - 'title' => '分类ID', - 'description' => '分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ClassifyName' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ClassifyAbbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'example' => 'test', - ], - 'ClassifyStatus' => [ - 'title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'LevelIndex' => [ - 'title' => '分级等级', - 'description' => '分级等级', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LevelName' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelAbbreviation' => [ - 'title' => '分级简短名称', - 'description' => '分级简短名称', - 'type' => 'string', - 'example' => 'test', - ], - 'IsCustomIdentify' => [ - 'title' => '是否是自定义打标规则', - 'description' => '是否是自定义打标规则', - 'type' => 'boolean', - ], - 'IsLocked' => [ - 'title' => '是否已锁定', - 'description' => '是否已锁定', - 'type' => 'boolean', - ], - 'IsBetterMatch' => [ - 'title' => '是否更匹配', - 'description' => '是否更匹配', - 'type' => 'boolean', + 'Rules' => [ + 'title' => '规则', + 'description' => '规则', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'example' => '业务管控'], + 'ScopeType' => [ + 'title' => '规则范围类型', + 'description' => '规则范围类型', + 'type' => 'string', + 'example' => 'SELECT_COLUMN', + 'enum' => ['ALL_COLUMN', 'SELECT_COLUMN'], + ], + 'IsDelete' => [ + 'title' => '是否删除', + 'description' => '是否删除', + 'type' => 'boolean', + 'example' => '0', + 'enum' => ['0', '1'], + ], + 'Status' => [ + 'title' => '规则状态', + 'description' => '规则状态', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + 'enum' => ['0', '1'], + ], + 'Expressions' => [ + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'example' => 'business_id'], + 'Values' => [ + 'title' => '表达式操作值', + 'description' => '表达式操作值', + 'type' => 'array', + 'items' => ['description' => '表达式操作值', 'type' => 'string', 'example' => '123'], + ], + 'Type' => [ + 'title' => '表达式类型', + 'description' => '表达式类型', + 'type' => 'string', + 'example' => 'EXPRESSION', + 'enum' => ['EXPRESSION', 'RELATION'], + ], + 'SubConditions' => [ + 'title' => '子表达式', + 'description' => '子表达式', + 'type' => 'array', + 'items' => ['description' => '子表达式,同Expressions', 'type' => 'any', 'example' => '同Expressions'], + ], + 'Operator' => [ + 'title' => '表达式操作符号', + 'description' => '表达式操作符号', + 'type' => 'string', + 'example' => 'EQUAL', + 'enum' => ['EQUAL', 'NOT_EQUAL', 'IN', 'NOT_IN', 'LIKE', 'NOT_LIKE', 'GT', 'LT', 'GE', 'LE', 'OR', 'AND'], + ], + ], + 'description' => '', + ], + ], + 'UserMappingList' => [ + 'title' => '规则绑定账号(list接口中不返回)', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountType' => ['title' => '规则绑定账号类型', 'description' => '规则绑定账号类型', 'type' => 'string', 'example' => 'PERSONAL'], + 'Accounts' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '规则绑定账号ID', 'description' => '规则绑定账号ID', 'type' => 'string', 'example' => '30008888'], + ], + 'description' => '', + ], + 'enum' => ['PERSONAL', 'PRODUCE', 'USER_GROUP'], + ], + ], + 'description' => '', + ], + ], + 'Id' => ['title' => '规则Id', 'description' => '规则Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], + 'description' => '', + ], ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', + 'Tables' => [ + 'title' => '相关表', + 'description' => '相关表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'example' => '拦截规则'], + 'ResourceId' => ['title' => '表GUID', 'description' => '表GUID', 'type' => 'string', 'example' => 'odps.300199897.project_name.table_name'], + 'ColumnName' => ['title' => '表字段', 'description' => '表字段', 'type' => 'string', 'example' => 'business_id'], + ], + 'description' => '', + ], ], + 'GmtCreate' => ['description' => '创建时间', 'type' => 'string', 'example' => '2023-03-30T21:37:23Z'], + 'GmtModified' => ['description' => '更新时间', 'type' => 'string', 'example' => '2025-03-03T10:14Z'], + 'Creator' => ['description' => '创建者', 'type' => 'string', 'example' => '30008888'], + 'Modifier' => ['description' => '修改者', 'type' => 'string', 'example' => '30008888'], + 'TenantId' => ['description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'example' => '30000001'], ], + 'description' => '', ], ], ], @@ -48877,33 +29667,30 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 121,\\n \\"Data\\": [\\n {\\n \\"Rules\\": [\\n {\\n \\"RuleName\\": \\"业务管控\\",\\n \\"ScopeType\\": \\"SELECT_COLUMN\\",\\n \\"IsDelete\\": true,\\n \\"Status\\": 1,\\n \\"Expressions\\": [\\n {\\n \\"MappingColumnName\\": \\"business_id\\",\\n \\"Values\\": [\\n \\"123\\"\\n ],\\n \\"Type\\": \\"EXPRESSION\\",\\n \\"SubConditions\\": [\\n \\"同Expressions\\"\\n ],\\n \\"Operator\\": \\"EQUAL\\"\\n }\\n ],\\n \\"UserMappingList\\": [\\n {\\n \\"AccountType\\": \\"PERSONAL\\",\\n \\"Accounts\\": [\\n {\\n \\"AccountId\\": \\"30008888\\"\\n }\\n ]\\n }\\n ],\\n \\"Id\\": 123\\n }\\n ],\\n \\"Tables\\": [\\n {\\n \\"MappingColumnName\\": \\"拦截规则\\",\\n \\"ResourceId\\": \\"odps.300199897.project_name.table_name\\",\\n \\"ColumnName\\": \\"business_id\\"\\n }\\n ],\\n \\"GmtCreate\\": \\"2023-03-30T21:37:23Z\\",\\n \\"GmtModified\\": \\"2025-03-03T10:14Z\\",\\n \\"Creator\\": \\"30008888\\",\\n \\"Modifier\\": \\"30008888\\",\\n \\"TenantId\\": 30000001\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询指定用户行级权限', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"IdentifyRecordList\\": [\\n {\\n \\"Id\\": 22,\\n \\"BizUnitId\\": 11,\\n \\"BizUnitName\\": \\"test\\",\\n \\"BizUnitDisplayName\\": \\"test_abc\\",\\n \\"ProjectId\\": 1001,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test_abc\\",\\n \\"DatasourceId\\": 1,\\n \\"DatasourceName\\": \\"test\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"ActualIdentifyRate\\": 0.1,\\n \\"ClassifyId\\": 1,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"ClassifyStatus\\": \\"ENABLE\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"IsBetterMatch\\": true,\\n \\"BizDate\\": \\"2025-06-30\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询安全识别结果的识别记录', + 'ramActions' => [], ], - 'GetSecuritySecretKey' => [ - 'summary' => '通过密钥名称获取密钥值。'."\n" + 'ListSecurityIdentifyRecords' => [ + 'summary' => '分页查询安全识别结果的识别记录。'."\n" .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -48912,33 +29699,33 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Name', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '密钥名称', - 'description' => '密钥名称', - 'type' => 'string', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'IsDatasourceTable' => ['title' => '是否数据源表, 默认否(视为Dataphin表)', 'description' => '是否数据源表, 默认否(视为Dataphin表)', 'type' => 'boolean', 'required' => false], + 'DatasourceName' => ['title' => '数据源名称,仅数据源表需要填写', 'description' => '数据源名称,仅数据源表需要填写', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'DatasourceEnv' => ['title' => '数据源环境标识,仅数据源表需要填写', 'description' => '数据源环境标识,仅数据源表需要填写', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'TableCatalog' => ['title' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', 'description' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'required' => true, 'example' => 't_test'], + 'FieldName' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'required' => true, 'example' => 'col1'], + 'Keyword' => ['title' => '搜索词范围: 字段名称', 'description' => '搜索词范围: 字段名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], 'required' => true, - 'example' => 'test', ], ], ], @@ -48949,123 +29736,57 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SecuritySecretKeyInfo' => [ - 'title' => '安全密钥详情', - 'description' => '安全密钥详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '密钥Id', - 'description' => '密钥Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '密钥名称', - 'description' => '密钥名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '密钥类型: HASH 哈希脱敏、ENCRYPT 加解密', - 'description' => '密钥类型: HASH 哈希脱敏、ENCRYPT 加解密', - 'type' => 'string', - 'example' => 'HASH', - ], - 'AlgorithmType' => [ - 'title' => '算法类型: AES、DES、DESEDE、SM2、SM4、RSA、FF1', - 'description' => '算法类型: AES、DES、DESEDE、SM2、SM4、RSA、FF1', - 'type' => 'string', - 'example' => 'AES', - ], - 'GenerationType' => [ - 'title' => '生成方式: SYSTEM_GENERATION 系统生成、USER_GENERATION 用户生成', - 'description' => '生成方式: SYSTEM_GENERATION 系统生成、USER_GENERATION 用户生成', - 'type' => 'string', - 'example' => 'SYSTEM_GENERATION', - ], - 'SubKeyCount' => [ - 'title' => '子密钥个数', - 'description' => '子密钥个数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'SecretKeyList' => [ - 'title' => '密钥值', - 'description' => '密钥值', - 'type' => 'array', - 'items' => [ - 'title' => '密钥值', - 'description' => '密钥值', - 'type' => 'string', - 'example' => 'abc123456', - ], - ], - 'IsOwnerManageOnly' => [ - 'title' => '是否仅负责人可管理', - 'description' => '是否仅负责人可管理', - 'type' => 'boolean', - ], - 'EnableOpenapiQuery' => [ - 'title' => '是否支持OpenApi查询', - 'description' => '是否支持OpenApi查询', - 'type' => 'boolean', - ], - 'AlgorithmTypeAlias' => [ - 'title' => '算法类型alias', - 'description' => '算法类型alias', - 'type' => 'string', - 'example' => 'AES', - ], - 'Owner' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => '30012011', - ], - 'OwnerName' => [ - 'title' => '负责人名称', - 'description' => '负责人名称', - 'type' => 'string', - 'example' => '张三', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'IdentifyRecordList' => [ + 'title' => '识别记录列表', + 'description' => '识别记录列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '识别记录ID', 'description' => '识别记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'BizUnitId' => ['title' => '业务板块ID', 'description' => '业务板块ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'test'], + 'BizUnitDisplayName' => ['title' => '业务板块展示名', 'description' => '业务板块展示名', 'type' => 'string', 'example' => 'test_abc'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1001'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'ProjectDisplayName' => ['title' => '项目展示名', 'description' => '项目展示名', 'type' => 'string', 'example' => 'test_abc'], + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'test'], + 'TableEnv' => ['title' => '表环境', 'description' => '表环境', 'type' => 'string', 'example' => 'DEV'], + 'TableId' => ['title' => '表ID', 'description' => '表ID', 'type' => 'string', 'example' => '1'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_test'], + 'TableDescription' => ['title' => '表描述', 'description' => '表描述', 'type' => 'string', 'example' => 'test'], + 'TableType' => ['title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'type' => 'string', 'example' => 'LOGIC_TABLE'], + 'FieldId' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => 't_test.col1'], + 'FieldName' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'example' => 'col1'], + 'FieldDescription' => ['title' => '字段描述', 'description' => '字段描述', 'type' => 'string', 'example' => 'test'], + 'ActualIdentifyRate' => ['title' => '实际匹配度', 'description' => '实际匹配度', 'type' => 'number', 'format' => 'double', 'example' => '0.1'], + 'ClassifyId' => ['title' => '分类ID', 'description' => '分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ClassifyName' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'example' => 'test'], + 'ClassifyAbbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'example' => 'test'], + 'ClassifyStatus' => ['title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'example' => 'ENABLE'], + 'LevelIndex' => ['title' => '分级等级', 'description' => '分级等级', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LevelName' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'example' => 'test'], + 'LevelAbbreviation' => ['title' => '分级简短名称', 'description' => '分级简短名称', 'type' => 'string', 'example' => 'test'], + 'IsCustomIdentify' => ['title' => '是否是自定义打标规则', 'description' => '是否是自定义打标规则', 'type' => 'boolean'], + 'IsLocked' => ['title' => '是否已锁定', 'description' => '是否已锁定', 'type' => 'boolean'], + 'IsBetterMatch' => ['title' => '是否更匹配', 'description' => '是否更匹配', 'type' => 'boolean'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + ], + ], ], ], ], @@ -49075,33 +29796,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"IdentifyRecordList\\": [\\n {\\n \\"Id\\": 22,\\n \\"BizUnitId\\": 11,\\n \\"BizUnitName\\": \\"test\\",\\n \\"BizUnitDisplayName\\": \\"test_abc\\",\\n \\"ProjectId\\": 1001,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test_abc\\",\\n \\"DatasourceId\\": 1,\\n \\"DatasourceName\\": \\"test\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"ActualIdentifyRate\\": 0.1,\\n \\"ClassifyId\\": 1,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"ClassifyStatus\\": \\"ENABLE\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"IsBetterMatch\\": true,\\n \\"BizDate\\": \\"2025-06-30\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询安全识别结果的识别记录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecuritySecretKeyInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Type\\": \\"HASH\\",\\n \\"AlgorithmType\\": \\"AES\\",\\n \\"GenerationType\\": \\"SYSTEM_GENERATION\\",\\n \\"SubKeyCount\\": 2,\\n \\"SecretKeyList\\": [\\n \\"abc123456\\"\\n ],\\n \\"IsOwnerManageOnly\\": true,\\n \\"EnableOpenapiQuery\\": true,\\n \\"AlgorithmTypeAlias\\": \\"AES\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"OwnerName\\": \\"张三\\"\\n }\\n}","type":"json"}]', - 'title' => '通过密钥名称获取密钥值', + 'ramActions' => [], ], - 'GetSecurityLevel' => [ - 'summary' => '获取数据分级详情。'."\n" + 'ListSecurityIdentifyResults' => [ + 'summary' => '分页查询安全识别结果。'."\n" .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -49110,34 +29824,52 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Index', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '数据分级敏感程度', - 'description' => '数据分级敏感程度', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'ClassifyId' => ['title' => '数据分类Id', 'description' => '数据分类Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Env' => ['title' => '所属数据源/项目/板块环境标识', 'description' => '所属数据源/项目/板块环境标识', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'BizUnitNameList' => [ + 'title' => '业务板块名称', + 'description' => '业务板块名称', + 'type' => 'array', + 'items' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'ProjectNameList' => [ + 'title' => '项目名称', + 'description' => '项目名称', + 'type' => 'array', + 'items' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'DatasourceNameList' => [ + 'title' => '数据源名称', + 'description' => '数据源名称', + 'type' => 'array', + 'items' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'Status' => ['title' => '生效状态筛选: ENABLE 开启、DISABLE 关闭', 'description' => '生效状态筛选: ENABLE 开启、DISABLE 关闭', 'type' => 'string', 'required' => false, 'example' => 'ENABLE'], + 'IsLocked' => ['title' => '是否已锁定', 'description' => '是否已锁定', 'type' => 'boolean', 'required' => false], + 'Keyword' => ['title' => '搜索词筛选: 支持按表catalog、表名、表中文名、字段名匹配', 'description' => '搜索词筛选: 支持按表catalog、表名、表中文名、字段名匹配', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], + 'required' => false, ], ], ], @@ -49148,76 +29880,64 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SecurityLevelInfo' => [ - 'title' => '数据分级详情', - 'description' => '数据分级详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '数据分级名称', - 'description' => '数据分级名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Abbreviation' => [ - 'title' => '数据分级缩写名称', - 'description' => '数据分级缩写名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Description' => [ - 'title' => '数据分级描述', - 'description' => '数据分级描述', - 'type' => 'string', - 'example' => 'test', - ], - 'Index' => [ - 'title' => '数据分级敏感程度', - 'description' => '数据分级敏感程度', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RelatedClassifyIdList' => [ - 'title' => '绑定当前数据分级的数据分类Id列表', - 'description' => '绑定当前数据分级的数据分类Id列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'SecurityIdentifyResultList' => [ + 'title' => '分页识别结果列表', + 'description' => '分页识别结果列表', 'type' => 'array', 'items' => [ - 'title' => '绑定当前数据分级的数据分类Id列表', - 'description' => '绑定当前数据分级的数据分类Id列表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '识别结果ID', 'description' => '识别结果ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'ScanTaskId' => ['title' => '扫描任务ID', 'description' => '扫描任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'TableTaskId' => ['title' => '识别表任务ID', 'description' => '识别表任务ID', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'ClassifyId' => ['title' => '分类ID', 'description' => '分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '33'], + 'ClassifyName' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'example' => 'test'], + 'ClassifyAbbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'example' => 'test'], + 'LevelIndex' => ['title' => '分级等级', 'description' => '分级等级', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'LevelName' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'example' => 'test'], + 'LevelAbbreviation' => ['title' => '分级简短名称', 'description' => '分级简短名称', 'type' => 'string', 'example' => 'test'], + 'LevelColor' => ['title' => '分级颜色', 'description' => '分级颜色', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'BizUnitId' => ['title' => '业务板块ID', 'description' => '业务板块ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'LD_test'], + 'BizUnitDisplayName' => ['title' => '业务板块中文名称', 'description' => '业务板块中文名称', 'type' => 'string', 'example' => 'LD_test'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101121'], + 'ProjectName' => ['title' => '项目名称', 'description' => '项目名称', 'type' => 'string', 'example' => 'test'], + 'ProjectDisplayName' => ['title' => '项目中文名称', 'description' => '项目中文名称', 'type' => 'string', 'example' => 'test'], + 'DatasourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '101121'], + 'DatasourceName' => ['title' => '数据源名称', 'description' => '数据源名称', 'type' => 'string', 'example' => 'ds1'], + 'TableEnv' => ['title' => '表环境', 'description' => '表环境', 'type' => 'string', 'example' => 'DEV'], + 'TableType' => ['title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', 'type' => 'string', 'example' => 'LOGIC_TABLE'], + 'TableCatalog' => ['title' => '表Catalog', 'description' => '表Catalog', 'type' => 'string', 'example' => 'testdb'], + 'TableId' => ['title' => '表ID', 'description' => '表ID', 'type' => 'string', 'example' => '1'], + 'TableName' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_test'], + 'TableDescription' => ['title' => '表描述', 'description' => '表描述', 'type' => 'string', 'example' => 'test'], + 'FieldId' => ['title' => '字段ID', 'description' => '字段ID', 'type' => 'string', 'example' => 't_test.col1'], + 'FieldName' => ['title' => '字段名', 'description' => '字段名', 'type' => 'string', 'example' => 'col1'], + 'FieldDescription' => ['title' => '字段描述', 'description' => '字段描述', 'type' => 'string', 'example' => 'test'], + 'IsCustomIdentify' => ['title' => '是否是自定义打标规则', 'description' => '是否是自定义打标规则', 'type' => 'boolean'], + 'IsLocked' => ['title' => '是否已锁定', 'description' => '是否已锁定', 'type' => 'boolean'], + 'HasBetterRule' => ['title' => '是否存在更匹配的结果', 'description' => '是否存在更匹配的结果', 'type' => 'boolean'], + 'IdentifyRecordId' => ['title' => '识别记录ID', 'description' => '识别记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '99'], + 'Status' => ['title' => '状态: ENABLE 启用、DISABLE 禁用', 'description' => '状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'example' => 'ENABLE'], + 'BizDate' => ['title' => '业务日期', 'description' => '业务日期', 'type' => 'string', 'example' => '2025-06-30'], + 'Creator' => ['title' => '创建人', 'description' => '创建人', 'type' => 'string', 'example' => '30012011'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 10:30:30'], + 'Modifier' => ['title' => '修改人', 'description' => '修改人', 'type' => 'string', 'example' => '30012011'], + 'ModifyTime' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2025-06-30 10:30:30'], + ], ], ], ], @@ -49228,33 +29948,26 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"SecurityIdentifyResultList\\": [\\n {\\n \\"Id\\": 1,\\n \\"ScanTaskId\\": 11,\\n \\"TableTaskId\\": 22,\\n \\"ClassifyId\\": 33,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"LevelColor\\": 1,\\n \\"BizUnitId\\": 1,\\n \\"BizUnitName\\": \\"LD_test\\",\\n \\"BizUnitDisplayName\\": \\"LD_test\\",\\n \\"ProjectId\\": 101121,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test\\",\\n \\"DatasourceId\\": 101121,\\n \\"DatasourceName\\": \\"ds1\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"TableCatalog\\": \\"testdb\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"HasBetterRule\\": true,\\n \\"IdentifyRecordId\\": 99,\\n \\"Status\\": \\"ENABLE\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 10:30:30\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifyTime\\": \\"2025-06-30 10:30:30\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询安全识别结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityLevelInfo\\": {\\n \\"Name\\": \\"test\\",\\n \\"Abbreviation\\": \\"test\\",\\n \\"Description\\": \\"test\\",\\n \\"Index\\": 1,\\n \\"RelatedClassifyIdList\\": [\\n 2\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取数据分级详情', + 'ramActions' => [], ], - 'GetSecurityIdentifyResult' => [ - 'summary' => '获取识别结果详情。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ListStandards' => [ + 'summary' => '分页查询标准列表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -49263,34 +29976,58 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '识别结果ID', - 'description' => '识别结果ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '检索条件', + 'description' => '检索条件', + 'type' => 'object', + 'properties' => [ + 'Keyword' => ['title' => '搜索关键字: 标准名称/英文名/编码 模糊搜索,大小写不敏感,按匹配度排序', 'description' => '搜索关键字: 标准名称/英文名/编码 模糊搜索,大小写不敏感,按匹配度排序', 'type' => 'string', 'required' => false, 'example' => 'Test'], + 'Directory' => ['title' => '标准的所属目录', 'description' => '标准的所属目录', 'type' => 'string', 'required' => false, 'example' => '/dir1/dir2'], + 'StandardTypeList' => [ + 'title' => '标准类型: Basic、EMPTY 标准类型为空', + 'description' => '标准类型: Basic、EMPTY 标准类型为空', + 'type' => 'array', + 'items' => ['title' => '标准类型: Basic、EMPTY 标准类型为空', 'description' => '标准类型: Basic、EMPTY 标准类型为空', 'type' => 'string', 'required' => false, 'example' => 'EMPTY'], + 'required' => false, + ], + 'StandardStage' => ['title' => '标准所属阶段:DEV、PROD', 'description' => '标准所属阶段:DEV、PROD', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'StandardTemplateIdList' => [ + 'title' => '所属标准模板Id', + 'description' => '所属标准模板Id', + 'type' => 'array', + 'items' => ['title' => '所属标准模板Id', 'description' => '所属标准模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'required' => false, + ], + 'StandardSetIdList' => [ + 'title' => '所属标准集Id', + 'description' => '所属标准集Id', + 'type' => 'array', + 'items' => ['title' => '所属标准集Id', 'description' => '所属标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'required' => false, + ], + 'StandardStatusList' => [ + 'title' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', + 'description' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', + 'type' => 'array', + 'items' => ['title' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', 'description' => '标准的状态列表, DEV Stage下的标准状态为: DRAFT(草稿态)/UNDER_REVISION(修订中)/UNDER_REVIEW(审批中)/REVIEW_PASSED(审批通过)/IN_PUBLISH(发布中); PROD Stage下的标准状态为: NOT_ACTIVATED(未生效)/ACTIVE(已生效)/EXPIRED(已停用)', 'type' => 'string', 'required' => false, 'example' => 'DRAFT'], + 'required' => false, + ], + 'UserId' => ['title' => '用户Id: 只会查询该用户Id本身可见的标准,为空则查询当前用户可见的标准', 'description' => '用户Id: 只会查询该用户Id本身可见的标准,为空则查询当前用户可见的标准', 'type' => 'string', 'required' => false, 'example' => '30012011'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], + ], 'required' => true, - 'example' => '1', ], ], ], @@ -49301,306 +30038,234 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SecurityIdentifyResultInfo' => [ - 'title' => '识别结果详情', - 'description' => '识别结果详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '识别结果ID', - 'description' => '识别结果ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ScanTaskId' => [ - 'title' => '扫描任务ID', - 'description' => '扫描任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'TableTaskId' => [ - 'title' => '识别表任务ID', - 'description' => '识别表任务ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'ClassifyId' => [ - 'title' => '分类ID', - 'description' => '分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '33', - ], - 'ClassifyName' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ClassifyAbbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelIndex' => [ - 'title' => '分级等级', - 'description' => '分级等级', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'LevelName' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelAbbreviation' => [ - 'title' => '分级简短名称', - 'description' => '分级简短名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelColor' => [ - 'title' => '分级颜色', - 'description' => '分级颜色', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BizUnitId' => [ - 'title' => '业务板块ID', - 'description' => '业务板块ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'LD_test', - ], - 'BizUnitDisplayName' => [ - 'title' => '业务板块中文名称', - 'description' => '业务板块中文名称', - 'type' => 'string', - 'example' => 'LD_test', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101121', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectDisplayName' => [ - 'title' => '项目中文名称', - 'description' => '项目中文名称', - 'type' => 'string', - 'example' => 'test', - ], - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '101121', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'ds1', - ], - 'TableEnv' => [ - 'title' => '表环境', - 'description' => '表环境', - 'type' => 'string', - 'example' => 'DEV', - ], - 'TableType' => [ - 'title' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'description' => '表类型: LOGIC_TABLE 逻辑表,LOGIC_DIM_TABLE 维度逻辑表,LOGIC_FACT_TABLE 事实逻辑表,LOGIC_SUM_TABLE 汇总逻辑表,LOGIC_ODM_SOURCE 源表,LOGIC_LABEL_TABLE 标签逻辑表,PHYSICAL_TABLE 物理表,REAL_TIME_LOGIC_TABLE 实时配置的逻辑表', - 'type' => 'string', - 'example' => 'LOGIC_TABLE', - ], - 'TableCatalog' => [ - 'title' => '表Catalog', - 'description' => '表Catalog', - 'type' => 'string', - 'example' => 'testdb', - ], - 'TableId' => [ - 'title' => '表ID', - 'description' => '表ID', - 'type' => 'string', - 'example' => '1', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_test', - ], - 'TableDescription' => [ - 'title' => '表描述', - 'description' => '表描述', - 'type' => 'string', - 'example' => 'test', - ], - 'FieldId' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => 't_test.col1', - ], - 'FieldName' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'example' => 'col1', - ], - 'FieldDescription' => [ - 'title' => '字段描述', - 'description' => '字段描述', - 'type' => 'string', - 'example' => 'test', - ], - 'IsCustomIdentify' => [ - 'title' => '是否是自定义打标规则', - 'description' => '是否是自定义打标规则', - 'type' => 'boolean', - ], - 'IsLocked' => [ - 'title' => '是否已锁定', - 'description' => '是否已锁定', - 'type' => 'boolean', - ], - 'HasBetterRule' => [ - 'title' => '是否存在更匹配的结果', - 'description' => '是否存在更匹配的结果', - 'type' => 'boolean', - ], - 'IdentifyRecordId' => [ - 'title' => '识别记录ID', - 'description' => '识别记录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '99', - ], - 'Status' => [ - 'title' => '状态: ENABLE 启用、DISABLE 禁用', - 'description' => '状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'example' => 'ENABLE', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'Creator' => [ - 'title' => '创建人', - 'description' => '创建人', - 'type' => 'string', - 'example' => '30012011', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 10:30:30', - ], - 'Modifier' => [ - 'title' => '修改人', - 'description' => '修改人', - 'type' => 'string', - 'example' => '30012011', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 10:30:30', - ], - ], - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int64', 'example' => '68'], + 'StandardList' => [ + 'title' => '表列表', + 'description' => '表列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '码表', 'description' => '码表', 'type' => 'integer', 'format' => 'int64', 'example' => '1234'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'Status' => ['title' => '标准的状态', 'description' => '标准的状态', 'type' => 'string', 'example' => 'draft'], + 'Stage' => ['title' => '标准所属的阶段', 'description' => '标准所属的阶段', 'type' => 'string', 'example' => 'dev'], + 'StandardTemplate' => [ + 'title' => '当前标准依赖的标准模板', + 'description' => '当前标准依赖的标准模板', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '标准模板名称', 'description' => '标准模板名称', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准模板编码', 'description' => '标准模板编码', 'type' => 'string', 'example' => '1121'], + 'TemplateFrom' => ['title' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'description' => '标准模板来源: CUSTOM 自定义标准模板、SYSTEM 系统内置标准模板', 'type' => 'string', 'example' => 'SYSTEM'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + 'StandardSet' => [ + 'title' => '当前标准依赖的标准集', + 'description' => '当前标准依赖的标准集', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'Name' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准集编码', 'description' => '标准集编码', 'type' => 'string', 'example' => 'cc'], + 'Directory' => ['title' => '标准集所属的目录', 'description' => '标准集所属的目录', 'type' => 'string', 'example' => '/dir1'], + ], + ], + 'EffectiveTimeConfig' => [ + 'title' => '生效时间配置', + 'description' => '生效时间配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'type' => 'string', 'example' => 'TIME_PERIOD'], + 'StartTime' => ['title' => '开始生效时间', 'description' => '开始生效时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '结束生效时间', 'description' => '结束生效时间', 'type' => 'string', 'example' => '2025-12-30 00:00:00'], + ], + ], + 'Description' => ['title' => '描述信息', 'description' => '描述信息', 'type' => 'string', 'example' => 'test'], + 'Owner' => [ + 'title' => '负责人', + 'description' => '负责人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'Name' => ['title' => '标准名称', 'description' => '标准名称', 'type' => 'string', 'example' => 'test'], + 'EnglishName' => ['title' => '标准英文名', 'description' => '标准英文名', 'type' => 'string', 'example' => 'test'], + 'Code' => ['title' => '标准编码', 'description' => '标准编码', 'type' => 'string', 'example' => 'zz'], + 'Type' => ['title' => '标准类型', 'description' => '标准类型', 'type' => 'string', 'example' => 'zz'], + 'ModifyTime' => ['title' => '最近修改时间', 'description' => '最近修改时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'LastModifier' => [ + 'title' => '最近更新人', + 'description' => '最近更新人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'Creator' => [ + 'title' => '创建者', + 'description' => '创建者', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '300000913'], + 'Name' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'example' => 'susan'], + ], + ], + 'AttributeWithValueList' => [ + 'title' => '属性值配置', + 'description' => '属性值配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Attribute' => [ + 'title' => '属性详情', + 'description' => '属性详情', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'example' => 'attr1'], + 'Code' => ['title' => '属性编码', 'description' => '属性编码', 'type' => 'string', 'example' => 'test_attr'], + 'Type' => ['title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'type' => 'string', 'example' => 'BIZ_ATTRIBUTE'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean'], + 'ValueConfig' => [ + 'title' => '取值配置', + 'description' => '取值配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'type' => 'string', 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'type' => 'string', 'example' => 'STRING'], + 'Length' => ['title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'ValueRange' => [ + 'title' => '取值范围', + 'description' => '取值范围', + 'type' => 'object', + 'properties' => [ + 'ValueConstraint' => ['title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'type' => 'string', 'example' => 'NONE'], + 'ValueList' => [ + 'title' => '取值范围,当取值来源取值为 LIST 生效', + 'description' => '取值范围,当取值来源取值为 LIST 生效', + 'type' => 'array', + 'items' => ['title' => '取值范围,当取值来源取值为 LIST 生效', 'description' => '取值范围,当取值来源取值为 LIST 生效', 'type' => 'string', 'example' => '1'], + ], + 'MinMaxValueConfig' => [ + 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'type' => 'object', + 'properties' => [ + 'MinValue' => ['title' => '最小值', 'description' => '最小值', 'type' => 'string', 'example' => '0'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean'], + 'MaxValue' => ['title' => '最大值', 'description' => '最大值', 'type' => 'string', 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean'], + ], + ], + 'LookupTableReference' => [ + 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'example' => '11'], + 'Column' => ['title' => '引用的码表字段', 'description' => '引用的码表字段', 'type' => 'string', 'example' => 'col1'], + ], + ], + 'DataphinAttributeType' => ['title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'type' => 'string', 'example' => 'DATAPHIN_ATTRIBUTE'], + ], + ], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'example' => 'test'], + ], + ], + 'MonitorConfig' => [ + 'title' => '监控配置', + 'description' => '监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean'], + ], + ], + 'EnableMonitorConfig' => ['title' => '是否开启监控配置', 'description' => '是否开启监控配置', 'type' => 'boolean'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'test'], + 'RefAttribute' => [ + 'title' => '引用的属性信息', + 'description' => '引用的属性信息', + 'type' => 'object', + 'properties' => [ + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'AttributeFromInfo' => [ + 'title' => '属性来源', + 'description' => '属性来源', + 'type' => 'object', + 'properties' => [ + 'AttributeFrom' => ['title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'type' => 'string', 'example' => 'CUSTOM'], + 'StandardReference' => [ + 'title' => '对应的标准,属性来源为 STANDARD 生效', + 'description' => '对应的标准,属性来源为 STANDARD 生效', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + ], + ], + ], + ], + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + ], + ], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'example' => 'test'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"StandardList\\": [\\n {\\n \\"Id\\": 1234,\\n \\"Version\\": 1,\\n \\"Status\\": \\"draft\\",\\n \\"Stage\\": \\"dev\\",\\n \\"StandardTemplate\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"1121\\",\\n \\"TemplateFrom\\": \\"SYSTEM\\",\\n \\"Version\\": 1\\n },\\n \\"StandardSet\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Code\\": \\"cc\\",\\n \\"Directory\\": \\"/dir1\\"\\n },\\n \\"EffectiveTimeConfig\\": {\\n \\"Type\\": \\"TIME_PERIOD\\",\\n \\"StartTime\\": \\"2025-06-30 00:00:00\\",\\n \\"EndTime\\": \\"2025-12-30 00:00:00\\"\\n },\\n \\"Description\\": \\"test\\",\\n \\"Owner\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Name\\": \\"test\\",\\n \\"EnglishName\\": \\"test\\",\\n \\"Code\\": \\"zz\\",\\n \\"Type\\": \\"zz\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastModifier\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"300000913\\",\\n \\"Name\\": \\"susan\\"\\n },\\n \\"AttributeWithValueList\\": [\\n {\\n \\"Attribute\\": {\\n \\"Name\\": \\"attr1\\",\\n \\"Code\\": \\"test_attr\\",\\n \\"Type\\": \\"BIZ_ATTRIBUTE\\",\\n \\"Required\\": true,\\n \\"ValueConfig\\": {\\n \\"Type\\": \\"CUSTOMIZED\\",\\n \\"DataType\\": \\"STRING\\",\\n \\"Length\\": 1,\\n \\"ValueRange\\": {\\n \\"ValueConstraint\\": \\"NONE\\",\\n \\"ValueList\\": [\\n \\"1\\"\\n ],\\n \\"MinMaxValueConfig\\": {\\n \\"MinValue\\": \\"0\\",\\n \\"IncludeMinValue\\": true,\\n \\"MaxValue\\": \\"100\\",\\n \\"IncludeMaxValue\\": true\\n },\\n \\"LookupTableReference\\": {\\n \\"LookupTableId\\": 11,\\n \\"Column\\": \\"col1\\"\\n },\\n \\"DataphinAttributeType\\": \\"DATAPHIN_ATTRIBUTE\\"\\n },\\n \\"DefaultValue\\": \\"test\\"\\n },\\n \\"MonitorConfig\\": {\\n \\"Type\\": \\"METADATA\\",\\n \\"ColumnName\\": \\"column1\\",\\n \\"IsCaseSensitive\\": true\\n },\\n \\"EnableMonitorConfig\\": true,\\n \\"Description\\": \\"test\\",\\n \\"RefAttribute\\": {\\n \\"AttributeId\\": 123,\\n \\"AttributeFromInfo\\": {\\n \\"AttributeFrom\\": \\"CUSTOM\\",\\n \\"StandardReference\\": {\\n \\"StandardId\\": 22,\\n \\"Version\\": 1\\n }\\n }\\n },\\n \\"Id\\": 1011\\n },\\n \\"Value\\": \\"test\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询标准列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityIdentifyResultInfo\\": {\\n \\"Id\\": 1,\\n \\"ScanTaskId\\": 11,\\n \\"TableTaskId\\": 22,\\n \\"ClassifyId\\": 33,\\n \\"ClassifyName\\": \\"test\\",\\n \\"ClassifyAbbreviation\\": \\"test\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"test\\",\\n \\"LevelColor\\": 1,\\n \\"BizUnitId\\": 1,\\n \\"BizUnitName\\": \\"LD_test\\",\\n \\"BizUnitDisplayName\\": \\"LD_test\\",\\n \\"ProjectId\\": 101121,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectDisplayName\\": \\"test\\",\\n \\"DatasourceId\\": 101121,\\n \\"DatasourceName\\": \\"ds1\\",\\n \\"TableEnv\\": \\"DEV\\",\\n \\"TableType\\": \\"LOGIC_TABLE\\",\\n \\"TableCatalog\\": \\"testdb\\",\\n \\"TableId\\": \\"1\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"TableDescription\\": \\"test\\",\\n \\"FieldId\\": \\"t_test.col1\\",\\n \\"FieldName\\": \\"col1\\",\\n \\"FieldDescription\\": \\"test\\",\\n \\"IsCustomIdentify\\": true,\\n \\"IsLocked\\": true,\\n \\"HasBetterRule\\": true,\\n \\"IdentifyRecordId\\": 99,\\n \\"Status\\": \\"ENABLE\\",\\n \\"BizDate\\": \\"2025-06-30\\",\\n \\"Creator\\": \\"30012011\\",\\n \\"CreateTime\\": \\"2025-06-30 10:30:30\\",\\n \\"Modifier\\": \\"30012011\\",\\n \\"ModifyTime\\": \\"2025-06-30 10:30:30\\"\\n }\\n}","type":"json"}]', - 'title' => '获取识别结果详情', + 'ramActions' => [], ], - 'GetSecurityClassify' => [ - 'summary' => '获取数据分类详情。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListSubmitRecords' => [ + 'summary' => '分页获取待发布记录列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -49608,210 +30273,224 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => '分类ID', - 'description' => '分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'ListQuery', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '查询指令', + 'description' => '查询指令', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'SecurityClassifyInfo' => [ - 'title' => '数据分类详情', - 'description' => '数据分类详情', + 'Keyword' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'SearchFilter' => [ + 'title' => '待发布记录过滤器', + 'description' => '待发布记录过滤器', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '数据分类ID', - 'description' => '数据分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Name' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Abbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'example' => 'test', - ], - 'Path' => [ - 'title' => '分类路径', - 'description' => '分类路径', - 'type' => 'string', - 'example' => '/a/b/c', - ], - 'LevelIndex' => [ - 'title' => '分级Index', - 'description' => '分级Index', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'ProjectIdList' => [ + 'title' => '项目id列表', + 'description' => '项目ID', + 'type' => 'array', + 'items' => ['title' => '项目id', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '121321313519086'], + 'required' => true, ], - 'LevelName' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'example' => 'lv_teat', + 'SubmitterList' => [ + 'title' => '提交人id列表', + 'description' => '提交人', + 'type' => 'array', + 'items' => ['title' => '提交人id', 'description' => '提交人', 'type' => 'string', 'required' => true, 'example' => '3434222'], + 'required' => false, ], - 'LevelAbbreviation' => [ - 'title' => '分级缩写名', - 'description' => '分级缩写名', - 'type' => 'string', - 'example' => 'lv_test', + 'ChangeTypeList' => [ + 'title' => '变更类型列表(0:新增/1:更新/2:删除', + 'description' => '变更类型列表(0:新增/1:更新/2:删除', + 'type' => 'array', + 'items' => ['title' => '变更类型', 'description' => '变更类型', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '0'], + 'required' => false, ], + 'SubmitStartTime' => ['title' => '提交开始时间 yyyy-MM-dd HH:mm:ss', 'description' => '提交开始时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2024-10-10 10:00:00'], + 'SubmitEndTime' => ['title' => '提交结束时间 yyyy-MM-dd HH:mm:ss', 'description' => '提交结束时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'required' => false, 'example' => '2024-10-10 10:00:00'], + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页条数', 'description' => '分页条数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], ], + 'required' => true, ], ], + 'required' => true, ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ListResult' => [ + 'title' => '查询结果', + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总数', 'description' => '总数', 'type' => 'integer', 'format' => 'int32', 'example' => '100'], + 'Data' => [ + 'title' => '待发布记录列表查询结果', + 'description' => '待发布记录列表查询结果', + 'type' => 'array', + 'items' => [ + 'title' => '待发布记录', + 'description' => '待发布记录', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '待发布记录id(非对象ID,在发布列表中全局唯一', 'description' => '待发布记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '1241844456'], + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'string', 'example' => '1241844456'], + 'Submitter' => ['title' => '提交人id', 'description' => '提交人id', 'type' => 'string', 'example' => '307999999'], + 'SubmitterName' => ['title' => '提交人名称', 'description' => '提交人名称', 'type' => 'string', 'example' => '张三'], + 'GmtCreate' => ['title' => '创建时间 yyyy-MM-dd HH:mm:ss', 'description' => '创建时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'GmtModify' => ['title' => '修改时间 yyyy-MM-dd HH:mm:ss', 'description' => '修改时间 yyyy-MM-dd HH:mm:ss', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'ChangeType' => ['title' => '变更类型 0:新增/1:更新/2:删除', 'description' => '变更类型 0:新增/1:更新/2:删除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'ObjectType' => ['title' => '对象类型', 'description' => '对象类型'."\n" + .'- MAXCOUPUTE_SQL任务:MAX_COMPUTE_SQL'."\n" + .'- MAXCOUPUTE_MR任务:MAX_COMPUTE_MR'."\n" + .'- SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" + .'- SHELL任务:SHELL'."\n" + .'- PYTHON任务:PYTHON'."\n" + .'- Perl脚本:PERL'."\n" + .'- CHECK:CHECK'."\n" + .'- 同步任务:DATA_X'."\n" + .'- 虚拟节点:VIRTUAL'."\n" + .'- 资源:IDE_RESOURCE'."\n" + .'- 函数:UDF'."\n" + .'- HIVE_SQL任务:HIVE_SQL'."\n" + .'- HADOOP_MR任务:HADOOP_MR'."\n" + .'- SPARK_JAR_ON_HIVE任务:SPARK_JAR_ON_HIVE'."\n" + .'- FLINK_SQL任务:FLINK_SQL'."\n" + .'- FLINK_SQL模板任务:FLINK_TEMPLATE_SQL'."\n" + .'- 流计算模板:STREAM_TEMPLATE'."\n" + .'- 元表:META_TABLE'."\n" + .'- 流计算函数:STREAM_UDF'."\n" + .'- 实时FLINK_DATASTREAM:FLINK_DATASTREAM'."\n" + .'- 实时自定义数据源:STREAM_CUSTOM_DATASOURCE'."\n" + .'- ADB_FOR_PG任务:ADB_FOR_PG'."\n" + .'- TDH_SQL任务:INCEPTOR_SQL'."\n" + .'- 镜像表:MIRROR_TABLE'."\n" + .'- 中间表:MIDDLE_TABLE'."\n" + .'- 应用表:APPLICATION_TABLE'."\n" + .'- IMPALA_SQL任务:IMPALA_SQL'."\n" + .'- 管道任务:OFFLINE_PIPELINE'."\n" + .'- 实时管道任务:REAL_TIME_PIPELINE'."\n" + .'- 维度逻辑表:DIM_LOGICAL_TABLE'."\n" + .'- 事实逻辑表:FCT_LOGICAL_TABLE'."\n" + .'- 业务限定:BIZ_CONDITION'."\n" + .'- 原子指标:ATOM_INDEX'."\n" + .'- 派生指标:DERIVED_INDEX'."\n" + .'- 衍生指标:CALC_DERIVED_INDEX'."\n" + .'- PAI任务:PAI_DESIGNER'."\n" + .'- ARGODB_SQL任务:ARGODB_SQL'."\n" + .'- HOLOGRES_SQL任务:HOLOGRES_SQL'."\n" + .'- IMPALA_SQL任务:IMPALA_SQL'."\n" + .'- STARROCKS_SQL任务:STARROCKS_SQL'."\n" + .'- 数据库SQL任务:DATABASE_SQL'."\n" + .'- SPARK_SQL任务:SPARK_SQL'."\n" + .'- 计算模板:TASK_TEMPLATE'."\n" + .'- 外部触发节点:EXTERNAL_TRIGGER'."\n" + .'- GAUSS_SQL任务:GAUSS_SQL', 'type' => 'string', 'example' => '2024-10-10 10:00:00'], + 'ObjectName' => ['title' => '对象名称', 'description' => '对象名称', 'type' => 'string', 'example' => '对象A'], + 'ObjectId' => ['title' => '对象id', 'description' => '对象id', 'type' => 'string', 'example' => '1234567'], + 'NodeId' => ['title' => '节点id', 'description' => '节点id', 'type' => 'string', 'example' => 'n_123456'], + 'ObjectVersion' => ['title' => '对象版本', 'description' => '对象版本', 'type' => 'string', 'example' => '1'], + 'SubmitComment' => ['title' => '提交信息', 'description' => '提交信息', 'type' => 'string', 'example' => '提交信息'], + ], + ], + ], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SecurityClassifyInfo\\": {\\n \\"Id\\": 1,\\n \\"Name\\": \\"test\\",\\n \\"Abbreviation\\": \\"test\\",\\n \\"Path\\": \\"/a/b/c\\",\\n \\"LevelIndex\\": 1,\\n \\"LevelName\\": \\"lv_teat\\",\\n \\"LevelAbbreviation\\": \\"lv_test\\"\\n }\\n}","type":"json"}]', - 'title' => '获取数据分类详情', - ], - 'DeleteSecurityLevel' => [ - 'summary' => '删除数据分级。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 1241844456,\\n \\"ProjectId\\": \\"1241844456\\",\\n \\"Submitter\\": \\"307999999\\",\\n \\"SubmitterName\\": \\"张三\\",\\n \\"GmtCreate\\": \\"2024-10-10 10:00:00\\",\\n \\"GmtModify\\": \\"2024-10-10 10:00:00\\",\\n \\"ChangeType\\": 0,\\n \\"ObjectType\\": \\"2024-10-10 10:00:00\\",\\n \\"ObjectName\\": \\"对象A\\",\\n \\"ObjectId\\": \\"1234567\\",\\n \\"NodeId\\": \\"n_123456\\",\\n \\"ObjectVersion\\": \\"1\\",\\n \\"SubmitComment\\": \\"提交信息\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询待发布记录', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'schemes' => [ - 'https', + 'flowControl' => [ + 'flowControlList' => [], ], - 'tags' => [], + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListSubmitRecords', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'ListTables' => [ + 'summary' => '分页查询查询资产表元数据。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '分页查询条件', + 'description' => '分页查询条件', 'type' => 'object', 'properties' => [ - 'Index' => [ - 'title' => '分级敏感等级,当不传递时将按照分级名称进行精确匹配删除', - 'description' => '分级敏感等级,当不传递时将按照分级名称进行精确匹配删除', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Name' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], + 'Catalog' => ['title' => '资产目录:项目名、业务板块名', 'description' => '资产目录:项目名、业务板块名', 'type' => 'string', 'required' => true, 'example' => 'LD_test01_dev'], + 'Keyword' => ['title' => '关键字支持:表名', 'description' => '关键字支持:表名', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'PageNo' => ['title' => '页码, 默认1', 'description' => '页码, 默认1', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数, 默认20', 'description' => '分页记录数, 默认20', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20'], ], - 'required' => true, + 'required' => false, ], ], ], @@ -49822,62 +30501,76 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'DeleteResult' => [ - 'title' => '删除结果', - 'description' => '删除结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Success' => [ - 'title' => '是否成功', - 'description' => '是否成功', - 'type' => 'boolean', - ], - 'ErrorCode' => [ - 'title' => '异常代码', - 'description' => '异常代码', - 'type' => 'string', - 'example' => 'E10012011', - ], - 'RelatedClassifyIdList' => [ - 'title' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', - 'description' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '68'], + 'TableList' => [ + 'title' => '表列表', + 'description' => '表列表', 'type' => 'array', 'items' => [ - 'title' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', - 'description' => '绑定当前分级的数据分类ID清单,仅触发该报错时返回', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Guid' => ['title' => '表Guid', 'description' => '表Guid', 'type' => 'string', 'example' => '10011'], + 'DataSourceId' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '3301'], + 'TableSizeInBytes' => ['title' => '表存储总量, 单位:byte', 'description' => '表存储总量, 单位:byte', 'type' => 'integer', 'format' => 'int64', 'example' => '10241024'], + 'LifeCycle' => ['title' => '表生命周期: 天', 'description' => '表生命周期: 天', 'type' => 'integer', 'format' => 'int64', 'example' => '30'], + 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'LastDdlTime' => ['title' => '表DDL最后变更时间', 'description' => '表DDL最后变更时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'LastQueryTime' => ['title' => '最近一次查看数据的时间', 'description' => '最近一次查看数据的时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Owner' => ['title' => '表负责人在Dataphin的用户Id, 未绑定可能为空', 'description' => '表负责人在Dataphin的用户Id, 未绑定可能为空', 'type' => 'string', 'example' => '30011211'], + 'Creator' => ['title' => '创建人id', 'description' => '创建人id', 'type' => 'string', 'example' => '30011211'], + 'VisitCount30d' => ['title' => '最近30天的访问次数', 'description' => '最近30天的访问次数', 'type' => 'integer', 'format' => 'int64', 'example' => '22'], + 'Env' => ['title' => '所属环境:dev、prod', 'description' => '所属环境:dev、prod', 'type' => 'string', 'example' => 'dev'], + 'Name' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'example' => 't_test01'], + 'DisplayName' => ['title' => '表展示名', 'description' => '表展示名', 'type' => 'string', 'example' => '学生'], + 'LastDmlTime' => ['title' => '表数据最近更新时间', 'description' => '表数据最近更新时间', 'type' => 'string', 'example' => '2025-06-30 00:00:00'], + 'Comment' => ['title' => '表注释', 'description' => '表注释', 'type' => 'string', 'example' => 'test'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'example' => '2011'], + 'BizUnitName' => ['title' => '业务板块名称', 'description' => '业务板块名称', 'type' => 'string', 'example' => 'LD_test01'], + 'DataDomainId' => ['title' => '数据域id', 'description' => '数据域id', 'type' => 'integer', 'format' => 'int64', 'example' => '211'], + 'DataDomainName' => ['title' => '主题域名称', 'description' => '主题域名称', 'type' => 'string', 'example' => '211'], + 'ProjectId' => ['title' => '逻辑项目id', 'description' => '逻辑项目id', 'type' => 'integer', 'format' => 'int64', 'example' => '1011'], + 'ProjectName' => ['title' => '逻辑项目名', 'description' => '逻辑项目名', 'type' => 'string', 'example' => 'testPrj'], + 'ParentModelId' => ['title' => '父模型ID, 跳转ODM模型使用', 'description' => '父模型ID, 跳转ODM模型使用', 'type' => 'string', 'example' => '1'], + 'FileId' => ['title' => '文件ID, 跳转ODM模型使用', 'description' => '文件ID, 跳转ODM模型使用', 'type' => 'string', 'example' => '2'], + 'IsPartitionTable' => ['title' => '是否分区键', 'description' => '是否分区键', 'type' => 'boolean'], + 'StorageType' => ['title' => '存储类型:HIVE、MAX_COMPUTE', 'description' => '存储类型:HIVE、MAX_COMPUTE', 'type' => 'string', 'example' => 'HIVE'], + 'StreamTableConfig' => [ + 'title' => '实时元表类的动态属性', + 'description' => '实时元表类的动态属性', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'example' => 'v1'], + ], + ], + ], + 'IsBasicMode' => ['title' => '表所属项目或者业务版本是否是Basic模式', 'description' => '表所属项目或者业务版本是否是Basic模式', 'type' => 'boolean'], + 'AssetTagList' => [ + 'title' => '资产清单标签', + 'description' => '资产清单标签', + 'type' => 'array', + 'items' => ['title' => '资产清单标签', 'description' => '资产清单标签', 'type' => 'string', 'example' => 'LYDAAS'], + ], + 'SecurityLevel' => ['title' => '安全分级', 'description' => '安全分级', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + 'SecurityLevelName' => ['title' => '安全分级名称', 'description' => '安全分级名称', 'type' => 'string', 'example' => '高级'], + 'SecurityLevelAbbreviation' => ['title' => '安全分级名称缩写', 'description' => '安全分级名称缩写', 'type' => 'string', 'example' => '高级'], + ], ], ], ], @@ -49888,80 +30581,81 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"TableList\\": [\\n {\\n \\"Guid\\": \\"10011\\",\\n \\"DataSourceId\\": 3301,\\n \\"TableSizeInBytes\\": 10241024,\\n \\"LifeCycle\\": 30,\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastDdlTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastQueryTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Owner\\": \\"30011211\\",\\n \\"Creator\\": \\"30011211\\",\\n \\"VisitCount30d\\": 22,\\n \\"Env\\": \\"dev\\",\\n \\"Name\\": \\"t_test01\\",\\n \\"DisplayName\\": \\"学生\\",\\n \\"LastDmlTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Comment\\": \\"test\\",\\n \\"BizUnitId\\": 2011,\\n \\"BizUnitName\\": \\"LD_test01\\",\\n \\"DataDomainId\\": 211,\\n \\"DataDomainName\\": \\"211\\",\\n \\"ProjectId\\": 1011,\\n \\"ProjectName\\": \\"testPrj\\",\\n \\"ParentModelId\\": \\"1\\",\\n \\"FileId\\": \\"2\\",\\n \\"IsPartitionTable\\": true,\\n \\"StorageType\\": \\"HIVE\\",\\n \\"StreamTableConfig\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"IsBasicMode\\": true,\\n \\"AssetTagList\\": [\\n \\"LYDAAS\\"\\n ],\\n \\"SecurityLevel\\": 1,\\n \\"SecurityLevelName\\": \\"高级\\",\\n \\"SecurityLevelAbbreviation\\": \\"高级\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '分页查询查询资产表元数据', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"DeleteResult\\": {\\n \\"Success\\": true,\\n \\"ErrorCode\\": \\"E10012011\\",\\n \\"RelatedClassifyIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', - 'title' => '删除数据分级', + 'ramActions' => [], ], - 'DeleteSecurityIdentifyResults' => [ - 'summary' => '批量删除安全识别结果。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ListTenantMembers' => [ + 'summary' => '获取租户成员列表。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '请求对象', + 'description' => '请求对象', 'type' => 'object', 'properties' => [ - 'IdentifyResultIdList' => [ - 'title' => '识别结果ID列表', - 'description' => '识别结果ID列表', + 'Page' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], + 'SearchText' => ['title' => '搜索关键字', 'description' => '搜索关键字', 'type' => 'string', 'required' => false, 'example' => '测试'], + 'UserGroupIdList' => [ + 'title' => '成员归属用户组ID', + 'description' => '成员归属用户组ID', 'type' => 'array', - 'items' => [ - 'title' => '识别结果ID列表', - 'description' => '识别结果ID列表', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], + 'items' => ['description' => '用户组ID', 'type' => 'string', 'required' => false, 'example' => '1213111'], + 'required' => false, + ], + 'RoleList' => [ + 'title' => '成员角色:'."\n" + .'SUPER_ADMIN PROJECT_OPS PROJECT_DEVELOPER等', + 'description' => '成员角色:'."\n" + .'- SUPER_ADMIN:dataphin超级管理员'."\n" + .'- SYSTEM_ADMIN:系统管理员'."\n" + .'- COMMON_USER:dataphin用户'."\n" + .'- DATA_ADMIN:dataphin数据管理员'."\n" + .'- EXPORT_ADMIN:导出管理员'."\n" + .'- SECURITY_ADMIN:安全管理员'."\n" + .'- DATASOURCE_MANAGER:数据源管理员'."\n" + .'- QUALITY_MANAGER:资产质量负责人'."\n" + .'- DATA_STANDARD_MANAGER:数据标准管理员'."\n" + .'- LABELS_BUSINESS_PLANNER:标签业务规划师'."\n" + .'- BUSINESS_MEMBER:普通业务用户'."\n" + .'- DATAPRO_OPERATE_SUPER_ADMIN:运营超级管理员'."\n" + .'- DATAPRO_OPERATE_ADMIN:运营管理员'."\n" + .'- DATAPRO_OPERATE_MEMBER:运营人员'."\n" + .'- DATAPRO_BUSINESS_ANALYST:业务分析师'."\n" + .'- LABELS_BUSINESS_MEMBER:标签业务员'."\n" + .'- DATAPRO_BUSINESS_MEMBER:DATAPRO 普通业务用户', + 'type' => 'array', + 'items' => ['description' => '成员角色', 'type' => 'string', 'required' => false, 'example' => 'DATA_ADMIN'], 'required' => false, ], ], @@ -49972,44 +30666,73 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'boolean', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '110'], + 'UserList' => [ + 'title' => '用户列表', + 'description' => '用户列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户对象', + 'description' => '用户对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '132321'], + 'SourceType' => ['title' => '用户来源', 'description' => '用户来源', 'type' => 'string', 'example' => 'aliyun'], + 'SourceId' => ['title' => '用户来源Id', 'description' => '用户来源Id', 'type' => 'string', 'example' => '213213232422222'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'zhangsan'], + 'DisplayName' => ['title' => '用户显示名', 'description' => '用户显示名', 'type' => 'string', 'example' => 'zhangsan'], + 'DisplayNameWithoutStatus' => ['title' => '用户显示名(不含状态)', 'description' => '用户显示名(不含状态)', 'type' => 'string', 'example' => 'zhangsan'], + 'AccountName' => ['title' => '账号名', 'description' => '账号名', 'type' => 'string', 'example' => 'zhangsan'], + 'RealName' => ['title' => '用户真实名称', 'description' => '用户真实名称', 'type' => 'string', 'example' => '张三'], + 'NickName' => ['title' => '用户昵称', 'description' => '用户昵称', 'type' => 'string', 'example' => 'susan'], + 'GmtCreate' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1730000000000'], + 'MobilePhone' => ['title' => '电话号码', 'description' => '电话号码', 'type' => 'string', 'example' => '13888888888'], + 'Mail' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'example' => '123@aliyun.com'], + 'DingNumber' => ['title' => '钉钉号', 'description' => '钉钉号', 'type' => 'string', 'example' => 'dd123123'], + 'EnableWhiteIp' => ['title' => '是否开启ip白名单', 'description' => '是否开启ip白名单', 'type' => 'string', 'example' => 'true'], + 'WhiteIp' => ['title' => '白名单', 'description' => '白名单', 'type' => 'string', 'example' => '0.0.0.0/0'], + 'GmtModified' => ['description' => '编辑时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1730000000000'], + 'UserGroupList' => [ + 'title' => '归属资源组', + 'description' => '归属资源组', + 'type' => 'array', + 'items' => [ + 'title' => '用户组', + 'description' => '资源组', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户组ID', 'description' => '用户组ID', 'type' => 'string', 'example' => '121313'], + 'Name' => ['title' => '用户组名字', 'description' => '用户组名字', 'type' => 'string', 'example' => 'xx测试'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => '测试'], + 'Active' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean', 'example' => 'true'], + ], + 'example' => '232424', + ], + ], + 'RoleList' => [ + 'title' => '成员橘色', + 'description' => '成员角色', + 'type' => 'array', + 'items' => ['description' => '角色', 'type' => 'string', 'example' => 'DATA_ADMIN'], + ], + ], + ], + ], + ], ], ], ], @@ -50017,81 +30740,76 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 110,\\n \\"UserList\\": [\\n {\\n \\"Id\\": \\"132321\\",\\n \\"SourceType\\": \\"aliyun\\",\\n \\"SourceId\\": \\"213213232422222\\",\\n \\"Name\\": \\"zhangsan\\",\\n \\"DisplayName\\": \\"zhangsan\\",\\n \\"DisplayNameWithoutStatus\\": \\"zhangsan\\",\\n \\"AccountName\\": \\"zhangsan\\",\\n \\"RealName\\": \\"张三\\",\\n \\"NickName\\": \\"susan\\",\\n \\"GmtCreate\\": 1730000000000,\\n \\"MobilePhone\\": \\"13888888888\\",\\n \\"Mail\\": \\"123@aliyun.com\\",\\n \\"DingNumber\\": \\"dd123123\\",\\n \\"EnableWhiteIp\\": \\"true\\",\\n \\"WhiteIp\\": \\"0.0.0.0/0\\",\\n \\"GmtModified\\": 1730000000000,\\n \\"UserGroupList\\": [\\n {\\n \\"Id\\": \\"121313\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"测试\\",\\n \\"Active\\": true\\n }\\n ],\\n \\"RoleList\\": [\\n \\"DATA_ADMIN\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '获取租户成员列表', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '批量删除安全识别结果', - ], - 'DeleteSecurityClassifyCatalog' => [ - 'summary' => '删除数据分类目录。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListTenantMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListUserGroupMembers' => [ + 'summary' => '用户组成员分页查询。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除指令', - 'description' => '删除指令', + 'title' => '分页查询', + 'description' => '分页查询', 'type' => 'object', 'properties' => [ - 'Path' => [ - 'title' => '原目录的完整路径', - 'description' => '原目录的完整路径', - 'type' => 'string', - 'required' => true, - 'example' => '/d1/d2/', - ], - 'ReturnRemovedDetails' => [ - 'title' => '是否返回删除详情,默认: true', - 'description' => '是否返回删除详情,默认: true', - 'type' => 'boolean', + 'Keyword' => ['title' => '用户名关键字', 'description' => '用户名关键字', 'type' => 'string', 'required' => false, 'example' => 'a'], + 'UserGroupId' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => false, 'example' => '232231'], + 'UserIdList' => [ + 'title' => '用户Id', + 'description' => '用户Id', + 'type' => 'array', + 'items' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => false, 'example' => '2231111'], 'required' => false, ], + 'PageNo' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], ], 'required' => true, ], @@ -50100,71 +30818,54 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除结果详情', - 'description' => '删除结果详情', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', 'type' => 'object', 'properties' => [ - 'Success' => [ - 'title' => '是否删除成功', - 'description' => '是否删除成功', - 'type' => 'boolean', - ], - 'ChildCatalogFullPathList' => [ - 'title' => '被连带删除的子目录完整路径列表', - 'description' => '被连带删除的子目录完整路径列表', - 'type' => 'array', - 'items' => [ - 'title' => '被连带删除的子目录完整路径列表', - 'description' => '被连带删除的子目录完整路径列表', - 'type' => 'string', - 'example' => '/d1/d2/d3/', - ], - ], - 'ClassifyIdList' => [ - 'title' => '被连带删除的分类ID列表', - 'description' => '被连带删除的分类ID列表', + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '217'], + 'MemberList' => [ + 'title' => '分页列表', + 'description' => '分页列表', 'type' => 'array', 'items' => [ - 'title' => '被连带删除的分类ID列表', - 'description' => '被连带删除的分类ID列表', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '5', + 'description' => '用户组成员', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户组成员Id', 'description' => '用户组成员Id', 'type' => 'string', 'example' => '2324211'], + 'UserGroupId' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'example' => '231111'], + 'UserInfo' => [ + 'title' => '用户组成员', + 'description' => '用户组成员', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '13232'], + 'DisplayName' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'xx测试'], + 'AccountName' => ['title' => '用户账号名', 'description' => '用户账号名', 'type' => 'string', 'example' => 'atest'], + ], + ], + 'UserRole' => ['title' => '用户组成员在用户组角色', 'description' => '用户组成员在用户组角色', 'type' => 'string', 'example' => 'SECURITY_ADMIN'], + 'Creator' => [ + 'title' => '添加人', + 'description' => '添加人', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '12121111'], + 'DisplayName' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'zhangsan'], + 'AccountName' => ['title' => '用户账号名', 'description' => '用户账号名', 'type' => 'string', 'example' => '12121111'], + ], + ], + 'GmtCreate' => ['title' => '用户组成员添加时间', 'description' => '用户组成员添加时间', 'type' => 'integer', 'format' => 'int64', 'example' => 'zhangsan'], + ], ], ], ], @@ -50175,90 +30876,77 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 217,\\n \\"MemberList\\": [\\n {\\n \\"Id\\": \\"2324211\\",\\n \\"UserGroupId\\": \\"231111\\",\\n \\"UserInfo\\": {\\n \\"Id\\": \\"13232\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"AccountName\\": \\"atest\\"\\n },\\n \\"UserRole\\": \\"SECURITY_ADMIN\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"12121111\\",\\n \\"DisplayName\\": \\"zhangsan\\",\\n \\"AccountName\\": \\"12121111\\"\\n },\\n \\"GmtCreate\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '用户组成员分页查询', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"ChildCatalogFullPathList\\": [\\n \\"/d1/d2/d3/\\"\\n ],\\n \\"ClassifyIdList\\": [\\n 5\\n ]\\n }\\n}","type":"json"}]', - 'title' => '删除数据分类目录', - ], - 'DeleteSecurityClassify' => [ - 'summary' => '删除数据分类。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListUserGroupMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ListUserGroups' => [ + 'summary' => '用户组列表分页查询。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteCommand', + 'name' => 'ListQuery', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新指令', - 'description' => '更新指令', + 'title' => '分页查询', + 'description' => '分页查询', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '分类ID, 不传递时按照分类名称+分类父路径匹配分类进行删除', - 'description' => '分类ID, 不传递时按照分类名称+分类父路径匹配分类进行删除', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Name' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ParentPath' => [ - 'title' => '分类路径,默认/', - 'description' => '分类路径,默认/', - 'type' => 'string', + 'Keyword' => ['title' => '用户组名称关键字', 'description' => '用户组名称关键字', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Active' => ['title' => '是否启用用户组', 'description' => '是否启用用户组', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'AdminIdList' => [ + 'title' => '用户组管理员用户Id', + 'description' => '用户组管理员用户Id', + 'type' => 'array', + 'items' => ['title' => '用户组管理员用户Id', 'description' => '用户组管理员用户Id', 'type' => 'string', 'required' => false, 'example' => '131311'], 'required' => false, - 'example' => '/', ], + 'FilterMine' => ['title' => '是否过滤当前用户所在用户组', 'description' => '是否过滤当前用户所在用户组', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'PageNo' => ['title' => '页码', 'description' => '页码', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'PageSize' => ['title' => '分页记录数', 'description' => '分页记录数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'], ], 'required' => true, ], @@ -50267,44 +30955,53 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'boolean', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PageResult' => [ + 'title' => '分页查询结果', + 'description' => '分页查询结果', + 'type' => 'object', + 'properties' => [ + 'TotalCount' => ['title' => '总记录数', 'description' => '总记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '49'], + 'UserGroupList' => [ + 'title' => '分页列表', + 'description' => '分页列表', + 'type' => 'array', + 'items' => [ + 'title' => '用户组', + 'description' => '用户组', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'example' => '31313232'], + 'Name' => ['title' => '用户组名称', 'description' => '用户组名称', 'type' => 'string', 'example' => 'xx测试'], + 'Description' => ['title' => '用户组描述', 'description' => '用户组描述', 'type' => 'string', 'example' => 'xx 测试'], + 'Active' => ['title' => '是否启用用户组', 'description' => '是否启用用户组', 'type' => 'boolean', 'example' => 'true'], + 'AdminList' => [ + 'title' => '用户组管理员', + 'description' => '用户组管理员', + 'type' => 'array', + 'items' => [ + 'description' => '用户组管理员', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'example' => '32313131'], + 'DisplayName' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => '张三'], + 'AccountName' => ['title' => '用户账号名', 'description' => '用户账号名', 'type' => 'string', 'example' => 'zhangsan'], + ], + ], + ], + 'MyRole' => ['title' => '当前用户在用户组角色', 'description' => '当前用户在用户组角色', 'type' => 'string', 'example' => 'SECURITY_ADMIN'], + ], + ], + ], + ], ], ], ], @@ -50312,34 +31009,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 49,\\n \\"UserGroupList\\": [\\n {\\n \\"Id\\": \\"31313232\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"Active\\": true,\\n \\"AdminList\\": [\\n {\\n \\"Id\\": \\"32313131\\",\\n \\"DisplayName\\": \\"张三\\",\\n \\"AccountName\\": \\"zhangsan\\"\\n }\\n ],\\n \\"MyRole\\": \\"SECURITY_ADMIN\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '用户组列表分页查询', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', - 'title' => '删除数据分类', - ], - 'CreateSecurityLevel' => [ - 'summary' => '新建数据分级。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListUserGroups', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'OfflineBatchTask' => [ + 'summary' => '下线离线计算任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -50347,110 +31052,48 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '分级名称', - 'description' => '分级名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Abbreviation' => [ - 'title' => '分级缩写', - 'description' => '分级缩写', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Index' => [ - 'title' => '分级顺序,不传递将默认生成当前最大顺序Id', - 'description' => '分级顺序,不传递将默认生成当前最大顺序Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1', - ], - 'Description' => [ - 'title' => '分级描述', - 'description' => '分级描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - ], - 'required' => true, - ], + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + ], + [ + 'name' => 'Comment', + 'in' => 'query', + 'schema' => ['title' => '下线操作备注', 'description' => '下线操作备注', 'type' => 'string', 'required' => true, 'example' => 'test xx'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '数据分级Index', - 'description' => '数据分级ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'OfflineResult' => [ + 'title' => '下线结果', + 'description' => '下线结果', + 'type' => 'object', + 'properties' => [ + 'PublishObjectId' => ['title' => '待发布对象ID', 'description' => '待发布对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '10211123'], + ], ], ], ], @@ -50458,34 +31101,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OfflineResult\\": {\\n \\"PublishObjectId\\": 10211123\\n }\\n}","type":"json"}]', + 'title' => '下线离线计算任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建数据分级', - ], - 'CreateSecurityIdentifyResult' => [ - 'summary' => '新建安全识别结果。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OfflineBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'OfflineBizEntity' => [ + 'summary' => '下线业务实体。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -50493,97 +31144,26 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'OfflineCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建请求', + 'title' => '下线请求', + 'description' => '下线请求', 'type' => 'object', 'properties' => [ - 'IsDatasourceTable' => [ - 'title' => '是否数据源表, 默认否(视为Dataphin表)', - 'description' => '是否数据源表, 默认否(视为Dataphin表)', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'DatasourceName' => [ - 'title' => '数据源名称,仅数据源表需要填写', - 'description' => '数据源名称,仅数据源表需要填写', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'DatasourceEnv' => [ - 'title' => '数据源环境标识,仅数据源表需要填写', - 'description' => '数据源环境标识,仅数据源表需要填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'TableCatalog' => [ - 'title' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', - 'description' => '表Catalog,数据源表请填写所属db或schema名称;Dataphin物理表请填写项目英文名;Dataphin逻辑表请填写板块英文名', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'required' => true, - 'example' => 't_test', - ], - 'FieldName' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'required' => true, - 'example' => 'col1', - ], - 'ClassifyId' => [ - 'title' => '分类ID', - 'description' => '分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1', - ], - 'Enable' => [ - 'title' => '生效状态: true开启、false关闭, 默认: true', - 'description' => '生效状态: true开启、false关闭, 默认: true', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'ConflictStrategy' => [ - 'title' => '去重策略: COVER_ALL 覆盖线上全部打标、COVER_UNLOCKED 仅覆盖线上未锁定打标、NOT_COVER 不覆盖,保留线上打标', - 'description' => '去重策略: COVER_ALL 覆盖线上全部打标、COVER_UNLOCKED 仅覆盖线上未锁定打标、', - 'type' => 'string', - 'required' => true, - 'example' => 'COVER_ALL', - ], + 'BizUnitId' => ['title' => '所属业务板块Id', 'description' => '所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,参考”创建业务实体“接口', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + 'Id' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + 'Comment' => ['title' => '下线备注', 'description' => '下线备注', 'type' => 'string', 'required' => true, 'example' => 'test'], ], 'required' => true, ], @@ -50592,80 +31172,57 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', + 'title' => '响应结果', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '识别结果ID', - 'description' => '识别结果ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '下线业务实体', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:26:34.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建安全识别结果', - ], - 'CreateSecurityClassifyCatalog' => [ - 'summary' => '新建数据分类目录。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OfflineBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'OfflinePipeline' => [ + 'summary' => '下线集成管道任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -50674,67 +31231,42 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'CreateCommand', + 'name' => 'OfflineCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '下线管道任务', + 'description' => '下线管道任务', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '分类目录名称', - 'description' => '分类目录名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'ParentPath' => [ - 'title' => '分类父目录完整路径,默认/', - 'description' => '分类父目录完整路径,默认/', - 'type' => 'string', - 'required' => false, - 'example' => '/d1/', - ], - 'OwnerList' => [ - 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'type' => 'array', - 'items' => [ - 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', - 'type' => 'string', - 'required' => false, - 'example' => '30001011', - ], - 'required' => false, - ], - 'VisibleType' => [ - 'title' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', - 'description' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', - 'type' => 'string', - 'required' => false, - 'example' => 'PUBLIC', - ], + 'Delete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'boolean', 'required' => true], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'NodeId' => ['title' => '支持使用集成任务调度节点nodeId查询', 'description' => '支持使用集成任务调度节点nodeId查询,pipelineId、fileId、nodeId设置任意一个即可', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '支持使用集成管道主键pipelineId查询', 'description' => '支持使用集成管道主键pipelineId查询,pipelineId、fileId、nodeId设置任意一个即可', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '支持使用集成任务文件fileId查询', 'description' => '支持使用集成任务文件fileId查询,pipelineId、fileId、nodeId设置任意一个即可', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], ], 'required' => true, ], @@ -50747,75 +31279,49 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], 'Data' => [ - 'title' => '新建成功的目录的完整路径', - 'description' => '新建成功的目录的完整路径', - 'type' => 'string', - 'example' => '/d1/d2/', + 'title' => '管道下线结果', + 'description' => '管道下线结果', + 'type' => 'object', + 'properties' => [ + 'SubmitId' => ['title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', 'description' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'HostMachine' => ['title' => '服务端执行机器名称和ip', 'description' => '服务端执行机器名称和ip', 'type' => 'string', 'example' => 'hostName:hostIp'], + 'Version' => ['title' => '提交后生成的版本号', 'description' => '提交后生成的版本号', 'type' => 'string', 'example' => '1'], + 'NodeId' => ['title' => '创建成功后的管道任务调度节点Id', 'description' => '创建成功后的管道任务调度节点Id', 'type' => 'string', 'example' => '123'], + 'PipelineId' => ['title' => '创建成功后的管道ID', 'description' => '创建成功后的管道ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '下线管道任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"/d1/d2/\\"\\n}","type":"json"}]', - 'title' => '新建数据分类目录', + 'ramActions' => [], ], - 'CreateSecurityClassify' => [ - 'summary' => '新建数据分类。'."\n" - .'上线版本:v5.4.2 。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'OfflinePipelineByAsync' => [ + 'summary' => '异步下线集成管道任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -50824,184 +31330,42 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'CreateCommand', + 'name' => 'OfflineCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建指令', - 'description' => '创建指令', + 'title' => '下线管道任务', + 'description' => '下线管道任务', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '分类名称', - 'description' => '分类名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'Abbreviation' => [ - 'title' => '分类简称', - 'description' => '分类简称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Description' => [ - 'title' => '分类描述', - 'description' => '分类描述', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ParentPath' => [ - 'title' => '分类路径,可选,未填写或填写/均视为直接归属根目录', - 'description' => '分类路径,可选,未填写或填写/均视为直接归属根目录', - 'type' => 'string', - 'required' => false, - 'example' => '/', - ], - 'LevelName' => [ - 'title' => '数据分级名称', - 'description' => '数据分级名称', - 'type' => 'string', - 'required' => true, - 'example' => 'L2', - ], - 'FeatureNameList' => [ - 'title' => '特征名称', - 'description' => '特征名称', - 'type' => 'array', - 'items' => [ - 'title' => '特征名称', - 'description' => '特征名称', - 'type' => 'string', - 'required' => false, - 'example' => '行业', - ], - 'required' => false, - ], - 'Priority' => [ - 'title' => '优先级,默认: 5', - 'description' => '优先级,默认: 5', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '5', - ], - 'AdvancedConditionList' => [ - 'title' => '高级配置', - 'description' => '高级配置', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'ParentId' => [ - 'title' => '特征条件父节点', - 'description' => '特征条件父节点', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - 'Id' => [ - 'title' => '特征条件节点id,由业务随机生成且确保唯一', - 'description' => '特征条件节点id,由业务随机生成且确保唯一', - 'type' => 'string', - 'required' => true, - 'example' => '234', - ], - 'Relation' => [ - 'title' => '条件关系: EXPRESSION 表达式、RELATION 关系', - 'description' => '条件关系: EXPRESSION 表达式、RELATION 关系', - 'type' => 'string', - 'required' => true, - 'example' => 'EXPRESSION', - ], - 'Property' => [ - 'title' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', - 'description' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', - 'type' => 'string', - 'required' => false, - 'example' => 'TABLE_NAME', - ], - 'Operate' => [ - 'title' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', - 'description' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', - 'type' => 'string', - 'required' => true, - 'example' => 'AND', - ], - 'ValueList' => [ - 'title' => '条件取值', - 'description' => '条件取值', - 'type' => 'array', - 'items' => [ - 'title' => '条件取值', - 'description' => '条件取值', - 'type' => 'string', - 'required' => false, - 'example' => 'abc', - ], - 'required' => false, - ], - 'OptionList' => [ - 'title' => '额外属性,如字段内容', - 'description' => '额外属性,如字段内容', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'Status' => [ - 'title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', - 'type' => 'string', - 'required' => false, - 'example' => 'ENABLE', - ], + 'Delete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'boolean', 'required' => true], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'NodeId' => ['title' => '支持使用集成任务调度节点nodeId查询', 'description' => '支持使用集成任务调度节点nodeId查询', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '支持使用集成管道主键pipelineId查询', 'description' => '支持使用集成管道主键pipelineId查询', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '支持使用集成任务文件fileId查询', 'description' => '支持使用集成任务文件fileId查询', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], ], 'required' => true, ], @@ -51014,162 +31378,67 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '数据分类ID', - 'description' => '数据分类ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => ['title' => '异步执行查询Id', 'description' => '异步执行查询Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '异步下线管道任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', - 'title' => '新建数据分类', + 'ramActions' => [], ], - 'GetTableLineages' => [ - 'summary' => '查询资产表血缘信息。'."\n" + 'OfflineStandard' => [ + 'summary' => '下线标准。'."\n" .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'TableGuid', - 'in' => 'query', + 'name' => 'OfflineCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '表Guid, 每个资产的唯一标识', - 'description' => '表Guid, 每个资产的唯一标识', - 'type' => 'string', - 'required' => true, - 'example' => '1121', - ], - ], - [ - 'name' => 'FilterQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '过滤条件', - 'description' => '过滤条件', + 'title' => '下线指令', + 'description' => '下线指令', 'type' => 'object', 'properties' => [ - 'NodeEnv' => [ - 'title' => '用于过滤要查询的任务所属环境: dev、prod', - 'description' => '用于过滤要查询的任务所属环境: dev、prod', - 'type' => 'string', - 'required' => false, - 'example' => 'dev', - ], - 'NodeIdList' => [ - 'title' => '用于过滤要查询的任务Id列表', - 'description' => '用于过滤要查询的任务Id列表', - 'type' => 'array', - 'items' => [ - 'title' => '用于过滤要查询的任务Id列表', - 'description' => '用于过滤要查询的任务Id列表', - 'type' => 'string', - 'required' => false, - 'example' => '110021', - ], - 'required' => false, - ], - 'NeedUpstream' => [ - 'title' => '是否查询上游血缘, 默认:false', - 'description' => '是否查询上游血缘, 默认:false', - 'type' => 'boolean', - 'required' => false, - ], - 'NeedDownstream' => [ - 'title' => '是否查询下游血缘, 默认:false', - 'description' => '是否查询下游血缘, 默认:false', - 'type' => 'boolean', - 'required' => false, - ], - 'NeedNotExistObject' => [ - 'title' => '返回在资产清单中不存在的表, 默认:false', - 'description' => '返回在资产清单中不存在的表, 默认:false', - 'type' => 'boolean', - 'required' => false, - ], + 'Id' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Comment' => ['title' => '审核备注,最多128字符', 'description' => '审核备注,最多128字符', 'type' => 'string', 'required' => true, 'example' => 'test'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -51180,572 +31449,214 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'TableLineageList' => [ - 'title' => '表血缘列表', - 'description' => '表血缘列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '血缘对应的任务Id', - 'description' => '血缘对应的任务Id', - 'type' => 'string', - 'example' => '110021', - ], - 'NodeEnv' => [ - 'title' => '任务所属环境: dev、prod', - 'description' => '任务所属环境: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'InputTableEnv' => [ - 'title' => '输入表所属环境: dev、prod', - 'description' => '输入表所属环境: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'InputTableGuid' => [ - 'title' => '输入表Guid, 每个资产都有唯一标识', - 'description' => '输入表Guid, 每个资产都有唯一标识', - 'type' => 'string', - 'example' => '123211', - ], - 'InputTableName' => [ - 'title' => '输入表名', - 'description' => '输入表名', - 'type' => 'string', - 'example' => 't_input', - ], - 'InputProjectId' => [ - 'title' => '输入表所属项目Id', - 'description' => '输入表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1233', - ], - 'InputBizUnitId' => [ - 'title' => '输入表所属业务板块Id', - 'description' => '输入表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'InputDataSourceId' => [ - 'title' => '输入表所属数据源Id', - 'description' => '输入表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'InputDataSourceType' => [ - 'title' => '输入表所属数据源类型', - 'description' => '输入表所属数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputTableDeleted' => [ - 'title' => '输入表是否已删除', - 'description' => '输入表是否已删除', - 'type' => 'boolean', - ], - 'OutputTableEnv' => [ - 'title' => '输出表所属的env: dev、prod', - 'description' => '输出表所属的env: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'OutputTableGuid' => [ - 'title' => '输出表Guid, 每个资产都有唯一标识', - 'description' => '输出表Guid, 每个资产都有唯一标识', - 'type' => 'string', - 'example' => '2231', - ], - 'OutputTableName' => [ - 'title' => '输出表名', - 'description' => '输出表名', - 'type' => 'string', - 'example' => 't_output', - ], - 'OutputProjectId' => [ - 'title' => '输出表所属项目Id', - 'description' => '输出表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1233', - ], - 'OutputBizUnitId' => [ - 'title' => '输出表所属业务板块Id', - 'description' => '输出表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'OutputDataSourceId' => [ - 'title' => '输出表所属数据源Id', - 'description' => '输出表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'OutputDataSourceType' => [ - 'title' => '输出表所属数据源类型', - 'description' => '输出表所属数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputTableDeleted' => [ - 'title' => '输出表是否已删除', - 'description' => '输出表是否已删除', - 'type' => 'boolean', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '下线标准', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TableLineageList\\": [\\n {\\n \\"NodeId\\": \\"110021\\",\\n \\"NodeEnv\\": \\"dev\\",\\n \\"InputTableEnv\\": \\"dev\\",\\n \\"InputTableGuid\\": \\"123211\\",\\n \\"InputTableName\\": \\"t_input\\",\\n \\"InputProjectId\\": 1233,\\n \\"InputBizUnitId\\": 1,\\n \\"InputDataSourceId\\": 1,\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableEnv\\": \\"dev\\",\\n \\"OutputTableGuid\\": \\"2231\\",\\n \\"OutputTableName\\": \\"t_output\\",\\n \\"OutputProjectId\\": 1233,\\n \\"OutputBizUnitId\\": 1,\\n \\"OutputDataSourceId\\": 1,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询资产表血缘信息', + 'ramActions' => [], ], - 'GetBelongAssetMapping' => [ - 'summary' => '根据归属资产GUID查询映射关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'OnlineBizEntity' => [ + 'summary' => '上线业务实体。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AssetMappingQuery', + 'name' => 'OnlineCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询指令', - 'description' => '查询指令', + 'title' => '上线请求', + 'description' => '上线请求', 'type' => 'object', 'properties' => [ - 'BelongGuid' => [ - 'title' => '归属资产Guid', - 'description' => '归属资产Guid', - 'type' => 'string', - 'required' => true, - 'example' => '1121', - ], - 'RelationType' => [ - 'title' => '映射关系类型: VALID 已映射、INVALID 无效映射', - 'description' => '映射关系类型: VALID 已映射、INVALID 无效映射', - 'type' => 'string', - 'required' => false, - 'example' => 'VALID', - ], + 'BizUnitId' => ['title' => '所属业务板块Id', 'description' => '所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + 'Id' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + 'Comment' => ['title' => '下线备注', 'description' => '下线备注', 'type' => 'string', 'required' => true, 'example' => 'test'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'MappingRelationList' => [ - 'title' => '映射关系列表', - 'description' => '映射关系列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ModifyTime' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Guid' => [ - 'title' => '资产guid', - 'description' => '资产guid', - 'type' => 'string', - 'example' => '1122', - ], - 'Name' => [ - 'title' => '资产名称', - 'description' => '资产名称', - 'type' => 'string', - 'example' => 'test', - ], - 'AssetType' => [ - 'title' => '资产类型: COLUMN 字段、INDEX 指标', - 'description' => '资产类型: COLUMN 字段、INDEX 指标', - 'type' => 'string', - 'example' => 'COLUMN', - ], - 'StandardId' => [ - 'title' => '标准id', - 'description' => '标准id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'StandardName' => [ - 'title' => '标准名称', - 'description' => '标准名称', - 'type' => 'string', - 'example' => 'test', - ], - 'StandardCode' => [ - 'title' => '标准编码', - 'description' => '标准编码', - 'type' => 'string', - 'example' => 'cc', - ], - 'StandardSetId' => [ - 'title' => '标准集id', - 'description' => '标准集id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'StandardSetName' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'example' => 'test', - ], - 'StandardSetDirectory' => [ - 'title' => '标准集所在的文件夹', - 'description' => '标准集所在的文件夹', - 'type' => 'string', - 'example' => '/dir1', - ], - 'StandardStage' => [ - 'title' => '标准阶段', - 'description' => '标准阶段', - 'type' => 'string', - 'example' => 'PROD', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '上线业务实体', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:50.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"MappingRelationList\\": [\\n {\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Guid\\": \\"1122\\",\\n \\"Name\\": \\"test\\",\\n \\"AssetType\\": \\"COLUMN\\",\\n \\"StandardId\\": 1,\\n \\"StandardName\\": \\"test\\",\\n \\"StandardCode\\": \\"cc\\",\\n \\"StandardSetId\\": 2,\\n \\"StandardSetName\\": \\"test\\",\\n \\"StandardSetDirectory\\": \\"/dir1\\",\\n \\"StandardStage\\": \\"PROD\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '根据归属资产GUID查询映射关系', - ], - 'GetAssetMappingRelations' => [ - 'summary' => '根据资产对象GUID查询映射关系。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OnlineBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'OperateInstance' => [ + 'summary' => '批量运维实例,支持物理实例和逻辑表实例。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AssetMappingQuery', + 'name' => 'OperateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询指令', - 'description' => '查询指令', + 'title' => '操作请求', + 'description' => '操作请求', 'type' => 'object', 'properties' => [ - 'Guid' => [ - 'title' => '资产对象guid', - 'description' => '资产对象guid', - 'type' => 'string', - 'required' => true, - 'example' => '1121', - ], - 'AssetType' => [ - 'title' => '资产对象类型: COLUMN 字段、INDEX 指标', - 'description' => '资产对象类型: COLUMN 字段、INDEX 指标', - 'type' => 'string', - 'required' => true, - 'example' => 'INDEX', - ], - 'RelationType' => [ - 'title' => '映射关系类型: VALID 已映射、INVALID 无效映射', - 'description' => '映射关系类型: VALID 已映射、INVALID 无效映射', - 'type' => 'string', + 'InstanceIdList' => [ + 'title' => '运维实例列表', + 'description' => '运维实例列表', + 'type' => 'array', + 'items' => [ + 'description' => '运维实例', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '实例ID', 'type' => 'string', 'required' => true, 'example' => 't_32111312'], + 'FieldInstanceIdList' => [ + 'description' => '字段实例ID', + 'type' => 'array', + 'items' => ['description' => '字段实例ID', 'type' => 'string', 'required' => false, 'example' => 't_2311'], + 'required' => false, + ], + ], + 'required' => true, + ], 'required' => true, - 'example' => 'VALID', ], + 'Operation' => ['title' => '操作 '."\n" + .'RERUN:重跑/PAUSE:暂停/RESUME:恢复/TERMINATE:终止/SET_SUCCESS:置为成功', 'description' => '操作 '."\n" + .'- RERUN:重跑'."\n" + .'- PAUSE:暂停'."\n" + .'- RESUME:恢复'."\n" + .'- TERMINATE:终止'."\n" + .'- SET_SUCCESS:置为成功', 'type' => 'string', 'required' => true, 'example' => 'RERUN'], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '132311'], ], - 'required' => false, + 'required' => true, ], ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'MappingRelationList' => [ - 'title' => '映射关系列表', - 'description' => '映射关系列表', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'InstanceStatusList' => [ + 'title' => '实例运维结果', + 'description' => '实例运维结果', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'description' => '实例运维结果', 'type' => 'object', 'properties' => [ - 'ModifyTime' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Guid' => [ - 'title' => '资产guid', - 'description' => '资产guid', - 'type' => 'string', - 'example' => '1122', - ], - 'Name' => [ - 'title' => '资产名称', - 'description' => '资产名称', - 'type' => 'string', - 'example' => 'test', - ], - 'AssetType' => [ - 'title' => '资产类型: COLUMN 字段、INDEX 指标', - 'description' => '资产类型: COLUMN 字段、INDEX 指标', - 'type' => 'string', - 'example' => 'COLUMN', - ], - 'StandardId' => [ - 'title' => '标准id', - 'description' => '标准id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'StandardName' => [ - 'title' => '标准名称', - 'description' => '标准名称', - 'type' => 'string', - 'example' => 'test', - ], - 'StandardCode' => [ - 'title' => '标准编码', - 'description' => '标准编码', - 'type' => 'string', - 'example' => 'cc', - ], - 'StandardSetId' => [ - 'title' => '标准集id', - 'description' => '标准集id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'StandardSetName' => [ - 'title' => '标准集名称', - 'description' => '标准集名称', - 'type' => 'string', - 'example' => 'test', - ], - 'StandardSetDirectory' => [ - 'title' => '标准集所在的文件夹', - 'description' => '标准集所在的文件夹', - 'type' => 'string', - 'example' => '/dir1', - ], - 'StandardStage' => [ - 'title' => '标准阶段', - 'description' => '标准阶段', - 'type' => 'string', - 'example' => 'PROD', - ], + 'Id' => ['title' => '实例ID', 'description' => '实例ID', 'type' => 'string', 'example' => 't_132435'], + 'Name' => ['title' => '实例名', 'description' => '实例名', 'type' => 'string', 'example' => 'xx测试'], + 'DisplayName' => ['title' => '实例显示名', 'description' => '实例显示名', 'type' => 'string', 'example' => 'xx测试'], + 'Status' => ['title' => '操作的结果,成功或者失败', 'description' => '操作的结果,成功或者失败', 'type' => 'string', 'example' => 'SUCCESS'], + 'ErrorMessage' => ['title' => '操作失败时的错误信息', 'description' => '操作失败时的错误信息', 'type' => 'string', 'example' => 'xx'], + 'OwnerId' => ['title' => '实例负责人', 'description' => '实例负责人', 'type' => 'string', 'example' => '121311'], + 'OwnerName' => ['title' => '实例负责人', 'description' => '实例负责人', 'type' => 'string', 'example' => 'xx测试'], ], ], ], @@ -51755,34 +31666,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceStatusList\\": [\\n {\\n \\"Id\\": \\"t_132435\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx\\",\\n \\"OwnerId\\": \\"121311\\",\\n \\"OwnerName\\": \\"xx测试\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '实例运维', + 'changeSet' => [ + ['createdAt' => '2025-02-20T10:46:03.000Z', 'description' => '请求参数发生变更'], + ['createdAt' => '2025-02-17T08:23:50.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"MappingRelationList\\": [\\n {\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Guid\\": \\"1122\\",\\n \\"Name\\": \\"test\\",\\n \\"AssetType\\": \\"COLUMN\\",\\n \\"StandardId\\": 1,\\n \\"StandardName\\": \\"test\\",\\n \\"StandardCode\\": \\"cc\\",\\n \\"StandardSetId\\": 2,\\n \\"StandardSetName\\": \\"test\\",\\n \\"StandardSetDirectory\\": \\"/dir1\\",\\n \\"StandardStage\\": \\"PROD\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '根据资产对象GUID查询映射关系', - ], - 'ListTables' => [ - 'summary' => '分页查询查询资产表元数据。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OperateInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'ParseBatchTaskDependency' => [ + 'summary' => '解析离线计算任务的逻辑表依赖,注意解析结果上游依赖信息中可能包含自依赖节点(上游节点ID和解析代码的任务节点ID相同)需要用户自己进行处理。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -51790,341 +31709,86 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'ParseCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '分页查询条件', - 'description' => '分页查询条件', + 'title' => '解析请求', + 'description' => '解析请求', 'type' => 'object', 'properties' => [ - 'Catalog' => [ - 'title' => '资产目录:项目名、业务板块名', - 'description' => '资产目录:项目名、业务板块名', - 'type' => 'string', - 'required' => true, - 'example' => 'LD_test01_dev', - ], - 'Keyword' => [ - 'title' => '关键字支持:表名', - 'description' => '关键字支持:表名', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'Code' => ['title' => '待解析的SQL代码', 'description' => '待解析的SQL代码', 'type' => 'string', 'required' => true, 'example' => 'select * from t_test limit 1;'], + 'IncludeAllInputTables' => ['title' => '包含未找到对应节点的输入表的依赖信息, 默认 false', 'description' => '包含未找到对应节点的输入表的依赖信息, 默认 false', 'type' => 'boolean', 'required' => false], + 'NeedQueryLineages' => ['title' => '查询上游依赖时是否查询血缘数据, 默认 false', 'description' => '查询上游依赖时是否查询血缘数据, 默认 false', 'type' => 'boolean', 'required' => false], + 'OperatorType' => ['title' => '任务类型: MAX_COMPUTE_SQL等', 'description' => '任务类型: MAX_COMPUTE_SQL等', 'type' => 'string', 'required' => true, 'example' => 'MaxCompute_SQL'], + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'erp'], ], - 'required' => false, + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'ParseResult' => [ + 'title' => '解析结果', + 'description' => '解析结果', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'TableList' => [ - 'title' => '表列表', - 'description' => '表列表', + 'DependNodeList' => [ + 'title' => '依赖节点', + 'description' => '依赖节点', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '依赖节点', + 'description' => '依赖节点', 'type' => 'object', 'properties' => [ - 'Guid' => [ - 'title' => '表Guid', - 'description' => '表Guid', - 'type' => 'string', - 'example' => '10011', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3301', - ], - 'TableSizeInBytes' => [ - 'title' => '表存储总量, 单位:byte', - 'description' => '表存储总量, 单位:byte', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10241024', - ], - 'LifeCycle' => [ - 'title' => '表生命周期: 天', - 'description' => '表生命周期: 天', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'LastDdlTime' => [ - 'title' => '表DDL最后变更时间', - 'description' => '表DDL最后变更时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'LastQueryTime' => [ - 'title' => '最近一次查看数据的时间', - 'description' => '最近一次查看数据的时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Owner' => [ - 'title' => '表负责人在Dataphin的用户Id, 未绑定可能为空', - 'description' => '表负责人在Dataphin的用户Id, 未绑定可能为空', - 'type' => 'string', - 'example' => '30011211', - ], - 'Creator' => [ - 'title' => '创建人id', - 'description' => '创建人id', - 'type' => 'string', - 'example' => '30011211', - ], - 'VisitCount30d' => [ - 'title' => '最近30天的访问次数', - 'description' => '最近30天的访问次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '22', - ], - 'Env' => [ - 'title' => '所属环境:dev、prod', - 'description' => '所属环境:dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'Name' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_test01', - ], - 'DisplayName' => [ - 'title' => '表展示名', - 'description' => '表展示名', - 'type' => 'string', - 'example' => '学生', - ], - 'LastDmlTime' => [ - 'title' => '表数据最近更新时间', - 'description' => '表数据最近更新时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'Comment' => [ - 'title' => '表注释', - 'description' => '表注释', - 'type' => 'string', - 'example' => 'test', - ], - 'BizUnitId' => [ - 'title' => '业务板块Id', - 'description' => '业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2011', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'LD_test01', - ], - 'DataDomainId' => [ - 'title' => '数据域id', - 'description' => '数据域id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '211', - ], - 'DataDomainName' => [ - 'title' => '主题域名称', - 'description' => '主题域名称', - 'type' => 'string', - 'example' => '211', - ], - 'ProjectId' => [ - 'title' => '逻辑项目id', - 'description' => '逻辑项目id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1011', - ], - 'ProjectName' => [ - 'title' => '逻辑项目名', - 'description' => '逻辑项目名', - 'type' => 'string', - 'example' => 'testPrj', - ], - 'ParentModelId' => [ - 'title' => '父模型ID, 跳转ODM模型使用', - 'description' => '父模型ID, 跳转ODM模型使用', - 'type' => 'string', - 'example' => '1', - ], - 'FileId' => [ - 'title' => '文件ID, 跳转ODM模型使用', - 'description' => '文件ID, 跳转ODM模型使用', - 'type' => 'string', - 'example' => '2', - ], - 'IsPartitionTable' => [ - 'title' => '是否分区键', - 'description' => '是否分区键', - 'type' => 'boolean', - ], - 'StorageType' => [ - 'title' => '存储类型:HIVE、MAX_COMPUTE', - 'description' => '存储类型:HIVE、MAX_COMPUTE', - 'type' => 'string', - 'example' => 'HIVE', - ], - 'StreamTableConfig' => [ - 'title' => '实时元表类的动态属性', - 'description' => '实时元表类的动态属性', + 'NodeIoType' => ['title' => '输入输出类型: 依赖节点 input、节点输出名 output', 'description' => '输入输出类型: 依赖节点 input、节点输出名 output', 'type' => 'string', 'example' => 'input'], + 'ScheduleNodeInfoList' => [ + 'title' => '调度节点列表', + 'description' => '调度节点列表', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '节点详情', + 'description' => '节点详情', 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'v1', + 'TableName' => ['title' => '节点输出表名', 'description' => '节点输出表名', 'type' => 'string', 'example' => 't_test'], + 'OutputName' => ['title' => '节点输出名', 'description' => '节点输出名', 'type' => 'string', 'example' => 't_test'], + 'FieldList' => [ + 'title' => '字段列表,仅适用于逻辑表依赖', + 'description' => '字段列表,仅适用于逻辑表依赖', + 'type' => 'array', + 'items' => ['title' => '字段', 'description' => '字段', 'type' => 'string', 'example' => 'column1'], ], + 'OwnerUserId' => ['title' => '节点owner, 当未找到对应输入表的节点时为空', 'description' => '节点owner, 当未找到对应输入表的节点时为空', 'type' => 'string', 'example' => '201122301'], + 'OwnerName' => ['title' => '节点owner, 当未找到对应输入表的节点时为空', 'description' => '节点owner, 当未找到对应输入表的节点时为空', 'type' => 'string', 'example' => '张三'], + 'NodeId' => ['title' => '节点名称, 当未找到对应输入表的节点时为-1', 'description' => '节点名称, 当未找到对应输入表的节点时为-1', 'type' => 'string', 'example' => 'n_11013121'], + 'NodeName' => ['title' => '节点名称, 当未找到对应输入表的节点时为空', 'description' => '节点名称, 当未找到对应输入表的节点时为空', 'type' => 'string', 'example' => 'test11'], ], ], ], - 'IsBasicMode' => [ - 'title' => '表所属项目或者业务版本是否是Basic模式', - 'description' => '表所属项目或者业务版本是否是Basic模式', - 'type' => 'boolean', - ], - 'AssetTagList' => [ - 'title' => '资产清单标签', - 'description' => '资产清单标签', - 'type' => 'array', - 'items' => [ - 'title' => '资产清单标签', - 'description' => '资产清单标签', - 'type' => 'string', - 'example' => 'LYDAAS', - ], - ], - 'SecurityLevel' => [ - 'title' => '安全分级', - 'description' => '安全分级', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'SecurityLevelName' => [ - 'title' => '安全分级名称', - 'description' => '安全分级名称', - 'type' => 'string', - 'example' => '高级', - ], - 'SecurityLevelAbbreviation' => [ - 'title' => '安全分级名称缩写', - 'description' => '安全分级名称缩写', - 'type' => 'string', - 'example' => '高级', - ], ], ], ], @@ -52136,304 +31800,111 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ParseResult\\": {\\n \\"DependNodeList\\": [\\n {\\n \\"NodeIoType\\": \\"input\\",\\n \\"ScheduleNodeInfoList\\": [\\n {\\n \\"TableName\\": \\"t_test\\",\\n \\"OutputName\\": \\"t_test\\",\\n \\"FieldList\\": [\\n \\"column1\\"\\n ],\\n \\"OwnerUserId\\": \\"201122301\\",\\n \\"OwnerName\\": \\"张三\\",\\n \\"NodeId\\": \\"n_11013121\\",\\n \\"NodeName\\": \\"test11\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => '解析离线计算任务的逻辑表依赖', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:50.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"TableList\\": [\\n {\\n \\"Guid\\": \\"10011\\",\\n \\"DataSourceId\\": 3301,\\n \\"TableSizeInBytes\\": 10241024,\\n \\"LifeCycle\\": 30,\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastDdlTime\\": \\"2025-06-30 00:00:00\\",\\n \\"LastQueryTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Owner\\": \\"30011211\\",\\n \\"Creator\\": \\"30011211\\",\\n \\"VisitCount30d\\": 22,\\n \\"Env\\": \\"dev\\",\\n \\"Name\\": \\"t_test01\\",\\n \\"DisplayName\\": \\"学生\\",\\n \\"LastDmlTime\\": \\"2025-06-30 00:00:00\\",\\n \\"Comment\\": \\"test\\",\\n \\"BizUnitId\\": 2011,\\n \\"BizUnitName\\": \\"LD_test01\\",\\n \\"DataDomainId\\": 211,\\n \\"DataDomainName\\": \\"211\\",\\n \\"ProjectId\\": 1011,\\n \\"ProjectName\\": \\"testPrj\\",\\n \\"ParentModelId\\": \\"1\\",\\n \\"FileId\\": \\"2\\",\\n \\"IsPartitionTable\\": true,\\n \\"StorageType\\": \\"HIVE\\",\\n \\"StreamTableConfig\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"IsBasicMode\\": true,\\n \\"AssetTagList\\": [\\n \\"LYDAAS\\"\\n ],\\n \\"SecurityLevel\\": 1,\\n \\"SecurityLevelName\\": \\"高级\\",\\n \\"SecurityLevelAbbreviation\\": \\"高级\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询查询资产表元数据', - ], - 'GetTableColumnLineages' => [ - 'summary' => '查询资产表字段血缘信息。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:ParseBatchTaskDependency', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'PausePhysicalNode' => [ + 'summary' => '暂停物理节点调度,会暂停任务的调度,下游任务将无法调起,暂时仅支持离线代码任务及集成任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'TableGuid', - 'in' => 'query', - 'schema' => [ - 'title' => '表Guid,在资产唯一标识', - 'description' => '表Guid,在资产唯一标识', - 'type' => 'string', - 'required' => true, - 'example' => '1121', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FilterQuery', + 'name' => 'PauseCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '过滤条件', - 'description' => '过滤条件', + 'title' => '暂停调度请求', + 'description' => '暂停调度请求', 'type' => 'object', 'properties' => [ - 'NodeEnv' => [ - 'title' => '用于过滤要查询的任务所属环境: dev、prod', - 'description' => '用于过滤要查询的任务所属环境: dev、prod', - 'type' => 'string', - 'required' => false, - 'example' => 'dev', - ], + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '13222210'], 'NodeIdList' => [ - 'title' => '用于过滤要查询的任务Id列表', - 'description' => '用于过滤要查询的任务Id列表', + 'title' => '节点ID列表', + 'description' => '节点ID列表', 'type' => 'array', - 'items' => [ - 'title' => '用于过滤要查询的任务Id列表', - 'description' => '用于过滤要查询的任务Id列表', - 'type' => 'string', - 'required' => false, - 'example' => '110021', - ], - 'required' => false, - ], - 'NeedUpstream' => [ - 'title' => '是否查询上游血缘, 默认:true', - 'description' => '是否查询上游血缘, 默认:true', - 'type' => 'boolean', - 'required' => false, - ], - 'NeedDownstream' => [ - 'title' => '是否查询下游血缘, 默认:true', - 'description' => '是否查询下游血缘, 默认:true', - 'type' => 'boolean', - 'required' => false, - ], - 'NeedNotExistObject' => [ - 'title' => '返回在资产清单中不存在的表, 默认:false', - 'description' => '返回在资产清单中不存在的表, 默认:false', - 'type' => 'boolean', - 'required' => false, + 'items' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => 'n_2311121'], + 'required' => true, ], ], - 'required' => false, + 'required' => true, ], ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', - 'type' => 'object', + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'TableColumnLineageList' => [ - 'title' => '表字段血缘列表', - 'description' => '表字段血缘列表', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeOperateResultList' => [ + 'title' => '节点暂停调度操作结果', + 'description' => '节点暂停调度操作结果', 'type' => 'array', 'items' => [ - 'title' => '', - 'description' => '', + 'title' => '节点暂停调度操作结果', + 'description' => '节点暂停调度操作结果', 'type' => 'object', 'properties' => [ - 'NodeId' => [ - 'title' => '血缘对应的任务Id', - 'description' => '血缘对应的任务Id', - 'type' => 'string', - 'example' => '110021', - ], - 'NodeEnv' => [ - 'title' => '任务所属环境: dev、prod', - 'description' => '任务所属环境: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'InputTableEnv' => [ - 'title' => '输入表所属环境: dev、prod', - 'description' => '输入表所属环境: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'InputTableGuid' => [ - 'title' => '输入表Guid, 每个资产都有唯一标识', - 'description' => '输入表Guid, 每个资产都有唯一标识', - 'type' => 'string', - 'example' => '123211', - ], - 'InputTableName' => [ - 'title' => '输入表名', - 'description' => '输入表名', - 'type' => 'string', - 'example' => 't_input', - ], - 'InputColumnName' => [ - 'title' => '输入字段名称', - 'description' => '输入字段名称', - 'type' => 'string', - 'example' => 'col1', - ], - 'InputColumnGuid' => [ - 'title' => '输入字段Guid, 格式: 表Guid.字段名', - 'description' => '输入字段Guid, 格式: 表Guid.字段名', - 'type' => 'string', - 'example' => '1121.col1', - ], - 'InputProjectId' => [ - 'title' => '输入表所属项目Id', - 'description' => '输入表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1233', - ], - 'InputBizUnitId' => [ - 'title' => '输入表所属业务板块Id', - 'description' => '输入表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'InputDataSourceId' => [ - 'title' => '输入表所属数据源Id', - 'description' => '输入表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'InputDataSourceType' => [ - 'title' => '输入表所属数据源类型', - 'description' => '输入表所属数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputTableDeleted' => [ - 'title' => '输入表是否已删除', - 'description' => '输入表是否已删除', - 'type' => 'boolean', - ], - 'OutputTableEnv' => [ - 'title' => '输出表所属的env: dev、prod', - 'description' => '输出表所属的env: dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'OutputTableGuid' => [ - 'title' => '输出表Guid, 每个资产都有唯一标识', - 'description' => '输出表Guid, 每个资产都有唯一标识', - 'type' => 'string', - 'example' => '2231', - ], - 'OutputTableName' => [ - 'title' => '输出表名', - 'description' => '输出表名', - 'type' => 'string', - 'example' => 't_output', - ], - 'OutputColumnName' => [ - 'title' => '输出字段名称', - 'description' => '输出字段名称', - 'type' => 'string', - 'example' => 'col2', - ], - 'OutputColumnGuid' => [ - 'title' => '输出字段Guid, 格式为: 表Id.字段名', - 'description' => '输出字段Guid, 格式为: 表Id.字段名', - 'type' => 'string', - 'example' => '2231.col2', - ], - 'OutputProjectId' => [ - 'title' => '输出表所属项目Id', - 'description' => '输出表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1233', - ], - 'OutputBizUnitId' => [ - 'title' => '输出表所属业务板块Id', - 'description' => '输出表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'OutputDataSourceId' => [ - 'title' => '输出表所属数据源Id', - 'description' => '输出表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'OutputDataSourceType' => [ - 'title' => '输出表所属数据源类型', - 'description' => '输出表所属数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputTableDeleted' => [ - 'title' => '输出表是否已删除', - 'description' => '输出表是否已删除', - 'type' => 'boolean', - ], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_123456'], + 'Status' => ['title' => '操作结果', 'description' => '操作结果', 'type' => 'string', 'example' => 'SUCCESS'], + 'ErrorMessage' => ['title' => '操作失败时,异常信息提示', 'description' => '操作失败时,异常信息提示', 'type' => 'string', 'example' => 'xx '], ], ], ], @@ -52443,80 +31914,71 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeOperateResultList\\": [\\n {\\n \\"NodeId\\": \\"n_123456\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx \\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '暂停物理节点调度', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:50.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"TableColumnLineageList\\": [\\n {\\n \\"NodeId\\": \\"110021\\",\\n \\"NodeEnv\\": \\"dev\\",\\n \\"InputTableEnv\\": \\"dev\\",\\n \\"InputTableGuid\\": \\"123211\\",\\n \\"InputTableName\\": \\"t_input\\",\\n \\"InputColumnName\\": \\"col1\\",\\n \\"InputColumnGuid\\": \\"1121.col1\\",\\n \\"InputProjectId\\": 1233,\\n \\"InputBizUnitId\\": 1,\\n \\"InputDataSourceId\\": 1,\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableEnv\\": \\"dev\\",\\n \\"OutputTableGuid\\": \\"2231\\",\\n \\"OutputTableName\\": \\"t_output\\",\\n \\"OutputColumnName\\": \\"col2\\",\\n \\"OutputColumnGuid\\": \\"2231.col2\\",\\n \\"OutputProjectId\\": 1233,\\n \\"OutputBizUnitId\\": 1,\\n \\"OutputDataSourceId\\": 1,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询资产表字段血缘信息', - ], - 'GetTableColumns' => [ - 'summary' => '查询资产清单中Dataphin表的字段,支持表类型:维度逻辑表、事实逻辑表、汇总逻辑表、标签逻辑表、逻辑表视图、物理表、物理视图、物化视图表。'."\n" - .'上线版本:v5.4.2。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:PausePhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'PublishDataServiceApi' => [ + 'summary' => '发布数据服务API到生产环境。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Catalog', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '资产表catalog: 业务板块或项目空间的名称', - 'description' => '资产表catalog: 业务板块或项目空间的名称', - 'type' => 'string', - 'required' => true, - 'example' => 'LD_test01_dev', - ], + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], ], [ - 'name' => 'TableName', + 'name' => 'ApiId', 'in' => 'query', - 'schema' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'required' => true, - 'example' => 't_test01', - ], + 'schema' => ['title' => 'Api编码', 'description' => 'Api编码', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'VersionId', + 'in' => 'query', + 'schema' => ['title' => 'Api 版本号', 'description' => 'Api 版本号', 'type' => 'string', 'required' => true, 'example' => '1'], ], ], 'responses' => [ @@ -52526,226 +31988,36 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ColumnList' => [ - 'title' => '资产表列列表', - 'description' => '资产表列列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Guid' => [ - 'title' => '列Guid', - 'description' => '列Guid', - 'type' => 'string', - 'example' => '1121.col1', - ], - 'Env' => [ - 'title' => '所属环境:dev、prod', - 'description' => '所属环境:dev、prod', - 'type' => 'string', - 'example' => 'dev', - ], - 'TableGuid' => [ - 'title' => '表Guid', - 'description' => '表Guid', - 'type' => 'string', - 'example' => '1121', - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3301', - ], - 'DataSourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 't_test', - ], - 'SeqNumber' => [ - 'title' => '序号', - 'description' => '序号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Name' => [ - 'title' => '字段名', - 'description' => '字段名', - 'type' => 'string', - 'example' => 'age', - ], - 'DisplayName' => [ - 'title' => '字段展示名', - 'description' => '字段展示名', - 'type' => 'string', - 'example' => '年龄', - ], - 'Comment' => [ - 'title' => '字段注释', - 'description' => '字段注释', - 'type' => 'string', - 'example' => 'test', - ], - 'DataType' => [ - 'title' => '数据类型', - 'description' => '数据类型', - 'type' => 'string', - 'example' => 'varchar', - ], - 'Nullable' => [ - 'title' => '是否允许为空', - 'description' => '是否允许为空', - 'type' => 'boolean', - ], - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'example' => 'test', - ], - 'IsPrimaryKey' => [ - 'title' => '是否主键', - 'description' => '是否主键', - 'type' => 'boolean', - ], - 'IsForeignKey' => [ - 'title' => '是否外键', - 'description' => '是否外键', - 'type' => 'boolean', - ], - 'IsPartitionColumn' => [ - 'title' => '是否分区键', - 'description' => '是否分区键', - 'type' => 'boolean', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'string', - 'example' => '30012011', - ], - 'LastModifier' => [ - 'title' => '最近更新者', - 'description' => '最近更新者', - 'type' => 'string', - 'example' => '30012011', - ], - 'VisitCount30d' => [ - 'title' => '最近30天查询', - 'description' => '最近30天查询', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '99', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ModifyTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2025-06-30 00:00:00', - ], - 'ClassifyId' => [ - 'title' => '数据分类Id', - 'description' => '数据分类Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'ClassifyName' => [ - 'title' => '数据分类名称', - 'description' => '数据分类名称', - 'type' => 'string', - 'example' => 'test', - ], - 'LevelAbbreviation' => [ - 'title' => '数据分级缩写', - 'description' => '数据分级缩写', - 'type' => 'string', - 'example' => 'L1', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '发布数据服务API', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ColumnList\\": [\\n {\\n \\"Guid\\": \\"1121.col1\\",\\n \\"Env\\": \\"dev\\",\\n \\"TableGuid\\": \\"1121\\",\\n \\"DataSourceId\\": 3301,\\n \\"DataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"TableName\\": \\"t_test\\",\\n \\"SeqNumber\\": 1,\\n \\"Name\\": \\"age\\",\\n \\"DisplayName\\": \\"年龄\\",\\n \\"Comment\\": \\"test\\",\\n \\"DataType\\": \\"varchar\\",\\n \\"Nullable\\": true,\\n \\"DefaultValue\\": \\"test\\",\\n \\"IsPrimaryKey\\": true,\\n \\"IsForeignKey\\": true,\\n \\"IsPartitionColumn\\": true,\\n \\"Creator\\": \\"30012011\\",\\n \\"LastModifier\\": \\"30012011\\",\\n \\"VisitCount30d\\": 99,\\n \\"CreateTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ModifyTime\\": \\"2025-06-30 00:00:00\\",\\n \\"ClassifyId\\": 12345,\\n \\"ClassifyName\\": \\"test\\",\\n \\"LevelAbbreviation\\": \\"L1\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询资产清单中Dataphin表的字段', + 'ramActions' => [], ], - 'CreateBizMetric' => [ - 'summary' => '创建业务指标。'."\n" - .'发布版本号:v5.5.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'PublishObjectList' => [ + 'summary' => '批量发布对象。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -52753,247 +32025,140 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateBizMetricCommand', + 'name' => 'PublishCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '创建请求', - 'description' => '创建请求', + 'title' => '发布指令', + 'description' => '发布指令', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '业务指标名称,需要在租户内唯一。仅支持输入英文字母、数字及部分特殊符号(-_/\\·#$^&*()%+=),最多256字符。', - 'description' => '业务指标名称,需要在租户内唯一。仅支持输入英文字母、数字及部分特殊符号(-_/\\·#$^&*()%+=),最多256字符。', - 'type' => 'string', + 'ProjectId' => ['title' => '项目id', 'description' => '项目id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234567'], + 'SubmitIdList' => [ + 'title' => '要发布的待发布项,待发布记录ID列表(submitIds个数限制50)', + 'description' => '要发布的待发布项,待发布记录ID列表(submitIds个数限制50)', + 'type' => 'array', + 'items' => ['title' => '待发布记录id', 'description' => '待发布记录id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12345'], 'required' => true, - 'example' => 'Metric1', - 'maxLength' => 256, - ], - 'DisplayName' => [ - 'title' => '展示名称', - 'description' => '展示名称', - 'type' => 'string', - 'required' => false, - 'example' => 'MetricDisplayName', - 'maxLength' => 256, ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'MetricDesc', - 'maxLength' => 1000, - ], - 'Labels' => [ - 'title' => '资产标签', - 'description' => '资产标签', - 'type' => 'array', - 'items' => [ - 'description' => '资产标签', - 'type' => 'string', - 'required' => false, - 'example' => 'Label1', + 'Comment' => ['title' => '发布信息(字符串长度限制1024)', 'description' => '发布信息(字符串长度限制1024)', 'type' => 'string', 'required' => true, 'example' => '发布'], + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'PublishResult' => [ + 'title' => '发布结果', + 'description' => '发布结果', + 'type' => 'object', + 'properties' => [ + 'SubmitIdList' => [ + 'title' => '待发布记录id列表', + 'description' => '待发布记录id列表', + 'type' => 'array', + 'items' => ['title' => '待发布记录id', 'description' => '待发布记录id', 'type' => 'integer', 'format' => 'int64', 'example' => '12345'], + ], ], - 'required' => false, ], - 'CatalogIds' => [ - 'title' => '归属目录ID', - 'description' => '归属目录ID', - 'type' => 'array', - 'items' => [ - 'description' => '归属目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1234567890', - ], - 'required' => false, - ], - 'BizOwnerName' => [ - 'title' => '业务负责人名称,请填写负责人账号的用户名', - 'description' => '业务负责人名称,请填写负责人账号的用户名', - 'type' => 'string', - 'required' => false, - 'example' => 'SuperAdmin', - ], - 'MetricDefinition' => [ - 'title' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', - 'description' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', - 'type' => 'string', - 'required' => false, - 'example' => '[Metric1]+[Metric2]', - 'maxLength' => 2000, - ], - 'RelatedBizMetrics' => [ - 'title' => '相关业务指标列表,请填写相关业务指标名称及其关联关系', - 'description' => '相关业务指标列表,请填写相关业务指标名称及其关联关系', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '指标名称', - 'description' => '指标名称', - 'type' => 'string', - 'required' => false, - 'example' => 'Metric2', - ], - 'RelationType' => [ - 'title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'type' => 'string', - 'required' => false, - 'example' => 'POSITIVE', - 'enum' => [ - 'POSITIVE', - 'NEGATIVE', - 'OTHER', - ], - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'AssociatedTechMetricFullNames' => [ - 'title' => '关联技术指标全名列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', - 'description' => '关联技术指标全名列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', - 'type' => 'array', - 'items' => [ - 'description' => '关联技术指标全名', - 'type' => 'string', - 'required' => false, - 'example' => 'LD_bizunit.table1.index1', - ], - 'required' => false, - ], - 'MetricRelationDiagramSwitchOpen' => [ - 'title' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', - 'description' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'MetricRelationDiagramExpression' => [ - 'title' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', - 'description' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', - 'type' => 'string', - 'required' => false, - 'example' => '[Metric1]+[Metric2]', - ], - 'OperateInstructionEnabled' => [ - 'title' => '操作说明是否开启:true开启;false关闭', - 'description' => '操作说明是否开启:true开启;false关闭', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'OperateInstructionContent' => [ - 'title' => '操作说明内容,仅支持文本格式', - 'description' => '操作说明内容,仅支持文本格式', - 'type' => 'string', - 'required' => false, - 'example' => 'content', - ], - 'ViewScope' => [ - 'title' => '可见范围', - 'description' => '可见范围', - 'type' => 'object', - 'properties' => [ - 'ScopeType' => [ - 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'type' => 'string', - 'required' => false, - 'example' => 'PART_USERS_CAN_VIEW', - 'enum' => [ - 'ALL_USERS_CAN_VIEW', - 'PART_USERS_CAN_VIEW', - 'PART_USERS_CAN_NOT_VIEW', - ], - ], - 'UserNames' => [ - 'title' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'description' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'type' => 'array', - 'items' => [ - 'description' => '个人账号用户名', - 'type' => 'string', - 'required' => false, - 'example' => 'SuperAdmin', - ], - 'required' => false, - ], - 'UserGroupNames' => [ - 'title' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', - 'description' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', - 'type' => 'array', - 'items' => [ - 'description' => '用户组名称', - 'type' => 'string', - 'required' => false, - 'example' => 'UserGroup1', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'CustomAttribute' => [ - 'title' => '自定义属性', - 'description' => '自定义属性', + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PublishResult\\": {\\n \\"SubmitIdList\\": [\\n 12345\\n ]\\n }\\n}","type":"json"}]', + 'title' => '批量发布对象', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:50.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:PublishObjectList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'PublishStandard' => [ + 'summary' => '发布标准。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'PublishCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '发布指令', + 'description' => '发布指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Version' => ['title' => '版本号, 默认取值-1(最新版本号)', 'description' => '版本号, 默认取值-1(最新版本号)', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'StandardStage' => ['title' => '标准的阶段 :DEV、PROD,默认 DEV', 'description' => '标准的阶段 :DEV、PROD,默认 DEV', 'type' => 'string', 'required' => false, 'example' => 'DEV'], + 'AutoPublishAfterApproval' => ['title' => '是否在审批成功后自动发布, 默认 true', 'description' => '是否在审批成功后自动发布, 默认 true', 'type' => 'boolean', 'required' => false], + 'ReviewerIdList' => [ + 'title' => '指定的审批人', + 'description' => '指定的审批人', 'type' => 'array', - 'items' => [ - 'title' => '自定义属性列表,请分别填写属性的编码及属性值', - 'description' => '自定义属性列表,请分别填写属性的编码及属性值', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'title' => '自定义属性编码', - 'description' => '自定义属性编码', - 'type' => 'string', - 'required' => false, - 'example' => 'CustomAttributeCode', - ], - 'Values' => [ - 'title' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', - 'description' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', - 'type' => 'array', - 'items' => [ - 'title' => '自定义属性值', - 'description' => '自定义属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'CustomAttributeValue', - ], - 'required' => false, - ], - ], - 'required' => false, - ], + 'items' => ['title' => '指定的审批人', 'description' => '指定的审批人', 'type' => 'string', 'required' => false, 'example' => '1'], 'required' => false, ], + 'Comment' => ['title' => '审核备注,最多128字符', 'description' => '审核备注,最多128字符', 'type' => 'string', 'required' => true, 'example' => 'test'], ], 'required' => true, ], @@ -53006,94 +32171,38 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'success', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '操作结果', - 'description' => '操作结果', - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'title' => '是否创建成功:true成功;false失败', - 'description' => '是否创建成功:true成功;false失败', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Message' => [ - 'title' => '异常信息', - 'description' => '异常信息', - 'type' => 'string', - 'example' => 'success', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '发布标准', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"success\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n }\\n}","type":"json"}]', - 'title' => '创建业务指标', + 'ramActions' => [], ], - 'UpdateBizMetric' => [ - 'summary' => '更新业务指标。'."\n" - .'发布版本号:v5.5.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'RemoveDataServiceAppMember' => [ + 'summary' => '删除数据服务应用的普通成员,仅应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -53101,264 +32210,29 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'UpdateBizMetricCommand', + 'name' => 'RemoveCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '更新请求', - 'description' => '更新请求', + 'title' => '删除数据服务应用的普通成员', + 'description' => '删除数据服务应用的普通成员', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '请输入需要更新的业务指标的名称', - 'description' => '请输入需要更新的业务指标的名称', - 'type' => 'string', - 'required' => true, - 'example' => 'Metric1', - 'maxLength' => 256, - ], - 'NewName' => [ - 'title' => '更新后的名称,当您需要修改指标名称时输入', - 'description' => '更新后的名称,当您需要修改指标名称时输入', - 'type' => 'string', - 'required' => false, - 'example' => 'Metric1_new', - 'maxLength' => 256, - ], - 'DisplayName' => [ - 'title' => '展示名称', - 'description' => '展示名称', - 'type' => 'string', - 'required' => false, - 'example' => 'Metric1_DisplayName', - 'maxLength' => 256, - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'required' => false, - 'example' => 'Metric Desc', - 'maxLength' => 1000, - ], - 'Labels' => [ - 'title' => '资产标签', - 'description' => '资产标签', - 'type' => 'array', - 'items' => [ - 'title' => '标签值', - 'description' => '标签值', - 'type' => 'string', - 'required' => false, - 'example' => 'Label', - ], - 'required' => false, - ], - 'CatalogIds' => [ - 'title' => '归属目录ID列表', - 'description' => '归属目录ID列表', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '200000000'], + 'MemberIds' => [ + 'title' => '应用成员ID列表', + 'description' => '应用成员ID列表', 'type' => 'array', - 'items' => [ - 'title' => '归属目录ID', - 'description' => '归属目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123456789', - ], - 'required' => false, - ], - 'BizOwnerName' => [ - 'title' => '业务负责人,请填写负责人账号的用户名', - 'description' => '业务负责人,请填写负责人账号的用户名', - 'type' => 'string', - 'required' => false, - 'example' => 'SuperAdmin', - ], - 'MetricDefinition' => [ - 'title' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', - 'description' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', - 'type' => 'string', - 'required' => false, - 'example' => '[Metric2]+[Metric3]', - 'maxLength' => 2000, - ], - 'RelatedBizMetrics' => [ - 'title' => '相关业务指标列表', - 'description' => '相关业务指标列表', - 'type' => 'array', - 'items' => [ - 'title' => '相关业务指标', - 'description' => '相关业务指标', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '业务指标名称', - 'description' => '业务指标名称', - 'type' => 'string', - 'required' => false, - 'example' => 'Metric2', - ], - 'RelationType' => [ - 'title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'type' => 'string', - 'required' => false, - 'example' => 'POSITIVE', - 'enum' => [ - 'POSITIVE', - 'NEGATIVE', - 'OTHER', - ], - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'AssociatedTechMetricFullNames' => [ - 'title' => '关联的技术指标列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', - 'description' => '关联的技术指标列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', - 'type' => 'array', - 'items' => [ - 'title' => '技术指标全名', - 'description' => '技术指标全名', - 'type' => 'string', - 'required' => false, - 'example' => 'LD_BizUnit.test_table.tech_index', - ], - 'required' => false, - ], - 'MetricRelationDiagramSwitchOpen' => [ - 'title' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', - 'description' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'False', - ], - 'MetricRelationDiagramExpression' => [ - 'title' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', - 'description' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', - 'type' => 'string', - 'required' => false, - 'example' => '[Metric1]+[Metric2]', - ], - 'OperateInstructionEnabled' => [ - 'title' => '使用说明是否开启:true开启;false关闭', - 'description' => '使用说明是否开启:true开启;false关闭', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - 'default' => 'False', - ], - 'OperateInstructionContent' => [ - 'title' => '使用说明内容,仅支持文本格式', - 'description' => '使用说明内容,仅支持文本格式', - 'type' => 'string', - 'required' => false, - 'example' => 'content test', - ], - 'ViewScope' => [ - 'title' => '可见范围', - 'description' => '可见范围', - 'type' => 'object', - 'properties' => [ - 'ScopeType' => [ - 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL_USERS_CAN_VIEW', - 'enum' => [ - 'ALL_USERS_CAN_VIEW', - 'PART_USERS_CAN_VIEW', - 'PART_USERS_CAN_NOT_VIEW', - ], - ], - 'UserNames' => [ - 'title' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'description' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'type' => 'array', - 'items' => [ - 'title' => '用户名称', - 'description' => '用户名称', - 'type' => 'string', - 'required' => false, - 'example' => 'SuperAdmin', - ], - 'required' => false, - 'maxItems' => 500, - ], - 'UserGroupNames' => [ - 'title' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', - 'description' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', - 'type' => 'array', - 'items' => [ - 'title' => '用户组名称', - 'description' => '用户组名称', - 'type' => 'string', - 'required' => false, - 'example' => '运营用户组', - ], - 'required' => false, - 'maxItems' => 500, - ], - ], - 'required' => false, - ], - 'CustomAttribute' => [ - 'title' => '自定义属性列表,请分别填写属性编码及属性值', - 'description' => '自定义属性列表,请分别填写属性编码及属性值', - 'type' => 'array', - 'items' => [ - 'title' => '自定义属性', - 'description' => '自定义属性', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'title' => '自定义属性编码', - 'description' => '自定义属性编码', - 'type' => 'string', - 'required' => false, - 'example' => 'CustomAttributeCode', - ], - 'Values' => [ - 'title' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', - 'description' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', - 'type' => 'array', - 'items' => [ - 'title' => '自定义属性值', - 'description' => '自定义属性值', - 'type' => 'string', - 'required' => false, - 'example' => 'CustomAttributeValue', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, + 'items' => ['title' => '应用成员ID列表', 'description' => '应用成员ID列表', 'type' => 'string', 'required' => true, 'example' => '200000245'], + 'required' => true, ], ], 'required' => true, @@ -53368,147 +32242,152 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '操作结果', - 'description' => '操作结果', - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'title' => '是否更新成功:true成功;false失败', - 'description' => '是否更新成功:true成功;false失败', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Message' => [ - 'title' => '异常信息', - 'description' => '异常信息', - 'type' => 'string', - 'example' => 'npe', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '删除数据服务应用的普通成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"npe\\"\\n }\\n}","type":"json"}]', - 'title' => '编辑业务指标', + 'ramActions' => [], ], - 'GetBizMetricByName' => [ - 'summary' => '根据名称查询业务指标详情。'."\n" - .'发布版本号:v5.5.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'RemoveProjectMember' => [ + 'summary' => '删除项目成员。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + ], + [ + 'name' => 'RemoveCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '删除成员命令', + 'description' => '删除成员命令', + 'type' => 'object', + 'properties' => [ + 'Env' => ['title' => '环境标识: DEV、PROD', 'description' => '环境标识: DEV、PROD', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'UserIdList' => [ + 'title' => '用户Id', + 'description' => '用户Id', + 'type' => 'array', + 'items' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => false, 'example' => '30012011'], + 'required' => false, + ], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '删除项目成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'RemoveQualityRuleSchedules' => [ + 'summary' => '批量删除质量规则和调度的绑定关系。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'BizMetricByNameQuery', + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'RemoveCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', + 'title' => '解绑指令', + 'description' => '解绑指令', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '业务指标名称', - 'description' => '业务指标名称', - 'type' => 'string', - 'required' => true, - 'example' => 'Metric1', - ], - 'Draft' => [ - 'title' => '查询草稿态或已发布资产详情:True草稿态;False已发布', - 'description' => '查询草稿态或已发布资产详情:True草稿态;False已发布', - 'type' => 'boolean', + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '平均值'], + 'RuleId' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'ScheduleIdList' => [ + 'title' => '调度ID', + 'description' => '调度ID', + 'type' => 'array', + 'items' => ['title' => '调度ID', 'description' => '调度ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], 'required' => true, - 'example' => 'True', ], ], 'required' => true, @@ -53522,356 +32401,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'Data' => [ - 'title' => '业务指标详情', - 'description' => '业务指标详情', - 'type' => 'object', - 'properties' => [ - 'TenantId' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30001011', - ], - 'Guid' => [ - 'title' => '业务指标GUID', - 'description' => '业务指标GUID', - 'type' => 'string', - 'example' => 'guid', - ], - 'Name' => [ - 'title' => '业务指标名称', - 'description' => '业务指标名称', - 'type' => 'string', - 'example' => 'Metric1', - ], - 'DisplayName' => [ - 'title' => '展示名称', - 'description' => '展示名称', - 'type' => 'string', - 'example' => 'Metric Display Name', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'Metric Desc', - ], - 'Labels' => [ - 'title' => '标签列表', - 'description' => '标签列表', - 'type' => 'array', - 'items' => [ - 'title' => '标签', - 'description' => '标签', - 'type' => 'string', - 'example' => 'Label', - ], - ], - 'Catalogs' => [ - 'title' => '归属目录列表', - 'description' => '归属目录列表', - 'type' => 'array', - 'items' => [ - 'description' => '指标归属目录详情', - 'type' => 'object', - 'properties' => [ - 'TopicId' => [ - 'title' => '目录所属专题ID', - 'description' => '目录所属专题ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '43297700', - ], - 'TopicName' => [ - 'title' => '目录所属专题名称', - 'description' => '目录所属专题名称', - 'type' => 'string', - 'example' => 'test topic', - ], - 'CatalogId' => [ - 'title' => '目录ID', - 'description' => '目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1561740764851842', - ], - 'CatalogName' => [ - 'title' => '目录名称', - 'description' => '目录名称', - 'type' => 'string', - 'example' => 'test catalog', - ], - 'CatalogDesc' => [ - 'title' => '目录描述', - 'description' => '目录描述', - 'type' => 'string', - 'example' => 'catalog desc', - ], - 'ParentCatalogId' => [ - 'title' => '目录所属父目录ID', - 'description' => '目录所属父目录ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1561740764851841', - ], - 'ParentPath' => [ - 'title' => '目录所属父路径', - 'description' => '目录所属父路径', - 'type' => 'string', - 'example' => '/catalog1/', - ], - ], - ], - ], - 'BizOwnerName' => [ - 'title' => '业务负责人名称', - 'description' => '业务负责人名称', - 'type' => 'string', - 'example' => 'SuperAdmin', - ], - 'MetricDefinition' => [ - 'title' => '指标口径', - 'description' => '指标口径', - 'type' => 'string', - 'example' => '[Metric1]+[Metric2]', - ], - 'RelatedBizMetrics' => [ - 'title' => '相关业务指标列表', - 'description' => '相关业务指标列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '相关业务指标详情', - 'type' => 'object', - 'properties' => [ - 'Guid' => [ - 'title' => 'guid', - 'description' => 'guid', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'Metric2', - ], - 'DisplayName' => [ - 'title' => '展示名称', - 'description' => '展示名称', - 'type' => 'string', - 'example' => 'display name', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'desc', - ], - 'RelationType' => [ - 'title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', - 'type' => 'string', - 'example' => 'POSITIVE', - ], - ], - ], - ], - 'AssociatedTechMetrics' => [ - 'title' => '关联技术指标列表', - 'description' => '关联技术指标列表', - 'type' => 'array', - 'items' => [ - 'description' => '关联的技术指标详情', - 'type' => 'object', - 'properties' => [ - 'Guid' => [ - 'title' => 'guid', - 'description' => 'guid', - 'type' => 'string', - 'example' => 'table1.a.b', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'metric3', - ], - 'DisplayName' => [ - 'title' => '展示名称', - 'description' => '展示名称', - 'type' => 'string', - 'example' => 'display name', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'desc', - ], - 'SubType' => [ - 'title' => '技术指标类型:INDEX建模指标;CUSTOM_INDEX自定义指标', - 'description' => '技术指标类型:INDEX建模指标;CUSTOM_INDEX自定义指标', - 'type' => 'string', - 'example' => 'CUSTOM_INDEX', - ], - ], - ], - ], - 'MetricRelationDiagramSwitchOpen' => [ - 'title' => '指标关系图是否开启:true开启;false关闭', - 'description' => '指标关系图是否开启:true开启;false关闭', - 'type' => 'boolean', - 'example' => 'true', - ], - 'MetricRelationDiagramExpression' => [ - 'title' => '指标关系图表达式', - 'description' => '指标关系图表达式', - 'type' => 'string', - 'example' => '[Metric2]*10', - ], - 'OperateInstructionEnabled' => [ - 'title' => '使用说明是否开启:true开启;false关闭', - 'description' => '使用说明是否开启:true开启;false关闭', - 'type' => 'boolean', - 'example' => 'true', - ], - 'OperateInstructionContent' => [ - 'title' => '使用说明文本内容', - 'description' => '使用说明文本内容', - 'type' => 'string', - 'example' => 'content', - ], - 'ViewScope' => [ - 'title' => '可见范围', - 'description' => '可见范围', - 'type' => 'object', - 'properties' => [ - 'ScopeType' => [ - 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', - 'type' => 'string', - 'example' => 'PART_USERS_CAN_NOT_VIEW', - 'enum' => [ - 'ALL_USERS_CAN_VIEW', - 'PART_USERS_CAN_VIEW', - 'PART_USERS_CAN_NOT_VIEW', - ], - ], - 'UserNames' => [ - 'title' => '个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'description' => '个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', - 'type' => 'array', - 'items' => [ - 'description' => '个人账号的用户名', - 'type' => 'string', - 'example' => 'SuperAdmin', - ], - ], - 'UserGroupNames' => [ - 'title' => '用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时生效', - 'description' => '用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时生效', - 'type' => 'array', - 'items' => [ - 'description' => '用户组名称', - 'type' => 'string', - 'example' => 'UserGroup1', - ], - ], - ], - ], - 'CustomAttribute' => [ - 'title' => '自定义属性列表', - 'description' => '自定义属性列表', - 'type' => 'array', - 'items' => [ - 'description' => '自定义属性项', - 'type' => 'object', - 'properties' => [ - 'Code' => [ - 'title' => '自定义属性编码', - 'description' => '自定义属性编码', - 'type' => 'string', - 'example' => 'CustomAttributeCode', - ], - 'Values' => [ - 'title' => '属性值列表:1、自定义输入和下拉单选属性,取列表第一个属性值;2、下拉多选属性,取列表全部属性值;3、超链接属性,列表第一个属性值是展示文本,第二个属性值是跳转链接。', - 'description' => '属性值列表:1、自定义输入和下拉单选属性,取列表第一个属性值;2、下拉多选属性,取列表全部属性值;3、超链接属性,列表第一个属性值是展示文本,第二个属性值是跳转链接。', - 'type' => 'array', - 'items' => [ - 'title' => '自定义属性值', - 'description' => '自定义属性值', - 'type' => 'string', - 'example' => 'CustomAttributeValue', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'integer', 'format' => 'int32', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 0\\n}","type":"json"}]', + 'title' => '批量删除质量规则和调度的绑定关系', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"SUCCESS\\",\\n \\"Data\\": {\\n \\"TenantId\\": 30001011,\\n \\"Guid\\": \\"guid\\",\\n \\"Name\\": \\"Metric1\\",\\n \\"DisplayName\\": \\"Metric Display Name\\",\\n \\"Description\\": \\"Metric Desc\\",\\n \\"Labels\\": [\\n \\"Label\\"\\n ],\\n \\"Catalogs\\": [\\n {\\n \\"TopicId\\": 43297700,\\n \\"TopicName\\": \\"test topic\\",\\n \\"CatalogId\\": 1561740764851842,\\n \\"CatalogName\\": \\"test catalog\\",\\n \\"CatalogDesc\\": \\"catalog desc\\",\\n \\"ParentCatalogId\\": 1561740764851841,\\n \\"ParentPath\\": \\"/catalog1/\\"\\n }\\n ],\\n \\"BizOwnerName\\": \\"SuperAdmin\\",\\n \\"MetricDefinition\\": \\"[Metric1]+[Metric2]\\",\\n \\"RelatedBizMetrics\\": [\\n {\\n \\"Guid\\": \\"test\\",\\n \\"Name\\": \\"Metric2\\",\\n \\"DisplayName\\": \\"display name\\",\\n \\"Description\\": \\"desc\\",\\n \\"RelationType\\": \\"POSITIVE\\"\\n }\\n ],\\n \\"AssociatedTechMetrics\\": [\\n {\\n \\"Guid\\": \\"table1.a.b\\",\\n \\"Name\\": \\"metric3\\",\\n \\"DisplayName\\": \\"display name\\",\\n \\"Description\\": \\"desc\\",\\n \\"SubType\\": \\"CUSTOM_INDEX\\"\\n }\\n ],\\n \\"MetricRelationDiagramSwitchOpen\\": true,\\n \\"MetricRelationDiagramExpression\\": \\"[Metric2]*10\\",\\n \\"OperateInstructionEnabled\\": true,\\n \\"OperateInstructionContent\\": \\"content\\",\\n \\"ViewScope\\": {\\n \\"ScopeType\\": \\"PART_USERS_CAN_NOT_VIEW\\",\\n \\"UserNames\\": [\\n \\"SuperAdmin\\"\\n ],\\n \\"UserGroupNames\\": [\\n \\"UserGroup1\\"\\n ]\\n },\\n \\"CustomAttribute\\": [\\n {\\n \\"Code\\": \\"CustomAttributeCode\\",\\n \\"Values\\": [\\n \\"CustomAttributeValue\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '根据名称查询业务指标详情', + 'ramActions' => [], ], - 'DeleteBizMetric' => [ - 'summary' => '删除业务指标。'."\n" - .'发布版本号:v5.5.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'RemoveTenantMember' => [ + 'summary' => '移除租户成员,该API仅支持超级管理员和系统管理员能发起调用。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -53879,41 +32439,112 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - 'tenantRelevance' => 'tenant', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'RemoveCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求命令', + 'description' => '请求命令', + 'type' => 'object', + 'properties' => [ + 'SourceId' => ['title' => '用户来源Id', 'description' => '用户来源Id', 'type' => 'string', 'required' => true, 'example' => '123@xx.com'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '移除租户成员', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:RemoveTenantMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'RemoveUserGroupMember' => [ + 'summary' => '移除用户组成员。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'list', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'DeleteBizMetricCommand', + 'name' => 'RemoveCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '删除请求', - 'description' => '删除请求', + 'title' => '移除用户组成员', + 'description' => '移除用户组成员', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '待删除的业务指标名称', - 'description' => '待删除的业务指标名称', - 'type' => 'string', + 'UserGroupId' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '2311'], + 'UserIdList' => [ + 'title' => '用户Id列表', + 'description' => '用户Id列表', + 'type' => 'array', + 'items' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '131313'], 'required' => true, - 'example' => 'Metric1', - 'maxLength' => 256, ], ], 'required' => true, @@ -53927,450 +32558,99 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '删除结果', - 'description' => '删除结果', - 'type' => 'object', - 'properties' => [ - 'Success' => [ - 'title' => '是否删除成功:true成功;false失败', - 'description' => '是否删除成功:true成功;false失败', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Message' => [ - 'title' => '异常信息', - 'description' => '异常信息', - 'type' => 'string', - 'example' => 'success', - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '移除用户组成员结果', 'description' => '移除用户组成员结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '移除用户组成员', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"success\\"\\n }\\n}","type":"json"}]', - 'title' => '删除业务指标', - ], - 'DeleteRegisterLineage' => [ - 'summary' => '删除注册血缘,上线版本 v5.4.0。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:RemoveUserGroupMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'ReplaceProjectWhiteLists' => [ + 'summary' => '更新项目白名单。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DeleteRegisterLineageCommand', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1030111021'], + ], + [ + 'name' => 'ReplaceCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '注册血缘, 删除血缘command', - 'description' => '注册血缘, 删除血缘command', + 'title' => '编辑命令', + 'description' => '编辑命令', 'type' => 'object', 'properties' => [ - 'Source' => [ - 'title' => '血缘的source', - 'description' => '血缘的source', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', - ], - 'MetadataSubType' => [ - 'title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'table1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'Target' => [ - 'title' => '血缘的target', - 'description' => '血缘的target', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', - ], - 'MetadataSubType' => [ - 'title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT,SUM_BIZ_UNIT', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'table1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'DetailedLineages' => [ - 'title' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘', - 'description' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘', + 'WhiteLists' => [ + 'title' => '项目白名单', + 'description' => '项目白名单', 'type' => 'array', 'items' => [ - 'title' => '子对象血缘关系', - 'description' => '子对象血缘关系', + 'title' => '', 'type' => 'object', 'properties' => [ - 'IsDirect' => [ - 'title' => '是否是直接血缘, 默认为true', - 'description' => '是否是直接血缘, 默认为true', - 'type' => 'boolean', - 'required' => false, - ], - 'Source' => [ - 'title' => 'source资产引用', - 'description' => 'source资产引用', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => false, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'ParentGuid' => [ - 'title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => false, - 'example' => 'COLUMN', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'Target' => [ - 'title' => 'target资产引用', - 'description' => 'target资产引用', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => false, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'ParentGuid' => [ - 'title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => false, - 'example' => 'COLUMN', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => '测试'], + 'Ip' => ['title' => 'ip', 'description' => 'ip', 'type' => 'string', 'required' => true, 'example' => '10.1.0.2'], + 'Port' => ['title' => '端口', 'description' => '端口', 'type' => 'string', 'required' => true, 'example' => '5432'], ], 'required' => false, + 'description' => '', ], - 'required' => false, - ], - 'CascadeDeleteLineage' => [ - 'title' => '是否在删除完所有detailedLineage后, 自动删除对象血缘, 默认为true', - 'description' => '是否在删除完所有detailedLineage后, 自动删除对象血缘, 默认为true', - 'type' => 'boolean', - 'required' => false, - 'default' => 'true', - ], - 'TenantId' => [ - 'title' => '租户Id', - 'description' => '租户Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '300001234', - ], - 'UserId' => [ - 'title' => '当前用户Id', - 'description' => '当前用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '300004567', + 'required' => true, ], ], 'required' => true, @@ -54384,69 +32664,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '替换项目白名单', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '删除注册血缘', - 'extraInfo' => '上线版本:5.4.0', + 'ramActions' => [], ], - 'AddRegisterLineage' => [ - 'summary' => '新增注册血缘,上线版本v5.4.0。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ResetDataServiceAppSecret' => [ + 'summary' => '重置数据服务应用密钥,仅应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -54455,402 +32703,60 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'AddRegisterLineageCommand', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '注册血缘, 增加血缘command', - 'description' => '注册血缘, 增加血缘command', + 'title' => '重置数据服务应用密钥', + 'description' => '重置数据服务应用密钥', 'type' => 'object', 'properties' => [ - 'Source' => [ - 'title' => 'source资产', - 'description' => 'source资产', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '12345'], + 'AppKey' => ['title' => '新的应用Key,需要全局唯一,用于调用 API 时使用。'."\n" + .'长度为8~128个英文字符,可包含数字,下划线(_)和短横线(-)'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'description' => '新的应用Key,需要全局唯一,用于调用 API 时使用。'."\n" + .'长度为8~128个英文字符,可包含数字,下划线(_)和短横线(-)'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'type' => 'string', 'required' => false, 'example' => '200000001', 'maxLength' => 128, 'minLength' => 8], + 'AppSecret' => ['title' => '新的应用密钥。'."\n" + .'该参数不填,默认系统会自动生成一个新的 AppSecret 值'."\n" + .'长度为8~127个英文字符,可包含数字,下划线(_)和短横线(-)。'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'description' => '新的应用密钥。'."\n" + .'该参数不填,默认系统会自动生成一个新的 AppSecret 值'."\n" + .'长度为8~127个英文字符,可包含数字,下划线(_)和短横线(-)。'."\n" + .'仅阿里云API网关和内置网关时,可自定义;专有云网关时,忽略该配置。', 'type' => 'string', 'required' => false, 'example' => 'abc123456789', 'maxLength' => 127, 'minLength' => 8], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'Data' => [ + 'title' => '重置数据服务应用密钥', + 'description' => '重置数据服务应用密钥', 'type' => 'object', 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', - ], - 'MetadataSubType' => [ - 'title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'table1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], + 'AppKey' => ['title' => '新的应用Key', 'description' => '新的应用Key', 'type' => 'string', 'example' => '200000001'], + 'AppSecret' => ['title' => '新的应用密钥', 'description' => '新的应用密钥', 'type' => 'string', 'example' => 'abc123456789'], ], - 'required' => true, - ], - 'Target' => [ - 'title' => 'target资产', - 'description' => 'target资产', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => true, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => true, - 'example' => 'TABLE', - ], - 'MetadataSubType' => [ - 'title' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'description' => '资产子类型, 仅在metadataType为TABLE, 并且referenceType不是BY_GUID时填写', - 'type' => 'string', - 'required' => false, - 'example' => 'PHYSICAL_TABLE, PHYSICAL_VIEW, PHYSICAL_MATERIALIZED_VIEW, DATASOURCE_TABLE, DATASOURCE_VIEW, DATASOURCE_MATERIALIZED_VIEW, DIM_NORMAL, DIM_LEVEL, DIM_ENUM, DIM_VIRTUAL, FACT_EVENT, FACT_PROCESS, FACT_SNAPSHOT, SUM_BIZ_UNIT', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'table1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'DetailedLineages' => [ - 'title' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘, 如果不想增加字段血缘, 可以为空', - 'description' => '详细血缘关系. 对于表, 这里的详细血缘关系就是字段血缘, 如果不想增加字段血缘, 可以为空', - 'type' => 'array', - 'items' => [ - 'title' => '子对象血缘关系', - 'description' => '子对象血缘关系', - 'type' => 'object', - 'properties' => [ - 'Source' => [ - 'title' => 'source资产引用', - 'description' => 'source资产引用', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => false, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1.column1', - ], - 'ParentGuid' => [ - 'title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => false, - 'example' => 'COLUMN', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'Target' => [ - 'title' => 'target资产引用', - 'description' => 'target资产引用', - 'type' => 'object', - 'properties' => [ - 'ReferenceType' => [ - 'title' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'description' => '资产引用类型: BY_GUID, BY_PROPERTY', - 'type' => 'string', - 'required' => false, - 'example' => 'BY_GUID, BY_PROPERTY', - ], - 'Guid' => [ - 'title' => '资产guid, 在referenceType为BY_GUID时必填', - 'description' => '资产guid, 在referenceType为BY_GUID时必填', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1.column1', - ], - 'ParentGuid' => [ - 'title' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'description' => '父资产的guid. 如果当前对象是字段, 那么parentGuid是字段所属表的Guid', - 'type' => 'string', - 'required' => false, - 'example' => 'odps.300000001.project1.table1', - ], - 'MetadataType' => [ - 'title' => '资产类型, 按实际情况填写', - 'description' => '资产类型, 按实际情况填写', - 'type' => 'string', - 'required' => false, - 'example' => 'COLUMN', - ], - 'Catalog' => [ - 'title' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'catalog, 资产属性. 对于表而言, 计算源表或者逻辑表的catalog统一为dataphin. 该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'dataphin', - ], - 'Schema' => [ - 'title' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'schema, 资产属性. 对于表而言, 一般是项目或者业务板块.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'project1, bizUnit1', - ], - 'Env' => [ - 'title' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'env, 所属环境.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV, PROD', - ], - 'Name' => [ - 'title' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'description' => 'name, 资产名称.该属性用于在referenceType为BY_PROPERTY时根据属性确定对应的资产, 如果referenceType为BY_GUID, 该属性无需填写', - 'type' => 'string', - 'required' => false, - 'example' => 'column1', - ], - 'ExtProperties' => [ - 'title' => '扩展属性', - 'description' => '扩展属性', - 'type' => 'object', - 'required' => false, - ], - ], - 'required' => true, - ], - 'IsDirect' => [ - 'title' => '是否是直接血缘, 默认为true', - 'description' => '是否是直接血缘, 默认为true', - 'type' => 'boolean', - 'required' => false, - 'default' => 'true', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'CheckAssetExist' => [ - 'title' => '是否需要校验资产本身的存在性, 默认不校验存在性', - 'description' => '是否需要校验资产本身的存在性, 默认不校验存在性', - 'type' => 'boolean', - 'required' => false, - ], - 'RelationProperties' => [ - 'title' => '血缘关系属性', - 'description' => '血缘关系属性', - 'type' => 'object', - 'required' => false, - ], - 'TenantId' => [ - 'title' => '租户Id', - 'description' => '租户Id', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '300001234', - ], - 'UserId' => [ - 'title' => '当前用户Id', - 'description' => '当前用户Id', - 'type' => 'string', - 'required' => false, - 'example' => '300004567', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', ], ], ], @@ -54858,313 +32764,93 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true,\\n \\"Data\\": {\\n \\"AppKey\\": \\"200000001\\",\\n \\"AppSecret\\": \\"abc123456789\\"\\n }\\n}","type":"json"}]', + 'title' => '重置数据服务应用密钥', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', - 'title' => '新增注册血缘', - 'extraInfo' => '上线版本:v5.4.0', + 'ramActions' => [], ], - 'GetTableLineageByTaskId' => [ - 'summary' => '查询表血缘信息。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'ResumePhysicalNode' => [ + 'summary' => '恢复物理节点调度。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'TableLineageByTaskIdQuery', + 'name' => 'ResumeCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询表血缘的数据结构', - 'description' => '查询表血缘的数据结构', + 'title' => '恢复调度请求', + 'description' => '恢复调度请求', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'title' => '用于过滤要查询的任务(节点)Id', - 'description' => '用于过滤要查询的任务(节点)Id', - 'type' => 'string', + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102011'], + 'NodeIdList' => [ + 'title' => '节点ID列表', + 'description' => '节点ID列表', + 'type' => 'array', + 'items' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'required' => true, 'example' => '30132'], 'required' => true, - 'example' => 'n_123', - ], - 'TaskEnv' => [ - 'title' => '用于过滤要查询的任务所属的环境 DEV/PROD', - 'description' => '用于过滤要查询的任务所属的环境 DEV/PROD', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', - ], - 'NeedNotExistObject' => [ - 'title' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', - 'description' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', - 'type' => 'boolean', - 'required' => false, ], ], 'required' => true, ], ], + [ + 'name' => 'Env', + 'in' => 'query', + 'schema' => ['title' => '环境标识'."\n" + .'DEV:开发环境 '."\n" + .'PROD(默认):生产环境', 'description' => '环境标识'."\n" + .'- DEV:开发环境 '."\n" + .'- PROD(默认):生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '返回数据', - 'description' => '返回数据', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '查询结果', - 'description' => '查询结果', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'NodeOperateResultList' => [ + 'title' => '', + 'description' => '节点恢复调度操作结果', 'type' => 'array', 'items' => [ - 'title' => '血缘详情', - 'description' => '血缘详情', + 'description' => '点恢复调度操作结果', 'type' => 'object', 'properties' => [ - 'TenantId' => [ - 'title' => '租户id', - 'description' => '租户id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'TaskId' => [ - 'title' => '血缘对应的任务(节点)Id', - 'description' => '血缘对应的任务(节点)Id', - 'type' => 'string', - 'example' => 'n_123', - ], - 'TaskEnv' => [ - 'title' => '血缘对应的任务(节点)所属环境 DEV/PROD', - 'description' => '血缘对应的任务(节点)所属环境 DEV/PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'InputEnv' => [ - 'title' => '输入表所属的env, DEV/PROD', - 'description' => '输入表所属的env, DEV/PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'InputTableId' => [ - 'title' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" - .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" - .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" - .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', - 'description' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" - ."\n" - .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" - .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" - .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', - 'type' => 'string', - 'example' => 'odps.123.test_project.order', - ], - 'InputTableName' => [ - 'title' => '输入表名', - 'description' => '输入表名', - 'type' => 'string', - 'example' => 'order', - ], - 'InputTableType' => [ - 'title' => '输入表类型'."\n" - .'- PHYSICAL_TABLE 物理表(计算源)'."\n" - .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" - .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" - .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" - .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" - .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" - .'- PHYSICAL_VIEW 物理视图'."\n" - .'- LOGICAL_VIEW 逻辑视图'."\n" - .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" - .'- DATA_SOURCE_VIEW 数据源视图'."\n" - .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', - 'description' => '输入表类型 '."\n" - ."\n" - .'- PHYSICAL_TABLE 物理表(计算源)'."\n" - .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" - .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" - .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" - .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" - .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" - .'- PHYSICAL_VIEW 物理视图'."\n" - .'- LOGICAL_VIEW 逻辑视图'."\n" - .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" - .'- DATA_SOURCE_VIEW 数据源视图'."\n" - .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'InputDataSourceType' => [ - 'title' => '输入表存储格式', - 'description' => '输入表存储格式', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputDbType' => [ - 'title' => '输入数据源类型', - 'description' => '输入数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputProjectId' => [ - 'title' => '输入表所属项目Id', - 'description' => '输入表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputBizUnitId' => [ - 'title' => '输入表所属业务板块Id', - 'description' => '输入表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputDataSourceId' => [ - 'title' => '输入表所属数据源Id', - 'description' => '输入表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputTableDeleted' => [ - 'title' => '输入表是否已删除', - 'description' => '输入表是否已删除', - 'type' => 'boolean', - ], - 'OutputTableType' => [ - 'title' => '输出表类型, 枚举值见: InputTableType', - 'description' => '输出表类型, 枚举值见:InputTableType', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'OutputEnv' => [ - 'title' => '输出表所属的env, DEV/PROD', - 'description' => '输出表所属的env, DEV/PROD', - 'type' => 'string', - 'example' => 'DEV/PROD', - ], - 'OutputBizUnitId' => [ - 'title' => '输出表所属业务板块Id', - 'description' => '输出表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputDataSourceType' => [ - 'title' => '输出表存储格式', - 'description' => '输出表存储格式', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputDbType' => [ - 'title' => '输出数据源类型', - 'description' => '输出数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputProjectId' => [ - 'title' => '输出表所属项目Id', - 'description' => '输出表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputDataSourceId' => [ - 'title' => '输出表所属数据源Id', - 'description' => '输出表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputTableId' => [ - 'title' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', - 'description' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', - 'type' => 'string', - 'example' => 'odps.123.test_project.order', - ], - 'OutputTableName' => [ - 'title' => '输出表名', - 'description' => '输出表名', - 'type' => 'string', - 'example' => 'order', - ], - 'OutputTableDeleted' => [ - 'title' => '输出表是否已删除', - 'description' => '输出表是否已删除', - 'type' => 'boolean', - ], + 'NodeId' => ['title' => '节点ID', 'description' => '节点ID', 'type' => 'string', 'example' => 'n_123456'], + 'Status' => ['title' => '操作结果', 'description' => '操作结果', 'type' => 'string', 'example' => 'SUCCESS'], + 'ErrorMessage' => ['title' => '操作失败时,异常信息提示', 'description' => '操作失败时,异常信息提示', 'type' => 'string', 'example' => 'xx'], ], ], ], @@ -55174,480 +32860,250 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeOperateResultList\\": [\\n {\\n \\"NodeId\\": \\"n_123456\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '恢复物理节点调度', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"TenantId\\": 12345,\\n \\"TaskId\\": \\"n_123\\",\\n \\"TaskEnv\\": \\"DEV\\",\\n \\"InputEnv\\": \\"DEV\\",\\n \\"InputTableId\\": \\"odps.123.test_project.order\\",\\n \\"InputTableName\\": \\"order\\",\\n \\"InputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputDbType\\": \\"MAX_COMPUTE\\",\\n \\"InputProjectId\\": 123,\\n \\"InputBizUnitId\\": 123,\\n \\"InputDataSourceId\\": 123,\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"OutputEnv\\": \\"DEV/PROD\\",\\n \\"OutputBizUnitId\\": 123,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputDbType\\": \\"MAX_COMPUTE\\",\\n \\"OutputProjectId\\": 123,\\n \\"OutputDataSourceId\\": 123,\\n \\"OutputTableId\\": \\"odps.123.test_project.order\\",\\n \\"OutputTableName\\": \\"order\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '表血缘查询', - 'extraInfo' => '接口上线版本:v5.1.0', - ], - 'GetTableColumnLineageByTaskId' => [ - 'summary' => '查询表字段血缘信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:ResumePhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'RetryTransferOwnership' => [ + 'summary' => '重新转交运行失败的转交任务。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'TableColumnLineageByTaskIdQuery', + 'name' => 'PrivilegeTransferRecord', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询表字段血缘的数据结构', - 'description' => '查询表字段血缘的数据结构', + 'description' => '转交信息', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'title' => '用于过滤要查询的任务(节点)Id', - 'description' => '用于过滤要查询的任务(节点)Id', - 'type' => 'string', - 'required' => true, - 'example' => 'n_123', - ], - 'TaskEnv' => [ - 'title' => '用于过滤要查询的任务所属的环境 DEV/PROD', - 'description' => '用于过滤要查询的任务所属的环境 DEV/PROD', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'DEV', - ], - 'NeedNotExistObject' => [ - 'title' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', - 'description' => '是否返回在资产清单中不存在的表, 不传不会返回不存在的表', - 'type' => 'boolean', - 'required' => false, - ], + 'Id' => ['title' => '转出任务ID', 'description' => '转出任务ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'NewOwner' => ['title' => '接收人用户ID', 'description' => '接收人用户ID', 'type' => 'string', 'required' => true, 'example' => '30000001'], + 'TransferComment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '返回数据', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'array', - 'items' => [ - 'title' => '血缘详情', - 'description' => '血缘详情', - 'type' => 'object', - 'properties' => [ - 'TenantId' => [ - 'title' => '租户id', - 'description' => '租户id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'TaskId' => [ - 'title' => '血缘对应的任务(节点)Id', - 'description' => '血缘对应的任务(节点)Id', - 'type' => 'string', - 'example' => 'n_123', - ], - 'TaskEnv' => [ - 'title' => '血缘对应的任务(节点)所属环境 DEV/PROD', - 'description' => '血缘对应的任务(节点)所属环境 DEV/PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'InputEnv' => [ - 'title' => '输入表所属的env, DEV/PROD', - 'description' => '输入表所属的env, DEV/PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'InputTableId' => [ - 'title' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" - .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" - .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" - .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', - 'description' => '输入表guid, 每个资产都有唯一的guid, 格式为: '."\n" - ."\n" - .'- 逻辑表:dp_table.[租户Id].[业务板块名].[表名]'."\n" - .'- 计算源物理表:[引擎类型].[租户Id].[项目名].[表名]'."\n" - .'- 数据源表:dp_ds_table.[租户Id].[数据源Id].[schema名].[表名]', - 'type' => 'string', - 'example' => 'odps.123.test_project.order', - ], - 'InputTableName' => [ - 'title' => '输入表名', - 'description' => '输入表名', - 'type' => 'string', - 'example' => 'order', - ], - 'InputColumnId' => [ - 'title' => '输入字段guid', - 'description' => '输入字段guid', - 'type' => 'string', - 'example' => 'odps.123.test_project.input_table.id', - ], - 'InputColumnName' => [ - 'title' => '输入字段名', - 'description' => '输入字段名', - 'type' => 'string', - 'example' => 'id', - ], - 'InputTableType' => [ - 'title' => '输入表类型'."\n" - .'- PHYSICAL_TABLE 物理表(计算源)'."\n" - .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" - .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" - .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" - .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" - .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" - .'- PHYSICAL_VIEW 物理视图'."\n" - .'- LOGICAL_VIEW 逻辑视图'."\n" - .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" - .'- DATA_SOURCE_VIEW 数据源视图'."\n" - .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', - 'description' => '输入表类型'."\n" - .'- PHYSICAL_TABLE 物理表(计算源)'."\n" - .'- DIM_LOGIC_TABLE 维度逻辑表'."\n" - .'- FACT_LOGIC_TABLE 事实逻辑表'."\n" - .'- SUM_LOGIC_TABLE 汇总逻辑表'."\n" - .'- REAL_TIME_LOGIC_TABLE 实时元表'."\n" - .'- REAL_TIME_MIRROR_TABLE 实时镜像表'."\n" - .'- PHYSICAL_VIEW 物理视图'."\n" - .'- LOGICAL_VIEW 逻辑视图'."\n" - .'- DATA_SOURCE_PHYSICAL_TABLE 数据源表'."\n" - .'- DATA_SOURCE_VIEW 数据源视图'."\n" - .'- DATA_SOURCE_MATERIALIZED_VIEW 数据源物化视图', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'InputDataSourceType' => [ - 'title' => '输入表存储格式', - 'description' => '输入表存储格式', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputDbType' => [ - 'title' => '输入数据源类型', - 'description' => '输入数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'InputProjectId' => [ - 'title' => '输入表所属项目Id', - 'description' => '输入表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputBizUnitId' => [ - 'title' => '输入表所属业务板块Id', - 'description' => '输入表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputDataSourceId' => [ - 'title' => '输入表所属数据源Id', - 'description' => '输入表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'InputTableDeleted' => [ - 'title' => '输入表是否已删除', - 'description' => '输入表是否已删除', - 'type' => 'boolean', - ], - 'OutputTableType' => [ - 'title' => '输出表类型, 枚举值见: InputTableType', - 'description' => '输出表类型, 枚举值见: InputTableType', - 'type' => 'string', - 'example' => 'PHYSICAL_TABLE', - ], - 'OutputEnv' => [ - 'title' => '输出表所属的env, DEV/PROD', - 'description' => '输出表所属的env, DEV/PROD', - 'type' => 'string', - 'example' => 'DEV', - ], - 'OutputBizUnitId' => [ - 'title' => '输出表所属业务板块Id', - 'description' => '输出表所属业务板块Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputDataSourceType' => [ - 'title' => '输出表存储格式', - 'description' => '输出表存储格式', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputDbType' => [ - 'title' => '输出数据源类型', - 'description' => '输出数据源类型', - 'type' => 'string', - 'example' => 'MAX_COMPUTE', - ], - 'OutputProjectId' => [ - 'title' => '输出表所属项目Id', - 'description' => '输出表所属项目Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputDataSourceId' => [ - 'title' => '输出表所属数据源Id', - 'description' => '输出表所属数据源Id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123', - ], - 'OutputTableId' => [ - 'title' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', - 'description' => '输出表guid, 每个资产都有唯一的guid, 格式为参照InputTableId', - 'type' => 'string', - 'example' => 'odps.123.test_project.order', - ], - 'OutputTableName' => [ - 'title' => '输出表名', - 'description' => '输出表名', - 'type' => 'string', - 'example' => 'order', - ], - 'OutputColumnId' => [ - 'title' => '输出字段guid', - 'description' => '输出字段guid', - 'type' => 'string', - 'example' => 'odps.123.test_project.input_table.id', - ], - 'OutputColumnName' => [ - 'title' => '输出字段名', - 'description' => '输出字段名', - 'type' => 'string', - 'example' => 'id', - ], - 'OutputTableDeleted' => [ - 'title' => '输出表是否已删除', - 'description' => '输出表是否已删除', - 'type' => 'boolean', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '转交记录ID', 'description' => '转交记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 2\\n}","type":"json"}]', + 'title' => '重新转交运行失败的转交任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": [\\n {\\n \\"TenantId\\": 12345,\\n \\"TaskId\\": \\"n_123\\",\\n \\"TaskEnv\\": \\"DEV\\",\\n \\"InputEnv\\": \\"DEV\\",\\n \\"InputTableId\\": \\"odps.123.test_project.order\\",\\n \\"InputTableName\\": \\"order\\",\\n \\"InputColumnId\\": \\"odps.123.test_project.input_table.id\\",\\n \\"InputColumnName\\": \\"id\\",\\n \\"InputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"InputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"InputDbType\\": \\"MAX_COMPUTE\\",\\n \\"InputProjectId\\": 123,\\n \\"InputBizUnitId\\": 123,\\n \\"InputDataSourceId\\": 123,\\n \\"InputTableDeleted\\": true,\\n \\"OutputTableType\\": \\"PHYSICAL_TABLE\\",\\n \\"OutputEnv\\": \\"DEV\\",\\n \\"OutputBizUnitId\\": 123,\\n \\"OutputDataSourceType\\": \\"MAX_COMPUTE\\",\\n \\"OutputDbType\\": \\"MAX_COMPUTE\\",\\n \\"OutputProjectId\\": 123,\\n \\"OutputDataSourceId\\": 123,\\n \\"OutputTableId\\": \\"odps.123.test_project.order\\",\\n \\"OutputTableName\\": \\"order\\",\\n \\"OutputColumnId\\": \\"odps.123.test_project.input_table.id\\",\\n \\"OutputColumnName\\": \\"id\\",\\n \\"OutputTableDeleted\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '表字段血缘查询', - 'extraInfo' => '接口上线版本:v5.1.0', + 'ramActions' => [], ], - 'GetInstanceUpDownStream' => [ - 'summary' => '查询实例的上下游,支持逻辑表和代码任务。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'RevokeDataServiceApi' => [ + 'summary' => '回收API授权。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'InstanceId', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '数据服务项目Id', 'description' => '数据服务项目Id', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '102102'], + ], + [ + 'name' => 'RevokeCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '中心节点', - 'description' => '中心节点', + 'title' => '授权指令', + 'description' => '授权指令', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '实例id/', - 'description' => '实例id/', - 'type' => 'string', - 'required' => true, - 'example' => 't_123456', - ], - 'FieldInstanceIdList' => [ - 'title' => '当节点时逻辑表实例id时可以传,不传默认是全表', - 'description' => '字段ID列表:当节点是逻辑表实例id时可以传,不传默认是全表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '字段ID', - 'type' => 'string', - 'required' => false, - 'example' => '123', - ], - 'required' => false, - ], + 'AppId' => ['title' => 'App的ID', 'description' => 'App的ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1203'], + 'ApiId' => ['title' => 'Api编号', 'description' => 'Api编号', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1021'], + 'Reason' => ['title' => '申请原因', 'description' => '申请原因', 'type' => 'string', 'required' => true, 'example' => 'test', 'maxLength' => 128], + 'Env' => ['title' => 'API环境'."\n" + .'DEV:开发环境'."\n" + .'PROD:生产环境', 'description' => 'API环境:'."\n" + .'- DEV:开发环境'."\n" + .'- PROD:生产环境', 'type' => 'string', 'required' => false, 'example' => 'PROD'], + 'AuthType' => ['title' => '权限类型:'."\n" + .'USE:使用权限'."\n" + .'DELEGATION:代理权限', 'description' => '权限类型:'."\n" + .'- USE:使用权限'."\n" + .'- DELEGATION:代理权限', 'type' => 'string', 'required' => false, 'example' => 'USE', 'default' => 'USE'], + 'GranteeType' => ['title' => '被授权对象类型:'."\n" + .'APP:应用'."\n" + .'USER:用户', 'description' => '被授权对象类型:'."\n" + .'- APP:应用'."\n" + .'- USER:用户', 'type' => 'string', 'required' => false, 'example' => 'APP', 'default' => 'APP'], + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'required' => false, 'example' => '12345'], ], 'required' => true, ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1001121', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '回收数据服务API授权', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'RevokeResourcePermission' => [ + 'summary' => '回收用户资源授权。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'UpStreamDepth', - 'in' => 'query', - 'schema' => [ - 'title' => '上游节点层级,默认:1', - 'description' => '上游节点层级,默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], + 'parameters' => [ [ - 'name' => 'DownStreamDepth', + 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '下游节点层级,默认:1', - 'description' => '下游节点层级,默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Env', - 'in' => 'query', + 'name' => 'RevokeCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + 'title' => '授权回收请求', + 'description' => '授权回收请求', + 'type' => 'object', + 'properties' => [ + 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'PHYSICAL_TABLE'], + 'ResourceList' => [ + 'title' => '资源列表', + 'description' => '资源列表', + 'type' => 'array', + 'items' => [ + 'description' => '资源', + 'type' => 'object', + 'properties' => [ + 'ResourceId' => ['description' => '资源ID', 'type' => 'string', 'required' => false, 'example' => 'odps.300002102.beginner_test.amin_table'], + ], + 'required' => false, + ], + 'required' => true, + ], + 'OperateList' => [ + 'title' => '操作列表', + 'description' => '操作列表', + 'type' => 'array', + 'items' => ['description' => '操作', 'type' => 'string', 'required' => false, 'example' => 'SELECT'], + 'required' => false, + ], + 'Reason' => ['title' => '回收原因', 'description' => '回收原因', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '13131'], + ], + 'required' => true, ], ], ], @@ -55658,338 +33114,76 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'InstanceDagInfo' => [ - 'title' => '实例上下游数据,包含当前实例,以及上下游实例', - 'description' => '实例上下游数据,包含当前实例,以及上下游实例', - 'type' => 'object', - 'properties' => [ - 'StartInstanceList' => [ - 'title' => '中心实例', - 'description' => '中心实例', - 'type' => 'array', - 'items' => [ - 'title' => '中心实例', - 'description' => '中心实例', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_1234567', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_1234567', - ], - 'NodeType' => [ - 'title' => '节点类型'."\n" - .'DATA_PROCESS:代码任务'."\n" - .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'ONE_ID_LABEL:萃取标签节点'."\n" - .'ONE_ID_RULE:萃取标签节点'."\n" - .'PIPELINE_NODE:PIPELINE节点', - 'description' => '节点类型'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldInstanceIdList' => [ - 'title' => '字段ID列表', - 'description' => '字段ID列表', - 'type' => 'array', - 'items' => [ - 'description' => '字段ID', - 'type' => 'string', - 'example' => '1011', - ], - ], - ], - ], - ], - 'UpInstanceList' => [ - 'title' => '上游实例', - 'description' => '上游实例', - 'type' => 'array', - 'items' => [ - 'title' => '上游实例', - 'description' => '上游实例', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_1234567', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_1234567', - ], - 'NodeType' => [ - 'title' => '节点类型', - 'description' => '节点类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldInstanceIdList' => [ - 'title' => '字段ID列表', - 'description' => '字段ID列表', - 'type' => 'array', - 'items' => [ - 'description' => '字段ID', - 'type' => 'string', - 'example' => '1021', - ], - ], - ], - ], - ], - 'DownInstanceList' => [ - 'title' => '下游实例', - 'description' => '下游实例', - 'type' => 'array', - 'items' => [ - 'title' => '下游实例', - 'description' => '下游实例', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_1234567', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_1234567', - ], - 'NodeType' => [ - 'title' => '节点类型', - 'description' => '节点类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldInstanceIdList' => [ - 'title' => '字段ID列表', - 'description' => '字段ID列表', - 'type' => 'array', - 'items' => [ - 'description' => '字段ID', - 'type' => 'string', - 'example' => '1031', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '回收用户资源授权', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceDagInfo\\": {\\n \\"StartInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1011\\"\\n ]\\n }\\n ],\\n \\"UpInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1021\\"\\n ]\\n }\\n ],\\n \\"DownInstanceList\\": [\\n {\\n \\"Id\\": \\"t_1234567\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"NodeId\\": \\"n_1234567\\",\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"FieldInstanceIdList\\": [\\n \\"1031\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询实例的上下游', - ], - 'GetInstanceDownStream' => [ - 'summary' => '根据起始的实例查询该实例的下游。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:RevokeResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'StopAdHocTask' => [ + 'summary' => '终止即席查询任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'InstanceGet', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'description' => '获取请求', - 'type' => 'object', - 'properties' => [ - 'InstanceId' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 't_5929472_20210411_9577721', - ], - 'NodeType' => [ - 'title' => '实例的节点类型:'."\n" - .'BBOX_LOGIC_TABLE_NODE,'."\n" - .'BBOX_LOGIC_FIELD_NODE,'."\n" - .'BBOX_LOGIC_FIELD_GROUP_NODE,'."\n" - .'BBOX_INNER_TEMP_NODE,'."\n" - .'DATA_PROCESS,'."\n" - .'STREAM_TASK_NODE,'."\n" - .'ONE_ID_LABEL,'."\n" - .'ONE_ID_RULE,'."\n" - .'ONE_ID_SYSTEM,PIPELINE_NODE,'."\n" - .'FLINK_BATCH', - 'description' => '实例的节点类型'."\n" - .'- BBOX_LOGIC_TABLE_NODE'."\n" - .'- BBOX_LOGIC_FIELD_NODE'."\n" - .'- BBOX_LOGIC_FIELD_GROUP_NODE'."\n" - .'- BBOX_INNER_TEMP_NODE'."\n" - .'- DATA_PROCESS'."\n" - .'- STREAM_TASK_NODE'."\n" - .'- FLINK_BATCH', - 'type' => 'string', - 'required' => true, - 'example' => 'DATA_PROCESS', - ], - ], - 'required' => true, - ], - ], - [ - 'name' => 'RunStatus', - 'in' => 'query', - 'schema' => [ - 'title' => '实例的运行状态'."\n" - .'INIT、WATING、RUNNING、SUCCESS、FAILED', - 'description' => '实例的运行状态'."\n" - .'- INIT'."\n" - .'- WATING'."\n" - .'- RUNNING'."\n" - .'- SUCCESS'."\n" - .'- FAILED', - 'type' => 'string', - 'required' => false, - 'example' => 'SUCCESS', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DownStreamDepth', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '查询的dag向下展开的层数,允许值1~6', - 'description' => '查询的dag向下展开的层数,允许值1~6', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], ], [ - 'name' => 'Env', + 'name' => 'TaskId', 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], + 'schema' => ['title' => '任务Id', 'description' => '任务Id', 'type' => 'string', 'required' => true, 'example' => 'MaxCompute_SQL_300000843_1611548758327'], ], ], 'responses' => [ @@ -55999,1016 +33193,367 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'InstanceRelationList' => [ - 'title' => '下游及依赖关系'."\n", - 'description' => '下游及依赖关系'."\n", - 'type' => 'array', - 'items' => [ - 'title' => '下游及依赖关系', - 'description' => '下游及依赖关系', - 'type' => 'object', - 'properties' => [ - 'InstanceInfo' => [ - 'title' => '实力信息', - 'description' => '实力信息', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_232411', - ], - 'Name' => [ - 'title' => '实例名称', - 'description' => '实例名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型', - 'description' => '节点类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - ], - ], - 'SelectStatus' => [ - 'title' => '实例选择状态,主要用于逻辑字段'."\n" - .'OPTIONAL可选'."\n" - .'SELECTED 必选'."\n" - .'DISABLE 不可选'."\n" - .'GROUP_SELECTED 全选或全不选', - 'description' => '实例选择状态,主要用于逻辑字段'."\n" - .'- OPTIONAL可选'."\n" - .'- SELECTED 必选'."\n" - .'- DISABLE 不可选'."\n" - .'- GROUP_SELECTED 全选或全不选', - 'type' => 'string', - 'example' => 'OPTIONAL', - ], - 'SelectStatusCause' => [ - 'title' => '实例被选中原因'."\n" - .'PK_CHANGE, LOGIC_CHANGE, RELATION, BIZ_RELATION,MV_RELATION,MODEL_REFRESH,FIELD_DELETED,FIELD_ADDED_NO_INSTANCE,PERMISSION_DENY,OUTSIDE_INCOMING, INSTANCE_STATUS,AFFECT_BY_UPSTREAM', - 'description' => '实例被选中原因'."\n" - .'- PK_CHANGE'."\n" - .'- LOGIC_CHANGE'."\n" - .'- RELATION'."\n" - .'- BIZ_RELATIO'."\n" - .'- MV_RELATION'."\n" - .'- MODEL_REFRESH'."\n" - .'- FIELD_DELETED'."\n" - .'- FIELD_ADDED_NO_INSTANCE'."\n" - .'- PERMISSION_DENY'."\n" - .'- OUTSIDE_INCOMING'."\n" - .'- INSTANCE_STATUS'."\n" - .'- AFFECT_BY_UPSTREAM', - 'type' => 'string', - 'example' => 'FIELD_DELETED', - ], - 'RunStatus' => [ - 'title' => '实例运行状态'."\n" - .'INIT、WATING、RUNNING、SUCCESS、FAILED', - 'description' => '实例运行状态', - 'type' => 'string', - 'example' => 'RUNNING', - ], - 'FieldInstanceList' => [ - 'description' => '字段实例列表', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'SelectStatus' => [ - 'description' => '实例选择状态', - 'type' => 'string', - 'example' => 'OPTIONAL', - ], - 'FieldInstanceId' => [ - 'description' => '字段实例ID', - 'type' => 'string', - 'example' => 't_23211', - ], - 'RunStatus' => [ - 'description' => '运行状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - ], - ], - ], - 'DownStreamDepth' => [ - 'title' => '层级', - 'description' => '层级', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExtendInfo' => [ - 'title' => '节点实例扩展信息', - 'description' => '节点实例扩展信息', - 'type' => 'string', - 'example' => '{"a":"x"}', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '终止即席查询任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceRelationList\\": [\\n {\\n \\"InstanceInfo\\": {\\n \\"Id\\": \\"t_232411\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\"\\n },\\n \\"SelectStatus\\": \\"OPTIONAL\\",\\n \\"SelectStatusCause\\": \\"FIELD_DELETED\\",\\n \\"RunStatus\\": \\"RUNNING\\",\\n \\"FieldInstanceList\\": [\\n {\\n \\"SelectStatus\\": \\"OPTIONAL\\",\\n \\"FieldInstanceId\\": \\"t_23211\\",\\n \\"RunStatus\\": \\"SUCCESS\\"\\n }\\n ],\\n \\"DownStreamDepth\\": 1,\\n \\"ExtendInfo\\": \\"{\\\\\\"a\\\\\\":\\\\\\"x\\\\\\"}\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取实例下游实例列表', - ], - 'GetSupplementDagrunInstance' => [ - 'summary' => '列出补数据工作流下具体一个业务日期的所有节点的实例。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:StopAdHocTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'SubmitBatchTask' => [ + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'DagrunId', - 'in' => 'query', - 'schema' => [ - 'title' => 'Dagrun ID', - 'description' => 'Dagrun ID', - 'type' => 'string', - 'required' => true, - 'example' => 'dr_2242792_14542', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'SubmitCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => '编辑请求', + 'description' => '编辑请求', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'ProjectId' => ['title' => '任务所属项目Id', 'description' => '任务所属项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10121101'], + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + 'Comment' => ['title' => '提交操作备注', 'description' => '提交操作备注', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Name' => ['title' => '离线任务名', 'description' => '离线任务名', 'type' => 'string', 'required' => true, 'example' => 'test111'], + 'NodeOutputNameList' => [ + 'title' => '节点输出名列表', + 'description' => '节点输出名列表', + 'type' => 'array', + 'items' => ['title' => '节点输出名', 'description' => '节点输出名', 'type' => 'string', 'required' => true, 'example' => 'test1011'], + 'required' => false, + ], + 'NodeDescription' => ['title' => '任务描述', 'description' => '任务描述', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Engine' => ['title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', 'description' => '任务执行引擎,如Python任务:'."\n" + .'- PYTHON2_7'."\n" + .'- PYTHON3_7'."\n" + .'- PYTHON3_11', 'type' => 'string', 'required' => false, 'example' => 'PYTHON3_7'], + 'SchedulePeriod' => ['title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', 'description' => '调度周期'."\n" + .'- 年:YEARLY'."\n" + .'- 月:MONTHLY'."\n" + .'- 周:WEEKLY'."\n" + .'- 日:DAILY'."\n" + .'- 小时:HOURLY'."\n" + .'- 分钟:MINUTELY', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'CronExpression' => ['title' => '自动调度的cron表达式, 可参考Linux cron表达式', 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', 'type' => 'string', 'required' => false, 'example' => '0 0 1 * * ?'], + 'CustomScheduleConfig' => [ + 'title' => '自定义调度间隔配置', + 'description' => '自定义调度间隔配置', + 'type' => 'object', + 'properties' => [ + 'SchedulePeriod' => ['title' => '调度周期', 'description' => '调度周期'."\n" + .'- 年 YEARLY'."\n" + .'- 月 MONTHLY'."\n" + .'- 周 WEEKLY'."\n" + .'- 日 DAILY'."\n" + .'- 小时 HOURLY'."\n" + .'- 分钟 MINUTELY', 'type' => 'string', 'required' => true, 'example' => 'DAILY'], + 'Interval' => ['title' => '自定义间隔', 'description' => '自定义间隔', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'IntervalUnit' => ['title' => '间隔单位:MINUTE、HOUR', 'description' => '间隔单位'."\n" + .'- MINUTE:分钟'."\n" + .'- HOUR:小时', 'type' => 'string', 'required' => true, 'example' => 'HOUR'], + 'StartTime' => ['title' => '开始时间: HH:mm', 'description' => '开始时间: HH:mm', 'type' => 'string', 'required' => true, 'example' => '10:00'], + 'EndTime' => ['title' => '结束时间: HH:mm', 'description' => '结束时间: HH:mm', 'type' => 'string', 'required' => true, 'example' => '10:00'], + ], + 'required' => false, + ], + 'Code' => ['title' => '任务代码', 'description' => '任务代码', 'type' => 'string', 'required' => true, 'example' => 'show tables;'], + 'ParamList' => [ + 'title' => '运行参数列表', + 'description' => '自定义参数列表', + 'type' => 'array', + 'items' => [ + 'title' => '运行参数', + 'description' => '运行参数', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '运行参数名称', 'description' => '参数名称', 'type' => 'string', 'required' => true, 'example' => 'key'], + 'Value' => ['title' => '运行参数值', 'description' => '参数值', 'type' => 'string', 'required' => true, 'example' => 'key'], + ], + 'required' => true, + ], + 'required' => false, ], - 'InstanceList' => [ - 'title' => '实例列表', - 'description' => '实例列表', + 'Priority' => ['title' => '任务调度优先级, 1-9值越大表示优先级越低', 'description' => '任务调度优先级, 1-9值越大表示优先级越低', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'NodeStatus' => ['title' => '节点状态: 正常 1、暂停 2、空跑 3', 'description' => '节点状态: 正常 1、暂停 2、空跑 3', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'UpStreamList' => [ + 'title' => '上游依赖', + 'description' => '上游依赖', 'type' => 'array', 'items' => [ - 'title' => '实例详情', - 'description' => '实例详情', + 'title' => '节点关联', + 'description' => '节点关联', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_239496_20210411_246982077481', - ], - 'Type' => [ - 'title' => '实例类型'."\n" - .'NORMAL:周期实例、'."\n" - .'SUPPLEMENT:补数据实例'."\n" - .'MANUAL:手动实例', - 'description' => '实例类型'."\n" - ."\n" - .'- NORMAL:周期实例、'."\n" - .'- SUPPLEMENT:补数据实例'."\n" - .'- MANUAL:手动实例', - 'type' => 'string', - 'example' => 'SUPPLEMENT', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-04-01', - ], - 'DueTime' => [ - 'title' => '调度日期', - 'description' => '调度日期', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-04-02', - ], - 'StatusList' => [ - 'title' => '实例的状态列表,物理实例列表中只会有一个状态'."\n" - .'NIT:初始化'."\n" - .'WATING:待运行'."\n" - .'RUNNING:运行中'."\n" - .'SUCCESS:成功'."\n" - .'FAILED:失败', - 'description' => '实例的状态列表,物理实例列表中只会有一个状态'."\n" - ."\n" - .'- NIT:初始化'."\n" - .'- WATING:待运行'."\n" - .'- RUNNING:运行中'."\n" - .'- SUCCESS:成功'."\n" - .'- FAILED:失败', + 'NodeType' => ['title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', 'description' => '上游依赖节点类型'."\n" + .'- PHYSICAL:物理节点'."\n" + .'- LOGICAL:逻辑表依赖', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL'], + 'SourceNodeId' => ['title' => '上游节点Id', 'description' => '上游节点Id', 'type' => 'string', 'required' => false, 'example' => 'n_2001'], + 'SourceNodeOutputName' => ['title' => '上游节点的输出名称', 'description' => '上游节点的输出名称', 'type' => 'string', 'required' => true, 'example' => 't_input1'], + 'SourceTableName' => ['title' => '输入表名称', 'description' => '输入表名称', 'type' => 'string', 'required' => false, 'example' => 't_input1'], + 'PeriodDiff' => ['title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'FieldList' => [ + 'title' => '依赖的逻辑表字段', + 'description' => '依赖的逻辑表字段', 'type' => 'array', - 'items' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - ], - 'StartExecuteTime' => [ - 'title' => '开始执行时间', - 'description' => '开始执行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-04-12 00:00:00', - ], - 'EndExecuteTime' => [ - 'title' => '结束执行时间', - 'description' => '结束执行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-04-12 00:25:02', - ], - 'Duration' => [ - 'title' => '执行时间,单位:秒 ', - 'description' => '执行时间,单位:秒 ', - 'type' => 'string', - 'example' => '60', - ], - 'Index' => [ - 'title' => '小时/分钟实例序号', - 'description' => '小时/分钟实例序号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ExtendInfo' => [ - 'title' => '扩展信息'."\n" - .'不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名', - 'description' => '扩展信息'."\n" - .'不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名', - 'type' => 'string', - 'example' => '{"a":"b"}', + 'items' => ['title' => '依赖的逻辑表字段', 'description' => '依赖的逻辑表字段', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'required' => false, ], - 'NodeInfo' => [ - 'title' => '实例对应节点详情', - 'description' => '实例对应节点详情', + 'SourceNodeEnabled' => ['title' => '上游节点是否生效', 'description' => '上游节点是否生效', 'type' => 'boolean', 'required' => false], + 'DependStrategy' => ['title' => '依赖策略: ALL,FIRST,LAST,NEAR', 'description' => '依赖策略'."\n" + .'- ALL:全部'."\n" + .'- FIRST:第一个'."\n" + .'- LAST:最后一个'."\n" + .'- NEAR:最近一个', 'type' => 'string', 'required' => false, 'example' => 'ALL'], + 'DependPeriod' => [ + 'title' => '依赖周期', + 'description' => '依赖周期', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_239496', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型'."\n" - .'DATA_PROCESS:代码任务'."\n" - .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'ONE_ID_LABEL:萃取标签节点'."\n" - .'ONE_ID_RULE:萃取标签节点'."\n" - .'PIPELINE_NODE:PIPELINE节点', - 'description' => '节点类型'."\n" - ."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'- ONE_ID_LABEL:萃取标签节点'."\n" - .'- ONE_ID_RULE:萃取标签节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'From' => [ - 'title' => '来源业务系统'."\n" - .'DATA_PROCESS:代码研发'."\n" - .'BLACK_BOX:黑盒'."\n" - .'ONE_ID:萃取'."\n" - .'PIPELINE:PIPELINE', - 'description' => '来源业务系统'."\n" - ."\n" - .'- DATA_PROCESS:代码研发'."\n" - .'- BLACK_BOX:黑盒'."\n" - .'- ONE_ID:萃取'."\n" - .'- PIPELINE:PIPELINE', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'SubDetailType' => [ - 'title' => '节点子类型', - 'description' => '节点子类型', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'Description' => [ - 'title' => '节点描述', - 'description' => '节点描述', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'DryRun' => [ - 'title' => '是否空跑', - 'description' => '是否空跑', - 'type' => 'boolean', - 'example' => 'true', - ], - 'SchedulePaused' => [ - 'title' => '是否暂停', - 'description' => '是否暂停', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HasProd' => [ - 'title' => '是否存在生产环境', - 'description' => '是否存在生产环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HasDev' => [ - 'title' => '是否存在开发环境', - 'description' => '是否存在开发环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ResourceGroupList' => [ - 'title' => '资源组', - 'description' => '资源组', - 'type' => 'array', - 'items' => [ - 'title' => '资源组', - 'description' => '资源组', - 'type' => 'string', - 'example' => 'rs_group_test', - ], - ], - 'PriorityList' => [ - 'title' => '优先级'."\n" - .'HIGHEST'."\n" - .'HIGH'."\n" - .'MIDDLE'."\n" - .'LOW'."\n" - .'LOWEST', - 'description' => '优先级'."\n" - ."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'array', - 'items' => [ - 'title' => '优先级', - 'description' => '优先级', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - ], - 'SchedulePeriodList' => [ - 'title' => '调度周期'."\n" - .'MINUTELY'."\n" - .'HOURLY'."\n" - .'DAILY'."\n" - .'WEEKLY'."\n" - .'MONTHLY'."\n" - .'QUARTERLY', - 'description' => '调度周期'."\n" - ."\n" - .'- MINUTELY'."\n" - .'- HOURLY'."\n" - .'- DAILY'."\n" - .'- WEEKLY'."\n" - .'- MONTHLY'."\n" - .'- QUARTERLY', - 'type' => 'array', - 'items' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'string', - 'example' => 'DAILY', - ], - ], - 'BizUnitName' => [ - 'title' => '业务板块', - 'description' => '业务板块', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Creator' => [ - 'title' => '节点创建者', - 'description' => '节点创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1001012', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Modifier' => [ - 'title' => '修改者', - 'description' => '修改者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1001012', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'OwnerList' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'array', - 'items' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1001012', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-01-30 10:08:49', - ], - 'LastModifiedTime' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '2024-01-30 10:08:49', - ], + 'PeriodType' => ['title' => '依赖周期类型 CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', 'description' => '依赖周期类型'."\n" + .'- CURRENT_PERIOD:本周期'."\n" + .'- LAST_PERIOD:上周期'."\n" + .'- LAST_N_PERIOD:最近N日'."\n" + .'- LAST_24_HOUR:最近24小时', 'type' => 'string', 'required' => true, 'example' => 'CURRENT_PERIOD'], + 'PeriodOffset' => ['title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', 'description' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], + 'required' => false, ], ], + 'required' => true, + ], + 'required' => false, + ], + 'PythonModuleList' => [ + 'title' => '任务依赖python三方包', + 'description' => '任务依赖python三方包', + 'type' => 'array', + 'items' => ['title' => 'python三方包', 'description' => 'python三方包', 'type' => 'string', 'required' => true, 'example' => 'numpy'], + 'required' => false, + ], + 'SparkClientInfo' => [ + 'title' => 'spark客户端', + 'description' => 'spark客户端', + 'type' => 'object', + 'properties' => [ + 'SparkClientVersion' => ['title' => 'spark客户端版本名称', 'description' => 'spark客户端版本名称', 'type' => 'string', 'required' => true, 'example' => 'abc'], + ], + 'required' => false, + ], + 'OfflineCodeTemplateId' => ['type' => 'string', 'required' => false, 'example' => 'template_123456'], + 'CodeTemplateVersion' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'OfflineCodeTemplateParams' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['type' => 'string', 'required' => false, 'example' => 'paramKey'], + 'Description' => ['type' => 'string', 'required' => false, 'example' => '参数说明'], + 'Value' => ['type' => 'string', 'required' => false, 'example' => 'paramValue'], + 'EncryptEnabled' => ['type' => 'boolean', 'required' => false], + ], + 'required' => false, ], + 'required' => false, ], ], + 'required' => true, ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'SubmitResult' => [ + 'title' => '编辑结果', + 'description' => '编辑结果', + 'type' => 'object', + 'properties' => [ + 'NodeId' => ['title' => '任务调度节点ID', 'description' => '任务调度节点ID', 'type' => 'string', 'example' => 'n_12113111'], + 'SubmitId' => ['title' => '待发布对象Id', 'description' => '待发布对象Id', 'type' => 'integer', 'format' => 'int64', 'example' => '1010312911'], + ], + ], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '提交离线计算任务', + 'summary' => '提交离线计算任务。', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceList\\": [\\n {\\n \\"Id\\": \\"t_239496_20210411_246982077481\\",\\n \\"Type\\": \\"SUPPLEMENT\\",\\n \\"BizDate\\": 0,\\n \\"DueTime\\": 0,\\n \\"StatusList\\": [\\n \\"SUCCESS\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"60\\",\\n \\"Index\\": 1,\\n \\"ExtendInfo\\": \\"{\\\\\\"a\\\\\\":\\\\\\"b\\\\\\"}\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_239496\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"DryRun\\": true,\\n \\"SchedulePaused\\": true,\\n \\"HasProd\\": true,\\n \\"HasDev\\": true,\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"1001012\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2024-01-30 10:08:49\\",\\n \\"LastModifiedTime\\": \\"2024-01-30 10:08:49\\"\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取补数据工作流Dagrun下实例列表', - ], - 'GetPhysicalInstance' => [ - 'summary' => '获取实例信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:SubmitBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitResult\\": {\\n \\"NodeId\\": \\"n_12113111\\",\\n \\"SubmitId\\": 1010312911\\n }\\n}","type":"json"}]', + ], + 'SubmitQualityRuleTasks' => [ + 'summary' => '批量提交规则任务,支持试跑。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'InstanceId', - 'in' => 'query', - 'schema' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 't_23231', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'SubmitCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '提交指令', + 'description' => '提交指令', + 'type' => 'object', + 'properties' => [ + 'IsTestRun' => ['title' => '是否为试跑: true 试跑、false 正式运行, 默认 true', 'description' => '是否为试跑: true 试跑、false 正式运行', 'type' => 'boolean', 'required' => true], + 'WatchRuleIdList' => [ + 'title' => '监控及规则ID', + 'description' => '监控及规则ID', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'RuleId' => ['title' => '规则ID', 'description' => '规则ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + 'PartitionExpressionFrom' => ['title' => '试跑分区表达式来源: SCHEDULE 已有调度、CUSTOM 自定义', 'description' => '试跑分区表达式来源: SCHEDULE 已有调度、CUSTOM 自定义', 'type' => 'string', 'required' => false, 'example' => 'CUSTOM'], + 'ScheduleId' => ['title' => '已有调度ID', 'description' => '已有调度ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'PartitionExpression' => ['title' => '分区表达式-自定义表达式', 'description' => '分区表达式-自定义表达式', 'type' => 'string', 'required' => false, 'example' => 'ds=${yyyyMMdd}'], + 'BizDate' => ['title' => '业务日期,格式:yyyy-MM-dd', 'description' => '业务日期,格式:yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-30'], + ], 'required' => true, - 'example' => '2323131', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '● 环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '● 环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Instance' => [ - 'title' => '实例详情', - 'description' => '实例详情', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SubmitResult' => [ + 'title' => '执行结果', + 'description' => '执行结果', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_23231', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2023-06-25', - ], - 'DueTime' => [ - 'title' => '调度时间', - 'description' => '调度时间', - 'type' => 'string', - 'example' => '2023-06-27 00:30:00', - ], - 'StatusList' => [ - 'title' => '状态列表', - 'description' => '状态列表', + 'RuleTaskIdList' => [ + 'title' => '规则任务Id,试跑场景返回', + 'description' => '规则任务Id,试跑场景返回', 'type' => 'array', - 'items' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - ], - 'StartExecuteTime' => [ - 'title' => '开始运行时间', - 'description' => '开始运行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-06-27 01:30:00', + 'items' => ['title' => '规则任务Id,试跑场景返回', 'description' => '规则任务Id,试跑场景返回', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], - 'EndExecuteTime' => [ - 'title' => '结束运行时间', - 'description' => '结束运行时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2023-06-27 02:30:00', - ], - 'Duration' => [ - 'title' => '运行耗时', - 'description' => '运行耗时', - 'type' => 'string', - 'example' => '3600s', - ], - 'Index' => [ - 'title' => '运行实例序号', - 'description' => '运行实例序号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NodeInfo' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_3232312', - ], - 'From' => [ - 'title' => '节点来源系统', - 'description' => '节点来源系统', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'Type' => [ - 'title' => '节点类型', - 'description' => '节点类型'."\n" - .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" - .'- BBOX_LOGIC_FIELD_NODE:逻辑字段节点'."\n" - .'- BBOX_LOGIC_FIELD_GROUP_NODE:字段组节点'."\n" - .'- BBOX_INNER_TEMP_NODE:逻辑表temp节点'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- STREAM_TASK_NODE:实时任务'."\n" - .'- PIPELINE_NODE:PIPELINE节点'."\n" - .'- FLINK_BATCH:flink批任务'."\n" - .'- ODM_NODE:ODM节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'SubDetailType' => [ - 'title' => '子业务类型', - 'description' => '子业务类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx 测试', - ], - 'DryRun' => [ - 'title' => '是否空跑', - 'description' => '是否空跑', - 'type' => 'boolean', - 'example' => 'false', - ], - 'SchedulePaused' => [ - 'title' => '是否暂停调度', - 'description' => '是否暂停调度', - 'type' => 'boolean', - 'example' => 'false', - ], - 'HasProd' => [ - 'title' => '是否有生产环境', - 'description' => '是否有生产环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HasDev' => [ - 'title' => '是否有开发环境', - 'description' => '是否有开发环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'PriorityList' => [ - 'title' => '优先级', - 'description' => '优先级'."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'array', - 'items' => [ - 'title' => '优先级', - 'description' => '优先级', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - ], - 'ResourceGroupList' => [ - 'title' => '资源组', - 'description' => '资源组', - 'type' => 'array', - 'items' => [ - 'title' => '资源组', - 'description' => '资源组', - 'type' => 'string', - 'example' => 'rs_group_test', - ], - ], - 'SchedulePeriodList' => [ - 'title' => '调度周期', - 'description' => '调度周期'."\n" - .'- YEARLY'."\n" - .'- MONTHLY'."\n" - .'- WEEKLY'."\n" - .'- DAILY'."\n" - .'- HOURLY'."\n" - .'- MINUTELY', - 'type' => 'array', - 'items' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'string', - 'example' => 'DAILY', - ], - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'xx', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '2323111', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - ], - ], - 'Modifier' => [ - 'title' => '编辑者', - 'description' => '编辑者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '2323111', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - ], - ], - 'OwnerList' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'array', - 'items' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '2323111', - ], - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'zhangsan', - ], - ], - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2023-02-02 23:53:17', - ], - 'LastModifiedTime' => [ - 'title' => '编辑时间', - 'description' => '编辑时间', - 'type' => 'string', - 'example' => '2024-02-02 23:53:17', - ], - ], - ], - 'ExtendInfo' => [ - 'title' => '扩展信息', - 'description' => '扩展信息', - 'type' => 'string', - 'example' => 'xx', + 'WatchTaskIdList' => [ + 'title' => '监控对象任务ID,非试跑场景返回', + 'description' => '监控对象任务ID,非试跑场景返回', + 'type' => 'array', + 'items' => ['title' => '监控对象任务ID,非试跑场景返回', 'description' => '监控对象任务ID,非试跑场景返回', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], @@ -57018,283 +33563,154 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Instance\\": {\\n \\"Id\\": \\"t_23231\\",\\n \\"BizDate\\": \\"2023-06-25\\",\\n \\"DueTime\\": \\"2023-06-27 00:30:00\\",\\n \\"StatusList\\": [\\n \\"SUCCESS\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"3600s\\",\\n \\"Index\\": 1,\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_3232312\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"DryRun\\": false,\\n \\"SchedulePaused\\": false,\\n \\"HasProd\\": true,\\n \\"HasDev\\": true,\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"2323111\\",\\n \\"Name\\": \\"zhangsan\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2023-02-02 23:53:17\\",\\n \\"LastModifiedTime\\": \\"2024-02-02 23:53:17\\"\\n },\\n \\"ExtendInfo\\": \\"xx\\"\\n }\\n}","type":"json"}]', - 'title' => '获取实例信息', - ], - 'ListInstances' => [ - 'summary' => '分页查询实例。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SubmitResult\\": {\\n \\"RuleTaskIdList\\": [\\n 1\\n ],\\n \\"WatchTaskIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', + 'title' => '批量提交规则任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'SubmitQualityWatchTasks' => [ + 'summary' => '批量提交监控对象校验任务。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'SubmitCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', + 'title' => '提交指令', + 'description' => '提交指令', 'type' => 'object', 'properties' => [ - 'NodeId' => [ - 'description' => '节点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'n_23131', - ], - 'RunStatusList' => [ - 'title' => 'INIT(初始化)、WAIT_SUBMISSION(等待提交)、WAIT_SCHEDULE(等待调度时间)、DISPATCH_BLOCKED(限流中)、WAIT_RESOURCE(等待调度资源)、RUNNING(运行中)、SUCCESS(成功)、FAILED(失败) ', - 'description' => '运行状态'."\n" - .'- INIT:初始化'."\n" - .'- WAIT_SUBMISSION:等待提交'."\n" - .'- WAIT_SCHEDULE:等待调度时间'."\n" - .'- DISPATCH_BLOCKED:限流中'."\n" - .'- WAIT_RESOURCE:等待调度资源'."\n" - .'- RUNNING:运行中'."\n" - .'- SUCCESS:成功'."\n" - .'- FAILED:失败', - 'type' => 'array', - 'items' => [ - 'title' => '允许状态', - 'description' => '运行状态', - 'type' => 'string', - 'required' => false, - 'example' => 'RUNNING', - ], - 'required' => false, - ], - 'MinBizDate' => [ - 'title' => '开始业务日期时间,时间格式须符合业务板块指定的分区格式', - 'description' => '开始业务日期时间,时间格式须符合业务板块指定的分区格式', - 'type' => 'string', - 'required' => false, - 'example' => '2024-05-30', - ], - 'MaxBizDate' => [ - 'title' => '截止业务日期时间,时间格式须符合业务板块指定的分区格式'."\n", - 'description' => '截止业务日期时间,时间格式须符合业务板块指定的分区格式'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '2024-05-31', - ], - 'BizType' => [ - 'title' => '业务类型', - 'description' => '业务类型'."\n" - ."\n" - .'- SCRIPT:脚本实例'."\n" - .'- LOGICAL_TABLE:逻辑表', - 'type' => 'string', - 'required' => false, - 'example' => 'SCRIPT', - ], - 'SubBizTypeList' => [ - 'title' => '子业务类型', - 'description' => '子业务类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL', - 'type' => 'array', - 'items' => [ - 'description' => '子业务类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', - ], - 'required' => false, - ], - 'SchedulePeriodList' => [ - 'title' => '调度周期', - 'description' => '调度周期'."\n" - .'- YEARLY'."\n" - .'- MONTHLY'."\n" - .'- WEEKLY'."\n" - .'- DAILY'."\n" - .'- HOURLY'."\n" - .'- MINUTELY', - 'type' => 'array', - 'items' => [ - 'description' => '调度周期', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'required' => false, - ], - 'OwnerList' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'array', - 'items' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'required' => false, - 'example' => '123131', - ], - 'required' => false, - ], - 'PriorityList' => [ - 'title' => '优先级', - 'description' => '优先级'."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', + 'WatchIdList' => [ + 'title' => '监控对象ID', + 'description' => '监控对象ID', 'type' => 'array', - 'items' => [ - 'description' => '优先级', - 'type' => 'string', - 'required' => false, - 'example' => 'MIDDLE', - ], - 'required' => false, - ], - 'SchedulePaused' => [ - 'title' => '是否暂停调度', - 'description' => '是否暂停调度', - 'type' => 'boolean', - 'required' => false, - ], - 'MinRunDate' => [ - 'title' => '实例运行日期', - 'description' => '最小实例运行时间', - 'type' => 'string', - 'required' => false, - 'example' => '2024-05-30', - ], - 'MaxRunDate' => [ - 'title' => '实例运行日期', - 'description' => '最大实例运行时间', - 'type' => 'string', - 'required' => false, - 'example' => '2024-05-31', - ], - 'ScheduleType' => [ - 'title' => '实例调度类型'."\n" - .'NORMAL(周期实例)'."\n" - .'MANUAL(手动实例)', - 'description' => '实例调度类型'."\n" - .'- NORMAL(周期实例)'."\n" - .'- MANUAL(手动实例)', - 'type' => 'string', - 'required' => true, - 'example' => 'NORMAL', - ], - 'SearchText' => [ - 'title' => '节点名称模糊匹配或节点ID精确匹配', - 'description' => '节点名称模糊匹配或节点ID精确匹配', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '131311111321', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', + 'items' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], 'required' => true, - 'example' => '20', - ], - 'BizUnitId' => [ - 'title' => '业务板块id,查询汇总逻辑表时需要传入', - 'description' => '业务板块id,查询汇总逻辑表时需要传入', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '6232322111', ], - 'FlowId' => [ - 'title' => '任务流Id', - 'description' => '任务流Id', - 'type' => 'string', - 'required' => false, - 'example' => '1021', + 'PartitionExpression' => ['title' => '分区表达式-自定义表达式', 'description' => '分区表达式-自定义表达式', 'type' => 'string', 'required' => false, 'example' => 'ds=${yyyyMMdd}'], + 'BizDate' => ['title' => '业务日期,格式:yyyy-MM-dd', 'description' => '业务日期,格式:yyyy-MM-dd', 'type' => 'string', 'required' => false, 'example' => '2025-06-30'], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'SubmitResult' => [ + 'title' => '执行结果', + 'description' => '执行结果', + 'type' => 'object', + 'properties' => [ + 'WatchTaskIdList' => [ + 'title' => '监控对象校验任务ID列表', + 'description' => '监控对象校验任务ID列表', + 'type' => 'array', + 'items' => ['title' => '监控对象校验任务ID列表', 'description' => '监控对象校验任务ID列表', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], ], ], - 'required' => false, ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"SubmitResult\\": {\\n \\"WatchTaskIdList\\": [\\n 1\\n ]\\n }\\n}","type":"json"}]', + 'title' => '批量提交监控对象校验任务', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'SyncDepartment' => [ + 'summary' => '同步部门信息。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'Env', + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'SyncDepartmentCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + 'title' => '请求命令', + 'description' => '请求命令', + 'type' => 'object', + 'properties' => [ + 'DepartmentList' => [ + 'description' => '部门列表(全量组织树)', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'DepartmentId' => ['title' => '部门ID(部门唯一标识)', 'description' => '部门ID(部门唯一标识)', 'type' => 'string', 'required' => true, 'example' => '10001'], + 'DepartmentName' => ['title' => '部门展示名称', 'description' => '部门展示名称', 'type' => 'string', 'required' => true, 'example' => '研发中心'], + 'ParentDepartmentId' => ['title' => '父部门ID(部门唯一标识,如无则为null)', 'description' => '父部门ID(部门唯一标识,如无则为null)', 'type' => 'string', 'required' => false, 'example' => '10001'], + ], + 'required' => true, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, ], ], ], @@ -57305,344 +33721,42 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'description' => '分页结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '107', - ], - 'Data' => [ - 'description' => '分页记录', - 'type' => 'array', - 'items' => [ - 'description' => '实例信息', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_23231', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2024-05-30', - ], - 'DueTime' => [ - 'title' => '调度时间', - 'description' => '调度时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'StatusList' => [ - 'title' => '实例状态', - 'description' => '实例状态', - 'type' => 'array', - 'items' => [ - 'description' => '实例状态', - 'type' => 'string', - 'example' => 'RUNNING', - ], - ], - 'StartExecuteTime' => [ - 'title' => '运行', - 'description' => '执行开始时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-05-30 16:46:13', - ], - 'EndExecuteTime' => [ - 'title' => '执行结束时间', - 'description' => '执行结束时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2024-05-30 16:47:13'."\n", - ], - 'Duration' => [ - 'title' => '运行耗时,单位:秒', - 'description' => '运行耗时,单位:秒', - 'type' => 'string', - 'example' => '60s', - ], - 'Index' => [ - 'title' => '小时分钟实例序号', - 'description' => '小时分钟实例序号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'NodeInfo' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_132331', - ], - 'From' => [ - 'title' => '节点来源', - 'description' => '节点来源', - 'type' => 'string', - 'example' => 'DATA_PROCES', - ], - 'Type' => [ - 'title' => '节点业务类型', - 'description' => '节点业务类型'."\n" - .'- SCRIPT:脚本'."\n" - .'- LOGICAL_TABLE:逻辑表', - 'type' => 'string', - 'example' => 'DATA_PROCES', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试'."\n", - ], - 'SubDetailType' => [ - 'title' => '子业务类型', - 'description' => '子业务类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'Description' => [ - 'title' => '节点描述', - 'description' => '节点描述', - 'type' => 'string', - 'example' => 'xx 测试', - ], - 'DryRun' => [ - 'title' => '是否空跑', - 'description' => '是否空跑', - 'type' => 'boolean', - 'example' => 'false', - ], - 'SchedulePaused' => [ - 'title' => '是否暂停调度', - 'description' => '是否暂停调度', - 'type' => 'boolean', - 'example' => 'false', - ], - 'HasProd' => [ - 'title' => '是否有生产环境', - 'description' => '是否有生产环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HasDev' => [ - 'title' => '是否有开发环境', - 'description' => '是否有开发环境', - 'type' => 'boolean', - 'example' => 'false', - ], - 'PriorityList' => [ - 'description' => '优先级'."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'array', - 'items' => [ - 'description' => '优先级', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - ], - 'ResourceGroupList' => [ - 'title' => '运行资源组', - 'description' => '运行资源组', - 'type' => 'array', - 'items' => [ - 'description' => '资源组', - 'type' => 'string', - 'example' => 'rs_group_test', - ], - ], - 'SchedulePeriodList' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'array', - 'items' => [ - 'description' => '调度周期'."\n" - .'- YEARLY'."\n" - .'- MONTHLY'."\n" - .'- WEEKLY'."\n" - .'- DAILY'."\n" - .'- HOURLY'."\n" - .'- MINUTELY', - 'type' => 'string', - 'example' => 'DAILY', - ], - ], - 'BizUnitName' => [ - 'title' => '业务板块', - 'description' => '业务板块', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Creator' => [ - 'title' => '节点创建人', - 'description' => '节点创建人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '21313112', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Modifier' => [ - 'title' => '编辑人', - 'description' => '编辑人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => '21313112', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'OwnerList' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '21313112', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'LastModifiedTime' => [ - 'title' => '编辑时间', - 'description' => '编辑时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13'."\n", - ], - ], - ], - 'ExtendInfo' => [ - 'title' => '节点扩展信息:不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名 ', - 'description' => '节点扩展信息:不同业务系统实例的特有信息,例如pipeline的fileId,逻辑表是否层级维度以及mid节点信息,实例输出名 ', - 'type' => 'string', - 'example' => 'xx', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['description' => '同步结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '同步部门信息', + 'description' => '可以根据appKey查询已发布接口的详细信息', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 107,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"t_23231\\",\\n \\"BizDate\\": \\"2024-05-30\\",\\n \\"DueTime\\": \\"2024-05-30 16:47:13\\",\\n \\"StatusList\\": [\\n \\"RUNNING\\"\\n ],\\n \\"StartExecuteTime\\": 0,\\n \\"EndExecuteTime\\": 0,\\n \\"Duration\\": \\"60s\\",\\n \\"Index\\": 1,\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_132331\\",\\n \\"From\\": \\"DATA_PROCES\\",\\n \\"Type\\": \\"DATA_PROCES\\",\\n \\"Name\\": \\"xx测试\\\\n\\",\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Description\\": \\"xx 测试\\",\\n \\"DryRun\\": false,\\n \\"SchedulePaused\\": false,\\n \\"HasProd\\": true,\\n \\"HasDev\\": false,\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"ResourceGroupList\\": [\\n \\"rs_group_test\\"\\n ],\\n \\"SchedulePeriodList\\": [\\n \\"DAILY\\"\\n ],\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"21313112\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2024-05-30 16:47:13\\",\\n \\"LastModifiedTime\\": \\"2024-05-30 16:47:13\\\\n\\"\\n },\\n \\"ExtendInfo\\": \\"xx\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取实例列表', + 'ramActions' => [], ], - 'OperateInstance' => [ - 'summary' => '批量运维实例,支持物理实例和逻辑表实例。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'SyncDepartmentUser' => [ + 'summary' => '同步部门成员信息。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -57650,102 +33764,46 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OperateCommand', + 'name' => 'SyncDepartmentUserCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '操作请求', - 'description' => '操作请求', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'InstanceIdList' => [ - 'title' => '运维实例列表', - 'description' => '运维实例列表', + 'DeptUserMapping' => [ + 'description' => '用户归属部门关系', 'type' => 'array', 'items' => [ - 'description' => '运维实例', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 't_32111312', - ], - 'FieldInstanceIdList' => [ - 'description' => '字段实例ID', + 'SourceUserId' => ['title' => '用户系统的用户ID(用户唯一标识)', 'description' => '用户系统的用户ID(用户唯一标识)', 'type' => 'string', 'required' => true, 'example' => '30000001'], + 'DepartmentIdList' => [ + 'title' => '用户归属部门ID列表(为空则为删除用户归属关系)', + 'description' => '用户归属部门ID列表(为空则为删除用户归属关系)', 'type' => 'array', - 'items' => [ - 'description' => '字段实例ID', - 'type' => 'string', - 'required' => false, - 'example' => 't_2311', - ], + 'items' => ['description' => '用户归属部门ID', 'type' => 'string', 'required' => true, 'example' => 'DEPT_1'], 'required' => false, ], ], 'required' => true, + 'description' => '', ], 'required' => true, ], - 'Operation' => [ - 'title' => '操作 '."\n" - .'RERUN:重跑/PAUSE:暂停/RESUME:恢复/TERMINATE:终止/SET_SUCCESS:置为成功', - 'description' => '操作 '."\n" - .'- RERUN:重跑'."\n" - .'- PAUSE:暂停'."\n" - .'- RESUME:恢复'."\n" - .'- TERMINATE:终止'."\n" - .'- SET_SUCCESS:置为成功', - 'type' => 'string', - 'required' => true, - 'example' => 'RERUN', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '132311', - ], ], 'required' => true, ], ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], ], 'responses' => [ 200 => [ @@ -57754,264 +33812,69 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'InstanceStatusList' => [ - 'title' => '实例运维结果', - 'description' => '实例运维结果', - 'type' => 'array', - 'items' => [ - 'description' => '实例运维结果', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'example' => 't_132435', - ], - 'Name' => [ - 'title' => '实例名', - 'description' => '实例名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'DisplayName' => [ - 'title' => '实例显示名', - 'description' => '实例显示名', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Status' => [ - 'title' => '操作的结果,成功或者失败', - 'description' => '操作的结果,成功或者失败', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'ErrorMessage' => [ - 'title' => '操作失败时的错误信息', - 'description' => '操作失败时的错误信息', - 'type' => 'string', - 'example' => 'xx', - ], - 'OwnerId' => [ - 'title' => '实例负责人', - 'description' => '实例负责人', - 'type' => 'string', - 'example' => '121311', - ], - 'OwnerName' => [ - 'title' => '实例负责人', - 'description' => '实例负责人', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['description' => '响应结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"InstanceStatusList\\": [\\n {\\n \\"Id\\": \\"t_132435\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"DisplayName\\": \\"xx测试\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx\\",\\n \\"OwnerId\\": \\"121311\\",\\n \\"OwnerName\\": \\"xx测试\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '实例运维', - ], - 'FixData' => [ - 'summary' => '重跑下游(修复链路数据), 支持强制重跑下游;影响范围:会产生计算成本、影响数据产出。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '同步部门成员信息', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'TransferOwnershipForAllObject' => [ + 'summary' => '一键转交负责人。', + 'path' => '', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'FixDataCommand', + 'name' => 'PrivilegeTransferRecord', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '重跑下游(修复链路数据),可以选择强制重跑', - 'description' => '重跑下游(修复链路数据),可以选择强制重跑', + 'description' => '转交信息', 'type' => 'object', 'properties' => [ - 'RootInstanceId' => [ - 'title' => '根实例', - 'description' => '根实例', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', - 'required' => true, - 'example' => 't_2323111', - ], - 'FieldInstanceIdList' => [ - 'title' => '当节点时逻辑表实例id时可以传,不传默认是全表', - 'description' => '字段ID:当节点是逻辑表实例id时可以传,不传默认是全表', - 'type' => 'array', - 'items' => [ - 'description' => '字段ID', - 'type' => 'string', - 'required' => false, - 'example' => '121', - ], - 'required' => false, - ], - ], - 'required' => true, - ], - 'DownStreamInstanceIdList' => [ - 'title' => '下游实例(如果选择了下游范围,则此处可不传,否则需要传入下游实例列表) ', - 'description' => '下游实例(如果选择了下游范围,则此处可不传,否则需要传入下游实例列表) ', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '实例ID', - 'type' => 'string', - 'required' => false, - 'example' => 't_2323421', - ], - 'FieldInstanceIdList' => [ - 'description' => '字段实例ID', - 'type' => 'array', - 'items' => [ - 'description' => '字段实例ID', - 'type' => 'string', - 'required' => false, - 'example' => 't_2311', - ], - 'required' => false, - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'ContainRootInstance' => [ - 'title' => '根实例是否重跑,不选默认为是', - 'description' => '根实例是否重跑,不选默认为是', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'DownstreamRange' => [ - 'title' => '下游范围(快捷选项:ALL_FAILED_INSTANCE:所有失败实例; ALL_INSTANCE: 所有实例; ALL_FINAL_INSTANCE: 所有终态实例;) 不传默认需要根据传入的下游进行重跑', - 'description' => '下游范围'."\n" - .'- ALL_FAILED_INSTANCE:所有失败实例'."\n" - .'- ALL_INSTANCE: 所有实例'."\n" - .'- ALL_FINAL_INSTANCE: 所有终态实例'."\n" - .'- 不传默认需要根据传入的下游进行重跑', - 'type' => 'string', - 'required' => false, - 'example' => 'ALL_INSTANCE', - ], - 'ForceRerun' => [ - 'title' => '释放强制重跑', - 'description' => '是否强制重跑', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '132344', - ], + 'OldOwner' => ['title' => '转出人用户ID', 'description' => '转出人用户ID', 'type' => 'string', 'required' => true, 'example' => '30000001'], + 'NewOwner' => ['title' => '接收人用户ID', 'description' => '接收人用户ID', 'type' => 'string', 'required' => true, 'example' => '30000002'], + 'TransferComment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], ], - 'required' => true, - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', 'required' => false, - 'example' => 'PROD', ], ], ], @@ -58022,81 +33885,37 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'SubmitId' => [ - 'title' => '本次提交的提交id,如果选择downstreamRange为快捷模式,则此处会返回提交id,需要通过提交状态查询接口([QueryOperationSubmitJobStatus]),查询本次提交的状态。人为选择下游实例可忽略该返回', - 'description' => '本次提交的提交ID', - 'type' => 'string', - 'example' => '12324234', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '转交记录ID', 'description' => '转交记录ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '一键转交负责人', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitId\\": \\"12324234\\"\\n}","type":"json"}]', - 'title' => '修复性数据重跑', + 'ramActions' => [], ], - 'ExecuteTriggerNode' => [ - 'summary' => '运行触发式节点。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'UpdateAdHocFile' => [ + 'summary' => '修改即席查询文件。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -58104,153 +33923,84 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'NodeId', - 'in' => 'query', - 'schema' => [ - 'title' => '节点id', - 'description' => '节点id', - 'type' => 'string', - 'required' => true, - 'example' => 'n_12345678', - ], - ], - [ - 'name' => 'BizDate', - 'in' => 'query', - 'schema' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-01', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '编辑请求', + 'description' => '编辑请求', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1212313'], + 'FileId' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2311113'], + 'Content' => ['title' => '文件内容', 'description' => '文件内容', 'type' => 'string', 'required' => true, 'example' => 'select 1;'], + ], 'required' => true, - 'example' => '10110201', - ], - ], - [ - 'name' => 'Index', - 'in' => 'query', - 'schema' => [ - 'title' => '如果节点ID为小时或分钟节点,一天会有多个实例,index代表实例的序号', - 'description' => '如果节点ID为小时或分钟节点,一天会有多个实例,index代表实例的序号', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '开发或生产环境:DEV 开发、PROD 生产,默认PROD', - 'description' => '开发或生产环境:DEV 开发、PROD 生产,默认PROD', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '修改即席查询文件', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '运行触发式节点', - ], - 'CreateNodeSupplement' => [ - 'summary' => '通用补数据接口,支持列表模式补数据和海量模式补数据:'."\n" - .'1.会生成补数据实例运行,影响相关表数据产出。'."\n" - .'2.会进行任务运行,造成计算的费用以及存储的费用。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateBatchTask' => [ + 'summary' => '编辑离线计算任务。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -58258,264 +34008,150 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'CreateCommand', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '新建补数据请求', - 'description' => '新建补数据请求', + 'title' => '编辑请求', + 'description' => '编辑请求', 'type' => 'object', 'properties' => [ - 'NodeIdList' => [ - 'title' => '补数据的根节点,支持多个根节点', - 'description' => '补数据的根节点,支持多个根节点', + 'ProjectId' => ['title' => '任务所属项目Id', 'description' => '任务所属项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10121101'], + 'Name' => ['title' => '离线任务名', 'description' => '离线任务名', 'type' => 'string', 'required' => true, 'example' => 'test111'], + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + 'NodeOutputNameList' => [ + 'title' => '节点输出名列表', + 'description' => '节点输出名列表', + 'type' => 'array', + 'items' => ['title' => '节点输出名', 'description' => '节点输出名', 'type' => 'string', 'required' => true, 'example' => 'test1011'], + 'required' => false, + ], + 'NodeDescription' => ['title' => '任务描述', 'description' => '任务描述', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Engine' => ['title' => '任务执行引擎: PYTHON2_7,PYTHON3_7,PYTHON3_11', 'description' => '任务执行引擎,如Python任务'."\n" + .'- 1. PYTHON2_7'."\n" + .'- 2. PYTHON3_7'."\n" + .'- 3. PYTHON3_11', 'type' => 'string', 'required' => false, 'example' => 'PYTHON3_7'], + 'SchedulePeriod' => ['title' => '调度周期: 年 YEARLY、月 MONTHLY、周 WEEKLY、日 DAILY、小时 HOURLY、分钟 MINUTELY', 'description' => '调度周期'."\n" + .'- 年:YEARLY'."\n" + .'- 月:MONTHLY'."\n" + .'- 周:WEEKLY'."\n" + .'- 日:DAILY'."\n" + .'- 小时:HOURLY'."\n" + .'- 分钟:MINUTELY', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'CronExpression' => ['title' => '自动调度的cron表达式, 可参考Linux cron表达式', 'description' => '自动调度的cron表达式, 可参考Linux cron表达式', 'type' => 'string', 'required' => false, 'example' => '0 0 1 * * ?'], + 'CustomScheduleConfig' => [ + 'title' => '自定义调度间隔配置', + 'description' => '自定义调度间隔配置', + 'type' => 'object', + 'properties' => [ + 'SchedulePeriod' => ['title' => '调度周期', 'description' => '调度周期'."\n" + .'- 年 YEARLY'."\n" + .'- 月 MONTHLY'."\n" + .'- 周 WEEKLY'."\n" + .'- 日 DAILY'."\n" + .'- 小时 HOURLY'."\n" + .'- 分钟 MINUTELY', 'type' => 'string', 'required' => true, 'example' => 'DAILY'], + 'Interval' => ['title' => '自定义间隔', 'description' => '自定义间隔', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'IntervalUnit' => ['title' => '间隔单位:MINUTE、HOUR', 'description' => '间隔单位'."\n" + .'- MINUTE:分钟'."\n" + .'- HOUR:小时', 'type' => 'string', 'required' => true, 'example' => 'HOUR'], + 'StartTime' => ['title' => '开始时间: HH:mm', 'description' => '开始时间: HH:mm', 'type' => 'string', 'required' => true, 'example' => '08:00'], + 'EndTime' => ['title' => '结束时间: HH:mm', 'description' => '结束时间: HH:mm', 'type' => 'string', 'required' => true, 'example' => '20:59'], + ], + 'required' => false, + ], + 'Code' => ['title' => '任务代码', 'description' => '任务代码', 'type' => 'string', 'required' => true, 'example' => 'show tables;'], + 'ParamList' => [ + 'title' => '运行参数列表', + 'description' => '自定义参数列表', 'type' => 'array', 'items' => [ - 'title' => '根节点', - 'description' => '根节点', + 'title' => '运行参数', + 'description' => '运行参数', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'required' => true, - 'example' => 'n_1232324', - ], - 'FieldIdList' => [ - 'title' => '当节点时逻辑表节点id时可以传,不传默认是全表', - 'description' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', - 'type' => 'array', - 'items' => [ - 'description' => '字段ID', - 'type' => 'string', - 'required' => false, - 'example' => '1201', - ], - 'required' => false, - ], + 'Key' => ['title' => '运行参数名称', 'description' => '参数名称', 'type' => 'string', 'required' => true, 'example' => 'key'], + 'Value' => ['title' => '运行参数值', 'description' => '参数值', 'type' => 'string', 'required' => true, 'example' => 'value'], ], 'required' => true, ], - 'required' => true, - ], - 'StartBizDate' => [ - 'title' => '起始业务日期 ', - 'description' => '起始业务日期 ', - 'type' => 'string', - 'required' => true, - 'example' => '2024-05-21', - ], - 'EndBizDate' => [ - 'title' => '截止业务日期 ', - 'description' => '截止业务日期 ', - 'type' => 'string', - 'required' => true, - 'example' => '2024-05-21', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101121', - ], - 'Name' => [ - 'title' => '补数据名称,不传时系统生成', - 'description' => '补数据名称,不传时系统生成', - 'type' => 'string', 'required' => false, - 'example' => 'xx测试', ], - 'DownStreamNodeIdList' => [ - 'title' => '下游节点ID,指定下游节点运行;'."\n" - .'ContainAllDownStream = false 时生效', - 'description' => '下游节点ID,指定下游节点运行', + 'Priority' => ['title' => '任务调度优先级, 1-9值越大表示优先级越低', 'description' => '任务调度优先级, 1-9值越大表示优先级越低', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'NodeStatus' => ['title' => '节点状态: 正常 1、暂停 2、空跑 3', 'description' => '节点状态: 正常 1、暂停 2、空跑 3', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'TaskType' => ['title' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', 'description' => '任务类型: Hive_SQL: 1、MaxCompute_SQL: 5、Shell 10、Python 21', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '21'], + 'UpStreamList' => [ + 'title' => '上游依赖', + 'description' => '上游依赖', 'type' => 'array', 'items' => [ - 'title' => '根节点', - 'description' => '节点ID', + 'title' => '节点关联', + 'description' => '节点关联', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', + 'NodeType' => ['title' => '上游依赖节点类型,PHYSICAL 物理节点,LOGICAL 逻辑表依赖', 'description' => '上游依赖节点类型'."\n" + .'- PHYSICAL:物理节点'."\n" + .'- LOGICAL:逻辑表依赖', 'type' => 'string', 'required' => false, 'example' => 'PHYSICAL'], + 'SourceNodeId' => ['title' => '上游节点Id', 'description' => '上游节点Id', 'type' => 'string', 'required' => false, 'example' => 'n_2001'], + 'SourceNodeOutputName' => ['title' => '上游节点的输出名称', 'description' => '上游节点的输出名称', 'type' => 'string', 'required' => true, 'example' => 't_input1'], + 'SourceTableName' => ['title' => '输入表名称', 'description' => '输入表名称', 'type' => 'string', 'required' => false, 'example' => 't_input1'], + 'PeriodDiff' => ['title' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'description' => '周期差:0表示同周期依赖,正数表示依赖前N个周期', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'FieldList' => [ + 'title' => '依赖的逻辑表字段', + 'description' => '依赖的逻辑表字段', + 'type' => 'array', + 'items' => ['title' => '依赖的逻辑表字段', 'description' => '依赖的逻辑表字段', 'type' => 'string', 'required' => false, 'example' => 'column1'], 'required' => false, - 'example' => '2323232', ], - 'FieldIdList' => [ - 'title' => '当节点时逻辑表节点id时可以传,不传默认是全表', - 'description' => '字段ID', - 'type' => 'array', - 'items' => [ - 'description' => '字段iD', - 'type' => 'string', - 'required' => false, - 'example' => '232322211', + 'DependPeriod' => [ + 'title' => '依赖周期', + 'description' => '依赖周期', + 'type' => 'object', + 'properties' => [ + 'PeriodType' => ['title' => '依赖周期类型 CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', 'description' => '依赖周期类型'."\n" + .'- CURRENT_PERIOD:本周期'."\n" + .'- LAST_PERIOD:上周期'."\n" + .'- LAST_N_PERIOD:最近N日'."\n" + .'- LAST_24_HOUR:最近24小时', 'type' => 'string', 'required' => true, 'example' => 'CURRENT_PERIOD'], + 'PeriodOffset' => ['title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', 'description' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], ], 'required' => false, ], + 'DependStrategy' => ['title' => '依赖策略: ALL,FIRST,LAST,NEAR', 'description' => '依赖策略'."\n" + .'- ALL:全部'."\n" + .'- FIRST:第一个'."\n" + .'- LAST:最后一个'."\n" + .'- NEAR:最近一个', 'type' => 'string', 'required' => false, 'example' => 'LAST'], + 'SourceNodeEnabled' => ['title' => '上游节点是否生效', 'description' => '上游节点是否生效', 'type' => 'boolean', 'required' => false], ], - 'required' => false, - 'example' => 'n_23243', + 'required' => true, ], 'required' => false, ], - 'ContainAllDownStream' => [ - 'title' => '海量模式:包含所有下游,默认为false ', - 'description' => '海量模式:包含所有下游,默认为false ', - 'type' => 'boolean', + 'DataSourceId' => ['title' => '数据库sql任务,数据源Id', 'description' => '数据库sql任务,数据源Id', 'type' => 'string', 'required' => false, 'example' => '12131111'], + 'DataSourceCatalog' => ['title' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'description' => '数据库sql任务,仅对如Presto等需要设置Catalog的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'mysql_catalog'], + 'DataSourceSchema' => ['title' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'description' => '数据库sql任务,仅对如Oracle等需要设置Schema的数据源类型生效', 'type' => 'string', 'required' => false, 'example' => 'erp'], + 'PythonModuleList' => [ + 'title' => '任务依赖python三方包', + 'description' => '任务依赖python三方包', + 'type' => 'array', + 'items' => ['title' => 'python三方包', 'description' => 'python三方包', 'type' => 'string', 'required' => true, 'example' => 'numpy'], 'required' => false, - 'example' => 'false', ], - 'FilterList' => [ - 'title' => '过滤器,和ContainAllDownStream搭配使用,可以根据项目,节点等进行正选和反选,默认为空', - 'description' => '过滤器列表:和ContainAllDownStream搭配使用,可以根据项目,节点等进行正选和反选,默认为空', - 'type' => 'array', - 'items' => [ - 'description' => '过滤器', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '筛选键,支持:'."\n" - .'- PROJECT: 项目'."\n" - .'- NODE_OUTPUT_NAME: 节点输出名'."\n" - .'- NODE_NAME: 节点名称'."\n" - .'- NODE_ID: 节点ID'."\n" - .'- TARGETS: 指定终点'."\n" - .'- SOURCES:指定起点', - 'type' => 'string', - 'required' => false, - 'example' => 'NODE_OUTPUT_NAME', - ], - 'ValueList' => [ - 'description' => '过滤值列表', - 'type' => 'array', - 'items' => [ - 'description' => '过滤值', - 'type' => 'string', - 'required' => false, - 'example' => 'xxtest', - ], - 'required' => false, - ], - 'Exclude' => [ - 'description' => '是否反选,默认:false', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'Parallelism' => [ - 'title' => '并发数,默认为1', - 'description' => '并发数,默认为1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'MinDueTime' => [ - 'title' => '最早调起时间(HH:MM),小时任务专用', - 'description' => '最早调起时间(HH:MM),小时任务专用', - 'type' => 'string', - 'required' => false, - 'example' => '00:00', - ], - 'MaxDueTime' => [ - 'title' => '最晚调起时间(HH:MM),小时任务专用', - 'description' => '最晚调起时间(HH:MM),小时任务专用', - 'type' => 'string', - 'required' => false, - 'example' => '20:59', - ], - 'GlobalParamList' => [ - 'title' => '运行时全局参数', - 'description' => '运行时全局参数', - 'type' => 'array', - 'items' => [ - 'description' => '参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '参数', - 'type' => 'string', - 'required' => false, - 'example' => 'param1', - ], - 'Value' => [ - 'description' => '参数值', - 'type' => 'string', - 'required' => false, - 'example' => 'value1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'NodeParamsList' => [ - 'title' => '运行时自定义参数, 按照节点进行配置', - 'description' => '运行时自定义参数, 按照节点进行配置', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'description' => '节点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'n_23324', - ], - 'ParamList' => [ - 'description' => '参数列表', - 'type' => 'array', - 'items' => [ - 'description' => '参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '参数', - 'type' => 'string', - 'required' => false, - 'example' => 'param1', - ], - 'Value' => [ - 'description' => '参数值', - 'type' => 'string', - 'required' => false, - 'example' => 'value1', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => false, + 'SparkClientInfo' => [ + 'title' => 'spark客户端', + 'description' => 'spark客户端', + 'type' => 'object', + 'properties' => [ + 'SparkClientVersion' => ['title' => 'spark客户端版本名称', 'description' => 'spark客户端版本名称', 'type' => 'string', 'required' => true, 'example' => 'abc'], ], 'required' => false, ], @@ -58523,22 +34159,6 @@ 'required' => true, ], ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'PROD', - ], - ], ], 'responses' => [ 200 => [ @@ -58547,43 +34167,18 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true/false', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'SubmitId' => [ - 'title' => '如果是普通模式,返回的是flowId; 如果是海量模式,返回提交的jobId,可以根据GetOperationSubmitStatus 查询提交的状态,提交成功后会返回flowId', - 'description' => '- 普通模式:返回的是FlowId'."\n" - .'- 海量模式,返回提交的JobId,可以根据GetOperationSubmitStatus查询任务提交的状态,提交成功后会返回FlowId', - 'type' => 'string', - 'example' => 'f_2264518792396800000_20210223_2329354897145659392', + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'UpdateResult' => [ + 'title' => '编辑结果', + 'description' => '编辑结果', + 'type' => 'object', + 'properties' => [ + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'example' => '12113111'], + ], ], ], ], @@ -58591,38 +34186,42 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"UpdateResult\\": {\\n \\"FileId\\": 12113111\\n }\\n}","type":"json"}]', + 'title' => '更新离线计算任务', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"SubmitId\\": \\"f_2264518792396800000_20210223_2329354897145659392\\"\\n}","type":"json"}]', - 'title' => '通用补数据接口', - ], - 'PausePhysicalNode' => [ - 'summary' => '暂停物理节点调度,会暂停任务的调度,下游任务将无法调起,暂时仅支持离线代码任务及集成任务。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateBatchTaskUdfLineages' => [ + 'summary' => '编辑离线计算任务自定义血缘。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -58630,50 +34229,83 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'PauseCommand', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '暂停调度请求', - 'description' => '暂停调度请求', + 'title' => '编辑指令', + 'description' => '编辑指令', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '13222210', - ], - 'NodeIdList' => [ - 'title' => '节点ID列表', - 'description' => '节点ID列表', + 'ProjectId' => ['title' => '任务所属项目', 'description' => '任务所属项目', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '131211211'], + 'FileId' => ['title' => '任务目录树节点Id', 'description' => '任务目录树节点Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12113111'], + 'LineageGroupList' => [ + 'title' => '血缘组列表', + 'description' => '血缘组列表', 'type' => 'array', 'items' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', + 'title' => '血缘组', + 'description' => '血缘组', + 'type' => 'object', + 'properties' => [ + 'InputLineageList' => [ + 'title' => '血缘输入表集合', + 'description' => '血缘输入表集合', + 'type' => 'array', + 'items' => [ + 'title' => '血缘表', + 'description' => '血缘表', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'required' => true, 'example' => 't_input'], + 'Env' => ['title' => '环境 prod/dev/auto', 'description' => '环境 prod/dev/auto', 'type' => 'string', 'required' => true, 'example' => 'dev'], + 'FullTable' => ['title' => '是否选择全表', 'description' => '是否选择全表', 'type' => 'boolean', 'required' => true], + 'ColumnList' => [ + 'title' => '血缘字段列表', + 'description' => '血缘字段列表', + 'type' => 'array', + 'items' => ['title' => '血缘相关字段集合: 跟FullTable二选一,默认全表', 'description' => '血缘相关字段集合: 跟FullTable二选一,默认全表', 'type' => 'string', 'required' => true, 'example' => 'column1'], + 'required' => true, + ], + ], + 'required' => true, + ], + 'required' => true, + ], + 'OutputLineageList' => [ + 'title' => '血缘输出表集合', + 'description' => '血缘输出表集合', + 'type' => 'array', + 'items' => [ + 'title' => '血缘表', + 'description' => '血缘表', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '表名', 'description' => '表名', 'type' => 'string', 'required' => true, 'example' => 't_output'], + 'Env' => ['title' => '环境 prod/dev/auto', 'description' => '环境 prod/dev/auto', 'type' => 'string', 'required' => true, 'example' => 'dev'], + 'FullTable' => ['title' => '是否选择全表', 'description' => '是否选择全表', 'type' => 'boolean', 'required' => true], + 'ColumnList' => [ + 'title' => '血缘字段列表', + 'description' => '血缘字段列表', + 'type' => 'array', + 'items' => ['title' => '血缘相关字段集合: 跟FullTable二选一,默认全表', 'description' => '血缘相关字段集合: 跟FullTable二选一,默认全表', 'type' => 'string', 'required' => true, 'example' => 'column1'], + 'required' => true, + ], + ], + 'required' => true, + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => 'n_2311121', ], 'required' => true, ], @@ -58681,21 +34313,6 @@ 'required' => true, ], ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], ], 'responses' => [ 200 => [ @@ -58704,344 +34321,135 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeOperateResultList' => [ - 'title' => '节点暂停调度操作结果', - 'description' => '节点暂停调度操作结果', - 'type' => 'array', - 'items' => [ - 'title' => '节点暂停调度操作结果', - 'description' => '节点暂停调度操作结果', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'Status' => [ - 'title' => '操作结果', - 'description' => '操作结果', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'ErrorMessage' => [ - 'title' => '操作失败时,异常信息提示', - 'description' => '操作失败时,异常信息提示', - 'type' => 'string', - 'example' => 'xx ', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '更新离线计算任务自定义血缘', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:23:42.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeOperateResultList\\": [\\n {\\n \\"NodeId\\": \\"n_123456\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx \\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '暂停物理节点调度', - ], - 'GetOperationSubmitStatus' => [ - 'summary' => '查询补数据提交的状态。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBatchTaskUdfLineages', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateBizEntity' => [ + 'summary' => '更新业务实体。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'JobId', - 'in' => 'query', - 'schema' => [ - 'title' => '海量模式下提交后返回的jobId', - 'description' => '海量模式下提交后返回的jobId', - 'type' => 'string', - 'required' => true, - 'example' => '1324444131', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => '变更请求', + 'description' => '变更请求', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'OperationSubmitJob' => [ - 'title' => '操作提交的状态', - 'description' => '操作提交的状态', + 'Id' => ['title' => '业务实体Id', 'description' => '业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '101001201'], + 'Type' => ['title' => '业务类型: BIZ_OBJECT、BIZ_PROCESS', 'description' => '业务实体类型,参考”创建业务实体“接口', 'type' => 'string', 'required' => true, 'example' => 'BIZ_OBJECT'], + 'DataDomainId' => ['title' => '业务活动所属主题域Id', 'description' => '业务活动所属主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '20101011'], + 'BizUnitId' => ['title' => '业务活动所属业务板块Id', 'description' => '业务活动所属业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '6798087749072704'], + 'BizObject' => [ + 'title' => '业务对象', + 'description' => '业务对象', 'type' => 'object', 'properties' => [ - 'JobId' => [ - 'title' => '补数据的提交id', - 'description' => '补数据的提交id', - 'type' => 'string', - 'example' => '123456', - ], - 'Progress' => [ - 'title' => '进度 ', - 'description' => '进度 ', - 'type' => 'string', - 'example' => '80', - ], - 'Operation' => [ - 'title' => '操作类型'."\n" - .'SUPPLY_DATA:补数据'."\n" - .'UPDATE_OWNER:修改责任人'."\n" - .'UPDATE_PRIORITY:修改优先级'."\n" - .'UPDATE_TASK_GROUP:修改任务组'."\n" - .'UPDATE_RESOURCE_GROUP:修改资源组'."\n" - .'PAUSE:暂停'."\n" - .'RESUME:恢复'."\n" - .'TRIGGER_EXECUTE:触发执行', - 'description' => '操作类型'."\n" - .'- SUPPLY_DATA:补数据', - 'type' => 'string', - 'example' => 'SUPPLY_DATA', + 'Name' => ['title' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'description' => '业务对象编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'type' => 'string', 'required' => true, 'example' => 'create_object_code_name'], + 'DisplayName' => ['title' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'description' => '业务对象名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'type' => 'string', 'required' => true, 'example' => 'create_object_name'], + 'Description' => ['title' => '业务对象描述信息,128字符以内', 'description' => '业务对象描述信息,128字符以内', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务对象负责人用户Id', 'description' => '业务对象负责人用户Id', 'type' => 'string', 'required' => true, 'example' => '30010010'], + 'ParentId' => ['title' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'description' => '业务对象继承实体信息,仅支持普通业务对象配置继承实体,且只能继承已上线的业务对象', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '116306'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'description' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '116106'], + 'required' => false, ], - 'OperationStatus' => [ - 'title' => '状态', - 'description' => '状态', - 'type' => 'string', - 'example' => 'SUCCESS', + ], + 'required' => false, + ], + 'BizProcess' => [ + 'title' => '业务活动', + 'description' => '业务活动', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'description' => '业务活动编码名称,64位字符以内,仅允许字母,数字和下划线;ADB_PG引擎编码名称长度为40位', 'type' => 'string', 'required' => true, 'example' => 'create_process_code_name'], + 'DisplayName' => ['title' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'description' => '业务活动名称,64位字符以内,仅允许汉字,字母,数字,下划线和中划线', 'type' => 'string', 'required' => true, 'example' => 'create_process_name'], + 'Description' => ['title' => '业务活动描述信息,128字符以内', 'description' => '业务活动描述信息,128字符以内', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'OwnerUserId' => ['title' => '业务活动负责人用户Id', 'description' => '业务活动负责人用户Id', 'type' => 'string', 'required' => true, 'example' => '30010010'], + 'RefBizEntityIdList' => [ + 'title' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'description' => '关联已上线业务实体Id列表, 若不填写: 原有的值会被清空', + 'type' => 'array', + 'items' => ['title' => '关联已上线业务实体Id', 'description' => '关联已上线业务实体Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '116106'], + 'required' => false, ], - 'ExternalBizId' => [ - 'title' => '业务id,如果是补数据操作则为补数据工作流', - 'description' => '业务id,如果是补数据操作则为补数据工作流', - 'type' => 'string', - 'example' => 'f_122_232342', + 'BizEventEntityIdList' => [ + 'title' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'description' => '当前为业务流程活动时有效:业务流程活动包含的业务事件活动Id列表', + 'type' => 'array', + 'items' => ['title' => '业务流程活动包含的业务事件活动', 'description' => '业务流程活动包含的业务事件活动', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1016106'], + 'required' => false, ], - 'Operator' => [ - 'title' => '提交人用户ID', - 'description' => '提交人用户ID', - 'type' => 'string', - 'example' => '132344', + 'PreBizProcessIdList' => [ + 'title' => '业务流程活动的前序业务流程活动', + 'description' => '业务流程活动的前序业务流程活动', + 'type' => 'array', + 'items' => ['title' => '业务流程活动的前序业务流程活动', 'description' => '业务流程活动的前序业务流程活动', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1016106'], + 'required' => false, ], ], + 'required' => false, ], ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OperationSubmitJob\\": {\\n \\"JobId\\": \\"123456\\",\\n \\"Progress\\": \\"80\\",\\n \\"Operation\\": \\"SUPPLY_DATA\\",\\n \\"OperationStatus\\": \\"SUCCESS\\",\\n \\"ExternalBizId\\": \\"f_122_232342\\",\\n \\"Operator\\": \\"132344\\"\\n }\\n}","type":"json"}]', - 'title' => '获取补数据工作流提交状态', - ], - 'GetPhysicalInstanceLog' => [ - 'summary' => '获取实例执行的日志,如果实例重跑了多次,则会有多条日志。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'InstanceId', - 'in' => 'query', - 'schema' => [ - 'title' => '实例ID', - 'description' => '实例ID', - 'type' => 'string', 'required' => true, - 'example' => 't_5929472_20210411_9577721', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123131', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', ], ], ], @@ -59052,281 +34460,209 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'TaskrunLogList' => [ - 'title' => '实例所有的执行日志. 包含实例多次重跑的日志', - 'description' => '实例所有的执行日志. 包含实例多次重跑的日志', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'TaskrunId' => [ - 'title' => '每一次运行的任务ID', - 'description' => '每一次运行的任务ID', - 'type' => 'string', - 'example' => 'tr_23231', - ], - 'StartTime' => [ - 'title' => '任务开始运行时间', - 'description' => '任务开始运行时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'EndTime' => [ - 'title' => '任务结束运行时间', - 'description' => '任务结束运行时间', - 'type' => 'string', - 'example' => '2024-05-30 16:48:13', - ], - 'LogContent' => [ - 'title' => '运行日志,如果未运行则为空', - 'description' => '运行日志,如果未运行则为空', - 'type' => 'string', - 'example' => 'xx', - ], - 'Status' => [ - 'title' => 'INIT、WAITING、RUNNING、SUCCESS、FAILED', - 'description' => '运行状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'Duration' => [ - 'title' => '任务执行耗时,单位:秒', - 'description' => '任务执行耗时,单位:秒', - 'type' => 'string', - 'example' => '60s', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '更新业务实体', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"TaskrunLogList\\": [\\n {\\n \\"TaskrunId\\": \\"tr_23231\\",\\n \\"StartTime\\": \\"2024-05-30 16:47:13\\",\\n \\"EndTime\\": \\"2024-05-30 16:48:13\\",\\n \\"LogContent\\": \\"xx\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"Duration\\": \\"60s\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取实例执行日志', - ], - 'GetSupplementDagrun' => [ - 'summary' => '获取补数据工作流所有业务日期的Dagrun信息。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateBizMetric' => [ + 'summary' => '更新业务指标。'."\n" + .'发布版本号:v5.5.0。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'SupplementId', - 'in' => 'query', - 'schema' => [ - 'title' => '补数据工作流ID', - 'description' => '补数据ID', - 'type' => 'string', - 'required' => true, - 'example' => 'f_8241792_20201202_2099680', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], - ], - 'responses' => [ - 200 => [ + 'name' => 'UpdateBizMetricCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => '更新请求', + 'description' => '更新请求', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', + 'Name' => ['title' => '请输入需要更新的业务指标的名称', 'description' => '请输入需要更新的业务指标的名称', 'type' => 'string', 'required' => true, 'example' => 'Metric1', 'maxLength' => 256], + 'NewName' => ['title' => '更新后的名称,当您需要修改指标名称时输入', 'description' => '更新后的名称,当您需要修改指标名称时输入', 'type' => 'string', 'required' => false, 'example' => 'Metric1_new', 'maxLength' => 256], + 'DisplayName' => ['title' => '展示名称', 'description' => '展示名称', 'type' => 'string', 'required' => false, 'example' => 'Metric1_DisplayName', 'maxLength' => 256], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'Metric Desc', 'maxLength' => 1000], + 'Labels' => [ + 'title' => '资产标签', + 'description' => '资产标签', + 'type' => 'array', + 'items' => ['title' => '标签值', 'description' => '标签值', 'type' => 'string', 'required' => false, 'example' => 'Label'], + 'required' => false, ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', + 'CatalogIds' => [ + 'title' => '归属目录ID列表', + 'description' => '归属目录ID列表', + 'type' => 'array', + 'items' => ['title' => '归属目录ID', 'description' => '归属目录ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123456789'], + 'required' => false, ], - 'DagrunList' => [ - 'title' => 'Dagrun列表', - 'description' => 'Dagrun列表', + 'BizOwnerName' => ['title' => '业务负责人,请填写负责人账号的用户名', 'description' => '业务负责人,请填写负责人账号的用户名', 'type' => 'string', 'required' => false, 'example' => 'SuperAdmin'], + 'MetricDefinition' => ['title' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', 'description' => '指标口径,如需引用其他业务指标,请使用半角中括号[ ]包裹指标名称', 'type' => 'string', 'required' => false, 'example' => '[Metric2]+[Metric3]', 'maxLength' => 2000], + 'RelatedBizMetrics' => [ + 'title' => '相关业务指标列表', + 'description' => '相关业务指标列表', 'type' => 'array', 'items' => [ - 'title' => 'Dagrun详情', - 'description' => 'Dagrun详情', + 'title' => '相关业务指标', + 'description' => '相关业务指标', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => 'Dagrun ID', - 'description' => 'Dagrun ID', - 'type' => 'string', - 'example' => 'dr_2242792_14542', - ], - 'BizDate' => [ - 'title' => '业务日期,时间格式须符合业务板块指定的分区格式', - 'description' => '业务日期,时间格式须符合业务板块指定的分区格式', - 'type' => 'string', - 'example' => '2024-04-01', - ], - 'Status' => [ - 'title' => '补数工作流状态:'."\n" - .'INIT:dagrun初始化'."\n" - .'CREATE_FAILED:dagrun创建失败'."\n" - .'CREATED:dagrun创建成功'."\n" - .'READY:dagrun准备好可以执行'."\n" - .'RUNNING:dagrun运行中'."\n" - .'KILLED:dagrun运行中止'."\n" - .'FAILED:dagrun运行失败'."\n" - .'SUCCESS:dagrun运行成功', - 'description' => '补数工作流状态:'."\n" - ."\n" - .'- INIT:dagrun初始化'."\n" - .'- CREATE_FAILED:dagrun创建失败'."\n" - .'- CREATED:dagrun创建成功'."\n" - .'- READY:dagrun准备好可以执行'."\n" - .'- RUNNING:dagrun运行中'."\n" - .'- KILLED:dagrun运行中止'."\n" - .'- FAILED:dagrun运行失败'."\n" - .'- SUCCESS:dagrun运行成功', - 'type' => 'string', - 'example' => 'RUNNING', - ], - 'StartExecuteTime' => [ - 'title' => '执行起始时间戳', - 'description' => '执行起始时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717081729000', - ], - 'EndExecuteTime' => [ - 'title' => '执行终止时间戳', - 'description' => '执行终止时间戳', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717081789000', - ], - 'SupplementId' => [ - 'title' => '补数工作流Id', - 'description' => '补数工作流Id', + 'Name' => ['title' => '业务指标名称', 'description' => '业务指标名称', 'type' => 'string', 'required' => false, 'example' => 'Metric2'], + 'RelationType' => [ + 'title' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', + 'description' => '关联关系:POSITIVE正相关;NEGATIVE负相关;OTHER其他', 'type' => 'string', - 'example' => 'f_8241792_20201202_2099680', + 'required' => false, + 'example' => 'POSITIVE', + 'enum' => ['POSITIVE', 'NEGATIVE', 'OTHER'], ], - 'Duration' => [ - 'title' => '部署工作流运行时长', - 'description' => '运行时长,单位:秒', - 'type' => 'string', - 'example' => '60s', + ], + 'required' => false, + ], + 'required' => false, + ], + 'AssociatedTechMetricFullNames' => [ + 'title' => '关联的技术指标列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', + 'description' => '关联的技术指标列表。请填写技术指标的“所属表全名.指标名称”,其中“所属表全名”等于“资产来源.所属表名”。一个技术指标只能被一个业务指标关联,无法重复关联', + 'type' => 'array', + 'items' => ['title' => '技术指标全名', 'description' => '技术指标全名', 'type' => 'string', 'required' => false, 'example' => 'LD_BizUnit.test_table.tech_index'], + 'required' => false, + ], + 'MetricRelationDiagramSwitchOpen' => ['title' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', 'description' => '指标关系图开关:true开启;false关闭。当且仅当至少有一个“相关业务指标”时可开启,否则会自动关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'False'], + 'MetricRelationDiagramExpression' => ['title' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', 'description' => '仅当“指标关系图”开启时会读取此信息。仅支持填写从“相关业务指标”中选取的指标名称组成的一个计算表达式,运算符号仅支持+、-、*、/、()、%、∑,各指标名称需用半角中括号[ ]包裹。如果两个指标之间未填写运算符,系统将自动填充占位符。如果未配置指标关系表达式,则“指标关系图”开关将自动关闭', 'type' => 'string', 'required' => false, 'example' => '[Metric1]+[Metric2]'], + 'OperateInstructionEnabled' => ['title' => '使用说明是否开启:true开启;false关闭', 'description' => '使用说明是否开启:true开启;false关闭', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'False'], + 'OperateInstructionContent' => ['title' => '使用说明内容,仅支持文本格式', 'description' => '使用说明内容,仅支持文本格式', 'type' => 'string', 'required' => false, 'example' => 'content test'], + 'ViewScope' => [ + 'title' => '可见范围', + 'description' => '可见范围', + 'type' => 'object', + 'properties' => [ + 'ScopeType' => [ + 'title' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'description' => '可见范围类型:ALL_USERS_CAN_VIEW全部用户可见;PART_USERS_CAN_VIEW部分用户可见;PART_USERS_CAN_NOT_VIEW部分用户不可见', + 'type' => 'string', + 'required' => false, + 'example' => 'ALL_USERS_CAN_VIEW', + 'enum' => ['ALL_USERS_CAN_VIEW', 'PART_USERS_CAN_VIEW', 'PART_USERS_CAN_NOT_VIEW'], + ], + 'UserNames' => [ + 'title' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'description' => '请填写个人账号的用户名,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时有效', + 'type' => 'array', + 'items' => ['title' => '用户名称', 'description' => '用户名称', 'type' => 'string', 'required' => false, 'example' => 'SuperAdmin'], + 'required' => false, + 'maxItems' => 500, + ], + 'UserGroupNames' => [ + 'title' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', + 'description' => '请填写用户组名称,当且仅当资产“可见范围”为“部分用户可见”或“部分用户不可见”时会读取此信息', + 'type' => 'array', + 'items' => ['title' => '用户组名称', 'description' => '用户组名称', 'type' => 'string', 'required' => false, 'example' => '运营用户组'], + 'required' => false, + 'maxItems' => 500, + ], + ], + 'required' => false, + ], + 'CustomAttribute' => [ + 'title' => '自定义属性列表,请分别填写属性编码及属性值', + 'description' => '自定义属性列表,请分别填写属性编码及属性值', + 'type' => 'array', + 'items' => [ + 'title' => '自定义属性', + 'description' => '自定义属性', + 'type' => 'object', + 'properties' => [ + 'Code' => ['title' => '自定义属性编码', 'description' => '自定义属性编码', 'type' => 'string', 'required' => false, 'example' => 'CustomAttributeCode'], + 'Values' => [ + 'title' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', + 'description' => '属性值列表:1、自定义输入和下拉单选属性仅读取列表第一个属性值;2、下拉多选属性,读取列表全部属性值;3、超链接属性,读取列表第一个属性值作为展示文本,第二个属性值作为跳转链接。', + 'type' => 'array', + 'items' => ['title' => '自定义属性值', 'description' => '自定义属性值', 'type' => 'string', 'required' => false, 'example' => 'CustomAttributeValue'], + 'required' => false, ], ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => true, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => [ + 'title' => '操作结果', + 'description' => '操作结果', + 'type' => 'object', + 'properties' => [ + 'Success' => ['title' => '是否更新成功:true成功;false失败', 'description' => '是否更新成功:true成功;false失败', 'type' => 'boolean', 'example' => 'true'], + 'Message' => ['title' => '异常信息', 'description' => '异常信息', 'type' => 'string', 'example' => 'npe'], ], ], ], @@ -59335,420 +34671,249 @@ ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"Success\\": true,\\n \\"Message\\": \\"npe\\"\\n }\\n}","type":"json"}]', + 'title' => '编辑业务指标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DagrunList\\": [\\n {\\n \\"Id\\": \\"dr_2242792_14542\\",\\n \\"BizDate\\": \\"2024-04-01\\",\\n \\"Status\\": \\"RUNNING\\",\\n \\"StartExecuteTime\\": 1717081729000,\\n \\"EndExecuteTime\\": 1717081789000,\\n \\"SupplementId\\": \\"f_8241792_20201202_2099680\\",\\n \\"Duration\\": \\"60s\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取补数据工作流Dagrun列表', + 'ramActions' => [], ], - 'GetPhysicalNode' => [ - 'summary' => '查询物理调度节点。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateBizUnit' => [ + 'summary' => '更新数据板块。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '创建请求', + 'description' => '创建请求', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '数据板块ID', 'description' => '数据板块ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '545844456'], + 'Name' => ['title' => '数据板块编码', 'description' => '数据板块编码', 'type' => 'string', 'required' => true, 'example' => 'bz_code_name'], + 'DisplayName' => ['title' => '数据板块展示名', 'description' => '数据板块展示名', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Icon' => ['title' => '预制icon'."\n" + .' 电商:icon-e-commerce, 金融:icon-finance, 云计算:con-cloud-computing, 广告营销:icon-advertisement, 物流:icon-logistics, 文娱:icon-entertainment, 出行:icon-traffic, 健康:icon-health, 社交&通信:icon-social-contact, 餐饮:con-dining, 教育:icon-education, 环境:icon-environment 等', 'description' => '预制icon,具体可参考”创建数据板块“接口', 'type' => 'string', 'required' => true, 'example' => 'icon-environment'], + 'BizUnitAccountList' => [ + 'title' => '板块架构师', + 'description' => '板块架构师', + 'type' => 'array', + 'items' => [ + 'title' => '板块架构师', + 'description' => '板块架构师', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '20001201'], + ], + 'required' => true, + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => '30001011', ], ], - [ - 'name' => 'NodeId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'required' => true, - 'example' => 'n_232132', + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '更新数据板块', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ [ - 'name' => 'Env', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + ], + 'UpdateComputeSource' => [ + 'summary' => '编辑计算源:业务板块管理员、项目管理员 有权限操作。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + 'title' => '编辑指令', + 'description' => '编辑指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '计算源Id', 'description' => '计算源Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '102311'], + 'Name' => ['title' => '计算源名称', 'description' => '计算源名称', 'type' => 'string', 'required' => true, 'example' => 'test1021'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'required' => true, 'example' => 'MacCompute'], + 'ConfigList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', + 'title' => 'Schema of Response', 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeInfo' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_232132', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => '节点名称', - ], - 'Description' => [ - 'title' => '节点描述', - 'description' => '节点描述', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'OperatorType' => [ - 'title' => '节点子类型', - 'description' => '节点子类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL等', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'ScheduleType' => [ - 'title' => '调度周期类型'."\n" - .'MINUTELY'."\n" - .'HOURLY'."\n" - .'DAILY'."\n" - .'WEEKLY'."\n" - .'MONTHLY'."\n" - .'QUARTERLY', - 'description' => '调度周期类型'."\n" - .'- MINUTELY'."\n" - .'- HOURLY'."\n" - .'- DAILY'."\n" - .'- WEEKLY'."\n" - .'- MONTHLY'."\n" - .'- QUARTERLY', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'Priority' => [ - 'title' => '调度优先级'."\n" - .'HIGHEST'."\n" - .'HIGH'."\n" - .'MIDDLE'."\n" - .'LOW'."\n" - .'LOWEST', - 'description' => '调度优先级'."\n" - ."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - 'ProjectInfo' => [ - 'title' => '节点归属项目', - 'description' => '节点归属项目', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'string', - 'example' => '102132', - ], - 'Name' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Creator' => [ - 'title' => '节点创建者', - 'description' => '节点创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '101312', - ], - 'Name' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Owner' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '101312', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Modifier' => [ - 'title' => '更新人', - 'description' => '更新人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '101312', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'LastModifiedTime' => [ - 'title' => '最新1次更新时间', - 'description' => '最新1次更新时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'Status' => [ - 'title' => '调度状态', - 'description' => '调度状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'TriggerConfig' => [ - 'title' => '触发配置, 用于实现对逻辑表的字段依赖', - 'description' => '触发配置, 用于实现对逻辑表的字段依赖', - 'type' => 'string', - 'example' => '{"expression":"any_success"}', - ], - 'From' => [ - 'title' => '节点来源', - 'description' => '节点来源'."\n" - .'- DATA_PROCESS:代码研发'."\n" - .'- BLACK_BOX:建模研发'."\n" - .'- PIPELINE:PIPELINE', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'CronExpression' => [ - 'title' => 'cron表达式,用于计算调起时间', - 'description' => 'cron表达式,用于计算调起时间', - 'type' => 'string', - 'example' => '0 0 10 * * *', - ], - 'OutputNameList' => [ - 'title' => '输出名列表', - 'description' => '输出名列表', - 'type' => 'array', - 'items' => [ - 'description' => '输出名', - 'type' => 'string', - 'example' => 'xxtest', - ], - ], - 'DataSourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123456789', - ], - 'DataSourceSchema' => [ - 'title' => '数据源SCHEMA', - 'description' => '数据源SCHEMA,仅对如Oracle等需要设置Schema的数据源类型生效。若设置为“默认”,则为空(null)', - 'type' => 'string', - 'example' => 'null', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '编辑计算源', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_232132\\",\\n \\"Name\\": \\"节点名称\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"OperatorType\\": \\"SHELL\\",\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"Priority\\": \\"MIDDLE\\",\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"102132\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Owner\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"101312\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"CreateTime\\": 1717343597000,\\n \\"LastModifiedTime\\": 1717343597000,\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TriggerConfig\\": \\"{\\\\\\"expression\\\\\\":\\\\\\"any_success\\\\\\"}\\",\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"CronExpression\\": \\"0 0 10 * * *\\",\\n \\"OutputNameList\\": [\\n \\"xxtest\\"\\n ],\\n \\"DataSourceId\\": 123456789,\\n \\"DataSourceSchema\\": \\"null\\"\\n }\\n}","type":"json"}]', - 'title' => '查询物理调度节点', + 'ramActions' => [], ], - 'GetPhysicalNodeContent' => [ - 'summary' => '查询调度节点代码内容。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateDataDomain' => [ + 'summary' => '更新主题域。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'NodeId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', + 'title' => '创建请求', + 'description' => '创建请求', + 'type' => 'object', + 'properties' => [ + 'BizUnitId' => ['title' => '数据板块ID', 'description' => '数据板块ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '545844456'], + 'DataDomainId' => ['title' => '主题域ID', 'description' => '主题域ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1241844456'], + 'Name' => ['title' => '主题域编码', 'description' => '主题域编码', 'type' => 'string', 'required' => true, 'example' => 'dm_code_name'], + 'DisplayName' => ['title' => '主题域展示名', 'description' => '主题域展示名', 'type' => 'string', 'required' => true, 'example' => '主题域测试'], + 'Abbreviation' => ['title' => '主题域缩写', 'description' => '主题域缩写', 'type' => 'string', 'required' => true, 'example' => 'dm_code_name'], + 'Description' => ['title' => '主题域描述', 'description' => '主题域描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ParentId' => ['title' => '上级主题域Id', 'description' => '上级主题域Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10232311'], + ], 'required' => true, - 'example' => 'n_232411', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', ], ], ], @@ -59759,613 +34924,311 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'Data' => [ - 'title' => '节点信息', - 'description' => '节点信息', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_232411', - ], - 'NodeName' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'CodeContent' => [ - 'title' => '节点代码内容', - 'description' => '节点代码内容', - 'type' => 'string', - 'example' => 'select 1;', - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '更新主题域', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": {\\n \\"NodeId\\": \\"n_232411\\",\\n \\"NodeName\\": \\"xx测试\\",\\n \\"CodeContent\\": \\"select 1;\\"\\n }\\n}","type":"json"}]', - 'title' => '查询调度节点代码内容', - ], - 'GetNodeUpDownStream' => [ - 'summary' => '通用查询节点上下游接口。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateDataServiceApp' => [ + 'summary' => '更新数据服务应用,仅支持超级管理员、系统管理员和应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'NodeId', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '节点id', - 'description' => '节点id', + 'title' => '更新数据服务应用', + 'description' => '更新数据服务应用', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '节点id', - 'description' => '节点id', - 'type' => 'string', - 'required' => true, - 'example' => '11313', - ], - 'FieldIdList' => [ - 'title' => '当节点时逻辑表节点id时可以传,不传默认是全表', - 'description' => '当节点时逻辑表节点id时可以传,不传默认是全表', - 'type' => 'string', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '12345'], + 'AppGroupId' => ['title' => '应用分组ID', 'description' => '应用分组ID', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '200000000'], + 'Scenarios' => ['title' => '应用场景', 'description' => '应用场景', 'type' => 'string', 'required' => false, 'example' => '数据分析'], + 'OwnerIds' => [ + 'title' => '负责人ID列表', + 'description' => '负责人ID列表', + 'type' => 'array', + 'items' => ['title' => '负责人ID', 'description' => '负责人ID', 'type' => 'string', 'required' => false, 'example' => '12345'], 'required' => false, - 'example' => '12', ], + 'AppName' => ['title' => '应用名称', 'description' => '应用名称', 'type' => 'string', 'required' => false, 'example' => '默认应用'], ], 'required' => true, ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '113123', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '更新数据服务应用', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateDataServiceAppGroup' => [ + 'summary' => '更新数据服务应用分组,仅超级管理员及系统管理员可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ [ - 'name' => 'UpStreamDepth', - 'in' => 'query', - 'schema' => [ - 'title' => '上游层级,默认:1', - 'description' => '上游层级,默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'AK' => [], ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'DownStreamDepth', + 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '下游层级,默认:1', - 'description' => '下游层级,默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Env', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'DEV', + 'title' => '更新数据服务应用分组', + 'description' => '更新数据服务应用分组', + 'type' => 'object', + 'properties' => [ + 'GroupName' => ['title' => '分组名称', 'description' => '分组名称', 'type' => 'string', 'required' => true, 'example' => '默认应用分组', 'maxLength' => 64], + 'GroupId' => ['title' => '分组ID', 'description' => '分组ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '12345'], + ], + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeDagInfo' => [ - 'title' => '节点上下游数据', - 'description' => '节点上下游数据', - 'type' => 'object', - 'properties' => [ - 'StartNodeList' => [ - 'title' => '中心节点 ', - 'description' => '中心节点 ', - 'type' => 'array', - 'items' => [ - 'title' => '节点', - 'description' => '节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型'."\n" - .'DATA_PROCESS:代码任务'."\n" - .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'ONE_ID_LABEL:萃取标签节点'."\n" - .'ONE_ID_RULE:萃取标签节点'."\n" - .'PIPELINE_NODE:PIPELINE节点', - 'description' => '节点类型'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldIdList' => [ - 'title' => '字段id列表', - 'description' => '字段id列表', - 'type' => 'array', - 'items' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => '123', - ], - ], - ], - ], - ], - 'UpStreamNodeList' => [ - 'title' => '上游节点', - 'description' => '上游节点', - 'type' => 'array', - 'items' => [ - 'title' => '节点', - 'description' => '节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型'."\n" - .'DATA_PROCESS:代码任务'."\n" - .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'ONE_ID_LABEL:萃取标签节点'."\n" - .'ONE_ID_RULE:萃取标签节点'."\n" - .'PIPELINE_NODE:PIPELINE节点', - 'description' => '节点类型'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldIdList' => [ - 'title' => '字段id列表', - 'description' => '字段id列表', - 'type' => 'array', - 'items' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => '123', - ], - ], - ], - ], - ], - 'DownStreamNodeList' => [ - 'title' => '下游节点', - 'description' => '下游节点', - 'type' => 'array', - 'items' => [ - 'title' => '节点', - 'description' => '节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型'."\n" - .'DATA_PROCESS:代码任务'."\n" - .'BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'ONE_ID_LABEL:萃取标签节点'."\n" - .'ONE_ID_RULE:萃取标签节点'."\n" - .'PIPELINE_NODE:PIPELINE节点', - 'description' => '节点类型'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:逻辑表节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldIdList' => [ - 'title' => '字段id列表', - 'description' => '字段id列表', - 'type' => 'array', - 'items' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'example' => '123', - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeDagInfo\\": {\\n \\"StartNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ],\\n \\"UpStreamNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ],\\n \\"DownStreamNodeList\\": [\\n {\\n \\"Id\\": \\"n_123456\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取节点上下游', - ], - 'ListNodes' => [ - 'summary' => '获取任务节点列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '更新数据服务应用分组', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateDataServiceAppMember' => [ + 'summary' => '更新数据服务应用的普通成员,仅应用负责人可操作。'."\n" + .'上线版本:v6.0.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询条件', - 'description' => '查询条件', + 'title' => '更新数据服务应用的普通成员', + 'description' => '更新数据服务应用的普通成员', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '12111', - ], - 'NodeBizType' => [ - 'title' => '节点业务类型(脚本、逻辑表、萃取):SCRIPT/LOGICAL_TABLE/ONE_ID', - 'description' => '节点业务类型'."\n" - .'- SCRIPT:脚本'."\n" - .'- LOGICAL_TABLE:逻辑表', - 'type' => 'string', - 'required' => true, - 'example' => 'SCRIPT', - ], - 'NodeSubBizTypeList' => [ - 'title' => '子业务类型(HIVE_SQL/HADOOP_MR/SHELL/DATAX/PYTHON等)'."\n", - 'description' => '子业务类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL等', + 'AppId' => ['title' => '应用ID', 'description' => '应用ID', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '200000000'], + 'MemberList' => [ + 'title' => '成员列表', + 'description' => '成员列表', 'type' => 'array', 'items' => [ - 'description' => '子业务类型', - 'type' => 'string', - 'required' => false, - 'example' => 'SHELL', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户ID', 'description' => '用户ID', 'type' => 'string', 'required' => true, 'example' => '12345'], + 'EffectiveEnd' => ['title' => '授权到期时间', 'description' => '授权到期时间', 'type' => 'string', 'required' => true, 'example' => '2026-12-12'], + ], + 'required' => true, + 'description' => '', ], 'required' => true, ], - 'SchedulePeriodList' => [ - 'title' => '调度周期(年、月、周、日、时、分):YEARLY/MONTHLY/WEEKLY/DAILY/HOURLY/MINUTELY', - 'description' => '调度周期'."\n" - .'- YEARLY'."\n" - .'- MONTHLY'."\n" - .'- WEEKLY'."\n" - .'- DAILY'."\n" - .'- HOURLY'."\n" - .'- MINUTELY', - 'type' => 'array', - 'items' => [ - 'description' => '调度周期', - 'type' => 'string', - 'required' => false, - 'example' => 'DAILY', - ], - 'required' => false, - ], - 'OwnerList' => [ - 'title' => '负责人用户ID', - 'description' => '负责人用户ID', - 'type' => 'array', - 'items' => [ - 'description' => '负责人', - 'type' => 'string', - 'required' => false, - 'example' => '121112', - ], - 'required' => false, - ], - 'PriorityList' => [ - 'title' => '节点优先级(最高,高,中,低,最低):HIGHEST/HIGH/MIDDLE/LOW/LOWEST', - 'description' => '节点优先级'."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'array', - 'items' => [ - 'description' => '优先级', - 'type' => 'string', - 'required' => false, - 'example' => 'MIDDLE', - ], - 'required' => false, - ], - 'SchedulePaused' => [ - 'title' => '是否暂停', - 'description' => '是否暂停调度', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'DryRun' => [ - 'title' => '是否空跑', - 'description' => '是否空跑', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'ScheduleType' => [ - 'title' => '节点调度类型(如周期、补数据、手工):NORMAL/SUPPLEMENT/MANUAL', - 'description' => '节点调度类型'."\n" - .'- NORMAL:周期'."\n" - .'- SUPPLEMENT:补数据'."\n" - .'- MANUAL:手工', - 'type' => 'string', - 'required' => false, - 'example' => 'NORMAL', - ], - 'SearchText' => [ - 'title' => '关键词搜索:支持节点名称模糊搜索,节点id精确搜索', - 'description' => '关键词搜索:支持节点名称模糊搜索,节点id精确搜索', - 'type' => 'string', - 'required' => false, - 'example' => 'xx', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数', - 'description' => '分页记录数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], ], 'required' => true, ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '更新数据服务应用的普通成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateDataSourceBasicInfo' => [ + 'summary' => '编辑数据源基础信息:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], + 'parameters' => [ [ - 'name' => 'Env', + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + 'title' => '数据源基础信息编辑', + 'description' => '数据源基础信息编辑', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '23231'], + 'Name' => ['title' => '数据源名', 'description' => '数据源名', 'type' => 'string', 'required' => true, 'example' => 'xx测试'], + 'Description' => ['title' => '数据源描述', 'description' => '数据源描述', 'type' => 'string', 'required' => true, 'example' => 'xx'], + ], + 'required' => true, ], ], ], @@ -60376,330 +35239,96 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'NodeList' => [ - 'title' => '分页节点列表', - 'description' => '分页节点列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx test', - ], - 'PriorityList' => [ - 'title' => '优先级', - 'description' => '优先级', - 'type' => 'array', - 'items' => [ - 'description' => '优先级', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'DryRun' => [ - 'title' => '是否空跑', - 'description' => '是否空跑', - 'type' => 'boolean', - 'example' => 'true', - ], - 'OwnerList' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'array', - 'items' => [ - 'description' => '负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '23222', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], - 'From' => [ - 'title' => '来源', - 'description' => '来源', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'Creator' => [ - 'title' => '创建者', - 'description' => '创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '23222', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'SubDetailType' => [ - 'title' => '节点子类型(如数据处理中的MAX_COMPUTER_SQL/HIVE_SQL/SHELL等,如逻辑表中的维度表/事实表/汇总表等)。如DATA_PROCESS中的MAX_COMPUTER_SQL、HIVE_SQL、SHELL等,如BBOX_LOGIC_TABLE_NODE中的DIM_LOGICAL_TABLE、FACT_LOGICAL_TABLE、SUMMARY_LOGICAL_TABLE等', - 'description' => '子业务类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL等', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'HasProd' => [ - 'title' => '是否有生产环境', - 'description' => '是否有生产环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Type' => [ - 'title' => '节点类型', - 'description' => '节点类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'HasDev' => [ - 'title' => '是否有开发环境', - 'description' => '是否有开发环境', - 'type' => 'boolean', - 'example' => 'true', - ], - 'SchedulePaused' => [ - 'title' => '是否暂停', - 'description' => '是否暂停', - 'type' => 'boolean', - 'example' => 'true', - ], - 'SchedulePeriodList' => [ - 'title' => '调度周期', - 'description' => '调度周期', - 'type' => 'array', - 'items' => [ - 'description' => '调度周期', - 'type' => 'string', - 'example' => 'HOURLY', - ], - ], - 'ProjectInfo' => [ - 'title' => '归属项目', - 'description' => '归属项目', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '项目ID', - 'type' => 'string', - 'example' => '1121321', - ], - 'Name' => [ - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'LastModifiedTime' => [ - 'description' => '编辑时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'BizUnitName' => [ - 'title' => '所属业务板块名称', - 'description' => '所属业务板块名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_31111', - ], - 'Modifier' => [ - 'title' => '节点更新者', - 'description' => '节点更新者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '311131', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'ExtendInfo' => [ - 'title' => '扩展信息', - 'description' => '扩展信息', - 'type' => 'string', - 'example' => '{"xx":"zz"}', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '数据源基础信息编辑结果.', 'description' => '数据源基础信息编辑结果.', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '编辑数据源基础信息', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 100,\\n \\"NodeList\\": [\\n {\\n \\"Description\\": \\"xx test\\",\\n \\"PriorityList\\": [\\n \\"MIDDLE\\"\\n ],\\n \\"CreateTime\\": \\"2024-05-30 16:47:13\\",\\n \\"DryRun\\": true,\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"23222\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"From\\": \\"DATA_PROCESS\\",\\n \\"Creator\\": {\\n \\"Id\\": \\"23222\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"SubDetailType\\": \\"SHELL\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"HasProd\\": true,\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"HasDev\\": true,\\n \\"SchedulePaused\\": true,\\n \\"SchedulePeriodList\\": [\\n \\"HOURLY\\"\\n ],\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"1121321\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"LastModifiedTime\\": \\"2024-05-30 16:47:13\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"Id\\": \\"n_31111\\",\\n \\"Modifier\\": {\\n \\"Id\\": \\"311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"ExtendInfo\\": \\"{\\\\\\"xx\\\\\\":\\\\\\"zz\\\\\\"}\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询调度节点列表', - ], - 'GetPhysicalNodeOperationLog' => [ - 'summary' => '查询节点的操作日志。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataSourceBasicInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateDataSourceConfig' => [ + 'summary' => '编辑数据源链接配置项:租户管理员、数据管理员、业务板块管理员、项目管理员、运营管理员 有权限操作。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'NodeId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', + 'title' => '数据源配置项变更', + 'description' => '数据源配置项变更', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源ID', 'description' => '数据源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '13231313'], + 'ConfigItemList' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'array', + 'items' => [ + 'title' => '连接配置项', + 'description' => '连接配置项', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项keyId', 'description' => '配置项keyId', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置值', 'description' => '配置值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + ], + 'required' => true, + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => 'n_231131', - ], - ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', ], ], ], @@ -60710,276 +35339,299 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'OperationLogList' => [ - 'title' => '节点操作日志', - 'description' => '节点操作日志', - 'type' => 'array', - 'items' => [ - 'title' => '节点操作日志信息', - 'description' => '节点操作日志信息', - 'type' => 'object', - 'properties' => [ - 'Context' => [ - 'title' => '日志详情', - 'description' => '日志详情', - 'type' => 'string', - 'example' => 'xx', - ], - 'OperationType' => [ - 'title' => '操作类型'."\n" - .'TASK_UPDATE_PRIORITY:修改节点优先级'."\n" - .'PAUSE_TASK:暂停调度'."\n" - .'RESUME_TASK:恢复调度'."\n" - .'CREATE_NODE:创建节点'."\n" - .'FORCE_DELETE_NODE:强制删除节点'."\n" - .'UPDATE_NODE:更新节点'."\n" - .'DELETE_NODE:删除节点'."\n" - .'CHANGE_NODE_OWNER:修改节点负责人', - 'description' => '操作类型'."\n" - .'- TASK_UPDATE_PRIORITY:修改节点优先级'."\n" - .'- PAUSE_TASK:暂停调度'."\n" - .'- RESUME_TASK:恢复调度'."\n" - .'- CREATE_NODE:创建节点'."\n" - .'- FORCE_DELETE_NODE:强制删除节点'."\n" - .'- UPDATE_NODE:更新节点'."\n" - .'- DELETE_NODE:删除节点'."\n" - .'- CHANGE_NODE_OWNER:修改节点负责人', - 'type' => 'string', - 'example' => 'PAUSE_TASK', - ], - 'Operator' => [ - 'title' => '操作人ID', - 'description' => '操作人ID', - 'type' => 'string', - 'example' => '132222', - ], - 'OperationTime' => [ - 'title' => '操作时间', - 'description' => '操作时间', - 'type' => 'string', - 'example' => '2024-05-30 16:47:13', - ], - 'OperatorName' => [ - 'title' => '操作者名字', - 'description' => '操作者名字', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '数据源连接配置项编辑结果.', 'description' => '数据源连接配置项编辑结果.', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '编辑数据源链接配置项', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"OperationLogList\\": [\\n {\\n \\"Context\\": \\"xx\\",\\n \\"OperationType\\": \\"PAUSE_TASK\\",\\n \\"Operator\\": \\"132222\\",\\n \\"OperationTime\\": \\"2024-05-30 16:47:13\\",\\n \\"OperatorName\\": \\"xx测试\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询节点的操作日志', - ], - 'ListNodeDownStream' => [ - 'summary' => '查询节点下游,创建补数据工作流时可以作为数据参考。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataSourceConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateDataset' => [ + 'summary' => '用于更新指定项目下的数据集相关信息,上线版本:v6.2.0。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目 ID'."\n", 'type' => 'string', 'required' => true, 'example' => '7273382541481536'], + ], + [ + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询节点下游请求', - 'description' => '查询节点下游请求', - 'type' => 'object', - 'properties' => [ - 'NodeIdList' => [ - 'title' => '节点列表', - 'description' => '节点列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点', - 'description' => '节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'required' => false, - 'example' => 'n_23431', - ], - 'FieldIdList' => [ - 'title' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', - 'description' => '字段ID列表:当节点是逻辑表节点ID时可以传,不传默认是全表', - 'type' => 'array', - 'items' => [ - 'title' => '字段ID', - 'description' => '字段ID', - 'type' => 'string', - 'required' => false, - 'example' => '23211121', - ], - 'required' => false, - 'example' => '112', + 'title' => '', + 'description' => '更新结构体', + 'type' => 'object', + 'properties' => [ + 'Id' => ['description' => '数据集 ID(业务主键)'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7280832407583104'], + 'Name' => ['title' => '数据集名称', 'description' => '数据集名称'."\n", 'type' => 'string', 'required' => false, 'example' => 'audio_dataset'], + 'Type' => ['title' => '数据集类型:FILE,TABLE,HYBRID', 'description' => '数据集类型'."\n", 'type' => 'string', 'required' => false, 'example' => 'HYBRID'], + 'DataCellId' => ['title' => '主题域ID', 'description' => '主题域 ID'."\n", 'type' => 'string', 'required' => false, 'example' => '78201'], + 'Owner' => ['title' => '负责人ID列表,多个用逗号分隔', 'description' => '负责人ID列表,多个用逗号分隔', 'type' => 'string', 'required' => false, 'example' => '300001391'], + 'Description' => ['title' => '描述', 'description' => '**描述**'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据集'], + 'StorageType' => ['title' => '存储类型', 'description' => '**存储类型**'."\n", 'type' => 'string', 'required' => false, 'example' => 'OSS'], + 'MetadataStorageType' => ['title' => '元数据存储类型', 'description' => '**元数据存储类型**'."\n", 'type' => 'string', 'required' => false, 'example' => 'POSTGRESQL'], + 'ContentType' => ['title' => '内容类型', 'description' => '**内容类型**'."\n", 'type' => 'string', 'required' => false, 'example' => 'GENERAL'], + 'Scenario' => ['title' => '使用场景', 'description' => '**数据集使用场景:** `OFFLINE`(离线,默认) / `REALTIME`(实时)'."\n", 'type' => 'string', 'required' => false, 'example' => 'OFFLINE'], + 'FileId' => ['title' => '文件ID(创建时的文件ID)', 'description' => '文件ID(创建时的文件ID)', 'type' => 'string', 'required' => true, 'example' => '7261110566632832'], + 'Version' => ['title' => '版本', 'description' => '版本', 'type' => 'string', 'required' => false, 'example' => 'V1'], + 'VersionConfig' => [ + 'description' => '数据集版本配置', + 'type' => 'object', + 'properties' => [ + 'VersionDescription' => ['title' => '版本描述', 'description' => '**版本描述**'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据集版本'], + 'FileStorageConfig' => [ + 'description' => '文件存储配置', + 'type' => 'object', + 'properties' => [ + 'DataSourceId' => ['title' => '数据源ID', 'description' => '**数据源 ID**'."\n", 'type' => 'string', 'required' => true, 'example' => '7445343860022804608'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '数据源名称'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据源'], + 'DevPath' => ['title' => '开发路径(basic项目不需要)', 'description' => '开发路径 (basic 项目不需要)'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTML正文提取/test423/'], + 'ProdPath' => ['title' => '生产路径', 'description' => '生产路径'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'MountPath' => ['title' => '挂载路径', 'description' => '挂载路径'."\n", 'type' => 'string', 'required' => true, 'example' => '/var/run/openresty/cache/corp'], ], + 'required' => false, ], - 'required' => false, - ], - 'required' => true, - ], - 'DownStreamDepth' => [ - 'title' => '深度, 默认3', - 'description' => '深度,默认3层 ', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'FilterList' => [ - 'title' => '过滤器', - 'description' => '过滤器:可以根据项目、节点等进行正选和反选,默认为空', - 'type' => 'array', - 'items' => [ - 'description' => '过滤器', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '筛选键,支持:'."\n" - .'- PROJECT: 项目'."\n" - .'- PHYSICAL_NODE_ID: 物理任务id'."\n" - .'- LOGICAL_TABLE_NODE_ID: 逻辑表id', - 'type' => 'string', - 'required' => false, - 'example' => 'PROJECT', - ], - 'ValueList' => [ - 'description' => '过滤值列表', - 'type' => 'array', - 'items' => [ - 'description' => '过滤值', - 'type' => 'string', + 'MetadataStorageConfig' => [ + 'description' => '元数据存储配置', + 'type' => 'object', + 'properties' => [ + 'MetadataStorageMode' => ['title' => '元数据存储模式:CREATE/EXISTING', 'description' => '存储至(新建表/已有表)'."\n", 'type' => 'string', 'required' => true, 'example' => 'CREATE'], + 'MetadataStorageType' => ['title' => '元数据存储类型,如 MILVUS、POSTGRESQL 等,返回时回填', 'description' => '**元数据存储类型**'."\n", 'type' => 'string', 'required' => false, 'example' => 'MILVUS'], + 'DataSourceId' => ['title' => '数据源ID,与元数据存储类型一致的数据源', 'description' => '**数据源 ID**'."\n", 'type' => 'string', 'required' => true, 'example' => '7429133693081710272'], + 'DataSourceName' => ['title' => '数据源名称', 'description' => '**数据源名称**'."\n", 'type' => 'string', 'required' => false, 'example' => '测试数据源'], + 'DevSchema' => ['title' => '开发database/schema,dev-prod项目时必填', 'description' => '**开发 database/schema**'."\n", 'type' => 'string', 'required' => false, 'example' => 'HTML正文提取/test423/'], + 'ProdSchema' => ['title' => '生产database/schema', 'description' => '**生产 database/schema**'."\n", 'type' => 'string', 'required' => true, 'example' => 'HTML正文提取/test423/'], + 'TableName' => ['title' => '表名称,仅允许小写字母、数字和下划线,须以小写字母开头,64位字符以内', 'description' => '**表名称**'."\n", 'type' => 'string', 'required' => true, 'example' => 's_crm_all_plt_jala_shop'], + 'TableSchema' => [ + 'description' => '表结构', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '字段列表', + 'type' => 'array', + 'items' => [ + 'description' => '列结构', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '**字段名称**'."\n", 'type' => 'string', 'required' => true, 'example' => 'id'], + 'Type' => ['title' => '字段类型', 'description' => '**字段类型**'."\n", 'type' => 'string', 'required' => true, 'example' => 'int8'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '**数组元素子类型,仅当 type=ARRAY 时有效**'."\n", 'type' => 'string', 'required' => false, 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '最大容量', 'description' => '数组最大容量,仅当 type=ARRAY 时有效,默认 4096'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '250'], + 'Pk' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'required' => false, 'example' => 'primary key'], + 'Url' => ['title' => '是否为url', 'description' => '是否为url', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'description' => '向量索引配置'."\n", + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'MultiModal-Embedding'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance:mongodb'."\n"], + 'IndexType' => ['title' => '索引类型:AUTOINDEX,FLAT,IVF_FLAT,IVF_SQ8,IVF_PQ,IVF_RABITQ,HNSW,HNSW_SQ,HNSW_PQ,HNSW_PRQ,DISKANN,SCANN,AISAQ,IVFFlat', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型COSINE,L2,IP', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'description' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'type' => 'object', 'required' => false, 'example' => '{M:30, efConstruction:360}'], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], 'required' => false, - 'example' => '102113', ], - 'required' => false, ], - 'Exclude' => [ - 'description' => '是否反选,默认:false', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', + 'required' => false, + ], + 'RealtimeMetaTableConfig' => [ + 'title' => '实时元表配置,metadataStorageType=STREAM_TABLE时生效', + 'description' => '实时元表配置,metadataStorageType=STREAM_TABLE时生效', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '元表所属项目ID(支持跨项目)', 'description' => '元表所属项目 ID(支持跨项目)'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '7255013756724992'], + 'MetaTableName' => ['title' => '元表名称', 'description' => '元表名称'."\n", 'type' => 'string', 'required' => true, 'example' => '测试元表'], + 'DatasourceType' => ['title' => '元表数据源类型:KAFKA', 'description' => '元表数据源类型(本期仅开放 KAFKA)'."\n", 'type' => 'string', 'required' => true, 'example' => 'KAFKA'], + 'TableSchema' => [ + 'description' => '表结构', + 'type' => 'object', + 'properties' => [ + 'Columns' => [ + 'title' => '字段列表', + 'description' => '**字段列表**'."\n", + 'type' => 'array', + 'items' => [ + 'description' => '列结构', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '字段名称', 'description' => '**字段名称**'."\n", 'type' => 'string', 'required' => true, 'example' => 'happen_time'], + 'Type' => ['title' => '字段类型', 'description' => '**字段类型**'."\n", 'type' => 'string', 'required' => true, 'example' => 'date'], + 'ElementType' => ['title' => '数组元素子类型', 'description' => '**数组元素子类型,仅当 type=ARRAY 时有效**'."\n", 'type' => 'string', 'required' => false, 'example' => 'INT64'], + 'MaxCapacity' => ['title' => '最大容量', 'description' => '**数组最大容量,仅当 type=ARRAY 时有效,默认 4096**'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10'], + 'Pk' => ['title' => '是否主键', 'description' => '是否主键', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'Comment' => ['title' => '字段说明', 'description' => '字段说明', 'type' => 'string', 'required' => false, 'example' => 'happen time'], + 'Url' => ['title' => '是否为url', 'description' => '是否为url', 'type' => 'boolean', 'required' => false, 'example' => 'false'], + 'VectorIndexConfig' => [ + 'title' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'description' => '向量索引配置,当字段类型为 FLOAT_VECTOR/FLOAT16_VECTOR/BFLOAT16_VECTOR 时配置,用于设置维度、索引类型和相似度', + 'type' => 'object', + 'properties' => [ + 'EmbeddingModel' => ['title' => '向量化模型', 'description' => '向量化模型'."\n", 'type' => 'string', 'required' => true, 'example' => 'multimodal-embedding-v1'], + 'Dimension' => ['title' => '向量化维度', 'description' => '向量化维度'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => 'instance'], + 'IndexType' => ['title' => '索引类型:AUTOINDEX,FLAT,IVF_FLAT,IVF_SQ8,IVF_PQ,IVF_RABITQ,HNSW,HNSW_SQ,HNSW_PQ,HNSW_PRQ,DISKANN,SCANN,AISAQ,IVFFlat', 'description' => '索引类型,PG支持IVFFlat/HNSW,Milvus支持全部'."\n", 'type' => 'string', 'required' => true, 'example' => 'AUTOINDEX'], + 'SimilarityType' => ['title' => '相似度类型COSINE,L2,IP', 'description' => '相似度类型,默认COSINE。COSINE/L2/IP'."\n", 'type' => 'string', 'required' => true, 'example' => 'COSINE'], + 'IndexParams' => ['title' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'description' => '索引构建参数,根据indexType不同传入不同参数,如HNSW需{M:30, efConstruction:360},IVF_FLAT需{nlist:128}', 'type' => 'object', 'required' => false, 'example' => '{M:30, efConstruction:360}'], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'required' => false, + ], + ], + 'required' => false, + ], ], + 'required' => false, ], - 'required' => false, ], 'required' => false, ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '123011', - ], ], 'required' => true, ], ], - [ - 'name' => 'Env', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], ], ], ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新数据集信息', + 'description' => '## 请求说明'."\n" + .'- 该 API 用于更新特定项目下已存在的数据集的详细信息。'."\n" + .'- 必须提供 `ProjectId` 和 `UpdateCommand` 参数,其中 `UpdateCommand` 包含了需要更新的数据集的具体字段。'."\n" + .'- `UpdateCommand` 中的 `Id` 字段是必需的,用来标识要更新的数据集。'."\n" + .'- 其他字段如 `Name`, `Type`, `DataCellId` 等为可选项,根据实际需求选择性填写。'."\n" + .'- 版本配置(`VersionConfig`)和实时元表配置(`RealtimeMetaTableConfig`)提供了更详细的设置选项,包括存储路径、表结构等,这些也是可选的。'."\n" + .'- 注意确保所有提供的 ID 值(如 `ProjectId`, `Id`, `DataSourceId` 等)在系统中有效且正确关联。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + ], + 'UpdateFileDirectory' => [ + 'summary' => '移动菜单树文件位置。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'ProjectId', + 'in' => 'query', + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12132323'], + ], + [ + 'name' => 'FileId', + 'in' => 'query', + 'schema' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12121111'], + ], + [ + 'name' => 'Directory', + 'in' => 'query', + 'schema' => ['title' => '更改后文件目录', 'description' => '更改后文件目录', 'type' => 'string', 'required' => true, 'example' => '/xx测试/目录new'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ @@ -60987,171 +35639,81 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeInfoList' => [ - 'title' => '节点列表', - 'description' => '节点列表', - 'type' => 'array', - 'items' => [ - 'title' => '节点', - 'description' => '节点', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_2423351', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Type' => [ - 'title' => '节点类型', - 'description' => '节点类型', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'FieldIdList' => [ - 'title' => '字段id列表', - 'description' => '字段id列表', - 'type' => 'array', - 'items' => [ - 'description' => '字段id', - 'type' => 'string', - 'example' => '123', - ], - ], - 'Depth' => [ - 'title' => '层级', - 'description' => '层级', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '移动菜单树文件位置', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfoList\\": [\\n {\\n \\"Id\\": \\"n_2423351\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Type\\": \\"DATA_PROCESS\\",\\n \\"FieldIdList\\": [\\n \\"123\\"\\n ],\\n \\"Depth\\": 1\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询节点下游', - ], - 'GetPhysicalNodeByOutputName' => [ - 'summary' => '根据输出名查询物理节点,仅支持离线代码节点及集成任务节点。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateFileDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateFileName' => [ + 'summary' => '更新文件名。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'OutputName', + 'name' => 'ProjectId', 'in' => 'query', - 'schema' => [ - 'title' => '节点输出名', - 'description' => '节点输出名', - 'type' => 'string', - 'required' => true, - 'example' => 't_test', - ], + 'schema' => ['title' => '项目ID', 'description' => '项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12132323'], ], [ - 'name' => 'Env', + 'name' => 'FileId', 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], + 'schema' => ['title' => '文件ID', 'description' => '文件ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '12121111'], + ], + [ + 'name' => 'Name', + 'in' => 'query', + 'schema' => ['title' => '更改后文件名', 'description' => '更改后文件名', 'type' => 'string', 'required' => true, 'example' => 'xxNew'], ], ], 'responses' => [ @@ -61161,654 +35723,359 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeInfo' => [ - 'title' => '节点详情', - 'description' => '节点详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_2321', - ], - 'Name' => [ - 'title' => '名称', - 'description' => '名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'OperatorType' => [ - 'title' => '节点子类型', - 'description' => '节点子类型'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL等', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'ScheduleType' => [ - 'title' => '调度周期类型', - 'description' => '调度周期类型'."\n" - .'- MINUTELY'."\n" - .'- HOURLY'."\n" - .'- DAILY'."\n" - .'- WEEKLY'."\n" - .'- MONTHLY'."\n" - .'- YEARLY', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'Priority' => [ - 'title' => '调度优先级', - 'description' => '优先级'."\n" - .'- HIGHEST'."\n" - .'- HIGH'."\n" - .'- MIDDLE'."\n" - .'- LOW'."\n" - .'- LOWEST', - 'type' => 'string', - 'example' => 'MIDDLE', - ], - 'ProjectInfo' => [ - 'title' => '节点归属项目', - 'description' => '节点归属项目', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '项目ID', - 'type' => 'string', - 'example' => '1324211', - ], - 'Name' => [ - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Creator' => [ - 'title' => '节点创建者', - 'description' => '节点创建者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1311131', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Owner' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1311131', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'Modifier' => [ - 'title' => '节点修改者', - 'description' => '节点修改者', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'description' => '用户ID', - 'type' => 'string', - 'example' => '1311131', - ], - 'Name' => [ - 'description' => '用户名', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'LastModifiedTime' => [ - 'title' => '更新时间', - 'description' => '更新时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1717343597000', - ], - 'Status' => [ - 'title' => '节点调度状态', - 'description' => '节点调度状态', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'TriggerConfig' => [ - 'title' => '触发配置, 用于实现对逻辑表的字段依赖', - 'description' => '触发配置, 用于实现对逻辑表的字段依赖', - 'type' => 'string', - 'example' => '{"expression":"any_success"}', - ], - 'From' => [ - 'title' => '节点来源', - 'description' => '节点来源'."\n" - .'- DATA_PROCESS:代码研发'."\n" - .'- BLACK_BOX:黑盒'."\n" - .'- ONE_ID:萃取'."\n" - .'- PIPELINE:PIPELINE', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '更新文件名', + 'changeSet' => [], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateFileName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeInfo\\": {\\n \\"Id\\": \\"n_2321\\",\\n \\"Name\\": \\"xx测试\\",\\n \\"Description\\": \\"xx测试\\",\\n \\"OperatorType\\": \\"SHELL\\",\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"Priority\\": \\"MIDDLE\\",\\n \\"ProjectInfo\\": {\\n \\"Id\\": \\"1324211\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Creator\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Owner\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"Modifier\\": {\\n \\"Id\\": \\"1311131\\",\\n \\"Name\\": \\"xx测试\\"\\n },\\n \\"CreateTime\\": 1717343597000,\\n \\"LastModifiedTime\\": 1717343597000,\\n \\"Status\\": \\"SUCCESS\\",\\n \\"TriggerConfig\\": \\"{\\\\\\"expression\\\\\\":\\\\\\"any_success\\\\\\"}\\",\\n \\"From\\": \\"DATA_PROCESS\\"\\n }\\n}","type":"json"}]', - 'title' => '根据输出名查询物理节点', ], - 'GetDevObjectDependency' => [ - 'summary' => '查询开发态对象上游依赖。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdatePipeline' => [ + 'summary' => '更新集成管道/非结构化工作流任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道/工作流任务所属项目 ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境 env:DEV-表示操作开发环境,PROD-表示操作生产环境(对于工作流,目前仅支持 PROD)', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => '30001011', ], ], [ - 'name' => 'ObjectId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '开发对象id, 对于逻辑表需要传入模型id,对于其他任务需要传入FileId', - 'description' => '对象ID', - 'type' => 'string', + 'title' => '更新管道任务配置', + 'description' => '更新管道/工作流任务配置', + 'type' => 'object', + 'properties' => [ + 'ScheduleConfig' => ['title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'type' => 'string', 'required' => true, 'example' => '{"cronExpression":"0 0 0 * * ?"}'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'PipelineConfig' => [ + 'title' => '集成管道组件配置', + 'description' => '集成管道组件/工作流算子配置', + 'type' => 'object', + 'properties' => [ + 'Steps' => [ + 'title' => '组件配置:包含所有用到的组件详细配置', + 'description' => '组件/算子配置:包含所有用到的组件/算子详细配置', + 'type' => 'array', + 'items' => [ + 'title' => '组件具体配置', + 'description' => '组件/算子具体配置', + 'type' => 'object', + 'properties' => [ + 'PluginConfig' => ['title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '具体组件配置,格式为 JSON 字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig(工作流算子则为 com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.unstructured.BaseOAUnstructuredNeuronConfig)相关子类的 toJsonString 方法。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的任务配置结构相同', 'type' => 'string', 'required' => true, 'example' => '{}'], + 'StepType' => ['title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,对于工作流任务则表示算子类型,例如:image-图片,text-文本。参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'input'], + 'StepName' => ['title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + 'IsDistribute' => ['title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式: true-表示当前组件的数据轮流发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游各有 50 条数据,默认为 true, false-表示当前组件的数据全量发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游都有 100 条数据。 如果为工作流任务,则无需关注此值。', 'type' => 'boolean', 'required' => false], + 'Key' => ['title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '插件 ID,每个插件/算子都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'mysqlinput'], + ], + 'required' => false, + ], + 'required' => true, + ], + 'Hops' => [ + 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'description' => 'DAG 有向无环图链接配置:描述所有组件/算子的连接关系', + 'type' => 'array', + 'items' => [ + 'title' => '集成管道输入输出组件关系配置', + 'description' => '集成管道输入输出组件/工作流算子依赖关系配置', + 'type' => 'object', + 'properties' => [ + 'Target' => ['title' => '输出步骤名称,即Steps[*].StepName', 'description' => '输出步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'odps_writer'], + 'SendTo' => ['title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'description' => '针对条件分发组件,连接下游条件为 true 时设置为 true,否则设置为 false。 如果为工作流任务,则无需关注', 'type' => 'boolean', 'required' => false], + 'Source' => ['title' => '输入步骤名称,即Steps[*].StepName', 'description' => '输入步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + 'required' => true, + ], + 'NodeInfo' => [ + 'title' => '集成管道任务基本信息', + 'description' => '集成管道/工作流 任务基本信息', + 'type' => 'object', + 'properties' => [ + 'NodeName' => ['title' => '集成管道任务名称', 'description' => '集成管道/工作流 任务名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'NodeId' => ['title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 任务调度节点 ID,首次创建为空,更新管道/工作流 任务时,pipelineId、fileId、nodeId 至少配置一个', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 任务 ID,首次创建为空,更新管道/工作流任务时,pipelineId、fileId、nodeId 至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道/工作流 文件 ID,首次创建为空,更新管道/工作流 任务时,pipelineId、fileId、nodeId 至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'Directory' => ['title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'description' => '集成管道/工作流任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为 offlinePipeline(工作流则为 unstructuredPipeline)的目录', 'type' => 'string', 'required' => false, 'example' => '/'], + ], + 'required' => true, + ], + 'PipelineType' => ['title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', 'description' => '任务类型:0-表示离线集成(默认),1-表示实时集成,14-表示工作流任务,15-表示实时工作流', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'Mode' => ['title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式。 如果为工作流,则无需关注。', 'type' => 'string', 'required' => false, 'example' => 'PIPELINE'], + 'Submit' => ['title' => '是否提交,默认提交', 'description' => '是否提交,默认提交', 'type' => 'boolean', 'required' => false], + 'PipelineJson' => ['title' => '脚本模式下:集成管道配置(json字符串格式)', 'description' => '脚本模式下:集成管道配置(json 字符串格式)。 工作流任务不支持脚本模式', 'type' => 'string', 'required' => false, 'example' => '{}'], + 'Settings' => ['title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'type' => 'string', 'required' => false, 'example' => '{}'], + ], 'required' => true, - 'example' => '7026498387616064', ], ], - [ - 'name' => 'ObjectType', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '开发对象类型. 任务FileId:FILE_ID, 逻辑表:MODEL_ID', - 'description' => '开发对象类型'."\n" - .'- FILE_ID:任务FileId'."\n" - .'- MODEL_ID:逻辑表', - 'type' => 'string', - 'required' => true, - 'example' => '7026498387616064', + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => [ + 'title' => '管道任务更新结果', + 'description' => '管道/工作流任务更新结果', + 'type' => 'object', + 'properties' => [ + 'SubmitId' => ['title' => '提交管道生成的待发布列表的submitId,通过发布域进行发布', 'description' => '提交管道/工作流成功生成的待发布列表的提交,通过发布域进行发布。'."\n" + .'工作流任务仅支持 PROD,因此无此值。', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'HostMachine' => ['title' => '服务端执行机器名称和ip', 'description' => '服务端执行机器名称和ip', 'type' => 'string', 'example' => 'hostName:hostIp'], + 'Version' => ['title' => '提交后生成的版本号', 'description' => '待发布版本号。 工作流任务仅支持 PROD,因此无此值。', 'type' => 'string', 'example' => '1'], + 'NodeId' => ['title' => '创建成功后的管道任务调度节点Id', 'description' => '管道/工作流任务调度节点Id', 'type' => 'string', 'example' => '123'], + 'PipelineId' => ['title' => '创建成功后的管道ID', 'description' => '管道/工作流ID', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + ], + ], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + ], ], ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": {\\n \\"SubmitId\\": 123,\\n \\"HostMachine\\": \\"hostName:hostIp\\",\\n \\"Version\\": \\"1\\",\\n \\"NodeId\\": \\"123\\",\\n \\"PipelineId\\": 123\\n },\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '更新管道/非结构化工作流任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdatePipelineByAsync' => [ + 'summary' => '异步更新管道/非结构化工作流任务。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ [ - 'name' => 'ObjectFrom', + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'Context', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '开发对象来源. BLACK_BOX: 逻辑表;DATA_PROCESS:计算任务;PIPELINE:集成任务', - 'description' => '开发对象来源'."\n" - .'- BLACK_BOX: 逻辑表'."\n" - .'- DATA_PROCESS:计算任务'."\n" - .'- PIPELINE:集成任务', - 'type' => 'string', + 'title' => '请求上下文信息', + 'description' => '请求上下文信息', + 'type' => 'object', + 'properties' => [ + 'ProjectId' => ['title' => '集成管道任务所属项目ID', 'description' => '集成管道任务所属项目ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'Env' => ['title' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'description' => '当前操作环境env:DEV-表示操作开发环境,PROD-表示操作生产环境', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + ], 'required' => true, - 'example' => 'DATA_PROCESS', ], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '更新管道任务配置', + 'description' => '更新管道任务配置', + 'type' => 'object', + 'properties' => [ + 'ScheduleConfig' => ['title' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'description' => '调度配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAScheduleConfig#toJsonString方法', 'type' => 'string', 'required' => true, 'example' => '{"cronExpression":"0 0 0 * * ?"}'], + 'Comment' => ['title' => '备注', 'description' => '备注', 'type' => 'string', 'required' => false, 'example' => 'comment'], + 'PipelineConfig' => [ + 'title' => '集成管道组件配置', + 'description' => '集成管道组件配置', + 'type' => 'object', + 'properties' => [ + 'Steps' => [ + 'title' => '组件配置:包含所有用到的组件详细配置', + 'description' => '组件配置:包含所有用到的组件详细配置', + 'type' => 'array', + 'items' => [ + 'title' => '组件具体配置', + 'description' => '组件具体配置', + 'type' => 'object', + 'properties' => [ + 'PluginConfig' => ['title' => '具体组件配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig相关子类的toJsonString方法。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '具体组件配置,格式为 JSON 字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig(工作流算子则为 com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.unstructured.BaseOAUnstructuredNeuronConfig)相关子类的 toJsonString 方法。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的任务配置结构相同', 'type' => 'string', 'required' => true, 'example' => '{}'], + 'StepType' => ['title' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '组件类型:input-表示输入组件,output-表示输出组件,transfrom-表示转换组件,process-表示流程控制组件,对于工作流任务则表示算子类型,例如:image-图片,text-文本。参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepType。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'input'], + 'StepName' => ['title' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'description' => '步骤名称,在同一个管道任务所有步骤名称不能重复', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + 'IsDistribute' => ['title' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式:'."\n" + .'true-表示当前组件的数据轮流发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游各有50条数据,默认为true,'."\n" + .'false-表示当前组件的数据全量发送到所有下游,例如当前组件有100条数据,有两个下游,则两个下游都有100条数据', 'description' => '用于表示当前组件有多个下游组件时当前组件数据的分发方式: true-表示当前组件的数据轮流发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游各有 50 条数据,默认为 true, false-表示当前组件的数据全量发送到所有下游,例如当前组件有 100 条数据,有两个下游,则两个下游都有 100 条数据。 如果为工作流任务,则无需关注此值。', 'type' => 'boolean', 'required' => false], + 'Key' => ['title' => '插件ID,每个插件都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件配置类,实现相应组件配置,每个组件配置与Dataphin页面创建的管道配置结构相同', 'description' => '插件 ID,每个插件/算子都有唯一的标志,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.plugin.OABasePluginConfig#stepKey。开发者应继承该组件/算子配置类,实现相应组件/算子配置,每个组件/算子配置与 Dataphin 页面创建的配置结构相同', 'type' => 'string', 'required' => true, 'example' => 'mysqlinput'], + ], + 'required' => false, + ], + 'required' => true, + ], + 'Hops' => [ + 'title' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'description' => 'DAG有向无环图链接配置:描述所有组件的连接关系', + 'type' => 'array', + 'items' => [ + 'title' => '集成管道输入输出组件关系配置', + 'description' => '集成管道输入输出组件关系配置', + 'type' => 'object', + 'properties' => [ + 'Target' => ['title' => '输出步骤名称,即Steps[*].StepName', 'description' => '输出步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'odps_writer'], + 'SendTo' => ['title' => '针对条件分发组件,连接下游条件为true时设置为true,否则设置为false', 'description' => '针对条件分发组件,连接下游条件为 true 时设置为 true,否则设置为 false。 如果为工作流任务,则无需关注', 'type' => 'boolean', 'required' => false], + 'Source' => ['title' => '输入步骤名称,即Steps[*].StepName', 'description' => '输入步骤名称,即Steps[*].StepName', 'type' => 'string', 'required' => true, 'example' => 'mysql_reader'], + ], + 'required' => false, + ], + 'required' => true, + ], + ], + 'required' => true, + ], + 'NodeInfo' => [ + 'title' => '集成管道任务基本信息', + 'description' => '集成管道任务基本信息', + 'type' => 'object', + 'properties' => [ + 'NodeName' => ['title' => '集成管道任务名称', 'description' => '集成管道任务名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'NodeId' => ['title' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务调度节点ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'string', 'required' => false, 'example' => 'n_123'], + 'PipelineId' => ['title' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道任务ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'FileId' => ['title' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'description' => '管道文件ID,首次创建为空,更新管道任务时,pipelineId、fileId、nodeId至少配置一个', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '123'], + 'Directory' => ['title' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'description' => '集成管道任务节点目录(默认为根目录),该目录必须存在,如若不存在,则需要调用相关接口创建类型为offlinePipeline的目录', 'type' => 'string', 'required' => false, 'example' => '/'], + ], + 'required' => true, + ], + 'PipelineType' => ['title' => '管道任务类型:0-表示离线集成(默认),1-表示实时集成', 'description' => '任务类型:0-表示离线集成(默认),1-表示实时集成,14-表示工作流任务,15-表示实时工作流', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0'], + 'Mode' => ['title' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式', 'description' => '集成管道配置模式:PIPELINE-表示管道模式(默认),JSON-表示脚本模式。 如果为工作流,则无需关注。', 'type' => 'string', 'required' => false, 'example' => 'PIPELINE'], + 'Submit' => ['title' => '是否提交,默认提交', 'description' => '是否提交,默认提交', 'type' => 'boolean', 'required' => false], + 'PipelineJson' => ['title' => '脚本模式下:集成管道配置(json字符串格式)', 'description' => '脚本模式下:集成管道配置(json 字符串格式)。 工作流任务不支持脚本模式', 'type' => 'string', 'required' => false, 'example' => '{}'], + 'Settings' => ['title' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'description' => '通道配置,格式为JSON字符串,参考工具类:com.alibaba.dataphin.pipeline.common.facade.openapi.model.OAPipelineSetting#toJsonString方法', 'type' => 'string', 'required' => false, 'example' => '{}'], + ], 'required' => true, - 'example' => '7021037162911616L', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'DevObjectDependencyList' => [ - 'title' => '依赖列表', - 'description' => '依赖列表', - 'type' => 'array', - 'items' => [ - 'title' => '依赖', - 'description' => '依赖', - 'type' => 'object', - 'properties' => [ - 'ScheduleType' => [ - 'title' => '调度类型'."\n" - .'MINUTELY: 分钟,HOURLY: 小时,DAILY: 天,WEEKLY: 周,MONTHLY: 月,YEARLY: 年', - 'description' => '调度类型'."\n" - .'- MINUTELY: 分钟'."\n" - .'- HOURLY: 小时'."\n" - .'- DAILY: 天'."\n" - .'- WEEKLY: 周'."\n" - .'- MONTHLY: 月'."\n" - .'- YEARLY: 年', - 'type' => 'string', - 'example' => 'DAILY', - ], - 'NodeName' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'NodeOutputTableName' => [ - 'title' => '输出表信息 ', - 'description' => '输出表信息 ', - 'type' => 'string', - 'example' => 't_xx', - ], - 'DependencyPeriod' => [ - 'title' => '依赖周期配置', - 'description' => '依赖周期配置', - 'type' => 'object', - 'properties' => [ - 'PeriodType' => [ - 'title' => '依赖周期类型:CURRENT_PERIOD,LAST_PERIOD,LAST_N_PERIOD,LAST_24_HOUR', - 'description' => '依赖周期类型'."\n" - .'- CURRENT_PERIOD'."\n" - .'- LAST_PERIOD'."\n" - .'- LAST_N_PERIOD'."\n" - .'- LAST_24_HOUR', - 'type' => 'string', - 'example' => 'CURRENT_PERIOD', - ], - 'PeriodOffset' => [ - 'title' => '周期偏移量,dependencyPeriodType=LAST_N_PERIOD时须传值'."\n", - 'description' => '周期偏移量,依赖周期类型是LAST_N_PERIOD时须传值', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - 'NodeOutputName' => [ - 'title' => '节点输出名', - 'description' => '节点输出名', - 'type' => 'string', - 'example' => 'n_xx', - ], - 'ManuallyAdd' => [ - 'title' => '是否手动添加', - 'description' => '是否手动添加', - 'type' => 'boolean', - 'example' => 'false', - ], - 'BizUnitId' => [ - 'title' => '业务模块ID', - 'description' => '业务模块ID', - 'type' => 'string', - 'example' => '13111', - ], - 'CustomCronExpression' => [ - 'title' => '是否自定义调度节点表达式', - 'description' => '是否自定义调度节点表达式', - 'type' => 'boolean', - 'example' => 'true', - ], - 'DependencyStrategy' => [ - 'title' => '依赖策略:ALL,FIRST,LAST,NEAR'."\n", - 'description' => '依赖策略'."\n" - .'- ALL'."\n" - .'- FIRST'."\n" - .'- LAST'."\n" - .'- NEAR', - 'type' => 'string', - 'example' => 'ALL', - ], - 'BizUnitName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - 'EffectFieldList' => [ - 'title' => '依赖字段', - 'description' => '依赖字段', - 'type' => 'array', - 'items' => [ - 'description' => '依赖字段', - 'type' => 'string', - 'example' => '112', - ], - ], - 'CronExpression' => [ - 'title' => '调度节点表达式', - 'description' => '调度节点表达式', - 'type' => 'string', - 'example' => '0 0 0 * * ?', - ], - 'SubBizType' => [ - 'title' => '子业务类型:'."\n" - .'DIM_LOGICAL_TABLE,FACT_LOGICAL_TABLE,SUMMARY_LOGICAL_TABLE,MAX_COMPUTE_SQL,MAX_COMPUTE_MR,HIVE_SQL,HADOOP_MR,SPARK_JAR_ON_HIVE,SPARK_SQL_ON_HIVE,SPARK_JAR_ON_MAX_COMPUTE,SHELL,PYTHON,PYTHON37,DATAX,MERGE,DLINK,CHECK,PERL,ONE_SERVICE_SQL_ADB_FOR_PG,ONE_SERVICE_SQL_ADB_FOR_MYSQL,ADB_FOR_PG,INCEPTOR_SQL,VIRTUAL,FLINK_SQL,FLINK_TEMPLATE_SQL,FLINK_DATASTREAM,REAL_TIME_PIPELINE,PAI_DESIGNER,HOLOGRES_SQL,ARGODB_SQL,IMPALA_SQL,STARROCKS_SQL'."\n", - 'description' => '子业务类型:'."\n" - .'- MAX_COMPUTE_SQL'."\n" - .'- HIVE_SQL'."\n" - .'- SHELL'."\n" - .'- PYTHON'."\n" - .'- ONE_SERVICE_SQL'."\n" - .'- DATABASE_SQL等', - 'type' => 'string', - 'example' => 'SHELL', - ], - 'DimMidNode' => [ - 'title' => '是否是维度表中间节点', - 'description' => '是否是维度表中间节点', - 'type' => 'boolean', - 'example' => 'true', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '123131', - ], - 'BizType' => [ - 'title' => '业务类型:'."\n" - .'SCRIPT: 脚本,LOGICAL_TABLE:逻辑表', - 'description' => '业务类型:'."\n" - .'- SCRIPT: 脚本'."\n" - .'- LOGICAL_TABLE:逻辑表', - 'type' => 'string', - 'example' => 'SCRIPT', - ], - 'OwnerList' => [ - 'title' => '节点负责人', - 'description' => '节点负责人', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => '11123', - ], - 'Name' => [ - 'title' => '节点名称', - 'description' => '节点名称', - 'type' => 'string', - 'example' => 'xx测试', - ], - ], - ], - ], - 'SelfDepend' => [ - 'title' => '是否自依赖', - 'description' => '是否自依赖', - 'type' => 'boolean', - 'example' => 'true', - ], - 'DependFieldList' => [ - 'title' => '依赖字段', - 'description' => '依赖字段', - 'type' => 'array', - 'items' => [ - 'description' => '依赖字段', - 'type' => 'string', - 'example' => '121', - ], - ], - 'ExternalBizInfo' => [ - 'title' => '额外业务信息', - 'description' => '额外业务信息', - 'type' => 'string', - 'example' => '所有字段信息/hasProd/hasDev等信息', - ], - 'PeriodDiff' => [ - 'title' => '依赖周期差', - 'description' => '依赖周期差', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Valid' => [ - 'title' => '配置是否生效', - 'description' => '配置是否生效', - 'type' => 'boolean', - 'example' => 'true', - ], - 'NodeType' => [ - 'title' => '节点类型', - 'description' => '节点类型'."\n" - .'- DATA_PROCESS:代码任务'."\n" - .'- BBOX_LOGIC_TABLE_NODE:黑盒逻辑表节点'."\n" - .'- ONE_ID_LABEL:萃取标签节点'."\n" - .'- ONE_ID_RULE:萃取标签节点'."\n" - .'- PIPELINE_NODE:PIPELINE节点', - 'type' => 'string', - 'example' => 'DATA_PROCESS', - ], - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_13211', - ], - 'OutputContextParamList' => [ - 'title' => '跨节点输出参数 ', - 'description' => '跨节点输出参数 ', - 'type' => 'array', - 'items' => [ - 'description' => '跨节点输出参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => '参数', - 'type' => 'string', - 'example' => 'v1', - ], - 'Description' => [ - 'description' => '描述', - 'type' => 'string', - 'example' => 'xxtest', - ], - 'DefaultValue' => [ - 'description' => '默认值', - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - ], - 'AutoParse' => [ - 'title' => '任务是否自动解析 ', - 'description' => '任务是否自动解析 ', - 'type' => 'boolean', - 'example' => 'true', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Data' => ['title' => '异步执行查询Id', 'description' => '异步执行查询Id', 'type' => 'integer', 'format' => 'int64', 'example' => '123'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Message\\": \\"internal error\\",\\n \\"HttpStatusCode\\": 200,\\n \\"Data\\": 123,\\n \\"Code\\": \\"OK\\",\\n \\"Success\\": true\\n}","type":"json"}]', + 'title' => '异步更新管道/非结构化工作流任务', + 'extraInfo' => '使用详情请参考辅助工具包中的demo:com.alibaba.dataphin.pipeline.common.facade.openapi.demoPipelineOpenApiDemo', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"DevObjectDependencyList\\": [\\n {\\n \\"ScheduleType\\": \\"DAILY\\",\\n \\"NodeName\\": \\"xx测试\\",\\n \\"ProjectName\\": \\"xx测试\\",\\n \\"NodeOutputTableName\\": \\"t_xx\\",\\n \\"DependencyPeriod\\": {\\n \\"PeriodType\\": \\"CURRENT_PERIOD\\",\\n \\"PeriodOffset\\": 1\\n },\\n \\"NodeOutputName\\": \\"n_xx\\",\\n \\"ManuallyAdd\\": false,\\n \\"BizUnitId\\": \\"13111\\",\\n \\"CustomCronExpression\\": true,\\n \\"DependencyStrategy\\": \\"ALL\\",\\n \\"BizUnitName\\": \\"xx测试\\",\\n \\"EffectFieldList\\": [\\n \\"112\\"\\n ],\\n \\"CronExpression\\": \\"0 0 0 * * ?\\",\\n \\"SubBizType\\": \\"SHELL\\",\\n \\"DimMidNode\\": true,\\n \\"ProjectId\\": 123131,\\n \\"BizType\\": \\"SCRIPT\\",\\n \\"OwnerList\\": [\\n {\\n \\"Id\\": \\"11123\\",\\n \\"Name\\": \\"xx测试\\"\\n }\\n ],\\n \\"SelfDepend\\": true,\\n \\"DependFieldList\\": [\\n \\"121\\"\\n ],\\n \\"ExternalBizInfo\\": \\"所有字段信息/hasProd/hasDev等信息\\",\\n \\"PeriodDiff\\": 1,\\n \\"Valid\\": true,\\n \\"NodeType\\": \\"DATA_PROCESS\\",\\n \\"NodeId\\": \\"n_13211\\",\\n \\"OutputContextParamList\\": [\\n {\\n \\"Key\\": \\"v1\\",\\n \\"Description\\": \\"xxtest\\",\\n \\"DefaultValue\\": \\"v1\\"\\n }\\n ],\\n \\"AutoParse\\": true\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查询开发态对象上游依赖', + 'ramActions' => [], ], - 'ResumePhysicalNode' => [ - 'summary' => '恢复物理节点调度。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateProjectMember' => [ + 'summary' => '编辑项目成员。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], @@ -61816,50 +36083,47 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ResumeCommand', + 'name' => 'Id', + 'in' => 'query', + 'schema' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + ], + [ + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '恢复调度请求', - 'description' => '恢复调度请求', + 'title' => '编辑命令', + 'description' => '编辑命令', 'type' => 'object', 'properties' => [ - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102011', - ], - 'NodeIdList' => [ - 'title' => '节点ID列表', - 'description' => '节点ID列表', + 'Env' => ['title' => '环境标识', 'description' => '环境标识', 'type' => 'string', 'required' => true, 'example' => 'DEV'], + 'UserList' => [ + 'title' => '用户成员', + 'description' => '用户成员', 'type' => 'array', 'items' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'required' => true, - 'example' => '30132', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => true, 'example' => '30012011'], + 'RoleList' => [ + 'title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', + 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', + 'type' => 'array', + 'items' => ['title' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', 'description' => '成员角色: 1 项目管理员、2 开发者、3 访客、4 分析师、5 运维', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'required' => true, + ], + ], + 'required' => false, + 'description' => '', ], 'required' => true, ], @@ -61867,600 +36131,454 @@ 'required' => true, ], ], - [ - 'name' => 'Env', - 'in' => 'query', - 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', - ], - ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'NodeOperateResultList' => [ - 'title' => '', - 'description' => '节点恢复调度操作结果', - 'type' => 'array', - 'items' => [ - 'description' => '点恢复调度操作结果', - 'type' => 'object', - 'properties' => [ - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', - 'example' => 'n_123456', - ], - 'Status' => [ - 'title' => '操作结果', - 'description' => '操作结果', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'ErrorMessage' => [ - 'title' => '操作失败时,异常信息提示', - 'description' => '操作失败时,异常信息提示', - 'type' => 'string', - 'example' => 'xx', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '编辑项目成员', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"NodeOperateResultList\\": [\\n {\\n \\"NodeId\\": \\"n_123456\\",\\n \\"Status\\": \\"SUCCESS\\",\\n \\"ErrorMessage\\": \\"xx\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '恢复物理节点调度', + 'ramActions' => [], ], - 'ExecuteManualNode' => [ - 'summary' => '运行手动调度节点。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateQualityRuleSwitch' => [ + 'summary' => '批量开启或关闭质量规则。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'readAndWrite', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ExecuteCommand', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '运行手动任务请求', - 'description' => '运行手动任务请求', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'NodeId' => [ - 'title' => '节点ID', - 'description' => '节点ID', - 'type' => 'string', + 'Open' => ['title' => '是否开启', 'description' => '是否开启', 'type' => 'boolean', 'required' => true], + 'RuleIdList' => [ + 'title' => '规则Id列表', + 'description' => '规则Id列表', + 'type' => 'array', + 'items' => ['title' => '规则Id列表', 'description' => '规则Id列表', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'], 'required' => true, - 'example' => 'n_12132', - ], - 'FlowName' => [ - 'title' => '工作流名字', - 'description' => '工作流名字', - 'type' => 'string', - 'required' => false, - 'example' => 'xx测试', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123324', - ], - 'StartBizDate' => [ - 'title' => '起始业务日期', - 'description' => '起始业务日期', - 'type' => 'string', - 'required' => true, - 'example' => '2024-05-01', - ], - 'EndBizDate' => [ - 'title' => '终止业务日期', - 'description' => '终止业务日期', - 'type' => 'string', - 'required' => true, - 'example' => '2024-05-07', - ], - 'ParamList' => [ - 'title' => '运行参数', - 'description' => '运行参数', - 'type' => 'array', - 'items' => [ - 'title' => '运行参数', - 'description' => '运行参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '参数', - 'description' => '参数', - 'type' => 'string', - 'required' => false, - 'example' => 'param1', - ], - 'Value' => [ - 'title' => '参数值', - 'description' => '参数值', - 'type' => 'string', - 'required' => false, - 'example' => '1', - ], - ], - 'required' => false, - ], - 'required' => false, ], ], 'required' => true, ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '生效记录数', 'description' => '生效记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量开启或关闭质量规则', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateQualityWatchSwitch' => [ + 'summary' => '批量开启或关闭质量监控对象。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ [ - 'name' => 'Env', + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '环境标识'."\n" - .'DEV:开发环境 '."\n" - .'PROD(默认):生产环境', - 'description' => '环境标识'."\n" - .'- DEV:开发环境 '."\n" - .'- PROD(默认):生产环境', - 'type' => 'string', - 'required' => false, - 'example' => 'PROD', + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'Open' => ['title' => '是否开启', 'description' => '是否开启', 'type' => 'boolean', 'required' => true], + 'WatchIdList' => [ + 'title' => '监控Id列表', + 'description' => '监控Id列表', + 'type' => 'array', + 'items' => ['title' => '监控Id列表', 'description' => '监控Id列表', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'], + 'required' => true, + ], + ], + 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'FlowId' => [ - 'title' => '工作流ID', - 'description' => '工作流ID', - 'type' => 'string', - 'example' => 'f_1231_121324', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '生效记录数', 'description' => '生效记录数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '批量开启或关闭质量监控对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"FlowId\\": \\"f_1231_121324\\"\\n}","type":"json"}]', - 'title' => '运行手动任务', + 'ramActions' => [], ], - 'ListAlertNotifications' => [ - 'summary' => '根据条件查询多个推送记录。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateResource' => [ + 'summary' => '编辑资源文件。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '编辑命令', + 'description' => '编辑命令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '资源Id', 'description' => '资源Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10112101'], + 'Name' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'StorageAddress' => ['title' => '资源存储地址', 'description' => '资源存储地址', 'type' => 'string', 'required' => true, 'example' => '300011448/711833/cdcd1c44-f1ee-46bb-b318-1d123dbabf6c'], + 'Description' => ['title' => '资源描述', 'description' => '资源描述', 'type' => 'string', 'required' => true, 'example' => 'xx 测试'], + 'Comment' => ['title' => '提交备注', 'description' => '提交备注', 'type' => 'string', 'required' => true, 'example' => 'xx 测试'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + 'ComputeEngineType' => ['title' => '计算引擎类型: MAX_COMPUTE、HADOOP', 'description' => '计算引擎类型: MAX_COMPUTE、HADOOP', 'type' => 'string', 'required' => true, 'example' => 'MAX_COMPUTE'], + ], 'required' => true, - 'example' => '30001011', ], ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '编辑资源文件', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateRowPermission' => [ + 'summary' => '更新行级权限。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateRowPermissionCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询条件', - 'description' => '查询条件', + 'title' => '请求命令', + 'description' => '请求命令', 'type' => 'object', 'properties' => [ - 'UserIdList' => [ - 'title' => '推送接收人id列表', - 'description' => '推送接收人id列表', + 'RowPermissionId' => ['title' => '行级权限ID', 'description' => '行级权限ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30009999'], + 'RowPermissionName' => ['title' => '行级权限名称', 'description' => '行级权限名称', 'type' => 'string', 'required' => true, 'example' => '业务管控'], + 'RowPermissionDesc' => ['title' => '行级权限描述', 'description' => '行级权限描述', 'type' => 'string', 'required' => false, 'example' => '管控业务数据'], + 'MappingColumns' => [ + 'title' => '映射字段', + 'description' => '映射字段', 'type' => 'array', 'items' => [ - 'title' => '推送接收人id', - 'description' => '推送接收人id', - 'type' => 'string', - 'required' => false, - 'example' => '12345', + 'type' => 'object', + 'properties' => [ + 'ColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + 'ColumnType' => [ + 'title' => '映射字段类型', + 'description' => '映射字段类型', + 'type' => 'string', + 'required' => true, + 'example' => 'STRING', + 'enum' => ['STRING', 'NUMBER'], + ], + 'ColumnDesc' => ['title' => '映射字段描述', 'description' => '映射字段描述', 'type' => 'string', 'required' => false, 'example' => '业务ID'], + ], + 'required' => true, + 'description' => '', ], - 'required' => false, - ], - 'NotifyStartTime' => [ - 'title' => '推送起始时间', - 'description' => '推送起始时间', - 'type' => 'string', - 'required' => true, - 'example' => '2024-11-16 00:00:00', - ], - 'NotifyEndTime' => [ - 'title' => '推送结束时间', - 'description' => '推送结束时间', - 'type' => 'string', 'required' => true, - 'example' => '2024-11-27 13:47:00', - ], - 'ChannelTypeList' => [ - 'title' => '推送渠道类型列表', - 'description' => '推送渠道类型列表', - 'type' => 'array', - 'items' => [ - 'title' => '推送渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'description' => '推送渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'type' => 'string', - 'required' => false, - 'example' => 'SMS', - ], - 'required' => false, - ], - 'CustomChannelIdList' => [ - 'title' => '自定义消息渠道id列表', - 'description' => '自定义消息渠道id列表', - 'type' => 'array', - 'items' => [ - 'title' => '自定义消息渠道id', - 'description' => '自定义消息渠道id', - 'type' => 'string', - 'required' => false, - 'example' => '12345', - ], - 'required' => false, ], - 'StatusList' => [ - 'title' => '推送状态列表', - 'description' => '推送状态列表', - 'type' => 'array', - 'items' => [ - 'title' => '推送状态:'."\n" - .'- SUCCESS:发送成功'."\n" - .'- FAILED:发送失败'."\n" - .'- SENDING:发送中', - 'description' => '推送状态:'."\n" - .'- SUCCESS:发送成功'."\n" - .'- FAILED:发送失败'."\n" - .'- SENDING:发送中', - 'type' => 'string', - 'required' => false, - 'example' => 'SUCCESS', - ], - 'required' => false, - ], - 'AlertReasonList' => [ - 'title' => '告警原因列表', - 'description' => '告警原因列表', + 'Rules' => [ + 'title' => '规则', + 'description' => '规则', 'type' => 'array', 'items' => [ - 'title' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'description' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'required' => false, - 'example' => 'VDM_BATCH_FINISH', - ], - 'required' => false, - ], - 'SourceSystem' => [ - 'title' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'description' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'type' => 'string', - 'required' => true, - 'example' => 'ALL', - ], - 'MonitoredItemIdList' => [ - 'title' => '监控项id列表', - 'description' => '监控项id列表', - 'type' => 'array', - 'items' => [ - 'title' => '监控项id', - 'description' => '监控项id', - 'type' => 'string', - 'required' => false, - 'example' => '12345', + 'type' => 'object', + 'properties' => [ + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'required' => true, 'example' => '管控业务ID大于100'], + 'ScopeType' => [ + 'title' => '规则范围类型', + 'description' => '规则范围类型', + 'type' => 'string', + 'required' => true, + 'example' => 'SELECT_COLUMN', + 'enum' => ['ALL_COLUMN', 'SELECT_COLUMN'], + ], + 'IsDelete' => [ + 'title' => '是否删除', + 'description' => '是否删除', + 'type' => 'boolean', + 'required' => false, + 'example' => '0', + 'enum' => ['0', '1'], + ], + 'Status' => [ + 'title' => '规则状态', + 'description' => '规则状态', + 'type' => 'integer', + 'format' => 'int32', + 'required' => true, + 'example' => '1', + 'enum' => ['0', '1'], + ], + 'Expressions' => [ + 'title' => '规则表达式', + 'description' => '规则表达式', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + 'Values' => [ + 'title' => '表达式操作值', + 'description' => '表达式操作值', + 'type' => 'array', + 'items' => ['description' => '表达式操作值', 'type' => 'string', 'required' => true, 'example' => '123'], + 'required' => true, + ], + 'Type' => [ + 'title' => '表达式类型', + 'description' => '表达式类型', + 'type' => 'string', + 'required' => true, + 'example' => 'EXPRESSION', + 'enum' => ['EXPRESSION', 'RELATION'], + ], + 'SubConditions' => [ + 'title' => '子表达式', + 'description' => '子表达式', + 'type' => 'array', + 'items' => ['description' => '子表达式,同Expressions', 'type' => 'any', 'required' => true, 'example' => '同Expressions'], + 'required' => true, + ], + 'Operator' => [ + 'title' => '表达式操作符号', + 'description' => '表达式操作符号', + 'type' => 'string', + 'required' => true, + 'example' => 'OR', + 'enum' => ['EQUAL', 'NOT_EQUAL', 'IN', 'NOT_IN', 'LIKE', 'NOT_LIKE', 'GT', 'LT', 'GE', 'LE', 'OR', 'AND'], + ], + ], + 'required' => true, + 'description' => '', + ], + 'required' => true, + ], + 'UserMappingList' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountType' => [ + 'title' => '规则绑定账号类型', + 'description' => '规则绑定账号类型', + 'type' => 'string', + 'required' => true, + 'enumValueTitles' => ['PERSONAL' => 'PERSONAL', 'USER_GROUP' => 'USER_GROUP', 'PRODUCE' => 'PRODUCE'], + 'example' => 'PERSONAL', + ], + 'Accounts' => [ + 'title' => '规则绑定账号', + 'description' => '规则绑定账号', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'AccountId' => ['title' => '规则绑定账号ID', 'description' => '规则绑定账号ID', 'type' => 'string', 'required' => true, 'example' => '30001011'], + ], + 'required' => true, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, + 'description' => '', + ], + 'required' => false, + ], + ], + 'required' => true, + 'description' => '', ], 'required' => false, ], - 'Keyword' => [ - 'title' => '关键字查询', - 'description' => '关键字查询', - 'type' => 'string', + 'Tables' => [ + 'title' => '相关表', + 'description' => '相关表', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'MappingColumnName' => ['title' => '映射字段名称', 'description' => '映射字段名称', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + 'ResourceId' => ['title' => '表GUID', 'description' => '表GUID', 'type' => 'string', 'required' => true, 'example' => 'odps.300199897.project_name.table_name'."\n"], + 'ColumnName' => ['title' => '表字段', 'description' => '表字段', 'type' => 'string', 'required' => true, 'example' => 'business_id'], + ], + 'required' => true, + 'description' => '', + ], 'required' => false, - 'example' => 'test', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '一页数据条数', - 'description' => '一页数据条数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '10', ], ], - 'required' => false, + 'required' => true, ], ], ], @@ -62471,767 +36589,277 @@ 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'True', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ListResult' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总数', - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'Data' => [ - 'title' => '推送记录列表', - 'description' => '推送记录列表', - 'type' => 'array', - 'items' => [ - 'title' => '推送记录信息', - 'description' => '推送记录信息', - 'type' => 'object', - 'properties' => [ - 'AlertEventId' => [ - 'title' => '告警事件id', - 'description' => '告警事件id', - 'type' => 'string', - 'example' => '12345', - ], - 'AlertObject' => [ - 'title' => '告警对象', - 'description' => '告警对象', - 'type' => 'object', - 'properties' => [ - 'SourceSystemType' => [ - 'title' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'description' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH', - ], - 'Name' => [ - 'title' => '对象名称', - 'description' => '对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'description' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH_SHELL', - ], - ], - ], - 'AlertReason' => [ - 'title' => '告警原因', - 'description' => '告警原因', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'description' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH_FINISH', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '20241125', - ], - 'UniqueKey' => [ - 'title' => '唯一标识', - 'description' => '唯一标识', - 'type' => 'string', - 'example' => '123456', - ], - 'AlertReasonParamList' => [ - 'title' => '告警参数列表', - 'description' => '告警参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警参数', - 'description' => '告警参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '告警参数名', - 'description' => '告警参数名', - 'type' => 'string', - 'example' => 'biz_date', - ], - 'Value' => [ - 'title' => '告警参数值', - 'description' => '告警参数值', - 'type' => 'string', - 'example' => '2024-11-24 00:00:00', - ], - ], - ], - ], - ], - ], - 'AlertReceiver' => [ - 'title' => '接收人信息', - 'description' => '接收人信息', - 'type' => 'object', - 'properties' => [ - 'AlertChannelType' => [ - 'title' => '推送渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'description' => '推送渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'type' => 'string', - 'example' => 'SMS', - ], - 'CustomAlertChannelId' => [ - 'title' => '自定义消息消息渠道id', - 'description' => '自定义消息消息渠道id', - 'type' => 'string', - 'example' => '123456', - ], - 'Type' => [ - 'title' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'description' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'type' => 'string', - 'example' => 'OWNER', - ], - 'User' => [ - 'title' => '用户信息', - 'description' => '用户信息', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '告警接收人姓名', - 'description' => '告警接收人姓名', - 'type' => 'string', - 'example' => 'ADMIN', - ], - ], - ], - 'OnCallTableId' => [ - 'title' => '值班表id', - 'description' => '值班表id', - 'type' => 'string', - 'example' => '12345', - ], - 'OnCallTableName' => [ - 'title' => '值班表名称', - 'description' => '值班表名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'AlertSend' => [ - 'title' => '告警发送信息', - 'description' => '告警发送信息', - 'type' => 'object', - 'properties' => [ - 'Status' => [ - 'title' => '推送状态:'."\n" - .'- SUCCESS:发送成功'."\n" - .'- FAILE:发送失败'."\n" - .'- SENDING:发送中', - 'description' => '推送状态:'."\n" - .'- SUCCESS:发送成功'."\n" - .'- FAILE:发送失败'."\n" - .'- SENDING:发送中', - 'type' => 'string', - 'example' => 'SUCCESS', - ], - 'FailReason' => [ - 'title' => '告警原因', - 'description' => '告警原因', - 'type' => 'string', - 'example' => '不合法', - ], - 'SendTime' => [ - 'title' => '推送时间', - 'description' => '推送时间', - 'type' => 'string', - 'example' => '2024-11-25 10:02:47', - ], - 'SendContent' => [ - 'title' => '推送内容', - 'description' => '推送内容', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['description' => '更新结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '更新行级权限', + 'extraInfo' => '接口上线版本:v5.1.0', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"AlertEventId\\": \\"12345\\",\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"VDM_BATCH\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"VDM_BATCH_SHELL\\"\\n },\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"20241125\\",\\n \\"UniqueKey\\": \\"123456\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-24 00:00:00\\"\\n }\\n ]\\n },\\n \\"AlertReceiver\\": {\\n \\"AlertChannelType\\": \\"SMS\\",\\n \\"CustomAlertChannelId\\": \\"123456\\",\\n \\"Type\\": \\"OWNER\\",\\n \\"User\\": {\\n \\"Name\\": \\"ADMIN\\"\\n },\\n \\"OnCallTableId\\": \\"12345\\",\\n \\"OnCallTableName\\": \\"test\\"\\n },\\n \\"AlertSend\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"FailReason\\": \\"不合法\\",\\n \\"SendTime\\": \\"2024-11-25 10:02:47\\",\\n \\"SendContent\\": \\"test\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询推送记录列表', + 'ramActions' => [], ], - 'ListAlertEvents' => [ - 'summary' => '根据条件查询多个告警事件。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateSecurityClassify' => [ + 'summary' => '更新数据分类。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'UserIdList' => [ - 'title' => '告警接口人id列表', - 'description' => '告警接口人id列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警接口人id', - 'description' => '告警接口人id', - 'type' => 'string', - 'required' => false, - 'example' => '12345', - ], - 'required' => false, - ], - 'AlertStartTime' => [ - 'title' => '告警起始日期', - 'description' => '告警起始日期', - 'type' => 'string', - 'required' => true, - 'example' => '2024-11-16 00:00:00', - ], - 'AlertEndTime' => [ - 'title' => '告警结束日期', - 'description' => '告警结束日期', - 'type' => 'string', - 'required' => true, - 'example' => '2024-11-27 13:47:00', - ], - 'StatusList' => [ - 'title' => '告警状态列表', - 'description' => '告警状态列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'description' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'type' => 'string', - 'required' => false, - 'example' => 'FINISH', - ], - 'required' => false, - ], - 'ProjectNameList' => [ - 'title' => '所属项目列表', - 'description' => '所属项目列表', - 'type' => 'array', - 'items' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'string', - 'required' => false, - 'example' => 'project_1', - ], - 'required' => false, - ], - 'BizNameList' => [ - 'title' => '业务板块列表', - 'description' => '业务板块列表', + 'Id' => ['title' => '分类ID,不传递时按照分类名称+分类父路径匹配分类进行更新', 'description' => '分类ID,不传递时按照分类名称+分类父路径匹配分类进行更新', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '分类名称', 'description' => '分类名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'ParentPath' => ['title' => '分类父路径', 'description' => '分类父路径', 'type' => 'string', 'required' => false, 'example' => '/a/b/'], + 'Abbreviation' => ['title' => '分类简称', 'description' => '分类简称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Description' => ['title' => '分类描述', 'description' => '分类描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'LevelName' => ['title' => '数据分级名称', 'description' => '数据分级名称', 'type' => 'string', 'required' => true, 'example' => 'L2'], + 'FeatureNameList' => [ + 'title' => '特征名称', + 'description' => '特征名称', 'type' => 'array', - 'items' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'required' => false, - 'example' => 'biz_1', - ], + 'items' => ['title' => '特征名称', 'description' => '特征名称', 'type' => 'string', 'required' => false, 'example' => '行业'], 'required' => false, ], - 'AlertObjectTypeList' => [ - 'title' => '告警对象类型列表', - 'description' => '告警对象类型列表', + 'Priority' => ['title' => '优先级,默认: 5', 'description' => '优先级,默认: 5', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'], + 'AdvancedConditionList' => [ + 'title' => '高级配置', + 'description' => '高级配置', 'type' => 'array', 'items' => [ - 'title' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'description' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'type' => 'string', + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'ParentId' => ['title' => '特征条件父节点', 'description' => '特征条件父节点', 'type' => 'string', 'required' => false, 'example' => '123'], + 'Id' => ['title' => '特征条件节点id,由业务随机生成且确保唯一', 'description' => '特征条件节点id,由业务随机生成且确保唯一', 'type' => 'string', 'required' => true, 'example' => '234'], + 'Relation' => ['title' => '条件关系: EXPRESSION 表达式、RELATION 关系', 'description' => '条件关系: EXPRESSION 表达式、RELATION 关系', 'type' => 'string', 'required' => true, 'example' => 'EXPRESSION'], + 'Property' => ['title' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', 'description' => '特征属性: TABLE_NAME 表名称、TABLE_DESC 表描述、FIELD_CONTENT 字段内容、FIELD_NAME 字段名称、FIELD_DESC 字段描述、FIELD_TYPE 字段类型', 'type' => 'string', 'required' => false, 'example' => 'TABLE_NAME'], + 'Operate' => ['title' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', 'description' => '条件操作: AND、OR、BUILT_IN_EXPRESSION 内置表达式、IGNORE_CASE_EXPRESSION 正则 - 大小写兼容、EXPRESSION 正则表达式、NOT_BELONG 不属于、CONTAINS 包含、NOT_CONTAINS 不包含、EQUAL、NOT_EQUAL', 'type' => 'string', 'required' => true, 'example' => 'AND'], + 'ValueList' => [ + 'title' => '条件取值', + 'description' => '条件取值', + 'type' => 'array', + 'items' => ['title' => '条件取值', 'description' => '条件取值', 'type' => 'string', 'required' => false, 'example' => 'abc'], + 'required' => false, + ], + 'OptionList' => [ + 'title' => '额外属性,如字段内容', + 'description' => '额外属性,如字段内容', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + ], 'required' => false, - 'example' => 'VDM_BATCH_PYTHON37', + 'description' => '', ], 'required' => false, ], - 'AlertReasonList' => [ - 'title' => '告警原因列表', - 'description' => '告警原因列表', + 'Status' => ['title' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'description' => '分类生效状态: ENABLE 启用、DISABLE 禁用', 'type' => 'string', 'required' => false, 'example' => 'ENABLE'], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '数据分类ID', 'description' => '数据分类ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '更新数据分类', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateSecurityClassifyCatalog' => [ + 'summary' => '更新数据分类目录。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'Path' => ['title' => '目录的原始完整路径', 'description' => '目录的原始完整路径', 'type' => 'string', 'required' => true, 'example' => '/d1/d2/'], + 'Name' => ['title' => '分类目录名称', 'description' => '分类目录名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'ParentPath' => ['title' => '分类父目录完整路径,默认/', 'description' => '分类父目录完整路径,默认/', 'type' => 'string', 'required' => false, 'example' => '/d1/'], + 'OwnerList' => [ + 'title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', + 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'type' => 'array', - 'items' => [ - 'title' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'description' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'required' => false, - 'example' => 'VDM_BATCH_FINISH', - ], + 'items' => ['title' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'description' => '管理员ID列表,仅当所属父目录为根目录时填写有效', 'type' => 'string', 'required' => false, 'example' => '30001011'], 'required' => false, ], - 'SourceSystem' => [ - 'title' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'description' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'type' => 'string', - 'required' => true, - 'example' => 'ALL', - ], - 'MonitoredItemIdList' => [ - 'title' => '监控项id列表', - 'description' => '监控项id列表', + 'VisibleType' => ['title' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', 'description' => '分类可见范围:PUBLIC 公开、PRIVATE 仅管理员可查看,默认PUBLIC;仅当所属父目录为根目录时填写有效', 'type' => 'string', 'required' => false, 'example' => 'PUBLIC'], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '更新后的目录的完整路径', 'description' => '更新后的目录的完整路径', 'type' => 'string', 'example' => '/d1/d3/'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": \\"/d1/d3/\\"\\n}","type":"json"}]', + 'title' => '更新数据分类目录', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateSecurityIdentifyResultStatus' => [ + 'summary' => '更新安全识别结果的生效状态。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'Enable' => ['title' => '是否生效', 'description' => '是否生效', 'type' => 'boolean', 'required' => true], + 'IdentifyResultIdList' => [ + 'title' => '识别结果ID列表', + 'description' => '识别结果ID列表', 'type' => 'array', - 'items' => [ - 'title' => '监控项id', - 'description' => '监控项id', - 'type' => 'string', - 'required' => false, - 'example' => '12345', - ], - 'required' => false, - ], - 'Keyword' => [ - 'title' => '关键字查询', - 'description' => '关键字查询', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'Page' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '一页数据条数', - 'description' => '一页数据条数', - 'type' => 'integer', - 'format' => 'int32', + 'items' => ['title' => '识别结果ID列表', 'description' => '识别结果ID列表', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], 'required' => true, - 'example' => '10', ], ], 'required' => true, @@ -63241,1046 +36869,320 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'True', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'ListResult' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总数', - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'Data' => [ - 'title' => '告警事件查询结果', - 'description' => '告警事件查询结果', - 'type' => 'array', - 'items' => [ - 'title' => '告警事件信息', - 'description' => '告警事件信息', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '告警事件id', - 'description' => '告警事件id', - 'type' => 'string', - 'example' => '12345', - ], - 'AlertObject' => [ - 'title' => '告警对象', - 'description' => '告警对象', - 'type' => 'object', - 'properties' => [ - 'SourceSystemType' => [ - 'title' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'description' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH', - ], - 'Name' => [ - 'title' => '告警对象名称', - 'description' => '告警对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'description' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'STREAM_TASK', - ], - ], - ], - 'LatestAlertTime' => [ - 'title' => '最新告警时间', - 'description' => '最新告警时间', - 'type' => 'string', - 'example' => '2024-11-25 10:02:47', - ], - 'FirstAlertTime' => [ - 'title' => '首次告警时间', - 'description' => '首次告警时间', - 'type' => 'string', - 'example' => '2024-11-25 10:02:47', - ], - 'AlertReceiverList' => [ - 'title' => '告警接收人列表', - 'description' => '告警接收人列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警接收人', - 'description' => '告警接收人', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'description' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'type' => 'string', - 'example' => 'OWNER', - ], - 'AlertChannelTypeList' => [ - 'title' => '告警渠道类型列表', - 'description' => '告警渠道类型列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'description' => '告警渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'type' => 'string', - 'example' => 'SMS', - ], - ], - 'CustomAlertChannelIdList' => [ - 'title' => '自定义告警渠道id列表', - 'description' => '自定义告警渠道id列表', - 'type' => 'array', - 'items' => [ - 'title' => '自定义告警渠道id', - 'description' => '自定义告警渠道id', - 'type' => 'string', - 'example' => '12345', - ], - ], - 'UserList' => [ - 'title' => '告警用户列表', - 'description' => '告警用户列表', - 'type' => 'array', - 'items' => [ - 'title' => '用户信息', - 'description' => '用户信息', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'ADMIN', - ], - ], - ], - ], - 'OnCallTableName' => [ - 'title' => '值班表名称', - 'description' => '值班表名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'AlertReason' => [ - 'title' => '告警原因', - 'description' => '告警原因', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'description' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH_FINISH', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2024-11-25 10:02:47', - ], - 'UniqueKey' => [ - 'title' => '唯一标识', - 'description' => '唯一标识', - 'type' => 'string', - 'example' => 't_6340134343289405440_20241124_639873707610', - ], - 'AlertReasonParamList' => [ - 'title' => '告警原因参数列表', - 'description' => '告警原因参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警原因参数', - 'description' => '告警原因参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '告警原因参数名', - 'description' => '告警原因参数名', - 'type' => 'string', - 'example' => 'biz_date', - ], - 'Value' => [ - 'title' => '告警原因参数值', - 'description' => '告警原因参数值', - 'type' => 'string', - 'example' => '2024-11-24 00:00:00', - ], - ], - ], - ], - ], - ], - 'BelongProject' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'object', - 'properties' => [ - 'ProjectName' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'string', - 'example' => 'project_1', - ], - 'BizName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'biz_1', - ], - ], - ], - 'Status' => [ - 'title' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'description' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'type' => 'string', - 'example' => 'FINISH', - ], - 'AlertFrequency' => [ - 'title' => '告警频率', - 'description' => '告警频率:'."\n" - .'- ONCE:即时告警'."\n" - .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', - 'type' => 'string', - 'example' => 'ONCE', - ], - 'TotalAlertTimes' => [ - 'title' => '告警次数', - 'description' => '告警次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DoNotDisturbEndTime' => [ - 'title' => '消息免打扰到期时间', - 'description' => '消息免打扰到期时间', - 'type' => 'string', - 'example' => '2024-11-25 00:00:00', - ], - 'UrlConfig' => [ - 'title' => 'Url信息', - 'description' => 'Url信息', - 'type' => 'object', - 'properties' => [ - 'ObjectUrl' => [ - 'title' => '告警对象页面url', - 'description' => '告警对象页面url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test1', - ], - 'LogUrl' => [ - 'title' => '日志页面url', - 'description' => '日志页面url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test2', - ], - 'AlertConfigUrl' => [ - 'title' => '告警配置页面url', - 'description' => '告警配置页面url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test3', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '更新结果', 'description' => '更新结果', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '更新安全识别结果的生效状态', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 5,\\n \\"Data\\": [\\n {\\n \\"Id\\": \\"12345\\",\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"VDM_BATCH\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"STREAM_TASK\\"\\n },\\n \\"LatestAlertTime\\": \\"2024-11-25 10:02:47\\",\\n \\"FirstAlertTime\\": \\"2024-11-25 10:02:47\\",\\n \\"AlertReceiverList\\": [\\n {\\n \\"Type\\": \\"OWNER\\",\\n \\"AlertChannelTypeList\\": [\\n \\"SMS\\"\\n ],\\n \\"CustomAlertChannelIdList\\": [\\n \\"12345\\"\\n ],\\n \\"UserList\\": [\\n {\\n \\"Name\\": \\"ADMIN\\"\\n }\\n ],\\n \\"OnCallTableName\\": \\"test\\"\\n }\\n ],\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"2024-11-25 10:02:47\\",\\n \\"UniqueKey\\": \\"t_6340134343289405440_20241124_639873707610\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-24 00:00:00\\"\\n }\\n ]\\n },\\n \\"BelongProject\\": {\\n \\"ProjectName\\": \\"project_1\\",\\n \\"BizName\\": \\"biz_1\\"\\n },\\n \\"Status\\": \\"FINISH\\",\\n \\"AlertFrequency\\": \\"ONCE\\",\\n \\"TotalAlertTimes\\": 1,\\n \\"DoNotDisturbEndTime\\": \\"2024-11-25 00:00:00\\",\\n \\"UrlConfig\\": {\\n \\"ObjectUrl\\": \\"https://dataphin.com/ops/test1\\",\\n \\"LogUrl\\": \\"https://dataphin.com/ops/test2\\",\\n \\"AlertConfigUrl\\": \\"https://dataphin.com/ops/test3\\"\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询告警事件列表', + 'ramActions' => [], ], - 'GetAlertEvent' => [ - 'summary' => '获取告警事件详情。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateSecurityLevel' => [ + 'summary' => '更新数据分级。'."\n" + .'上线版本:v5.4.2 。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'Id', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '告警事件Id', - 'description' => '告警事件Id', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'Name' => ['title' => '分级名称', 'description' => '分级名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Index' => ['title' => '分级顺序, 不传递时将按照分级名称匹配', 'description' => '分级顺序, 不传递时将按照分级名称匹配', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Description' => ['title' => '分级描述', 'description' => '分级描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], 'required' => true, - 'example' => '12345', ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID', - 'description' => '请求标识ID', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'True', - ], - 'HttpStatusCode' => [ - 'title' => '后端响应HttpCode', - 'description' => '后端响应HttpCode', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码, OK表示请求正常', - 'description' => '请求错误码, OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => 'successful', - ], - 'AlertEventInfo' => [ - 'title' => '请求结果', - 'description' => '请求结果', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '更新数据分级', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [], + ], + 'UpdateStandard' => [ + 'summary' => '更新标准。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', + 'schema' => [ + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '码表', 'description' => '码表', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'StandardStatus' => ['title' => '标准的状态', 'description' => '标准的状态', 'type' => 'string', 'required' => true, 'example' => 'draft'], + 'StandardTemplateReference' => [ + 'title' => '标准所属的标准模板', + 'description' => '标准所属的标准模板', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => '告警事件id', - 'description' => '告警事件id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'AlertObject' => [ - 'title' => '告警对象', - 'description' => '告警对象', - 'type' => 'object', - 'properties' => [ - 'SourceSystemType' => [ - 'title' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'description' => '来源系统:'."\n" - ."\n" - .'- ALL:所有'."\n" - .'- DQE:数据质量'."\n" - .'- OS:数据服务'."\n" - .'- STREAM:实时计算'."\n" - .'- VDM_BATCH:离线计算'."\n" - .'- SOP:运维平台'."\n" - .'- REAL_TIME_PIPELINE:实时集成'."\n" - .'- KGB:基线监控'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'ALL', - ], - 'Name' => [ - 'title' => '告警对象名称', - 'description' => '告警对象名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Type' => [ - 'title' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'description' => '告警对象类型:'."\n" - .'- OS_API:API接口'."\n" - .'- OS_APPLICATION_SERVICE:服务应用'."\n" - .'- STREAM_TASK:实时计算'."\n" - .'- REAL_TIME_PIPELINE_TASK:实时集成'."\n" - .'- VDM_BATCH_SHELL:SHELL'."\n" - .'- VDM_BATCH_PYTHON:PYTHON'."\n" - .'- VDM_BATCH_DATAX:DATAX'."\n" - .'- VDM_BATCH_DLINK:DLINK'."\n" - .'- VDM_BATCH_VIRTUAL:VIRTUAL'."\n" - .'- VDM_BATCH_PYTHON37:PYTHON37'."\n" - .'- VDM_BATCH_PYTHON311:PYTHON311'."\n" - .'- VDM_BATCH_MAX_COMPUTE_SQL:MAXCOMPUTE_SQL'."\n" - .'- VDM_BATCH_MAX_COMPUTE_MR:MAXCOMPUTE_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_MAX_COMPUTE:SPARK_JAR_ON_MAX_COMPUTE'."\n" - .'- VDM_BATCH_HIVE_SQL:HIVE_SQL'."\n" - .'- VDM_BATCH_HADOOP_MR:HADOOP_MR'."\n" - .'- VDM_BATCH_SPARK_JAR_ON_HIVE:SPARK_JAR_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL_ON_HIVE:SPARK_SQL_ON_HIVE'."\n" - .'- VDM_BATCH_SPARK_SQL:VDM_BATCH_SPARK_SQL'."\n" - .'- DQE_LOGICAL_TABLE:逻辑表'."\n" - .'- DQE_PHYSICAL_TABLE:物理表'."\n" - .'- DQE_REALTIME_TABLE:实时元表'."\n" - .'- DQE_DATA_SOURCE:数据源'."\n" - .'- DQE_INDEX:指标'."\n" - .'- QD_DECISION_INVOKE:QD决策调用'."\n" - .'- BASELINE:基线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH_PYTHON37', - ], - ], - ], - 'LatestAlertTime' => [ - 'title' => '最新告警时间', - 'description' => '最新告警时间', - 'type' => 'string', - 'example' => '2024-11-05 16:19:33', - ], - 'FirstAlertTime' => [ - 'title' => '首次告警时间', - 'description' => '首次告警时间', - 'type' => 'string', - 'example' => '2024-11-05 16:19:33', - ], - 'AlertReceiverList' => [ - 'title' => '告警接收人列表', - 'description' => '告警接收人列表', + 'Id' => ['title' => '标准模板ID', 'description' => '标准模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'Version' => ['title' => '标准模板版本号, 默认去最新版本', 'description' => '标准模板版本号, 默认去最新版本', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'AttributeValueList' => [ + 'title' => '引用模板下属性列表相应属性值, 若为空则使用默认值', + 'description' => '引用模板下属性列表相应属性值, 若为空则使用默认值', 'type' => 'array', 'items' => [ - 'title' => '告警接收人', - 'description' => '告警接收人', + 'title' => '', 'type' => 'object', 'properties' => [ - 'Type' => [ - 'title' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'description' => '告警接收人类型:'."\n" - .'- ON_CALL_TABLE:值班表'."\n" - .'- USER_DEFINED:自定义用户'."\n" - .'- OWNER:负责人', - 'type' => 'string', - 'example' => 'OWNER', - ], - 'AlertChannelTypeList' => [ - 'title' => '告警渠道类型列表', - 'description' => '告警渠道类型列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'description' => '告警渠道类型:'."\n" - .'- VOICE:电话'."\n" - .'- SMS:短信'."\n" - .'- MAIL:邮件'."\n" - .'- DINGTALK_ROBOT:邮件'."\n" - .'- DINGDING:钉钉工作通知'."\n" - .'- CUSTOM:自定义消息渠道'."\n" - .'- WECHAT:企业微信'."\n" - .'- FEISHU:飞书'."\n" - .'- SILENCE:不发送', - 'type' => 'string', - 'example' => 'SMS', - ], + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1011'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + ], + 'required' => true, + ], + 'StandardSetReference' => [ + 'title' => '标准集的引用, 表示当前标准所属的标准集', + 'description' => '标准集的引用, 表示当前标准所属的标准集', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + ], + 'required' => true, + ], + 'EffectiveTimeConfig' => [ + 'title' => '生效时间配置', + 'description' => '生效时间配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'description' => '生效时间类型: FOREVER 永久、TIME_PERIOD 时间段', 'type' => 'string', 'required' => true, 'example' => 'TIME_PERIOD'], + 'StartTime' => ['title' => '开始生效时间', 'description' => '开始生效时间', 'type' => 'string', 'required' => false, 'example' => '2025-06-30 00:00:00'], + 'EndTime' => ['title' => '结束生效时间', 'description' => '结束生效时间', 'type' => 'string', 'required' => false, 'example' => '2025-12-30 00:00:00'], + ], + 'required' => false, + ], + 'Description' => ['title' => '描述信息', 'description' => '描述信息', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Owner' => ['title' => '负责人,不传为当前用户', 'description' => '负责人,不传为当前用户', 'type' => 'string', 'required' => false, 'example' => '300000913'], + 'StandardGeneralMonitorConfig' => [ + 'title' => '标准监控配置', + 'description' => '标准监控配置', + 'type' => 'object', + 'properties' => [ + 'StandardMonitorConfigList' => [ + 'title' => '标准监控配置列表', + 'description' => '标准监控配置列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'description' => '监控配置Id:若为空会创建新的监控配置, 若传入已有的监控配置Id会更新相应的监控配置', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'RuleName' => ['title' => '规则名称', 'description' => '规则名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Description' => ['title' => '规则描述', 'description' => '规则描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Type' => ['title' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控类型:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'required' => true, 'example' => 'METADATA'], + 'MonitorFrom' => ['title' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'description' => '添加方式:BY_USER 手动添加、BY_SYSTEM_ATTRIBUTE 系统属性预置', 'type' => 'string', 'required' => true, 'example' => 'BY_SYSTEM_ATTRIBUTE'], + 'AttributeId' => ['title' => '关联的属性Id', 'description' => '关联的属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '112'], + 'AttributeName' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'required' => false, 'example' => 'teset'], + 'AttributeMonitorConfig' => [ + 'title' => '关联属性的监控配置', + 'description' => '关联属性的监控配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'description' => '监控方式:METADATA 元数据监控、QUALITY 数据质量监控', 'type' => 'string', 'required' => true, 'example' => 'METADATA'], + 'ColumnName' => ['title' => '检查的字段', 'description' => '检查的字段', 'type' => 'string', 'required' => false, 'example' => 'column1'], + 'IsCaseSensitive' => ['title' => '大小写是否敏感', 'description' => '大小写是否敏感', 'type' => 'boolean', 'required' => true], + ], + 'required' => false, ], - 'CustomAlertChannelIdList' => [ - 'title' => '自定义告警渠道id列表', - 'description' => '自定义告警渠道id列表', - 'type' => 'array', - 'items' => [ - 'title' => '自定义告警渠道id', - 'description' => '自定义告警渠道id', - 'type' => 'string', - 'example' => '12345', + 'RuleSubType' => ['title' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'description' => '规则子类型:BY_ATTRIBUTE 根据属性配置、CUSTOMIZED 自定义配置,当监控类型为 QUALITY 时必填', 'type' => 'string', 'required' => false, 'example' => 'CUSTOMIZED'], + 'QualityRuleTemplate' => [ + 'title' => '规则模板, 当监控类型为 QUALITY 时必填', + 'description' => '规则模板, 当监控类型为 QUALITY 时必填', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '模板Id', 'description' => '模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Type' => ['title' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'description' => '模板来源: FROM_SYSTEM 系统模板、CUSTOMIZED 自定义模板', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], ], + 'required' => false, ], - 'UserList' => [ - 'title' => '告警用户列表', - 'description' => '告警用户列表', + 'RuleConfigList' => [ + 'title' => '规则配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则配置, 当监控类型为 QUALITY 时必填', 'type' => 'array', 'items' => [ - 'title' => '用户信息', - 'description' => '用户信息', + 'title' => '', 'type' => 'object', 'properties' => [ - 'Name' => [ - 'title' => '用户名', - 'description' => '用户名', - 'type' => 'string', - 'example' => 'Admin', - ], + 'Key' => ['title' => '配置项', 'description' => '配置项', 'type' => 'string', 'required' => true, 'example' => 'k1'], + 'Value' => ['title' => '配置项值', 'description' => '配置项值', 'type' => 'string', 'required' => true, 'example' => 'v1'], ], + 'required' => false, + 'description' => '', ], + 'required' => false, ], - 'OnCallTableName' => [ - 'title' => '值班表名称', - 'description' => '值班表名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'AlertReason' => [ - 'title' => '告警原因', - 'description' => '告警原因', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'description' => '告警原因类型:'."\n" - .'- DQE_COLUMN:字段规则异'."\n" - .'- DQE_DATA_SOURCE:数据源规则异常'."\n" - .'- DQE_CUSTOMIZE:自定义规则异常'."\n" - .'- DQE_TABLE:表规则异常'."\n" - .'- DQE_REALTIME_TABLE:实时表规则异常'."\n" - .'- DQE_INDEX:指标规则异常'."\n" - .'- OS_AVG_RESPONSE:平均响应时间异常'."\n" - .'- OS_CALL_TIMES:调用次数异常'."\n" - .'- OS_ERROR_RATE:错误率异常'."\n" - .'- OS_OFFLINE:Offline百分比异常'."\n" - .'- STREAM_BIZ_DELAY:业务延迟过高'."\n" - .'- STREAM_DATA_RETENTION:数据滞留超过配置'."\n" - .'- STREAM_MORE_THAN_FAILURE:失败频率超过配置'."\n" - .'- STREAM_TPS_OUT_RANGE:TPS超过范围'."\n" - .'- STREAM_CHECKPOINT_FAILURE:checkpoint失败超过配置'."\n" - .'- STREAM_BACKPRESSURE:反压持续时间超过配置'."\n" - .'- STREAM_JOB_FAILURE:运行失败'."\n" - .'- VDM_BATCH_ERROR:出错'."\n" - .'- VDM_BATCH_FINISH:完成'."\n" - .'- VDM_BATCH_TIME_OUT:运行超时'."\n" - .'- VDM_BATCH_UNDONE:未完成'."\n" - .'- VDM_BATCH_LOGIC_DATA_DELAY:数据延迟'."\n" - .'- QD_DECISION_CALL_TIMES:决策调用次数异常'."\n" - .'- QD_DECISION_MAX_RESPONSE:最大响应时间异常'."\n" - .'- QD_DECISION_ERROR_RATE:错误率异常'."\n" - .'- QD_DECISION_PARAM_COUNT:决策参数统计次数异常'."\n" - .'- QD_DECISION_PARAM_PERCENTAGE:决策参数统计百分比异常'."\n" - .'- QD_DECISION_PARAM_SUM:决策参数求和异常'."\n" - .'- QD_DECISION_PARAM_AVG:决策参数平均值异常'."\n" - .'- LOGICAL_INSTANCE_GENERATION:逻辑实例生成监控'."\n" - .'- KGB_TASK_ERROR:基线任务出错'."\n" - .'- KGB_TASK_SLOW_DOWN:基线任务变慢'."\n" - .'- KGB_EARLY_WARNING:基线预警'."\n" - .'- KGB_BROKEN_LINE:基线破线'."\n" - ."\n" - .'等', - 'type' => 'string', - 'example' => 'VDM_BATCH_FINISH', - ], - 'BizDate' => [ - 'title' => '业务日期', - 'description' => '业务日期', - 'type' => 'string', - 'example' => '2024-11-05 16:19:32', - ], - 'UniqueKey' => [ - 'title' => '唯一标识', - 'description' => '唯一标识', - 'type' => 'string', - 'example' => 't_6340131422711644160_20241104_6340142', - ], - 'AlertReasonParamList' => [ - 'title' => '告警原因参数列表', - 'description' => '告警原因参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '告警原因参数', - 'description' => '告警原因参数', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '告警原因参数名', - 'description' => '告警原因参数名', - 'type' => 'string', - 'example' => 'biz_date', - ], - 'Value' => [ - 'title' => '告警原因参数值', - 'description' => '告警原因参数值', - 'type' => 'string', - 'example' => '2024-11-04 00:00:00', + 'RuleValidateConfigList' => [ + 'title' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'description' => '规则校验配置, 当监控类型为 QUALITY 时必填', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '校验配置Id, 由业务随机生成且确保唯一', 'description' => '校验配置Id, 由业务随机生成且确保唯一', 'type' => 'string', 'required' => true, 'example' => 'abc'], + 'ParentId' => ['title' => '父校验配置Id, 父规则校验类型只能是RELATION', 'description' => '父校验配置Id, 父规则校验类型只能是RELATION', 'type' => 'string', 'required' => false, 'example' => 'a'], + 'Type' => ['title' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'description' => '规则校验类型: RELATION 关系、EXPRESSION 表达式', 'type' => 'string', 'required' => true, 'example' => 'RELATION'], + 'Operator' => ['title' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'description' => '如果校验类型是 EXPRESSION: EQUAL 等于、NOT_EQUAL 不等于、LARGER 大于、LARGE_OR_EQUAL 大于或等于、SMALLER 小于、SMALLER_OR_EQUAL 小于或等于; 如果校验类型是 RELATION: AND 且、OR 或', 'type' => 'string', 'required' => true, 'example' => 'AND'], + 'Metric' => ['title' => '指标, 校验类型为 EXPRESSION 时必填', 'description' => '指标, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'required' => false, 'example' => 'a'], + 'MetricName' => ['title' => '指标名称, 校验类型为 EXPRESSION 时必填', 'description' => '指标名称, 校验类型为 EXPRESSION 时必填', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Value' => ['title' => '比较的值', 'description' => '比较的值', 'type' => 'string', 'required' => false, 'example' => '1'], ], + 'required' => false, + 'description' => '', ], + 'required' => false, ], ], + 'required' => false, + 'description' => '', ], - ], - 'BelongProject' => [ - 'title' => '所属项目', - 'description' => '所属项目', - 'type' => 'object', - 'properties' => [ - 'ProjectName' => [ - 'title' => '所属项目名称', - 'description' => '所属项目名称', - 'type' => 'string', - 'example' => 'project_1', - ], - 'BizName' => [ - 'title' => '业务板块名称', - 'description' => '业务板块名称', - 'type' => 'string', - 'example' => 'biz_1', - ], - ], - ], - 'Status' => [ - 'title' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'description' => '告警状态:'."\n" - .'- ALERTING:告警中'."\n" - .'- DO_NOT_DISTURB:免打扰'."\n" - .'- SILENCING:告警中(静默期)'."\n" - .'- FINISH:告警完成', - 'type' => 'string', - 'example' => 'FINISH', - ], - 'AlertFrequency' => [ - 'title' => '告警频率:'."\n" - .'- ONCE:即时告警'."\n" - .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', - 'description' => '告警频率:'."\n" - .'- ONCE:即时告警'."\n" - .'- PERIOD:周期告警,格式:1HOUR,1MINUTE,1SECOND', - 'type' => 'string', - 'example' => 'ONCE', - ], - 'TotalAlertTimes' => [ - 'title' => '告警次数', - 'description' => '告警次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DoNotDisturbEndTime' => [ - 'title' => '消息免打扰到期时间', - 'description' => '消息免打扰到期时间', - 'type' => 'string', - 'example' => '2024-11-05 00:00:00', - ], - 'UrlConfig' => [ - 'title' => 'Url信息', - 'description' => 'Url信息', - 'type' => 'object', - 'properties' => [ - 'ObjectUrl' => [ - 'title' => '告警对象页面Url', - 'description' => '告警对象页面Url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test1', - ], - 'LogUrl' => [ - 'title' => '日志页面Url', - 'description' => '日志页面Url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test2', - ], - 'AlertConfigUrl' => [ - 'title' => '告警配置页面url', - 'description' => '告警配置页面url', - 'type' => 'string', - 'example' => 'https://dataphin.com/ops/test3', - ], - ], + 'required' => true, ], ], + 'required' => false, ], + 'NeedGenerateStandardCode' => ['title' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', 'description' => '是否需要基于规则生成标准编码,如果为true则属性值部分填入的标准编码无效将重新生成', 'type' => 'boolean', 'required' => false], + ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '更新标准', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"AlertEventInfo\\": {\\n \\"Id\\": 12345,\\n \\"AlertObject\\": {\\n \\"SourceSystemType\\": \\"ALL\\",\\n \\"Name\\": \\"test\\",\\n \\"Type\\": \\"VDM_BATCH_PYTHON37\\"\\n },\\n \\"LatestAlertTime\\": \\"2024-11-05 16:19:33\\",\\n \\"FirstAlertTime\\": \\"2024-11-05 16:19:33\\",\\n \\"AlertReceiverList\\": [\\n {\\n \\"Type\\": \\"OWNER\\",\\n \\"AlertChannelTypeList\\": [\\n \\"SMS\\"\\n ],\\n \\"CustomAlertChannelIdList\\": [\\n \\"12345\\"\\n ],\\n \\"UserList\\": [\\n {\\n \\"Name\\": \\"Admin\\"\\n }\\n ],\\n \\"OnCallTableName\\": \\"test\\"\\n }\\n ],\\n \\"AlertReason\\": {\\n \\"Type\\": \\"VDM_BATCH_FINISH\\",\\n \\"BizDate\\": \\"2024-11-05 16:19:32\\",\\n \\"UniqueKey\\": \\"t_6340131422711644160_20241104_6340142\\",\\n \\"AlertReasonParamList\\": [\\n {\\n \\"Key\\": \\"biz_date\\",\\n \\"Value\\": \\"2024-11-04 00:00:00\\"\\n }\\n ]\\n },\\n \\"BelongProject\\": {\\n \\"ProjectName\\": \\"project_1\\",\\n \\"BizName\\": \\"biz_1\\"\\n },\\n \\"Status\\": \\"FINISH\\",\\n \\"AlertFrequency\\": \\"ONCE\\",\\n \\"TotalAlertTimes\\": 1,\\n \\"DoNotDisturbEndTime\\": \\"2024-11-05 00:00:00\\",\\n \\"UrlConfig\\": {\\n \\"ObjectUrl\\": \\"https://dataphin.com/ops/test1\\",\\n \\"LogUrl\\": \\"https://dataphin.com/ops/test2\\",\\n \\"AlertConfigUrl\\": \\"https://dataphin.com/ops/test3\\"\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取告警事件详情', + 'ramActions' => [], ], - 'RevokeDataServiceApi' => [ - 'summary' => '回收API授权。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateStandardLookupTable' => [ + 'summary' => '更新数据标准码表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -64289,67 +37191,53 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'RevokeCommand', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '授权指令', - 'description' => '授权指令', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'AppId' => [ - 'title' => 'App的ID', - 'description' => 'App的ID', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1203', - ], - 'ApiId' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1021', + 'Id' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Name' => ['title' => '码表名称', 'description' => '码表名称', 'type' => 'string', 'required' => true, 'example' => '城市码表'], + 'Code' => ['title' => '码表编码', 'description' => '码表编码', 'type' => 'string', 'required' => true, 'example' => 'CITY'], + 'Description' => ['title' => '码表描述', 'description' => '码表描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Owner' => ['title' => '码表负责人Id,默认为调用者用户Id', 'description' => '码表负责人Id,默认为调用者用户Id', 'type' => 'string', 'required' => false, 'example' => '30012021'], + 'LookupTableValueList' => [ + 'title' => '码表值列表', + 'description' => '码表值列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Value' => ['title' => '代码值', 'description' => '代码值', 'type' => 'string', 'required' => true, 'example' => '杭州'], + 'Name' => ['title' => '代码名称', 'description' => '代码名称', 'type' => 'string', 'required' => true, 'example' => 'Hangzhou'], + 'EnglishName' => ['title' => '代码英文名', 'description' => '代码英文名', 'type' => 'string', 'required' => false, 'example' => 'HZ'], + 'Description' => ['title' => '代码描述', 'description' => '代码描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, ], - 'Reason' => [ - 'title' => '申请原因', - 'description' => '申请原因', - 'type' => 'string', - 'required' => true, - 'example' => 'test', + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '归属目录', 'description' => '归属目录', 'type' => 'string', 'required' => true, 'example' => '/dir1/dir2'], + ], + 'required' => false, ], ], 'required' => true, @@ -64363,68 +37251,37 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '回收数据服务API授权', - ], - 'PublishDataServiceApi' => [ - 'summary' => '发布数据服务API到生产环境。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'title' => '更新数据标准码表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'UpdateStandardMappingToInvalid' => [ + 'summary' => '将标准映射关系置为无效映射。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ @@ -64433,57 +37290,39 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'UpdateCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], - ], - [ - 'name' => 'ApiId', - 'in' => 'query', - 'schema' => [ - 'title' => 'Api编码', - 'description' => 'Api编码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102102', - ], - ], - [ - 'name' => 'VersionId', - 'in' => 'query', - 'schema' => [ - 'title' => 'Api 版本号', - 'description' => 'Api 版本号', - 'type' => 'string', + 'title' => '更新指令', + 'description' => '更新指令', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'GuidList' => [ + 'title' => 'guid列表,上限为1000', + 'description' => 'guid列表,上限为1000', + 'type' => 'array', + 'items' => ['title' => 'guid列表,上限为1000', 'description' => 'guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1022'], + 'required' => false, + ], + 'BelongGuidList' => [ + 'title' => '所属guid列表,上限为1000', + 'description' => '所属guid列表,上限为1000', + 'type' => 'array', + 'items' => ['title' => '所属guid列表,上限为1000', 'description' => '所属guid列表,上限为1000', 'type' => 'string', 'required' => false, 'example' => '1023'], + 'required' => false, + ], + ], 'required' => true, - 'example' => '1', ], ], ], @@ -64494,148 +37333,138 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], + 'staticInfo' => ['returnType' => 'synchronous'], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '发布数据服务API', - ], - 'ListDataServicePublishedApis' => [ - 'summary' => '分页查询已发布的API列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'title' => '将标准映射关系置为无效映射', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], + 'ramActions' => [], + ], + 'UpdateStandardSet' => [ + 'summary' => '更新标准集。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'GroupId' => [ - 'title' => '分组Id', - 'description' => '分组Id', - 'type' => 'integer', - 'format' => 'int32', + 'StandardSetId' => ['title' => '标准集Id', 'description' => '标准集Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1234'], + 'Name' => ['title' => '标准集名称', 'description' => '标准集名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Code' => ['title' => '标准集编码', 'description' => '标准集编码', 'type' => 'string', 'required' => true, 'example' => 'CITY'], + 'Description' => ['title' => '标准集描述', 'description' => '标准集描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'DirectoryReference' => [ + 'title' => '归属目录', + 'description' => '归属目录', + 'type' => 'object', + 'properties' => [ + 'Directory' => ['title' => '所属目录', 'description' => '所属目录', 'type' => 'string', 'required' => true, 'example' => '/dir1'], + ], 'required' => false, - 'example' => '102113', ], - 'ApiName' => [ - 'title' => 'Api名称', - 'description' => 'Api名称', - 'type' => 'string', + 'MaintainerList' => [ + 'title' => '维护人员', + 'description' => '维护人员', + 'type' => 'array', + 'items' => ['title' => '维护人员', 'description' => '维护人员', 'type' => 'string', 'required' => false, 'example' => '300000913'], 'required' => false, - 'example' => 'test', ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', + 'MemberList' => [ + 'title' => '成员列表', + 'description' => '成员列表', + 'type' => 'array', + 'items' => ['title' => '成员列表', 'description' => '成员列表', 'type' => 'string', 'required' => false, 'example' => '300000913'], 'required' => false, - 'example' => '1', ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', + 'MemberGroupList' => [ + 'title' => '成员组列表', + 'description' => '成员组列表', + 'type' => 'array', + 'items' => ['title' => '成员组列表', 'description' => '成员组列表', 'type' => 'string', 'required' => false, 'example' => '1121'], + 'required' => false, + ], + 'VisibilityConfig' => [ + 'title' => '可见性配置', + 'description' => '可见性配置', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'description' => '可见类型: PUBLIC 公开、PRIVATE 私有,仅标准集人员/管理员、SPECIFIED 指定人可见', 'type' => 'string', 'required' => true, 'example' => 'PUBLIC'], + 'SpecifiedUserList' => [ + 'title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', + 'type' => 'array', + 'items' => ['title' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', 'description' => '指定可见的人员列表,当可见类型为 SPECIFIED 生效', 'type' => 'string', 'required' => false, 'example' => '1121'], + 'required' => false, + ], + ], + 'required' => false, + ], + 'ApprovalConfig' => [ + 'title' => '上线审批配置', + 'description' => '上线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean', 'required' => true], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean', 'required' => true], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'required' => true, 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + ], + 'required' => false, + ], + 'OfflineApprovalConfig' => [ + 'title' => '下线审批配置', + 'description' => '下线审批配置', + 'type' => 'object', + 'properties' => [ + 'EnableApproval' => ['title' => '是否开启审批', 'description' => '是否开启审批', 'type' => 'boolean', 'required' => true], + 'IsSubmitInBatch' => ['title' => '是否批量提交审批', 'description' => '是否批量提交审批', 'type' => 'boolean', 'required' => true], + 'ApprovalType' => ['title' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'description' => '审批流程类型:BY_DEFAULT 默认审批类型、BY_TEMPLATE 基于审批模板', 'type' => 'string', 'required' => true, 'example' => 'BY_DEFAULT'], + 'TemplateId' => ['title' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'description' => '审批模板Id,当审批流程类型为 BY_TEMPLATE 生效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + ], 'required' => false, - 'example' => '20', ], + 'DefaultStandardTemplateId' => ['title' => '默认标准模板ID', 'description' => '默认标准模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1001'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -64646,605 +37475,309 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'ApiList' => [ - 'title' => '分页API列表', - 'description' => '分页API列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'GroupName' => [ - 'title' => 'api分组名', - 'description' => 'api分组名', - 'type' => 'string', - 'example' => 'test', - ], - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'Description' => [ - 'title' => 'api描述', - 'description' => 'api描述', - 'type' => 'string', - 'example' => 'test xx', - ], - 'UpdateRate' => [ - 'title' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', - 'description' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ApiName' => [ - 'title' => 'api名称', - 'description' => 'api名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectName' => [ - 'title' => '服务项目名称', - 'description' => '服务项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'AppCount' => [ - 'title' => '绑定的应用数', - 'description' => '绑定的应用数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Mode' => [ - 'title' => '模式:0 basic,1 dev_prod', - 'description' => '模式:0 basic,1 dev_prod', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ApplyStatus' => [ - 'title' => '申请状态:0 未全部申请:1 已申请、2 无app、需要先申请app', - 'description' => '申请状态:0 未全部申请:1 已申请、2 无app、需要先申请app', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ProjectId' => [ - 'title' => '数据服务项目ID', - 'description' => '数据服务项目ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102101', - ], - 'GroupId' => [ - 'title' => '分组id', - 'description' => '分组id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102131', - ], - 'CustomUpdateRate' => [ - 'title' => '更新频率自定义内容', - 'description' => '更新频率自定义内容', - 'type' => 'string', - 'example' => '0 0 0/1 * * *', - ], - 'DeployTime' => [ - 'title' => '发布时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '发布时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'Version' => [ - 'title' => 'api版本', - 'description' => 'api版本', - 'type' => 'string', - 'example' => '1.0', - ], - 'LogicUnitNo' => [ - 'title' => '服务单元编号', - 'description' => '服务单元编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1022', - ], - 'AppInfoList' => [ - 'title' => '所引用的app信息列表', - 'description' => '所引用的app信息列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'AppId' => [ - 'title' => '应用ID', - 'description' => '应用ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10211', - ], - 'AppKey' => [ - 'title' => 'appKey', - 'description' => 'appKey', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1201', - ], - 'AppName' => [ - 'title' => '应用名称', - 'description' => '应用名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - 'UpdateTime' => [ - 'title' => '修改时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '修改时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'CreateType' => [ - 'title' => '创建类型:0自定义模式,1.向导模式,2-直连API', - 'description' => '创建类型:0自定义模式,1.向导模式,2-直连API', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'OwnerUserName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => '张三', - ], - 'CallCount' => [ - 'title' => '调用次数', - 'description' => '调用次数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '21', - ], - 'ExecuteMode' => [ - 'title' => '调用类型 1-同步 2-异步', - 'description' => '调用类型 1-同步 2-异步', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ApiId' => [ - 'title' => 'api编码', - 'description' => 'api编码', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1022', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '更新标准集', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ApiList\\": [\\n {\\n \\"GroupName\\": \\"test\\",\\n \\"Owner\\": \\"30012011\\",\\n \\"Description\\": \\"test xx\\",\\n \\"UpdateRate\\": 1,\\n \\"ApiName\\": \\"test\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"AppCount\\": 1,\\n \\"Mode\\": 1,\\n \\"ApplyStatus\\": 1,\\n \\"ProjectId\\": 102101,\\n \\"GroupId\\": 102131,\\n \\"CustomUpdateRate\\": \\"0 0 0/1 * * *\\",\\n \\"DeployTime\\": \\"2025-06-30 08:00:00\\",\\n \\"Version\\": \\"1.0\\",\\n \\"LogicUnitNo\\": 1022,\\n \\"AppInfoList\\": [\\n {\\n \\"AppId\\": 10211,\\n \\"AppKey\\": 1201,\\n \\"AppName\\": \\"test\\"\\n }\\n ],\\n \\"UpdateTime\\": \\"2025-06-30 08:00:00\\",\\n \\"CreateType\\": 1,\\n \\"OwnerUserName\\": \\"张三\\",\\n \\"CallCount\\": 21,\\n \\"ExecuteMode\\": 1,\\n \\"ApiId\\": 1022\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询数据服务已发布API列表', + 'ramActions' => [], ], - 'ListDataServiceMyAppPermissions' => [ - 'summary' => '查询当前用户有权限的应用。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateStandardTemplate' => [ + 'summary' => '更新数据标准模板。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', + 'Id' => ['title' => '标准模板Id', 'description' => '标准模板Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Version' => ['title' => '版本号, 空或-1表示最新版本', 'description' => '版本号, 空或-1表示最新版本', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '标准模板名称', 'description' => '标准模板名称', 'type' => 'string', 'required' => true, 'example' => '测试模板'], + 'Code' => ['title' => '标准模板编码, 全局唯一;有引用时不可修改', 'description' => '标准模板编码, 全局唯一;有引用时不可修改', 'type' => 'string', 'required' => true, 'example' => 'test01'], + 'Description' => ['title' => '标准模板描述', 'description' => '标准模板描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'MaintainerList' => [ + 'title' => '维护人员', + 'description' => '维护人员', + 'type' => 'array', + 'items' => ['title' => '维护人员', 'description' => '维护人员', 'type' => 'string', 'required' => false, 'example' => '300000913'], 'required' => false, - 'example' => '1', ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', + 'AttributesConfig' => [ + 'title' => '属性配置', + 'description' => '属性配置', 'type' => 'object', 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'PermissionList' => [ - 'title' => '分页权限列表', - 'description' => '分页权限列表', + 'AttributeList' => [ + 'title' => '属性列表', + 'description' => '属性列表', 'type' => 'array', 'items' => [ 'title' => '', - 'description' => '', 'type' => 'object', 'properties' => [ - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '1121', - ], - 'ProjectName' => [ - 'title' => '项目名', - 'description' => '项目名', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '112101', - ], - 'Creator' => [ - 'title' => '创建人ID', - 'description' => '创建人ID', - 'type' => 'string', - 'example' => '1121', - ], - 'CreateUserName' => [ - 'title' => '创建人', - 'description' => '创建人', - 'type' => 'string', - 'example' => 'test', - ], - 'AppName' => [ - 'title' => 'App名称', - 'description' => 'App名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Role' => [ - 'title' => '角色: 0 负责人', - 'description' => '角色: 0 负责人', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'PrivilegeBelongTo' => [ - 'title' => '权限归属人', - 'description' => '权限归属人', - 'type' => 'string', - 'example' => '1121', - ], - 'AppId' => [ - 'title' => 'AppId', - 'description' => 'AppId', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1021', - ], - 'PrivilegeFrom' => [ - 'title' => '授权来源:0 负责人', - 'description' => '授权来源:0 负责人', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'OwnerUserName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => 'test', - ], - 'CurrentUserRole' => [ - 'title' => '当前登录用户相对于这条记录的角色: SuperAdmin 当前用户是超管,ProjMan 当前用户对于这条数据是项管,NormalUser 当前用户对于这条数据是普通用户(即非超管且非项管)', - 'description' => '当前登录用户相对于这条记录的角色: SuperAdmin 当前用户是超管,ProjMan 当前用户对于这条数据是项管,NormalUser 当前用户对于这条数据是普通用户(即非超管且非项管)', - 'type' => 'string', - 'example' => 'NormalUser', + 'Name' => ['title' => '属性名称', 'description' => '属性名称,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'attr1'], + 'Code' => ['title' => '属性编码', 'description' => '属性编码,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'test_attr'], + 'Type' => ['title' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性', 'description' => '属性类型:BIZ_ATTRIBUTE 业务属性、TECH_ATTRIBUTE 技术属性、MANAGEMENT_ATTRIBUTE 管理属性、QUALITY_ATTRIBUTE 质量属性、MASTER_DATA_ATTRIBUTE 主数据属性、LIFECYCLE_ATTRIBUTE 生命周期属性、SECURITY_ATTRIBUTE 安全属性,引用公共属性时非必填', 'type' => 'string', 'required' => false, 'example' => 'BIZ_ATTRIBUTE'], + 'Required' => ['title' => '是否必填', 'description' => '是否必填,引用公共属性时非必填', 'type' => 'boolean', 'required' => false], + 'ValueConfig' => [ + 'title' => '取值配置', + 'description' => '取值配置,引用公共属性时非必填', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'description' => '属性值类型:CUSTOMIZED 自定义输入、SINGLE_ENUM 枚举单值、MULTIPLE_ENUMS 枚举多值、RANGE 范围值', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'description' => '属性值的数据类型:STRING 字符串、BIGINT 数值类型、DOUBLE 浮点类型、DATE 日期,精确到天、DATETIME 日期,精确到ms、BOOLEAN 布尔型', 'type' => 'string', 'required' => true, 'example' => 'STRING'], + 'Length' => ['title' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'description' => '属性值长度, 为空或-1表示不限制长度, 通常只有字符串类型才会限制属性值的长度', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'], + 'ValueRange' => [ + 'title' => '取值范围', + 'description' => '取值范围', + 'type' => 'object', + 'properties' => [ + 'ValueConstraint' => ['title' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'description' => '取值来源:NONE 无约束、LIST 从列表中获取、LOOKUP_TABLE 码表、MIN_MAX 在最大值和最小值之间取值、DATAPHIN_ATTRIBUTE Dataphin系统属性、BUILT_IN_DATA_TYPES 内置数据类型、BUILT_IN_DATA_CLASSIFICATION 内置数据分类、BUILT_IN_DATA_LEVEL 内置数据安全分级', 'type' => 'string', 'required' => true, 'example' => 'NONE'], + 'ValueList' => [ + 'title' => '取值范围,当取值来源取值为 LIST 生效', + 'description' => '取值范围,当取值来源取值为 LIST 生效', + 'type' => 'array', + 'items' => ['title' => '取值范围,当取值来源取值为 LIST 生效', 'description' => '取值范围,当取值来源取值为 LIST 生效', 'type' => 'string', 'required' => false, 'example' => '1'], + 'required' => false, + ], + 'MinMaxValueConfig' => [ + 'title' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'description' => '取值范围,当取值来源取值为 MIN_MAX 生效', + 'type' => 'object', + 'properties' => [ + 'MinValue' => ['title' => '最小值', 'description' => '最小值', 'type' => 'string', 'required' => true, 'example' => '0'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean', 'required' => true], + 'MaxValue' => ['title' => '最大值', 'description' => '最大值', 'type' => 'string', 'required' => true, 'example' => '100'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean', 'required' => true], + ], + 'required' => false, + ], + 'LookupTableReference' => [ + 'title' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'description' => '取值范围,当取值来源取值为 LOOKUP_TABLE 生效', + 'type' => 'object', + 'properties' => [ + 'LookupTableId' => ['title' => '码表Id', 'description' => '码表Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'Column' => ['title' => '引用的码表字段', 'description' => '引用的码表字段', 'type' => 'string', 'required' => false, 'example' => 'col1'], + ], + 'required' => false, + ], + 'DataphinAttributeType' => ['title' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'description' => '取值范围,当取值来源取值为 DATAPHIN_ATTRIBUTE 生效:BIZ_UNIT 数据板块、PROJECT 项目、USER 用户、USER_GROUP 用户组', 'type' => 'string', 'required' => false, 'example' => 'DATAPHIN_ATTRIBUTE'], + ], + 'required' => true, + ], + 'DefaultValue' => ['title' => '默认值', 'description' => '默认值', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, ], - 'RemarkForDebugList' => [ - 'title' => '描述,用于排查问题', - 'description' => '描述,用于排查问题', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'v1', + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'RefAttribute' => [ + 'title' => '引用的属性信息', + 'description' => '引用的属性信息', + 'type' => 'object', + 'properties' => [ + 'AttributeId' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '123'], + 'AttributeFromInfo' => [ + 'title' => '属性来源', + 'description' => '属性来源', + 'type' => 'object', + 'properties' => [ + 'AttributeFrom' => ['title' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'description' => '属性来源:SYSTEM 系统属性、CUSTOM 自定义属性、STANDARD 标准', 'type' => 'string', 'required' => true, 'example' => 'CUSTOM'], + 'StandardReference' => [ + 'title' => '对应的标准,属性来源为 STANDARD 生效', + 'description' => '对应的标准,属性来源为 STANDARD 生效', + 'type' => 'object', + 'properties' => [ + 'StandardId' => ['title' => '标准Id', 'description' => '标准Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + ], + 'required' => false, + ], ], - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'example' => 'k1', + 'required' => true, + ], + ], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], + 'required' => true, + ], + ], + 'required' => true, + ], + 'PublishInfo' => [ + 'title' => '标准模板发布信息', + 'description' => '标准模板发布信息', + 'type' => 'object', + 'properties' => [ + 'Comment' => ['title' => '发布备注', 'description' => '发布备注', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], + 'CodeRuleConfig' => [ + 'title' => '标准编码自动生成规则配置', + 'description' => '标准编码自动生成规则配置', + 'type' => 'object', + 'properties' => [ + 'GenerateType' => ['title' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'description' => '标准编码生成方式: CUSTOMIZED 自定义、AUTO_GENERATE 根据标准编码规则自动生成', 'type' => 'string', 'required' => true, 'example' => 'CUSTOMIZED'], + 'AutoConfig' => [ + 'title' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'description' => '标准编码规则自动生成配置, 当生产方式为 AUTO_GENERATE 生效', + 'type' => 'object', + 'properties' => [ + 'NeedStrongValidate' => ['title' => '是否强校验', 'description' => '是否强校验', 'type' => 'boolean', 'required' => true], + 'CodeRuleList' => [ + 'title' => '标准编码规则', + 'description' => '标准编码规则', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Index' => ['title' => '编码规则位置索引', 'description' => '编码规则位置索引', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'Type' => ['title' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'description' => '编码规则类型:FIXED_STRING 固定字符串、AUTO_INCREMENT 自增序列、STANDARD_SET_CODE 标准集编码', 'type' => 'string', 'required' => true, 'example' => 'FIXED_STRING'], + 'Value' => ['title' => '编码规则格式/值', 'description' => '编码规则格式/值', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'AutoIncrementSequenceConfig' => [ + 'title' => '自增序列配置', + 'description' => '自增序列配置', + 'type' => 'object', + 'properties' => [ + 'Digit' => ['title' => '位数', 'description' => '位数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '3'], + 'StartValue' => ['title' => '起始值', 'description' => '起始值', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'Step' => ['title' => '步长', 'description' => '步长', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'], + 'NeedPaddingZero' => ['title' => '是否补零', 'description' => '是否补零', 'type' => 'boolean', 'required' => true], ], + 'required' => false, ], ], + 'required' => false, + 'description' => '', ], + 'required' => true, ], ], + 'required' => false, ], ], + 'required' => false, ], ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '更新数据标准模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"PermissionList\\": [\\n {\\n \\"Owner\\": \\"1121\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 112101,\\n \\"Creator\\": \\"1121\\",\\n \\"CreateUserName\\": \\"test\\",\\n \\"AppName\\": \\"test\\",\\n \\"Role\\": 0,\\n \\"PrivilegeBelongTo\\": \\"1121\\",\\n \\"AppId\\": 1021,\\n \\"PrivilegeFrom\\": 0,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"CurrentUserRole\\": \\"NormalUser\\",\\n \\"RemarkForDebugList\\": [\\n {\\n \\"Value\\": \\"v1\\",\\n \\"Key\\": \\"k1\\"\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询当前用户有权限数据服务应用列表', + 'ramActions' => [], ], - 'ListDataServiceMyApiPermissions' => [ - 'summary' => '获取我管理的API权限列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateStandardWordRoot' => [ + 'summary' => '更新数据标准词根。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '更新指令', + 'description' => '更新指令', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], + 'OldName' => ['title' => '更新前词根名称', 'description' => '更新前词根名称', 'type' => 'string', 'required' => true, 'example' => '平均值'], + 'Name' => ['title' => '词根名称', 'description' => '词根名称', 'type' => 'string', 'required' => true, 'example' => '平均值'], + 'FullName' => ['title' => '词根全称', 'description' => '词根全称', 'type' => 'string', 'required' => true, 'example' => 'average'], + 'Abbreviation' => ['title' => '词根缩写', 'description' => '词根缩写', 'type' => 'string', 'required' => true, 'example' => 'avg'], + 'Description' => ['title' => '词根描述', 'description' => '词根描述', 'type' => 'string', 'required' => false, 'example' => 'test'], ], - 'required' => false, + 'required' => true, ], ], ], @@ -65255,236 +37788,71 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'PermissionList' => [ - 'title' => '分页权限列表', - 'description' => '分页权限列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Role' => [ - 'title' => '角色: 0 负责人', - 'description' => '角色: 0 负责人', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '1121', - ], - 'PrivilegeBelongTo' => [ - 'title' => '权限归属人', - 'description' => '权限归属人', - 'type' => 'string', - 'example' => '1121', - ], - 'ApiName' => [ - 'title' => 'API名称', - 'description' => 'API名称', - 'type' => 'string', - 'example' => 'teset', - ], - 'PrivilegeFrom' => [ - 'title' => '授权来源:0 负责人', - 'description' => '授权来源:0 负责人', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'ProjectName' => [ - 'title' => '项目名', - 'description' => '项目名', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102122', - ], - 'OwnerUserName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => 'test', - ], - 'Creator' => [ - 'title' => '创建人ID', - 'description' => '创建人ID', - 'type' => 'string', - 'example' => '1121', - ], - 'ApiId' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1322', - ], - 'CreateUserName' => [ - 'title' => '创建人', - 'description' => '创建人', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '更新数据标准词根', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"PermissionList\\": [\\n {\\n \\"Role\\": 0,\\n \\"Owner\\": \\"1121\\",\\n \\"PrivilegeBelongTo\\": \\"1121\\",\\n \\"ApiName\\": \\"teset\\",\\n \\"PrivilegeFrom\\": 0,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102122,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"Creator\\": \\"1121\\",\\n \\"ApiId\\": 1322,\\n \\"CreateUserName\\": \\"test\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询我管理的数据服务API权限列表', + 'ramActions' => [], ], - 'ListDataServiceAuthorizedApps' => [ - 'summary' => '查询当前用户有权限的应用列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateTenantComputeEngine' => [ + 'summary' => '修改租户计算设置。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '编辑指令', + 'description' => '编辑指令', 'type' => 'object', 'properties' => [ - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', + 'Type' => ['title' => '计算源类型', 'description' => '计算源类型', 'type' => 'string', 'required' => true, 'example' => 'MacCompute'], + 'Version' => ['title' => '版本号', 'description' => '版本号', 'type' => 'string', 'required' => false, 'example' => '1.0'], + 'ClusterUrlList' => [ + 'title' => '集群节点连接列表', + 'description' => '集群节点连接列表', + 'type' => 'array', + 'items' => ['title' => '集群节点连接列表', 'description' => '集群节点连接列表', 'type' => 'string', 'required' => true, 'example' => '10.1.11.2'], + 'required' => true, ], ], - 'required' => false, + 'required' => true, ], ], ], @@ -65495,329 +37863,83 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'AuthorizedAppList' => [ - 'title' => '分页App授权列表', - 'description' => '分页App授权列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Owner' => [ - 'title' => '负责人ID', - 'description' => '负责人ID', - 'type' => 'string', - 'example' => '1121', - ], - 'RealHasOwnerPrivilege' => [ - 'title' => '是否真的有这个app负责人权限(可能因为过期了或者其他情况而无权限)', - 'description' => '是否真的有这个app负责人权限(可能因为过期了或者其他情况而无权限)', - 'type' => 'boolean', - ], - 'ExpireDate' => [ - 'title' => '有效期,日期格式:yyyy-MM-dd', - 'description' => '有效期,日期格式:yyyy-MM-dd', - 'type' => 'string', - 'example' => '2025-06-30', - ], - 'ProjectName' => [ - 'title' => '项目名', - 'description' => '项目名', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102122', - ], - 'RevocableDetail' => [ - 'title' => '这个按钮详细的状态:-1 超管不可交还,-2 负责人无法交还,-3 项管且无实际权限置灰,-4 普通用户没权限不可交还,1 项管且有实际权限可以交还,2 普通用户有权限可以交还', - 'description' => '这个按钮详细的状态:-1 超管不可交还,-2 负责人无法交还,-3 项管且无实际权限置灰,-4 普通用户没权限不可交还,1 项管且有实际权限可以交还,2 普通用户有权限可以交还', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '-1', - ], - 'AppName' => [ - 'title' => '应用名称', - 'description' => '应用名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ApplyUserId' => [ - 'title' => '权限账号ID(即申请人ID)', - 'description' => '权限账号ID(即申请人ID)', - 'type' => 'string', - 'enumValueTitles' => [], - 'example' => '30012101', - ], - 'ApplyUserName' => [ - 'title' => '权限账号(即申请人)', - 'description' => '权限账号(即申请人)', - 'type' => 'string', - 'example' => '测试', - ], - 'AppId' => [ - 'title' => '应用主键id', - 'description' => '应用主键id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1022', - ], - 'RealHasPrivilege' => [ - 'title' => '是否实际有权限', - 'description' => '是否实际有权限', - 'type' => 'boolean', - ], - 'PrivilegeAccount' => [ - 'title' => '权限账号:0 个人账号', - 'description' => '权限账号:0 个人账号', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'OwnerUserName' => [ - 'title' => '负责人', - 'description' => '负责人', - 'type' => 'string', - 'example' => 'test', - ], - 'IsProjectManager' => [ - 'title' => '当前用户是否项管', - 'description' => '当前用户是否项管', - 'type' => 'boolean', - ], - 'Id' => [ - 'title' => '申请ID', - 'description' => '申请ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1121', - ], - 'RemarkForDebugList' => [ - 'title' => '描述,用于排查问题', - 'description' => '描述,用于排查问题', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Value' => [ - 'title' => '配置项值', - 'description' => '配置项值', - 'type' => 'string', - 'example' => 'v1', - ], - 'Key' => [ - 'title' => '配置项', - 'description' => '配置项', - 'type' => 'string', - 'example' => 'k1', - ], - ], - ], - ], - 'Revocable' => [ - 'title' => '是否可以交还/回收', - 'description' => '是否可以交还/回收', - 'type' => 'boolean', - ], - 'PrivilegeType' => [ - 'title' => '权限类型:0 使用权限、1 开发权限', - 'description' => '权限类型:0 使用权限、1 开发权限', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '修改租户计算设置', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"AuthorizedAppList\\": [\\n {\\n \\"Owner\\": \\"1121\\",\\n \\"RealHasOwnerPrivilege\\": true,\\n \\"ExpireDate\\": \\"2025-06-30\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102122,\\n \\"RevocableDetail\\": -1,\\n \\"AppName\\": \\"test\\",\\n \\"ApplyUserId\\": \\"30012101\\",\\n \\"ApplyUserName\\": \\"测试\\",\\n \\"AppId\\": 1022,\\n \\"RealHasPrivilege\\": true,\\n \\"PrivilegeAccount\\": 0,\\n \\"OwnerUserName\\": \\"test\\",\\n \\"IsProjectManager\\": true,\\n \\"Id\\": 1121,\\n \\"RemarkForDebugList\\": [\\n {\\n \\"Value\\": \\"v1\\",\\n \\"Key\\": \\"k1\\"\\n }\\n ],\\n \\"Revocable\\": true,\\n \\"PrivilegeType\\": 1\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询当前用户有权限数据服务应用列表', + 'ramActions' => [], ], - 'ListDataServiceApiImpacts' => [ - 'summary' => '运维分析:API调用异常影响分析。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'UpdateTenantMember' => [ + 'summary' => '编辑租户成员。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '请求对象', + 'description' => '请求对象', 'type' => 'object', 'properties' => [ - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - 'StartTime' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 20:00:00', - ], - 'ApiId' => [ - 'title' => '调用的apiId', - 'description' => '调用的apiId', - 'type' => 'integer', - 'format' => 'int64', + 'MemberList' => [ + 'title' => '成员列表', + 'description' => '成员列表', + 'type' => 'array', + 'items' => [ + 'title' => '成员对象', + 'description' => '成员对象', + 'type' => 'object', + 'properties' => [ + 'UserId' => ['title' => '用户Id', 'description' => '用户Id', 'type' => 'string', 'required' => false, 'example' => '2331'], + 'MobilePhone' => ['title' => '电话号码', 'description' => '电话号码', 'type' => 'string', 'required' => false, 'example' => '13888888888'], + 'Mail' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'required' => false, 'example' => '123@xx.com'], + 'DingNumber' => ['title' => '钉钉号', 'description' => '钉钉号', 'type' => 'string', 'required' => false, 'example' => '123@dingding'], + 'RoleList' => [ + 'title' => '角色列表', + 'description' => '角色列表', + 'type' => 'array', + 'items' => ['title' => '角色', 'description' => '角色', 'type' => 'string', 'required' => false, 'example' => 'SECURITY_ADMIN'], + 'required' => false, + ], + ], + 'required' => false, + ], 'required' => true, - 'example' => '1021', - ], - 'OrderColumn' => [ - 'title' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率; 默认:CALL_COUNT', - 'description' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率; 默认:CALL_COUNT', - 'type' => 'string', - 'required' => false, - 'example' => 'CALL_COUNT', - ], - 'OrderType' => [ - 'title' => '排序方式:1 顺序、2 倒序;默认:1', - 'description' => '排序方式:1 顺序、2 倒序;默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'AppName' => [ - 'title' => 'app名称', - 'description' => 'app名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', ], ], 'required' => true, @@ -65827,309 +37949,95 @@ 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'ImpactList' => [ - 'title' => 'API影响分析列表', - 'description' => 'API影响分析列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ClientFailCount' => [ - 'title' => '客户端失败数', - 'description' => '客户端失败数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'TotalTimeCost' => [ - 'title' => '接口总耗时(包括失败的)', - 'description' => '接口总耗时(包括失败的)', - 'type' => 'string', - 'example' => '231', - ], - 'SuccessTimeCost' => [ - 'title' => '成功调用的总耗时', - 'description' => '成功调用的总耗时', - 'type' => 'string', - 'example' => '99', - ], - 'ErrorCount' => [ - 'title' => '异常次数', - 'description' => '异常次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ClientIp' => [ - 'title' => '访问来源IP', - 'description' => '访问来源IP', - 'type' => 'string', - 'example' => '192.168.1.1', - ], - 'AppName' => [ - 'title' => 'app名称', - 'description' => 'app名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ErrorApiCount' => [ - 'title' => 'api调用异常数', - 'description' => 'api调用异常数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'TotalCount' => [ - 'title' => '调用总数', - 'description' => '调用总数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '88', - ], - 'LastCallTime' => [ - 'title' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'Minute' => [ - 'title' => '网关统计时间: yyyy_MMdd_HHmm', - 'description' => '网关统计时间: yyyy_MMdd_HHmm', - 'type' => 'string', - 'example' => '2025_0611_1011', - ], - 'OfflineCount' => [ - 'title' => '离线数', - 'description' => '离线数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'AppKey' => [ - 'title' => 'appKey', - 'description' => 'appKey', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1101', - ], - 'CallCount' => [ - 'title' => '调用次数', - 'description' => '调用次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '11', - ], - 'ApiId' => [ - 'title' => 'apiNo', - 'description' => 'apiNo', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2011', - ], - 'ErrorRate' => [ - 'title' => '错误率', - 'description' => '错误率', - 'type' => 'string', - 'example' => '10.0', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\"\\n}","type":"json"}]', + 'title' => '编辑租户成员', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"ImpactList\\": [\\n {\\n \\"ClientFailCount\\": 2,\\n \\"TotalTimeCost\\": \\"231\\",\\n \\"SuccessTimeCost\\": \\"99\\",\\n \\"ErrorCount\\": 1,\\n \\"ClientIp\\": \\"192.168.1.1\\",\\n \\"AppName\\": \\"test\\",\\n \\"ErrorApiCount\\": 1,\\n \\"TotalCount\\": 88,\\n \\"LastCallTime\\": \\"2025-06-30 08:00:00\\",\\n \\"Minute\\": \\"2025_0611_1011\\",\\n \\"OfflineCount\\": 1,\\n \\"AppKey\\": 1101,\\n \\"CallCount\\": 11,\\n \\"ApiId\\": 2011,\\n \\"ErrorRate\\": \\"10.0\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询数据服务API异常调用影响', - ], - 'ListDataServiceApiCalls' => [ - 'summary' => '分页查询数据服务调用日志。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateTenantMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + ], + 'UpdateUdf' => [ + 'summary' => '编辑自定义函数。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '创建命令', + 'description' => '创建命令', 'type' => 'object', 'properties' => [ - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '20', - ], - 'AppKey' => [ - 'title' => 'appKey', - 'description' => 'appKey', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '1021', - ], - 'ApiName' => [ - 'title' => 'api名称', - 'description' => 'api名称', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'ApiId' => [ - 'title' => 'api编码', - 'description' => 'api编码', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '20122', - ], - 'StartTime' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', + 'Id' => ['title' => '自定义函数Id', 'description' => '自定义函数Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1123'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '711833'], + 'RefResourceIdList' => [ + 'title' => '引用资源id', + 'description' => '引用资源id', + 'type' => 'array', + 'items' => ['title' => '引用资源id', 'description' => '引用资源id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '10200121011'], 'required' => true, - 'example' => '2025-06-30 20:00:00', - ], - 'ClientIp' => [ - 'title' => 'IP地址', - 'description' => 'IP地址', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.1.1', - ], - 'Successful' => [ - 'title' => '成功/失败', - 'description' => '成功/失败', - 'type' => 'boolean', - 'required' => false, ], + 'ClassName' => ['title' => '资源中实现函数的类名', 'description' => '资源中实现函数的类名', 'type' => 'string', 'required' => true, 'example' => 'com.lydaas.SleepTest'], + 'Category' => ['title' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'description' => '类目: 1 窗口函数、2 统计函数、3 数值函数、4 字符串函数、5 时间函数、6 IP地址辅助函数、7 URL相关函数、8 编解码函数、9 业务相关函数、10 其他', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => true, 'example' => '测试'], + 'CommandHelp' => ['title' => '函数调用的命令格式', 'description' => '函数调用的命令格式', 'type' => 'string', 'required' => true, 'example' => 'udf_sleep(100)'], + 'Comment' => ['title' => '提交备注', 'description' => '提交备注', 'type' => 'string', 'required' => true, 'example' => '测试'], ], 'required' => true, ], @@ -66142,561 +38050,129 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '68', - ], - 'CallLogList' => [ - 'title' => '分页API调用列表', - 'description' => '分页API调用列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'EndTime' => [ - 'title' => '请求结束时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', - 'description' => '请求结束时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', - 'type' => 'string', - 'example' => '2024-11-01 01:01:03.000', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ResultCount' => [ - 'title' => '返回数据条数', - 'description' => '返回数据条数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Env' => [ - 'title' => '环境:0 dev,1 prod', - 'description' => '环境:0 dev,1 prod', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ClientIp' => [ - 'title' => '请求IP', - 'description' => '请求IP', - 'type' => 'string', - 'example' => '192.168.1.1', - ], - 'AppName' => [ - 'title' => '应用名称', - 'description' => '应用名称', - 'type' => 'string', - 'example' => 'test', - ], - 'CostTime' => [ - 'title' => '请求耗时(ms)', - 'description' => '请求耗时(ms)', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2000', - ], - 'ResponseSize' => [ - 'title' => '响应大小', - 'description' => '响应大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1024', - ], - 'ResponseParameter' => [ - 'title' => '返回参数', - 'description' => '返回参数', - 'type' => 'string', - 'example' => '{"code":"200","message":"success"}', - ], - 'AppKey' => [ - 'title' => '应用Key', - 'description' => '应用Key', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '201211', - ], - 'HttpStatusCode' => [ - 'title' => 'http 状态码', - 'description' => 'http 状态码', - 'type' => 'string', - 'example' => '200', - ], - 'BizCodeDescription' => [ - 'title' => '业务状态码描述', - 'description' => '业务状态码描述', - 'type' => 'string', - 'example' => 'OK', - ], - 'ExecuteMode' => [ - 'title' => '执行模式 1-同步 2-异步', - 'description' => '执行模式 1-同步 2-异步', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'JobId' => [ - 'title' => '任务ID', - 'description' => '任务ID', - 'type' => 'string', - 'example' => '102356', - ], - 'HttpStatusDescription' => [ - 'title' => '状态码描述', - 'description' => '状态码描述', - 'type' => 'string', - 'example' => 'OK', - ], - 'BizCode' => [ - 'title' => '业务状态码', - 'description' => '业务状态码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Status' => [ - 'title' => '任务调用状态', - 'description' => '任务调用状态', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'RequestId' => [ - 'title' => '请求id', - 'description' => '请求id', - 'type' => 'string', - 'example' => '1234567890-232sds-3e232-ae2e232', - ], - 'ApiName' => [ - 'title' => 'api名称', - 'description' => 'api名称', - 'type' => 'string', - 'example' => 'test', - ], - 'RequestParameter' => [ - 'title' => '请求参数', - 'description' => '请求参数', - 'type' => 'string', - 'example' => '{"name":"test"}', - ], - 'RequestSize' => [ - 'title' => '请求大小', - 'description' => '请求大小', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1024', - ], - 'StartTime' => [ - 'title' => '请求开始时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', - 'description' => '请求开始时间, 格式:yyyy-MM-dd HH:mm:ss.SSS', - 'type' => 'string', - 'example' => '2024-11-01 01:01:01.000', - ], - 'ProjectId' => [ - 'title' => '项目ID', - 'description' => '项目ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102356', - ], - 'Successful' => [ - 'title' => '是否成功', - 'description' => '是否成功', - 'type' => 'boolean', - ], - 'Sql' => [ - 'title' => 'sql语句', - 'description' => 'sql语句', - 'type' => 'string', - 'example' => 'select col1 from t_test1 limit 100;', - ], - 'ExecuteCostTime' => [ - 'title' => '执行耗时', - 'description' => '执行耗时', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1000', - ], - 'ApiId' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102112', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', + 'title' => '编辑自定义函数', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"CallLogList\\": [\\n {\\n \\"EndTime\\": \\"2024-11-01 01:01:03.000\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"ResultCount\\": 1,\\n \\"Env\\": 1,\\n \\"ClientIp\\": \\"192.168.1.1\\",\\n \\"AppName\\": \\"test\\",\\n \\"CostTime\\": 2000,\\n \\"ResponseSize\\": 1024,\\n \\"ResponseParameter\\": \\"{\\\\\\"code\\\\\\":\\\\\\"200\\\\\\",\\\\\\"message\\\\\\":\\\\\\"success\\\\\\"}\\",\\n \\"AppKey\\": 201211,\\n \\"HttpStatusCode\\": \\"200\\",\\n \\"BizCodeDescription\\": \\"OK\\",\\n \\"ExecuteMode\\": 1,\\n \\"JobId\\": \\"102356\\",\\n \\"HttpStatusDescription\\": \\"OK\\",\\n \\"BizCode\\": \\"OK\\",\\n \\"Status\\": 1,\\n \\"RequestId\\": \\"1234567890-232sds-3e232-ae2e232\\",\\n \\"ApiName\\": \\"test\\",\\n \\"RequestParameter\\": \\"{\\\\\\"name\\\\\\":\\\\\\"test\\\\\\"}\\",\\n \\"RequestSize\\": 1024,\\n \\"StartTime\\": \\"2024-11-01 01:01:01.000\\",\\n \\"ProjectId\\": 102356,\\n \\"Successful\\": true,\\n \\"Sql\\": \\"select col1 from t_test1 limit 100;\\",\\n \\"ExecuteCostTime\\": 1000,\\n \\"ApiId\\": 102112\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询数据服务调用日志', + 'ramActions' => [], ], - 'ListDataServiceApiCallStatistics' => [ - 'summary' => '运维分析:API调用统计信息。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], + 'UpdateUserGroup' => [ + 'summary' => '编辑用户组。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ListQuery', + 'name' => 'UpdateCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '检索条件', - 'description' => '检索条件', + 'title' => '编辑用户组', + 'description' => '编辑用户组', 'type' => 'object', 'properties' => [ - 'OrderColumn' => [ - 'title' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率, AVG_RESPONSE_TIME 平均响应时长、OFFLINE_RATE offline百分比; 默认:CALL_COUNT', - 'description' => '排序列:CALL_COUNT 调用次数、ERROR_COUNT 异常次数、ERROR_RATE 错误率, AVG_RESPONSE_TIME 平均响应时长、OFFLINE_RATE offline百分比; 默认:CALL_COUNT', - 'type' => 'string', - 'required' => false, - 'example' => 'CALL_COUNT', - ], - 'OrderType' => [ - 'title' => '排序方式:1 顺序、2 倒序;默认:1', - 'description' => '排序方式:1 顺序、2 倒序;默认:1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'Keyword' => [ - 'title' => '搜索关键字', - 'description' => '搜索关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'StartTime' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', - ], - 'EndTime' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 20:00:00', - ], - 'PageNo' => [ - 'title' => '页码, 默认1', - 'description' => '页码, 默认1', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页记录数, 默认20', - 'description' => '分页记录数, 默认20', - 'type' => 'integer', - 'format' => 'int32', + 'Id' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '13423'], + 'Name' => ['title' => '用户组名称', 'description' => '用户组名称', 'type' => 'string', 'required' => false, 'example' => 'xx测试'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'xx'], + 'AdminUserIdList' => [ + 'title' => '用户组管理员', + 'description' => '用户组管理员', + 'type' => 'array', + 'items' => ['title' => '用户组管理员', 'description' => '用户组管理员', 'type' => 'string', 'required' => false, 'example' => '2323131'], 'required' => false, - 'example' => '20', ], ], - 'required' => true, + 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应结果', + 'description' => '响应结果', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'PageResult' => [ - 'title' => '分页查询结果', - 'description' => '分页查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '总记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '68', - ], - 'CallStatisticsList' => [ - 'title' => 'API调用统计分析列表', - 'description' => 'API调用统计分析列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ApiName' => [ - 'title' => 'API名称', - 'description' => 'API名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectName' => [ - 'title' => '数据服务项目', - 'description' => '数据服务项目', - 'type' => 'string', - 'example' => 'test', - ], - 'AppNameList' => [ - 'title' => '', - 'description' => '授权应用名称', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '授权应用名称', - 'type' => 'string', - 'example' => '授权应用名称', - ], - ], - 'ProjectId' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '101201', - ], - 'Creator' => [ - 'title' => '创建人', - 'description' => '创建人', - 'type' => 'string', - 'example' => '30012011', - ], - 'ErrorCount' => [ - 'title' => '调用异常次数', - 'description' => '调用异常次数', - 'type' => 'string', - 'example' => '22', - ], - 'AuthorizedAppCount' => [ - 'title' => '授权应用数', - 'description' => '授权应用数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'SqlId' => [ - 'title' => 'sql表主键', - 'description' => 'sql表主键', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1121', - ], - 'OfflineRate' => [ - 'title' => 'offline百分比', - 'description' => 'offline百分比', - 'type' => 'string', - 'example' => '23.2%', - ], - 'LastCallTime' => [ - 'title' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '最近调用时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'example' => '2025-06-30 08:00:00', - ], - 'CallCount' => [ - 'title' => '调用次数', - 'description' => '调用次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'AvgResponseTime' => [ - 'title' => '平均响应时长, 单位毫秒', - 'description' => '平均响应时长, 单位毫秒', - 'type' => 'number', - 'format' => 'double', - 'example' => '11', - ], - 'ApiId' => [ - 'title' => 'api编码', - 'description' => 'api编码', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1003', - ], - 'ErrorRate' => [ - 'title' => '错误率', - 'description' => '错误率', - 'type' => 'string', - 'example' => '23.2%', - ], - ], - ], - ], - ], - ], + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '编辑结果', 'description' => '编辑结果', 'type' => 'boolean', 'example' => 'true'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '更新用户组', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"PageResult\\": {\\n \\"TotalCount\\": 68,\\n \\"CallStatisticsList\\": [\\n {\\n \\"ApiName\\": \\"test\\",\\n \\"ProjectName\\": \\"test\\",\\n \\"AppNameList\\": [\\n \\"授权应用名称\\"\\n ],\\n \\"ProjectId\\": 101201,\\n \\"Creator\\": \\"30012011\\",\\n \\"ErrorCount\\": \\"22\\",\\n \\"AuthorizedAppCount\\": 1,\\n \\"SqlId\\": 1121,\\n \\"OfflineRate\\": \\"23.2%\\",\\n \\"LastCallTime\\": \\"2025-06-30 08:00:00\\",\\n \\"CallCount\\": 100,\\n \\"AvgResponseTime\\": 11,\\n \\"ApiId\\": 1003,\\n \\"ErrorRate\\": \\"23.2%\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '分页查询API调用统计', - ], - 'GrantDataServiceApi' => [ - 'summary' => 'API授权。', - 'methods' => [ - 'post', + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], - 'tags' => [], + ], + 'UpdateUserGroupSwitch' => [ + 'summary' => '修改用户组的启用状态。', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], @@ -66704,130 +38180,270 @@ ], 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', + 'name' => 'UserGroupId', + 'in' => 'query', + 'schema' => ['title' => '用户组Id', 'description' => '用户组Id', 'type' => 'string', 'required' => true, 'example' => '31323'], + ], + [ + 'name' => 'Active', 'in' => 'query', + 'schema' => ['title' => '是否启用用户组标识', 'description' => '是否启用用户组标识', 'type' => 'boolean', 'required' => true, 'example' => 'true'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + 'title' => '响应结果', + 'description' => '响应结果', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => '请求标识ID', 'description' => '请求标识ID', 'type' => 'string', 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean', 'example' => 'true'], + 'HttpStatusCode' => ['title' => '后端响应HttpCode', 'description' => '后端响应HttpCode', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '请求错误码, OK表示请求正常', 'description' => '请求错误码, OK表示请求正常', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '请求错误信息', 'description' => '请求错误信息', 'type' => 'string', 'example' => 'successful'], + 'Data' => ['title' => '编辑结果', 'description' => '编辑结果', 'type' => 'boolean', 'example' => 'true'], + ], + ], + ], + ], + 'errorCodes' => [ + 401 => [ + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ], + 403 => [ + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ], + 406 => [ + ['errorCode' => 'DataphinOpenApiNotAcceptable', 'errorMessage' => 'Request not acceptable, may exceed quota limit.', 'description' => '请求被拒绝,请确认是否触发限流.'], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"successful\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '修改用户组的启用状态', + 'changeSet' => [ + ['createdAt' => '2025-02-17T08:18:49.000Z', 'description' => '错误码发生变更'], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateUserGroupSwitch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + ], + 'UpsertQualityRule' => [ + 'summary' => '新建或者修改质量规则。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], + 'tags' => [], + 'security' => [ [ - 'name' => 'GrantCommand', + 'AK' => [], + ], + ], + 'operationType' => 'readAndWrite', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], + 'parameters' => [ + [ + 'name' => 'OpTenantId', + 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpsertCommand', 'in' => 'formData', 'style' => 'json', 'schema' => [ - 'title' => '授权指令', - 'description' => '授权指令', + 'title' => '更改指令', + 'description' => '更改指令', 'type' => 'object', 'properties' => [ - 'ExpireDate' => [ - 'title' => '有效期,日期格式:yyyy-MM-dd', - 'description' => '有效期,日期格式:yyyy-MM-dd', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30', - ], - 'Reason' => [ - 'title' => '申请原因', - 'description' => '申请原因', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'ApiId' => [ - 'title' => 'API编号', - 'description' => 'API编号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1021', - ], - 'AppId' => [ - 'title' => 'AppID', - 'description' => 'AppID', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1201', - ], - 'ProdFieldList' => [ - 'title' => 'PROD权限字段列表,basic模式下查询类API必填,操作类API无需填写', - 'description' => 'PROD权限字段列表,basic模式下查询类API必填,操作类API无需填写', + 'Id' => ['title' => '规则ID,非空时代表修改,为空时代表新建', 'description' => '规则ID,非空时代表修改,为空时代表新建', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '11'], + 'Name' => ['title' => '质量规则名称', 'description' => '质量规则名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Strength' => ['title' => '规则强弱: STRONG、WEAK', 'description' => '规则强弱: STRONG、WEAK', 'type' => 'string', 'required' => true, 'example' => 'STRONG'], + 'CatalogList' => [ + 'title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', + 'type' => 'array', + 'items' => ['title' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '规则分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'required' => true, 'example' => 'CONSISTENT'], + 'required' => true, + ], + 'TemplateType' => ['title' => '模板类型:FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', 'description' => '模板类型:'."\n" + .' - FIELD_NULL_VALUE_VALIDATE 字段空值校验'."\n" + .' - FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验'."\n" + .' - FIELD_UNIQUE_VALIDATE 字段唯一性校验'."\n" + .' - FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验'."\n" + .' - FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验'."\n" + .' - FUNCTION_TIME_COMPARE 时间函数比较'."\n" + .' - SINGLE_TABLE_TIME_COMPARE 单表时间字段比较'."\n" + .' - DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较'."\n" + .' - FIELD_FORMAT_VALIDATE 字段格式校验'."\n" + .' - FIELD_LENGTH_VALIDATE 字段长度校验'."\n" + .' - FIELD_VALUE_RANGE_VALIDATE 字段值域校验'."\n" + .' - CODE_TABLE_COMPARE 码表参照对比'."\n" + .' - STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比'."\n" + .' - SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较'."\n" + .' - SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较'."\n" + .' - CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较'."\n" + .' - DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较'."\n" + .' - TABLE_STABILITY_VALIDATE 表稳定性校验'."\n" + .' - TABLE_FLUCTUATION_VALIDATE 表波动性校验'."\n" + .' - FIELD_STABILITY_VALIDATE 字段稳定性校验'."\n" + .' - FIELD_FLUCTUATION_VALIDATE 字段波动性校验'."\n" + .' - CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验'."\n" + .' - CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验'."\n" + .' - DATASOURCE_AVAILABLE_CHECK 数据源连通性监测'."\n" + .' - TABLE_SCHEMA_CHECK 表结构异动监测'."\n" + .' - REAL_TIME_OFFLINE_COMPARE 实时离线对比'."\n" + .' - REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测'."\n" + .' - REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比 等', 'type' => 'string', 'required' => true, 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'WatchId' => ['title' => '所属监控ID', 'description' => '所属监控ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'], + 'EnableErrorArchive' => ['title' => '是否启动异常归档', 'description' => '是否启动异常归档', 'type' => 'boolean', 'required' => false], + 'ValidateConditionList' => [ + 'title' => '校验条件', + 'description' => '校验条件', 'type' => 'array', 'items' => [ 'title' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => 'Api权限字段id', - 'description' => 'Api权限字段id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], + 'Id' => ['title' => '条件节点id', 'description' => '条件节点id', 'type' => 'string', 'required' => false, 'example' => '268'], + 'Type' => ['title' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'description' => '条件类型: RELATION 关系,EXPRESSION:表达式', 'type' => 'string', 'required' => false, 'example' => 'RELATION'], + 'Operator' => ['title' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'description' => '操作符: EQUAL,NOT_EQUAL,LARGER,SMALLER,LARGE_OR_EQUAL,SMALLER_OR_EQUAL,AND,OR', 'type' => 'string', 'required' => false, 'example' => 'AND'], + 'Metric' => ['title' => '指标', 'description' => '指标', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Value' => ['title' => '值', 'description' => '值', 'type' => 'string', 'required' => false, 'example' => '1'], + 'ParentId' => ['title' => '条件父节点Id', 'description' => '条件父节点Id', 'type' => 'string', 'required' => false, 'example' => '123'], ], 'required' => false, + 'description' => '', ], 'required' => false, ], - 'DevFieldList' => [ - 'title' => 'DEV权限字段列表,dev-prod模式下才需要填,查询类API devFieldList、prodFieldList至少填写1个,操作类API无需填写', - 'description' => 'DEV权限字段列表,dev-prod模式下才需要填,查询类API devFieldList、prodFieldList至少填写1个,操作类API无需填写', + 'FormPropertyList' => [ + 'title' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', + 'description' => '规则配置键值对, 与模板类型相关:不同模板类型返回不同的表单键值对配置', 'type' => 'array', 'items' => [ 'title' => '', 'type' => 'object', 'properties' => [ - 'Id' => [ - 'title' => 'Api权限字段id', - 'description' => 'Api权限字段id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'required' => false, 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'required' => false, 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'required' => false, 'example' => 'abc'], ], 'required' => false, + 'description' => '', ], 'required' => false, ], - 'ApplyDev' => [ - 'title' => '是否申请操作类API的开发环境权限', - 'description' => '是否申请操作类API的开发环境权限', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'ApplyProd' => [ - 'title' => '是否申请操作类API的生产环境权限', - 'description' => '是否申请操作类API的生产环境权限', - 'type' => 'boolean', + 'AttributeWithValueList' => [ + 'title' => '规则业务属性配置', + 'description' => '规则业务属性配置', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'AttributeInfo' => [ + 'title' => '属性详情', + 'description' => '属性详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '属性Id', 'description' => '属性Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '711484689131'], + 'Name' => ['title' => '属性名称', 'description' => '属性名称', 'type' => 'string', 'required' => false, 'example' => 'attr01'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Enabled' => ['title' => '是否启用', 'description' => '是否启用', 'type' => 'boolean', 'required' => false], + 'Required' => ['title' => '是否必填', 'description' => '是否必填', 'type' => 'boolean', 'required' => false], + 'Searchable' => ['title' => '是否可搜索', 'description' => '是否可搜索', 'type' => 'boolean', 'required' => false], + 'ValueConfig' => [ + 'title' => '属性值配置详情', + 'description' => '属性值配置详情', + 'type' => 'object', + 'properties' => [ + 'Type' => ['title' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'description' => '属性值填写方式: CUSTOMIZED 自定义输入,SINGLE_ENUM 下拉单选框,MULTIPLE_ENUMS 下拉多选框, RANGE 范围区间', 'type' => 'string', 'required' => false, 'example' => 'CUSTOMIZED'], + 'DataType' => ['title' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'description' => '属性字段类型: STRING 文本型,BIGINT 数值整型,DOUBLE 数值浮点型,BOOLEAN 布尔型,DATE 日期型,DATETIME 时间型', 'type' => 'string', 'required' => false, 'example' => 'STRING'], + 'Length' => ['title' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'description' => '属性字段长度, 可对文本型的属性值最大长度进行约束', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '986992'], + 'ValueEnumList' => [ + 'title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'description' => '属性选项值:仅针对填写方式为下拉单选框或下拉多选框的属性', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'DefaultValue' => [ + 'title' => '属性默认值', + 'description' => '属性默认值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'required' => false, 'example' => '123'], + 'required' => false, + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'required' => false, 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean', 'required' => false], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'required' => false, 'example' => '11'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean', 'required' => false], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + ], + 'required' => false, + ], + 'AttributeValue' => [ + 'title' => '属性值', + 'description' => '属性值', + 'type' => 'object', + 'properties' => [ + 'ValueList' => [ + 'title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', + 'type' => 'array', + 'items' => ['title' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'description' => '属性值清单,适用于填写方式为自定义输入、下拉单选框、下拉多选框的属性', 'type' => 'string', 'required' => false, 'example' => '123'], + 'required' => false, + ], + 'MinValue' => ['title' => '最小值,适用于范围区间属性', 'description' => '最小值,适用于范围区间属性', 'type' => 'string', 'required' => false, 'example' => '1'], + 'IncludeMinValue' => ['title' => '是否包含最小值', 'description' => '是否包含最小值', 'type' => 'boolean', 'required' => false], + 'MaxValue' => ['title' => '最大值,适用于范围区间属性', 'description' => '最大值,适用于范围区间属性', 'type' => 'string', 'required' => false, 'example' => '11'], + 'IncludeMaxValue' => ['title' => '是否包含最大值', 'description' => '是否包含最大值', 'type' => 'boolean', 'required' => false], + ], + 'required' => false, + ], + ], + 'required' => false, + 'description' => '', + ], 'required' => false, - 'example' => 'true', ], ], 'required' => true, @@ -66841,104 +38457,89 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '任务规则ID', 'description' => '任务规则ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建或者修改质量规则', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '数据服务API授权', + 'ramActions' => [], ], - 'GetDataServiceProjectAddableUsers' => [ - 'summary' => '获取可添加到项目成员的用户列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpsertQualitySchedule' => [ + 'summary' => '新建或者修改调度设置。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'ProjectId', - 'in' => 'query', + 'name' => 'UpsertCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '更改指令', + 'description' => '更改指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '调度对象ID: 传递代表更新,不传递代表新建', 'description' => '调度对象ID: 传递代表更新,不传递代表新建', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'WatchId' => ['title' => '监控对象Id', 'description' => '监控对象Id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '22'], + 'Name' => ['title' => '调度对象名称', 'description' => '调度对象名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Type' => ['title' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'description' => '调度类型: PERIOD_SCHEDULE 定时调度、MANUAL_SCHEDULE 手动触发、CODE_CHECK_TRIGGER 代码检查触发、STATIC_TASK_TRIGGER 固定任务触发、DEPENDENCY_SCHEDULE 依赖调度', 'type' => 'string', 'required' => true, 'example' => 'PERIOD_SCHEDULE'], + 'PartitionType' => ['title' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'description' => '分区类型: EVERY_DAY 每天、PRE_DAY 昨天、TODAY 当天、FIRST_DAY_OF_WEEK 每周第一天(周日)、CUSTOM 自定义等', 'type' => 'string', 'required' => false, 'example' => 'CUSTOM'], + 'PartitionExpression' => ['title' => '分区表达式-自定义表达式', 'description' => '分区表达式-自定义表达式', 'type' => 'string', 'required' => false, 'example' => 'ds=${yyyyMMdd}'], + 'TriggerNodeList' => [ + 'title' => '触发调度-触发任务清单', + 'description' => '触发调度-触发任务清单', + 'type' => 'array', + 'items' => ['title' => '触发调度-触发任务清单', 'description' => '触发调度-触发任务清单', 'type' => 'string', 'required' => false, 'example' => 'n_1121'], + 'required' => false, + ], + 'StaticTaskTriggerType' => ['title' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'description' => '固定任务触发-触发方式: ALL_TASKS_FINISHED、ONE_TASKS_FINISHED、PRE_ONE_TASKS_START', 'type' => 'string', 'required' => false, 'example' => 'ONE_TASKS_FINISHED'], + 'TriggerType' => ['title' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'description' => '触发调度-触发方式:STATIC_TASK_TRIGGER 固定任务触发、CODE_CHECK_TRIGGER 代码检查触发', 'type' => 'string', 'required' => false, 'example' => 'STATIC_TASK_TRIGGER'], + 'PeriodScheduleIntervalType' => ['title' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'description' => '定时调度-调度周期类型: DAILY 天、WEEKLY 周、MONTHLY 月、HOURLY 小时、MINUTELY 分钟', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'PeriodScheduleParamList' => [ + 'title' => '定时调度-调度周期值', + 'description' => '定时调度-调度周期值', + 'type' => 'array', + 'items' => ['title' => '定时调度-调度周期值', 'description' => '定时调度-调度周期值', 'type' => 'string', 'required' => false, 'example' => 'DAILY'], + 'required' => false, + ], + 'CronExpression' => ['title' => '定时调度-cron表达式', 'description' => '定时调度-cron表达式', 'type' => 'string', 'required' => false, 'example' => '* * 1/* * * *'], + 'ValidatePartitionType' => ['title' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'description' => '校验范围: TASK_REFERRED_PARTITION 任务更新分区,USER_DEFINED_PARTITION 自定义分区', 'type' => 'string', 'required' => false, 'example' => 'TASK_REFERRED_PARTITION'], + ], 'required' => true, - 'example' => '102102', ], ], ], @@ -66949,250 +38550,203 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'UserList' => [ - 'title' => '项目成员列表', - 'description' => '项目成员列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30012011', - ], - 'DisplayName' => [ - 'title' => '用户昵称', - 'description' => '用户昵称', - 'type' => 'string', - 'example' => 'test', - ], - 'AccountName' => [ - 'title' => '用户账号', - 'description' => '用户账号', - 'type' => 'string', - 'example' => 'xx@aliyuncs.com', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '调度对象ID', 'description' => '调度对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建或者修改调度设置', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UserList\\": [\\n {\\n \\"UserId\\": \\"30012011\\",\\n \\"DisplayName\\": \\"test\\",\\n \\"AccountName\\": \\"xx@aliyuncs.com\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取数据服务可添加到项目成员用户列表', + 'ramActions' => [], ], - 'GetDataServiceMyProjects' => [ - 'summary' => '获取当前用户作为负责人的项目列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpsertQualityTemplate' => [ + 'summary' => '新建或者修改质量模板。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], - ], - 'responses' => [ - 200 => [ + [ + 'name' => 'UpsertCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '更改指令', + 'description' => '更改指令', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', + 'Id' => ['title' => '模板ID: 传递了代表更新,不传递代表新建', 'description' => '模板ID: 传递了代表更新,不传递代表新建', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'required' => true, 'example' => 'test'], + 'Type' => ['title' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'description' => '模板类型: FIELD_NULL_VALUE_VALIDATE 字段空值校验,FIELD_EMPTY_STRING_VALIDATE 字段空字符串校验,FIELD_UNIQUE_VALIDATE 字段唯一性校验,FIELD_GROUP_COUNT_VALIDATE 字段唯一值个数校验,FIELD_DUPLICATE_VALUE_COUNT_VALIDATE 字段重复值个数校验,FUNCTION_TIME_COMPARE 时间函数比较,SINGLE_TABLE_TIME_COMPARE 单表时间字段比较,DOUBLE_TABLE_TIME_COMPARE 两表时间字段比较,FIELD_FORMAT_VALIDATE 字段格式校验,FIELD_LENGTH_VALIDATE 字段长度校验,FIELD_VALUE_RANGE_VALIDATE 字段值域校验,CODE_TABLE_COMPARE 码表参照对比,STANDARD_CODE_TABLE_COMPARE 数据标准码表参照对比,SINGLE_TABLE_FIELD_VALUE_COMPARE 单表字段值一致性比较,SINGLE_TABLE_FIELD_STATISTICAL_COMPARE 单表字段统计值一致性比较,SINGLE_TABLE_FIELD_EXP_COMPARE 单表字段业务逻辑一致性比较,DOUBLE_TABLE_FIELD_VALUE_COMPARE 两表字段值一致性比较,DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 两表字段统计值一致性比较,CROSS_DOUBLE_TABLE_FIELD_STATISTICAL_COMPARE 跨源两表字段统计值一致性比较,DOUBLE_TABLE_FIELD_EXP_COMPARE 两表字段业务逻辑一致性比较,TABLE_STABILITY_VALIDATE 表稳定性校验,TABLE_FLUCTUATION_VALIDATE 表波动性校验,FIELD_STABILITY_VALIDATE 字段稳定性校验,FIELD_FLUCTUATION_VALIDATE 字段波动性校验,CUSTOM_STATISTICAL_VALIDATE 自定义统计指标校验,CUSTOM_DATA_DETAILS_VALIDATE 自定义数据详情校验,DATASOURCE_AVAILABLE_CHECK 数据源连通性监测,TABLE_SCHEMA_CHECK 表结构异动监测,REAL_TIME_OFFLINE_COMPARE 实时离线对比,REAL_TIME_STATISTICAL_VALIDATE 实时统计值监测,REAL_TIME_MULTI_CHAIN_COMPARE 实时多链路对比', 'type' => 'string', 'required' => true, 'example' => 'FIELD_NULL_VALUE_VALIDATE'], + 'Description' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'Owner' => ['title' => '模板负责人ID', 'description' => '模板负责人ID', 'type' => 'string', 'required' => true, 'example' => '30012011'], + 'Catalog' => ['title' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'description' => '模板分类: CONSISTENT 一致性,EFFECTIVE 有效性,TIMELINESE 时效性,ACCURATE 准确性,UNIQUENESS 唯一性,COMPLETENESS 完整性,STABILITY 稳定性,CUSTOM 自定义', 'type' => 'string', 'required' => true, 'example' => 'CONSISTENT'], + 'SupportDataSourceTypeList' => [ + 'title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', + 'type' => 'array', + 'items' => ['title' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'description' => '支持特定数据源类型:MySQL、Oracle、Microsoft SQL Server、MaxCompute、Hive等', 'type' => 'string', 'required' => false, 'example' => 'MySQL'], + 'required' => false, ], - 'ProjectList' => [ - 'title' => '数据服务项目列表', - 'description' => '数据服务项目列表', + 'FormPropertyList' => [ + 'title' => '规则配置键值对', + 'description' => '规则配置键值对', 'type' => 'array', 'items' => [ 'title' => '', - 'description' => '', 'type' => 'object', 'properties' => [ - 'Role' => [ - 'title' => '角色:1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', - 'description' => '角色:1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '102011', - ], + 'ComponentType' => ['title' => '控件类型', 'description' => '控件类型', 'type' => 'string', 'required' => false, 'example' => 'expression'], + 'Name' => ['title' => '属性名', 'description' => '属性名', 'type' => 'string', 'required' => false, 'example' => 'col'], + 'Value' => ['title' => '属性值', 'description' => '属性值', 'type' => 'string', 'required' => false, 'example' => 'abc'], ], + 'required' => false, + 'description' => '', ], + 'required' => false, ], ], + 'required' => true, + ], + ], + ], + '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], + ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建或者修改质量模板', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectList\\": [\\n {\\n \\"Role\\": 1,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 102011\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取当前用户作为负责人数据服务项目列表', + 'ramActions' => [], ], - 'GetDataServiceAuthorizedProjects' => [ - 'summary' => '查询有权限的项目列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpsertQualityWatch' => [ + 'summary' => '新建或更改质量监控对象, 支持添加多种类型的质量监控对象,包括:Dataphin表,全域表,数据源,指标,实时元表。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], + ], + [ + 'name' => 'UpsertCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', + 'title' => '更改指令', + 'description' => '更改指令', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '监控对象ID: 传递了代表更新,不传递代表新建', 'description' => '监控对象ID: 传递了代表更新,不传递代表新建', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'], + 'Type' => ['title' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表、DATASOURCE 数据源、INDEX 指标、REALTIME_LOGICAL_TABLE 实时元表', 'description' => '监控对象类型: TABLE Dataphin表,DATASOURCE_TABLE 全域表、DATASOURCE 数据源、INDEX 指标、REALTIME_LOGICAL_TABLE 实时元表', 'type' => 'string', 'required' => true, 'example' => 'TABLE'], + 'DataSourceInfo' => [ + 'title' => '数据源详情', + 'description' => '数据源详情', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '数据源Id', 'description' => '数据源Id', 'type' => 'string', 'required' => false, 'example' => '1'], + ], + 'required' => false, + ], + 'TableInfo' => [ + 'title' => '监控表对象', + 'description' => '监控表对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '表Id', 'description' => '表Id', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + ], + 'IndexInfo' => [ + 'title' => '监控指标对象', + 'description' => '监控指标对象', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '指标Id:', 'description' => '指标Id:', 'type' => 'string', 'required' => false, 'example' => '11'], + 'Name' => ['title' => '指标名:', 'description' => '指标名:', 'type' => 'string', 'required' => false, 'example' => 'test_idx_'], + 'DisplayName' => ['title' => '指标展示名:', 'description' => '指标展示名:', 'type' => 'string', 'required' => false, 'example' => 'logic'], + 'Description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'GranularityId' => ['title' => '统计粒度id', 'description' => '统计粒度id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '18755764'], + 'GranularityDisplayName' => ['title' => '统计粒度名称', 'description' => '统计粒度名称', 'type' => 'string', 'required' => false, 'example' => '全站汇总表'], + 'ComputeType' => ['title' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'description' => '指标计算类型类型:AUTO、CUSTOM、MOUNT、COMBINE', 'type' => 'string', 'required' => false, 'example' => 'AUTO'], + 'CellSumLogicTableName' => ['title' => '单元汇总表名', 'description' => '单元汇总表名', 'type' => 'string', 'required' => false, 'example' => 'dws_all'], + 'Type' => ['title' => '指标类型:INDEX', 'description' => '指标类型:INDEX', 'type' => 'string', 'required' => false, 'example' => 'INDEX'], + 'BizUnitId' => ['title' => '业务板块Id', 'description' => '业务板块Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + 'ProjectId' => ['title' => '项目Id', 'description' => '项目Id', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1121'], + 'DateType' => ['title' => '指标数据类型', 'description' => '指标数据类型', 'type' => 'string', 'required' => false, 'example' => 'bigint'], + ], + 'required' => false, + ], + 'QualityOwner' => ['title' => '质量负责人', 'description' => '质量负责人', 'type' => 'string', 'required' => true, 'example' => '30001011'], + ], 'required' => true, - 'example' => '30001011', ], ], ], @@ -67203,148 +38757,127 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ProjectList' => [ - 'title' => '项目列表', - 'description' => '项目列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Role' => [ - 'title' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', - 'description' => '用户角色: 1 超管,2 开发用户,3 应用成员,4 服务项目管理员,5.运维用户', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'ProjectName' => [ - 'title' => '项目名称', - 'description' => '项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ProjectId' => [ - 'title' => '项目Id', - 'description' => '项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1011', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": 1\\n}","type":"json"}]', + 'title' => '新建或更改质量监控对象', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ProjectList\\": [\\n {\\n \\"Role\\": 2,\\n \\"ProjectName\\": \\"test\\",\\n \\"ProjectId\\": 1011\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取当前用户有权限数据服务项目列表', + 'ramActions' => [], ], - 'GetDataServiceAuthorizedAppsByGroupId' => [ - 'summary' => '根据App分组Id查询账号有权限的应用列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpsertQualityWatchAlert' => [ + 'summary' => '新建或者修改监控对象告警设置。'."\n" + .'上线版本:v5.4.2。', + 'methods' => ['post'], + 'schemes' => ['https'], 'tags' => [], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'readAndWrite', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'], 'parameters' => [ [ 'name' => 'OpTenantId', 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], + 'schema' => ['title' => '租户ID', 'description' => '租户ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '30001011'], ], [ - 'name' => 'GroupId', - 'in' => 'query', + 'name' => 'UpsertCommand', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => 'App分组Id', - 'description' => 'App分组Id', - 'type' => 'integer', - 'format' => 'int32', + 'title' => '更改指令', + 'description' => '更改指令', + 'type' => 'object', + 'properties' => [ + 'WatchId' => ['title' => '监控对象ID', 'description' => '监控对象ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '11'], + 'QualityAlertInfo' => [ + 'title' => '告警设置详情', + 'description' => '告警设置详情', + 'type' => 'object', + 'properties' => [ + 'AlertUserChannelList' => [ + 'title' => '用户告警渠道', + 'description' => '用户告警渠道', + 'type' => 'array', + 'items' => ['title' => '用户告警渠道', 'description' => '用户告警渠道', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'AlertUserList' => [ + 'title' => '用户告警列表', + 'description' => '用户告警列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'required' => false, 'example' => '30012011'], + 'Name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + 'AlertDutyList' => [ + 'title' => '值班表告警列表', + 'description' => '值班表告警列表', + 'type' => 'array', + 'items' => [ + 'title' => '', + 'type' => 'object', + 'properties' => [ + 'Id' => ['title' => '报警值班表ID', 'description' => '报警值班表ID', 'type' => 'string', 'required' => false, 'example' => '1'], + 'Name' => ['title' => '报警值班表名称', 'description' => '报警值班表名称', 'type' => 'string', 'required' => false, 'example' => 'test'], + ], + 'required' => false, + 'description' => '', + ], + 'required' => false, + ], + 'AlertDutyChannelList' => [ + 'title' => '值班表告警渠道', + 'description' => '值班表告警渠道', + 'type' => 'array', + 'items' => ['title' => '值班表告警渠道', 'description' => '值班表告警渠道', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + 'EnableAlertQualityOwner' => ['title' => '开启质量负责人告警', 'description' => '开启质量负责人告警', 'type' => 'boolean', 'required' => false], + 'AlertQualityOwnerChannelList' => [ + 'title' => '质量负责人告警渠道', + 'description' => '质量负责人告警渠道', + 'type' => 'array', + 'items' => ['title' => '质量负责人告警渠道', 'description' => '质量负责人告警渠道', 'type' => 'string', 'required' => false, 'example' => 'test'], + 'required' => false, + ], + ], + 'required' => true, + ], + ], 'required' => true, - 'example' => '202102', ], ], ], @@ -67355,4049 +38888,1757 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'Id of the request', - 'type' => 'string', - 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'AppInfoList' => [ - 'title' => 'Api分组列表', - 'description' => 'Api分组列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'AppKey' => [ - 'title' => 'AppKey', - 'description' => 'AppKey', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '202212', - ], - 'Id' => [ - 'title' => 'AppId', - 'description' => 'AppId', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1021', - ], - 'Name' => [ - 'title' => 'App名称', - 'description' => 'App名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140'], + 'Success' => ['title' => '请求成功与否', 'description' => '请求成功与否', 'type' => 'boolean'], + 'HttpStatusCode' => ['title' => 'HTTP响应码', 'description' => 'HTTP响应码', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'Code' => ['title' => '后端响应码', 'description' => '后端响应码', 'type' => 'string', 'example' => 'OK'], + 'Message' => ['title' => '后端相应异常详情', 'description' => '后端相应异常详情', 'type' => 'string', 'example' => 'internal error'], + 'Data' => ['title' => '请求结果', 'description' => '请求结果', 'type' => 'boolean'], ], ], ], ], 'errorCodes' => [ 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], + ['errorCode' => 'DataphinOpenAPIRamUnAuthorized', 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], ], 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], + ['errorCode' => 'DataphinOpenApiForbidden', 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": true\\n}","type":"json"}]', + 'title' => '新建或者修改监控对象告警设置', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppInfoList\\": [\\n {\\n \\"AppKey\\": 202212,\\n \\"Id\\": 1021,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取账号有权限的数据服务应用列表', + 'ramActions' => [], ], - 'GetDataServiceAppsByGroupId' => [ - 'summary' => '查询分组下应用列表。', - 'methods' => [ - 'post', + ], + 'endpoints' => [ + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dataphin-public.cn-beijing.aliyuncs.com', 'endpoint' => 'dataphin-public.cn-beijing.aliyuncs.com', 'vpc' => 'dataphin-public-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dataphin-public.cn-chengdu.aliyuncs.com', 'endpoint' => 'dataphin-public.cn-chengdu.aliyuncs.com', 'vpc' => 'dataphin-public-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dataphin-public.cn-hangzhou.aliyuncs.com', 'endpoint' => 'dataphin-public.cn-hangzhou.aliyuncs.com', 'vpc' => 'dataphin-public-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dataphin-public.cn-shanghai.aliyuncs.com', 'endpoint' => 'dataphin-public.cn-shanghai.aliyuncs.com', 'vpc' => 'dataphin-public-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'dataphin-public.cn-shenzhen.aliyuncs.com', 'endpoint' => 'dataphin-public.cn-shenzhen.aliyuncs.com', 'vpc' => 'dataphin-public-vpc.cn-shenzhen.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'DataphinOpenApiForbidden', 'message' => 'Openapi request is forbidden, may tenantId invalid.', 'http_code' => 403, 'description' => '接口请求被拒绝,请确认是否有效租户Id。'], + ['code' => 'DataphinOpenApiNotAcceptable', 'message' => 'Request not acceptable, may exceed quota limit.', 'http_code' => 406, 'description' => '请求被拒绝,请确认是否触发限流.'], + ['code' => 'DataphinOpenAPIRamUnAuthorized', 'message' => 'You are not authorized to do this action, you should be authorized by RAM.', 'http_code' => 401, 'description' => 'API调用没有被授权,需要通过RAM访问控制对账号进行授权。'], + ['code' => 'DPNDataSourceConnectivityError', 'message' => '%s.', 'http_code' => 400, 'description' => '数据源连接校验失败.'], + ['code' => 'DPNDataSourceConnectivityError', 'message' => 'Error Message: %ErrorMessage.', 'http_code' => 400, 'description' => '数据源连接校验失败'], + ], + 'changeSet' => [ + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'ApplyDataServiceApi'], + ['description' => '请求参数发生变更', 'api' => 'CreateDataServiceApi'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'GetDataServiceAppGroups'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'GetDataServiceAuthorizedAppsByGroupId'], + ['description' => '请求参数发生变更', 'api' => 'GrantDataServiceApi'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListApiByApp'], + ['description' => '请求参数发生变更', 'api' => 'ListAuthorizedDataServiceApiDetails'], + ['description' => '请求参数发生变更、响应参数发生变更', 'api' => 'ListDataServiceApiCalls'], + ['description' => '响应参数发生变更', 'api' => 'ListDataServicePublishedApis'], + ['description' => '响应参数发生变更', 'api' => 'ListRowPermission'], + ], + 'createdAt' => '2026-02-27T08:12:41.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'CreateDataServiceApi'], + ['description' => '请求参数发生变更', 'api' => 'GrantDataServiceApi'], ], - 'schemes' => [ - 'https', + 'createdAt' => '2025-10-30T01:50:13.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '请求参数发生变更', 'api' => 'OperateInstance'], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + 'createdAt' => '2025-02-20T10:46:16.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'CreateBizUnit'], + ['description' => '错误码发生变更', 'api' => 'CreateDataDomain'], + ['description' => '错误码发生变更', 'api' => 'CreateDataSource'], + ['description' => '错误码发生变更', 'api' => 'CreateDirectory'], + ['description' => '错误码发生变更', 'api' => 'CreateNodeSupplement'], + ['description' => '错误码发生变更', 'api' => 'CreatePipelineNode'], + ['description' => '错误码发生变更', 'api' => 'CreateStreamBatchJobMapping'], + ['description' => '错误码发生变更', 'api' => 'CreateUserGroup'], + ['description' => '错误码发生变更', 'api' => 'DeleteAdHocFile'], + ], + 'createdAt' => '2025-02-17T08:41:37.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'DeleteBatchTask'], + ['description' => '错误码发生变更', 'api' => 'DeleteBizEntity'], + ['description' => '错误码发生变更', 'api' => 'DeleteBizUnit'], + ['description' => '错误码发生变更', 'api' => 'DeleteDataDomain'], + ['description' => '错误码发生变更', 'api' => 'DeleteDataSource'], + ['description' => '错误码发生变更', 'api' => 'DeleteDirectory'], + ['description' => '错误码发生变更', 'api' => 'DeleteUserGroup'], + ['description' => '错误码发生变更', 'api' => 'ExecuteAdHocTask'], + ['description' => '错误码发生变更', 'api' => 'ExecuteManualNode'], + ], + 'createdAt' => '2025-02-17T08:40:24.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'FixData'], + ['description' => '错误码发生变更', 'api' => 'GetAdHocFile'], + ['description' => '错误码发生变更', 'api' => 'GetAdHocTaskLog'], + ['description' => '错误码发生变更', 'api' => 'GetAdHocTaskResult'], + ['description' => '错误码发生变更', 'api' => 'GetAlertEvent'], + ['description' => '错误码发生变更', 'api' => 'GetBatchTaskInfo'], + ['description' => '错误码发生变更', 'api' => 'GetBatchTaskInfoByVersion'], + ['description' => '错误码发生变更', 'api' => 'GetBatchTaskUdfLineages'], + ['description' => '错误码发生变更', 'api' => 'GetBatchTaskVersions'], + ['description' => '错误码发生变更', 'api' => 'GetBizEntityInfo'], + ], + 'createdAt' => '2025-02-17T08:38:29.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetBizUnitInfo'], + ['description' => '错误码发生变更', 'api' => 'GetClusterQueueInfoByEnv'], + ['description' => '错误码发生变更', 'api' => 'GetDataDomainInfo'], + ['description' => '错误码发生变更', 'api' => 'GetDevObjectDependency'], + ['description' => '错误码发生变更', 'api' => 'GetDirectoryTree'], + ['description' => '错误码发生变更', 'api' => 'GetInstanceDownStream'], + ['description' => '错误码发生变更', 'api' => 'GetInstanceUpDownStream'], + ['description' => '错误码发生变更', 'api' => 'GetLatestSubmitDetail'], + ['description' => '错误码发生变更', 'api' => 'GetMyRoles'], + ['description' => '错误码发生变更', 'api' => 'GetMyTenants'], + ], + 'createdAt' => '2025-02-17T08:36:21.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetNodeUpDownStream'], + ['description' => '错误码发生变更', 'api' => 'GetOperationSubmitStatus'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalInstance'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalInstanceLog'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalNode'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalNodeByOutputName'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalNodeContent'], + ['description' => '错误码发生变更', 'api' => 'GetPhysicalNodeOperationLog'], + ['description' => '错误码发生变更', 'api' => 'GetProjectProduceUser'], + ['description' => '错误码发生变更', 'api' => 'GetQueueEngineVersionByEnv'], + ], + 'createdAt' => '2025-02-17T08:34:08.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'GetSupplementDagrun'], + ['description' => '错误码发生变更', 'api' => 'GetSupplementDagrunInstance'], + ['description' => '错误码发生变更', 'api' => 'GetUserBySourceId'], + ['description' => '错误码发生变更', 'api' => 'GetUserGroup'], + ['description' => '错误码发生变更', 'api' => 'GetUsers'], + ['description' => '错误码发生变更', 'api' => 'GrantResourcePermission'], + ['description' => '错误码发生变更', 'api' => 'ListAddableRoles'], + ['description' => '错误码发生变更', 'api' => 'ListAddableUsers'], + ['description' => '错误码发生变更', 'api' => 'ListAlertEvents'], + ], + 'createdAt' => '2025-02-17T08:32:21.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'ListAlertNotifications'], + ['description' => '错误码发生变更', 'api' => 'ListBizEntities'], + ['description' => '错误码发生变更', 'api' => 'ListBizUnits'], + ['description' => '错误码发生变更', 'api' => 'ListDataDomains'], + ['description' => '错误码发生变更', 'api' => 'ListDataSourceWithConfig'], + ['description' => '错误码发生变更', 'api' => 'ListFiles'], + ['description' => '错误码发生变更', 'api' => 'ListInstances'], + ['description' => '错误码发生变更', 'api' => 'ListNodeDownStream'], + ['description' => '错误码发生变更', 'api' => 'ListNodes'], + ], + 'createdAt' => '2025-02-17T08:30:33.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'ListPublishRecords'], + ['description' => '错误码发生变更', 'api' => 'ListResourcePermissionOperationLog'], + ['description' => '错误码发生变更', 'api' => 'ListResourcePermissions'], + ['description' => '错误码发生变更', 'api' => 'ListSubmitRecords'], + ['description' => '错误码发生变更', 'api' => 'ListTenantMembers'], + ['description' => '错误码发生变更', 'api' => 'ListUserGroupMembers'], + ['description' => '错误码发生变更', 'api' => 'ListUserGroups'], + ['description' => '错误码发生变更', 'api' => 'OfflineBatchTask'], + ['description' => '错误码发生变更', 'api' => 'OfflineBizEntity'], + ], + 'createdAt' => '2025-02-17T08:26:50.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'OnlineBizEntity'], + ['description' => '错误码发生变更', 'api' => 'OperateInstance'], + ['description' => '错误码发生变更', 'api' => 'ParseBatchTaskDependency'], + ['description' => '错误码发生变更', 'api' => 'PausePhysicalNode'], + ['description' => '错误码发生变更', 'api' => 'PublishObjectList'], + ['description' => '错误码发生变更', 'api' => 'RemoveTenantMember'], + ['description' => '错误码发生变更', 'api' => 'RemoveUserGroupMember'], + ['description' => '错误码发生变更', 'api' => 'ResumePhysicalNode'], + ['description' => '错误码发生变更', 'api' => 'RevokeResourcePermission'], + ['description' => '错误码发生变更', 'api' => 'StopAdHocTask'], + ], + 'createdAt' => '2025-02-17T08:23:57.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'UpdateBizEntity'], + ['description' => '错误码发生变更', 'api' => 'UpdateBizUnit'], + ['description' => '错误码发生变更', 'api' => 'UpdateDataDomain'], + ['description' => '错误码发生变更', 'api' => 'UpdateDataSourceBasicInfo'], + ['description' => '错误码发生变更', 'api' => 'UpdateDataSourceConfig'], + ['description' => '错误码发生变更', 'api' => 'UpdateFileDirectory'], + ['description' => '错误码发生变更', 'api' => 'UpdateFileName'], + ['description' => '错误码发生变更', 'api' => 'UpdateTenantMember'], + ['description' => '错误码发生变更', 'api' => 'UpdateUserGroup'], + ['description' => '错误码发生变更', 'api' => 'UpdateUserGroupSwitch'], + ], + 'createdAt' => '2025-02-17T08:18:56.000Z', + 'description' => '', + ], + [ + 'apis' => [ + ['description' => '错误码发生变更', 'api' => 'AddTenantMembers'], + ['description' => '错误码发生变更', 'api' => 'AddTenantMembersBySourceUser'], + ['description' => '错误码发生变更', 'api' => 'AddUserGroupMember'], + ['description' => '错误码发生变更', 'api' => 'CheckDataSourceConnectivity'], + ['description' => '错误码发生变更', 'api' => 'CheckDataSourceConnectivityById'], + ['description' => '错误码发生变更', 'api' => 'CheckResourcePermission'], + ['description' => '错误码发生变更', 'api' => 'CreateAdHocFile'], + ['description' => '错误码发生变更', 'api' => 'CreateBatchTask'], + ['description' => '错误码发生变更', 'api' => 'CreateBizEntity'], + ], + 'createdAt' => '2025-02-17T08:15:23.000Z', + 'description' => '', + ], + ], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ram' => [ + 'productCode' => 'Dataphin', + 'productName' => '智能数据建设与治理 Dataphin', + 'ramCodes' => ['dataphin'], + 'ramLevel' => '操作级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'GetUserGroup', + 'description' => '获取用户组详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'CheckDataSourceConnectivityById', + 'description' => '通过数据源ID校验连通性', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'dataphin:CheckDataSourceConnectivityById', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'GetSupplementDagrun', + 'description' => '获取补数据工作流Dagrun列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetSupplementDagrun', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'GetSparkLocalClientInfo', + 'description' => '获取计算源对应集群的spark客户信息', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:GetSparkLocalClientInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'GroupId', - 'in' => 'query', - 'schema' => [ - 'title' => 'App分组Id', - 'description' => 'App分组Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '202102', + ], + [ + 'apiName' => 'CreateDataSource', + 'description' => '新建数据源', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDataSource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'AppInfoList' => [ - 'title' => 'Api分组列表', - 'description' => 'Api分组列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'AppId', - 'description' => 'AppId', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1021', - ], - 'Name' => [ - 'title' => 'App名称', - 'description' => 'App名称', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], + [ + 'apiName' => 'UpdateFileName', + 'description' => '更新文件名', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateFileName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'ListNodes', + 'description' => '查询调度节点列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListNodes', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'GetPhysicalInstanceLog', + 'description' => '获取实例执行日志', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalInstanceLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'ListBizEntities', + 'description' => '查询业务实体列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListBizEntities', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppInfoList\\": [\\n {\\n \\"Id\\": 1021,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '根据应用分组Id获取数据服务应用列表', - ], - 'GetDataServiceAppGroups' => [ - 'summary' => '查询数据服务项目的应用分组列表。', - 'methods' => [ - 'post', + [ + 'apiName' => 'DeleteAdHocFile', + 'description' => '删除即席查询文件', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'UpdateDataSourceConfig', + 'description' => '编辑数据源链接配置项', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataSourceConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetPhysicalNode', + 'description' => '查询物理调度节点', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetMyTenants', + 'description' => '获取当前用户归属租户', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'dataphin:GetMyTenants', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'ListResourcePermissionOperationLog', + 'description' => '分页获取权限操作日志', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListResourcePermissionOperationLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'GetDataDomainInfo', + 'description' => '查询主题域详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDataDomainInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'AppGroupList' => [ - 'title' => 'App分组列表', - 'description' => 'App分组列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '分组ID', - 'description' => '分组ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1022', - ], - 'Name' => [ - 'title' => '分组名字', - 'description' => '分组名字', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], + [ + 'apiName' => 'GetLatestSubmitDetail', + 'description' => '获取最近一条提交详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetLatestSubmitDetail', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetProjectProduceUser', + 'description' => '获得项目生产账号', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetProjectProduceUser', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'GetClusterQueueInfoByEnv', + 'description' => '获取环境集群队列信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetClusterQueueInfoByEnv', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'CreateBatchTask', + 'description' => '创建离线计算任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"AppGroupList\\": [\\n {\\n \\"Id\\": 1022,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取数据服务应用分组列表', - ], - 'GetDataServiceAppAuthorizedUsers' => [ - 'summary' => '获取应用有权限的用户列表。', - 'methods' => [ - 'post', + [ + 'apiName' => 'ListDataDomains', + 'description' => '查询主题域列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListDataDomains', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'ListFiles', + 'description' => '查询文件列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListFiles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListAlertEvents', + 'description' => '查询告警事件列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAlertEvents', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'PublishObjectList', + 'description' => '批量发布对象', 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'dataphin:PublishObjectList', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'GetBatchTaskInfo', + 'description' => '查询离线计算任务详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'OperateInstance', + 'description' => '实例运维', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OperateInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'AppId', - 'in' => 'query', - 'schema' => [ - 'title' => 'AppId', - 'description' => 'AppId', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1022', + ], + [ + 'apiName' => 'UpdateDataDomain', + 'description' => '更新主题域', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'UserList' => [ - 'title' => '用户列表', - 'description' => '用户列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'DisplayName' => [ - 'title' => '展示名', - 'description' => '展示名', - 'type' => 'string', - 'example' => 'test', - ], - 'Id' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'example' => '30002101', - ], - ], - ], - ], - ], + [ + 'apiName' => 'ListAlertNotifications', + 'description' => '查询推送记录列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAlertNotifications', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'StopAdHocTask', + 'description' => '终止即席查询任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:StopAdHocTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'ListResourcePermissions', + 'description' => '分页获取权限授权记录', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListResourcePermissions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'OfflineBizEntity', + 'description' => '下线业务实体', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OfflineBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"UserList\\": [\\n {\\n \\"DisplayName\\": \\"test\\",\\n \\"Id\\": \\"30002101\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取有数据服务应用权限的用户列表', - ], - 'GetDataServiceApiGroups' => [ - 'summary' => '查询数据服务API分组列表。', - 'methods' => [ - 'post', + [ + 'apiName' => 'GetBatchTaskInfoByVersion', + 'description' => '查询指定版本离线计算任务详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskInfoByVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListDataSourceWithConfig', + 'description' => '查询数据源列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListDataSourceWithConfig', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'DeleteBatchTask', + 'description' => '删除离线计算任务', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'DeleteDirectory', + 'description' => '删除菜单树文件目录', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'ListCatalogAssets', + 'description' => '查询资产目录列表', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'ramAction' => [ + 'action' => 'dataphin:ListCatalogAssets', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'UpdateBatchTaskUdfLineages', + 'description' => '更新离线计算任务自定义血缘', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBatchTaskUdfLineages', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ApiGroupList' => [ - 'title' => 'Api分组列表', - 'description' => 'Api分组列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '分组ID', - 'description' => '分组ID', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '101231', - ], - 'Name' => [ - 'title' => '分组名', - 'description' => '分组名', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - ], - ], + [ + 'apiName' => 'CheckDataSourceConnectivity', + 'description' => '校验数据源连通性', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckDataSourceConnectivity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetDirectoryTree', + 'description' => '获取文件夹目录树', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDirectoryTree', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'GetInstanceDownStream', + 'description' => '获取实例下游实例列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetInstanceDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'FixData', + 'description' => '修复性数据重跑', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:FixData', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ApiGroupList\\": [\\n {\\n \\"Id\\": 101231,\\n \\"Name\\": \\"test\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取数据服务API分组列表', - ], - 'GetDataServiceApiErrorImpact' => [ - 'summary' => '获取API异常影响汇总。', - 'methods' => [ - 'post', + [ + 'apiName' => 'CreateDataDomain', + 'description' => '创建主题域', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'CreateNodeSupplement', + 'description' => '通用补数据接口', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateNodeSupplement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetUserBySourceId', + 'description' => '通过原始用户ID获取用户详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUserBySourceId', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetInstanceUpDownStream', + 'description' => '查询实例的上下游', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'dataphin:GetInstanceUpDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'ListAddableUsers', + 'description' => '查询租户可添加用户', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAddableUsers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'CreateAdHocFile', + 'description' => '创建即席查询文件', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', + ], + [ + 'apiName' => 'UpdateFileDirectory', + 'description' => '移动菜单树文件位置', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateFileDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 20:00:00', + ], + [ + 'apiName' => 'DeleteDataDomain', + 'description' => '删除主题域', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDataDomain', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '调用异常影响汇总', - 'description' => '调用异常影响汇总', - 'type' => 'object', - 'properties' => [ - 'ErrorAppList' => [ - 'title' => '异常影响的APP', - 'description' => '异常影响的APP', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'AppId' => [ - 'title' => 'appId', - 'description' => 'appId', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1021', - ], - 'AppKey' => [ - 'title' => 'appKey', - 'description' => 'appKey', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100211', - ], - 'ErrorCount' => [ - 'title' => 'app异常数', - 'description' => 'app异常数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'AppName' => [ - 'title' => 'app名称', - 'description' => 'app名称', - 'type' => 'string', - 'example' => 'app1', - ], - ], - ], - ], - 'ErrorApiList' => [ - 'title' => '异常影响API', - 'description' => '异常影响API', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'AppId' => [ - 'title' => 'api编码', - 'description' => 'api编码', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2012', - ], - 'ApiName' => [ - 'title' => 'api名称', - 'description' => 'api名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ErrorCount' => [ - 'title' => 'api异常数', - 'description' => 'api异常数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'GetSupplementDagrunInstance', + 'description' => '获取补数据工作流Dagrun下实例列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetSupplementDagrunInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetNodeUpDownStream', + 'description' => '获取节点上下游', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetNodeUpDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'UpdateAdHocFile', + 'description' => '修改即席查询文件', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'AddTenantMembers', + 'description' => '添加用户到租户', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddTenantMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'CreateUserGroup', + 'description' => '新建用户组', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"ErrorAppList\\": [\\n {\\n \\"AppId\\": 1021,\\n \\"AppKey\\": 100211,\\n \\"ErrorCount\\": 10,\\n \\"AppName\\": \\"app1\\"\\n }\\n ],\\n \\"ErrorApiList\\": [\\n {\\n \\"AppId\\": 2012,\\n \\"ApiName\\": \\"test\\",\\n \\"ErrorCount\\": 100\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取数据服务API异常影响', - ], - 'GetDataServiceApiDocument' => [ - 'summary' => '获取API文档。', - 'methods' => [ - 'post', + [ + 'apiName' => 'ListNodeDownStream', + 'description' => '查询节点下游', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListNodeDownStream', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateTenantMember', + 'description' => '编辑租户成员', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateTenantMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'UpdateUserGroup', + 'description' => '更新用户组', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'RemoveTenantMember', + 'description' => '移除租户成员', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:RemoveTenantMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'ParseBatchTaskDependency', + 'description' => '解析离线计算任务的逻辑表依赖', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', + 'ramAction' => [ + 'action' => 'dataphin:ParseBatchTaskDependency', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'ListAuthorizedDataServiceApiDetails', + 'description' => '查询应用已申请的API的具体的字段列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAuthorizedDataServiceApiDetails', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'Id', - 'in' => 'query', - 'schema' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '102101', + ], + [ + 'apiName' => 'GetQualityWatch', + 'description' => '获取质量监控对象', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetQualityWatch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'VersionId', - 'in' => 'query', - 'schema' => [ - 'title' => '版本', - 'description' => '版本', - 'type' => 'string', - 'required' => false, - 'example' => '1', + ], + [ + 'apiName' => 'GetBatchTaskUdfLineages', + 'description' => '查询离线计算任务自定义血缘', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskUdfLineages', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => 'Api文档', - 'description' => 'Api文档', - 'type' => 'object', - 'properties' => [ - 'Name' => [ - 'title' => 'api名称', - 'description' => 'api名称', - 'type' => 'string', - 'example' => '测试', - ], - 'GroupId' => [ - 'title' => 'api分组Id', - 'description' => 'api分组Id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1011', - ], - 'GroupName' => [ - 'title' => 'api分组名称', - 'description' => 'api分组名称', - 'type' => 'string', - 'example' => '1011', - ], - 'RequestMethod' => [ - 'title' => '请求方法: 1 get、2 list', - 'description' => '请求方法: 1 get、2 list', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'UpdateRate' => [ - 'title' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', - 'description' => '更新频率: 0 自定义、1 每天、2 每小时、3 每分钟', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'test', - ], - 'ReturnType' => [ - 'title' => '返回数据类型: 1 JSON', - 'description' => '返回数据类型: 1 JSON', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Protocol' => [ - 'title' => '协议: 1 https、2 http、3 http和https两者', - 'description' => '协议: 1 https、2 http、3 http和https两者', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Sql' => [ - 'title' => 'sql语句', - 'description' => 'sql语句', - 'type' => 'string', - 'example' => 'select col1 from table1;', - ], - 'RequestParamList' => [ - 'title' => '请求参数列表', - 'description' => '请求参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'DefaultValue' => [ - 'title' => '默认值', - 'description' => '默认值', - 'type' => 'string', - 'example' => '1', - ], - 'Type' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'string', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '测试', - ], - 'IsRequired' => [ - 'title' => '请求参数是否必填:1、是, 0、选填', - 'description' => '请求参数是否必填:1、是, 0、选填', - 'type' => 'boolean', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - ], - 'ResponseParamList' => [ - 'title' => '响应参数列表', - 'description' => '响应参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'string', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '测试', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - ], - 'PublicParamList' => [ - 'title' => '公共参数列表', - 'description' => '公共参数列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Type' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'string', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '测试', - ], - 'IsRequired' => [ - 'title' => '请求参数是否必填:1、是, 0、选填', - 'description' => '请求参数是否必填:1、是, 0、选填', - 'type' => 'boolean', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'test', - ], - 'Name' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'col1', - ], - ], - ], - ], - 'IsSpecialSql' => [ - 'title' => '特殊sql: 0 不是、1 是', - 'description' => '特殊sql: 0 不是、1 是', - 'type' => 'boolean', - ], - 'CreateType' => [ - 'title' => '创建类型: 0 自定义模式、1 向导模式、2-直连API', - 'description' => '创建类型: 0 自定义模式、1 向导模式、2-直连API', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ApiId' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102101', - ], - 'Mode' => [ - 'title' => '模式:0 basic、1 dev_prod', - 'description' => '模式:0 basic、1 dev_prod', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'Env' => [ - 'title' => '环境:0 dev,1 prod', - 'description' => '环境:0 dev,1 prod', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ResultSample' => [ - 'title' => '调用结果样例', - 'description' => '调用结果样例', - 'type' => 'string', - 'example' => '{"count": 88}', - ], - 'BizUnitName' => [ - 'title' => '业务板块名(仅逻辑表时有值)', - 'description' => '业务板块名(仅逻辑表时有值)', - 'type' => 'string', - 'example' => 'bizUnit_test', - ], - 'TableName' => [ - 'title' => '逻辑表名(仅逻辑表时有值)', - 'description' => '逻辑表名(仅逻辑表时有值)', - 'type' => 'string', - 'example' => 't_logical_test1', - ], - 'IsLogicalTable' => [ - 'title' => '是否逻辑表', - 'description' => '是否逻辑表', - 'type' => 'boolean', - ], - 'DirectDatasourceId' => [ - 'title' => '直连API的数据源ID', - 'description' => '直连API的数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DirectDatasourceName' => [ - 'title' => '直连API的数据源名称', - 'description' => '直连API的数据源名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ApiTimeout' => [ - 'title' => '直连Api超时时长(s)', - 'description' => '直连Api超时时长(s)', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '60', - ], - 'ReturnLimit' => [ - 'title' => '直连Api最大返回记录数', - 'description' => '直连Api最大返回记录数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'ProjectId' => [ - 'title' => '数据服务项目id', - 'description' => '数据服务项目id', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10201', - ], - 'ProjectName' => [ - 'title' => '数据服务项目名称', - 'description' => '数据服务项目名称', - 'type' => 'string', - 'example' => 'test', - ], - 'ResourceGroupId' => [ - 'title' => '资源组Id', - 'description' => '资源组Id', - 'type' => 'string', - 'example' => '10021', - ], - 'ResourceGroupName' => [ - 'title' => '资源组名', - 'description' => '资源组名', - 'type' => 'string', - 'example' => 'test', - ], - 'OpenCache' => [ - 'title' => '缓存开关:0 关,1 开', - 'description' => '缓存开关:0 关,1 开', - 'type' => 'boolean', - ], - 'CacheTime' => [ - 'title' => '缓存时长(秒)', - 'description' => '缓存时长(秒)', - 'type' => 'string', - 'example' => '600', - ], - 'Timeout' => [ - 'title' => '超时时长(秒)', - 'description' => '超时时长(秒)', - 'type' => 'string', - 'example' => '60', - ], - 'ScriptType' => [ - 'title' => '脚本类型: NORMAL_SQL 基础SQL、MYBATIS_SQL 高级SQL、AVIATOR aviator表达式', - 'description' => '脚本类型: NORMAL_SQL 基础SQL、MYBATIS_SQL 高级SQL、AVIATOR aviator表达式', - 'type' => 'string', - 'example' => 'NORMAL_SQL', - ], - 'ApiRegisterInfo' => [ - 'title' => 'Api注册信息', - 'description' => 'Api注册信息', - 'type' => 'object', - 'properties' => [ - 'Mode' => [ - 'title' => '模式:0 basic、1 dev_prod', - 'description' => '模式:0 basic、1 dev_prod', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'HttpMethod' => [ - 'title' => '注册API请求方式:1 get、2 post', - 'description' => '注册API请求方式:1 get、2 post', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'DatasourceId' => [ - 'title' => 'API数据源ID', - 'description' => 'API数据源ID', - 'type' => 'string', - 'example' => '102311', - ], - 'DatasourceName' => [ - 'title' => 'API数据源名称', - 'description' => 'API数据源名称', - 'type' => 'string', - 'example' => 'test', - ], - 'Url' => [ - 'title' => 'API数据源URL地址', - 'description' => 'API数据源URL地址', - 'type' => 'string', - 'example' => 'http://192.168.1.1:8080', - ], - 'AuthType' => [ - 'title' => 'API数据源认证方式: 1 BearToken、2 ApiKey、3 None、4 AppKeyAuth、5 BasicAuth', - 'description' => 'API数据源认证方式: 1 BearToken、2 ApiKey、3 None、4 AppKeyAuth、5 BasicAuth', - 'type' => 'string', - 'example' => '3', - ], - 'Protocol' => [ - 'title' => 'API数据源请求协议', - 'description' => 'API数据源请求协议', - 'type' => 'string', - 'example' => 'https', - ], - 'Path' => [ - 'title' => '服务path', - 'description' => '服务path', - 'type' => 'string', - 'example' => '/api/test', - ], - 'Timeout' => [ - 'title' => '超时时长(秒)', - 'description' => '超时时长(秒)', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '60', - ], - ], - ], - 'Version' => [ - 'title' => '版本', - 'description' => '版本', - 'type' => 'string', - 'example' => '1.0', - ], - 'IsPagedQuery' => [ - 'title' => '是否是分页查询: 1 是、0 否', - 'description' => '是否是分页查询: 1 是、0 否', - 'type' => 'boolean', - ], - ], - ], - ], + [ + 'apiName' => 'CreateBizEntity', + 'description' => '创建业务实体', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CreateBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetBizEntityInfo', + 'description' => '查询业务实体详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBizEntityInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'RevokeResourcePermission', + 'description' => '回收用户资源授权', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:RevokeResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'GetAdHocTaskLog', + 'description' => '获取即席查询任务运行日志', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocTaskLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"Name\\": \\"测试\\",\\n \\"GroupId\\": 1011,\\n \\"GroupName\\": \\"1011\\",\\n \\"RequestMethod\\": 1,\\n \\"UpdateRate\\": 1,\\n \\"Description\\": \\"test\\",\\n \\"ReturnType\\": 1,\\n \\"Protocol\\": 1,\\n \\"Sql\\": \\"select col1 from table1;\\",\\n \\"RequestParamList\\": [\\n {\\n \\"DefaultValue\\": \\"1\\",\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"IsRequired\\": true,\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"ResponseParamList\\": [\\n {\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"PublicParamList\\": [\\n {\\n \\"Type\\": \\"string\\",\\n \\"Description\\": \\"测试\\",\\n \\"IsRequired\\": true,\\n \\"Sample\\": \\"test\\",\\n \\"Name\\": \\"col1\\"\\n }\\n ],\\n \\"IsSpecialSql\\": true,\\n \\"CreateType\\": 1,\\n \\"ApiId\\": 102101,\\n \\"Mode\\": 1,\\n \\"Env\\": 1,\\n \\"ResultSample\\": \\"{\\\\\\"count\\\\\\": 88}\\",\\n \\"BizUnitName\\": \\"bizUnit_test\\",\\n \\"TableName\\": \\"t_logical_test1\\",\\n \\"IsLogicalTable\\": true,\\n \\"DirectDatasourceId\\": 1,\\n \\"DirectDatasourceName\\": \\"test\\",\\n \\"ApiTimeout\\": 60,\\n \\"ReturnLimit\\": 100,\\n \\"ProjectId\\": 10201,\\n \\"ProjectName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"10021\\",\\n \\"ResourceGroupName\\": \\"test\\",\\n \\"OpenCache\\": true,\\n \\"CacheTime\\": \\"600\\",\\n \\"Timeout\\": \\"60\\",\\n \\"ScriptType\\": \\"NORMAL_SQL\\",\\n \\"ApiRegisterInfo\\": {\\n \\"Mode\\": 1,\\n \\"HttpMethod\\": 2,\\n \\"DatasourceId\\": \\"102311\\",\\n \\"DatasourceName\\": \\"test\\",\\n \\"Url\\": \\"http://192.168.1.1:8080\\",\\n \\"AuthType\\": \\"3\\",\\n \\"Protocol\\": \\"https\\",\\n \\"Path\\": \\"/api/test\\",\\n \\"Timeout\\": 60\\n },\\n \\"Version\\": \\"1.0\\",\\n \\"IsPagedQuery\\": true\\n }\\n}","type":"json"}]', - 'title' => '获取API文档详情', - ], - 'GetDataServiceApiCallTrend' => [ - 'summary' => '运维监控:Api访问趋势分析。', - 'methods' => [ - 'post', + [ + 'apiName' => 'UpdateBizEntity', + 'description' => '更新业务实体', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'AddTenantMembersBySourceUser', + 'description' => '根据认证系统的来源用户ID添加用户到租户', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddTenantMembersBySourceUser', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'AddUserGroupMember', + 'description' => '添加用户组成员', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:AddUserGroupMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetBizUnitInfo', + 'description' => '查询数据板块详情', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'ramAction' => [ + 'action' => 'dataphin:GetBizUnitInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'GetBizEntityInfoByVersion', + 'description' => '查询指定版本业务实体详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBizEntityInfoByVersion', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', + ], + [ + 'apiName' => 'GetPhysicalNodeByOutputName', + 'description' => '根据输出名查询物理节点', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeByOutputName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 20:00:00', + ], + [ + 'apiName' => 'ListSubmitRecords', + 'description' => '分页查询待发布记录', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListSubmitRecords', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '访问趋势', - 'description' => '访问趋势', - 'type' => 'object', - 'properties' => [ - 'CallErrorTrendList' => [ - 'title' => '调用异常趋势,按分钟升序', - 'description' => '调用异常趋势,按分钟升序', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Minute' => [ - 'title' => '分钟,格式:yyyy_MMdd_HHmm', - 'description' => '分钟,格式:yyyy_MMdd_HHmm', - 'type' => 'string', - 'example' => '3', - ], - 'CallCount' => [ - 'title' => '调用次数', - 'description' => '调用次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1021', - ], - 'ErrorCount' => [ - 'title' => '调用异常次数', - 'description' => '调用异常次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102', - ], - ], - ], - ], - 'CallErrorImpactTrendList' => [ - 'title' => '调用异常影响趋势,按分钟升序', - 'description' => '调用异常影响趋势,按分钟升序', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ErrorApiCount' => [ - 'title' => '调用异常API数', - 'description' => '调用异常API数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'Minute' => [ - 'title' => '时间刻度,分钟:yyyy-MM-dd HH:mm', - 'description' => '时间刻度,分钟:yyyy-MM-dd HH:mm', - 'type' => 'string', - 'example' => '2025-06-30 08:00', - ], - 'ErrorAppCount' => [ - 'title' => '影响APP数', - 'description' => '影响APP数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'ApiIdList' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'array', - 'items' => [ - 'title' => 'Api编号', - 'description' => 'Api编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1203', - ], - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'ExecuteAdHocTask', + 'description' => '执行即席查询任务', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dataphin:ExecuteAdHocTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetPhysicalInstance', + 'description' => '获取实例信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalInstance', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'GetPhysicalNodeOperationLog', + 'description' => '查询节点的操作日志', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeOperationLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"CallErrorTrendList\\": [\\n {\\n \\"Minute\\": \\"3\\",\\n \\"CallCount\\": 1021,\\n \\"ErrorCount\\": 102\\n }\\n ],\\n \\"CallErrorImpactTrendList\\": [\\n {\\n \\"ErrorApiCount\\": 5,\\n \\"Minute\\": \\"2025-06-30 08:00\\",\\n \\"ErrorAppCount\\": 1,\\n \\"ApiIdList\\": [\\n 1203\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取数据服务Api访问趋势分析', - ], - 'GetDataServiceApiCallSummary' => [ - 'summary' => '运维监控:获取Api调用汇总统计。', - 'methods' => [ - 'post', + [ + 'apiName' => 'OfflineBatchTask', + 'description' => '下线离线计算任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OfflineBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'ListInstances', + 'description' => '获取实例列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListInstances', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'SubmitBatchTask', + 'description' => '提交离线计算任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:SubmitBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetQueueEngineVersionByEnv', + 'description' => '获取集群引擎的版本信息', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + 'ramAction' => [ + 'action' => 'dataphin:GetQueueEngineVersionByEnv', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', + ], + [ + 'apiName' => 'ListBizUnits', + 'description' => '查询当前租户下的所有数据板块', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListBizUnits', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'StartTime', - 'in' => 'query', - 'schema' => [ - 'title' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '起始时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 08:00:00', + ], + [ + 'apiName' => 'DeleteDataSource', + 'description' => '删除数据源', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteDataSource', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'EndTime', - 'in' => 'query', - 'schema' => [ - 'title' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'description' => '截止时间, 时间格式:yyyy-MM-dd HH:mm:ss', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30 20:00:00', + ], + [ + 'apiName' => 'CreateBizUnit', + 'description' => '创建数据板块', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'Data' => [ - 'title' => '调用汇总', - 'description' => '调用汇总', - 'type' => 'object', - 'properties' => [ - 'CallCount' => [ - 'title' => 'API调用次数', - 'description' => 'API调用次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1021', - ], - 'ErrorCount' => [ - 'title' => '调用异常次数', - 'description' => '调用异常次数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '102', - ], - 'ErrorRate' => [ - 'title' => '错误率', - 'description' => '错误率', - 'type' => 'number', - 'format' => 'double', - 'example' => '10.01', - ], - 'OfflineRate' => [ - 'title' => 'offline百分比', - 'description' => 'offline百分比', - 'type' => 'number', - 'format' => 'double', - 'example' => '2.03', - ], - 'ErrorApiCount' => [ - 'title' => '调用异常API数', - 'description' => '调用异常API数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '8', - ], - 'ErrorAppCount' => [ - 'title' => '异常影响APP数', - 'description' => '异常影响APP数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - ], - ], - ], + [ + 'apiName' => 'UpdateUserGroupSwitch', + 'description' => '修改用户组的启用状态', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateUserGroupSwitch', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GrantResourcePermission', + 'description' => '授权用户资源的权限', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:GrantResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'ListAddableRoles', + 'description' => '获取可配置用户的全局角色', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListAddableRoles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"Data\\": {\\n \\"CallCount\\": 1021,\\n \\"ErrorCount\\": 102,\\n \\"ErrorRate\\": 10.01,\\n \\"OfflineRate\\": 2.03,\\n \\"ErrorApiCount\\": 8,\\n \\"ErrorAppCount\\": 2\\n }\\n}","type":"json"}]', - 'title' => '获取数据服务Api调用汇总', - ], - 'ApplyDataServiceApp' => [ - 'summary' => '申请应用权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'PausePhysicalNode', + 'description' => '暂停物理节点调度', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:PausePhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetAlertEvent', + 'description' => '获取告警事件详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAlertEvent', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], - ], - [ - 'name' => 'ApplyCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '申请指令', - 'description' => '申请指令', - 'type' => 'object', - 'properties' => [ - 'ExpireDate' => [ - 'title' => '有效期,日期格式:yyyy-MM-dd', - 'description' => '有效期,日期格式:yyyy-MM-dd', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30', - ], - 'Reason' => [ - 'title' => '申请原因', - 'description' => '申请原因', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'AppId' => [ - 'title' => 'appId', - 'description' => 'appId', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '2011', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '申请数据服务应用权限', - ], - 'ApplyDataServiceApi' => [ - 'summary' => '申请API权限。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], - ], - [ - 'name' => 'ApplyCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '申请指令', - 'description' => '申请指令', - 'type' => 'object', - 'properties' => [ - 'ExpireDate' => [ - 'title' => '有效期,日期格式:yyyy-MM-dd', - 'description' => '有效期,日期格式:yyyy-MM-dd', - 'type' => 'string', - 'required' => true, - 'example' => '2025-06-30', - ], - 'Reason' => [ - 'title' => '申请原因', - 'description' => '申请原因', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'ApiId' => [ - 'title' => 'API编号', - 'description' => 'API编号', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '1021', - ], - 'AppId' => [ - 'title' => 'AppId', - 'description' => 'AppId', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1203', - ], - 'ProdFieldList' => [ - 'title' => 'PROD权限字段列表,basic模式下必填', - 'description' => 'PROD权限字段列表,basic模式下必填', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'Api权限字段id', - 'description' => 'Api权限字段id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '22', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - 'DevFieldList' => [ - 'title' => 'DEV权限字段列表,dev-prod模式下才需要填且devFieldList、prodFieldList至少填写1个', - 'description' => 'DEV权限字段列表,dev-prod模式下才需要填且devFieldList、prodFieldList至少填写1个', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'Api权限字段id', - 'description' => 'Api权限字段id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '22', - ], - ], - 'required' => false, - ], - 'required' => false, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + [ + 'apiName' => 'CheckResourcePermission', + 'description' => '校验用户是否有指定资源权限点', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckResourcePermission', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '申请数据服务API权限', - ], - 'AddDataServiceProjectMember' => [ - 'summary' => '添加数据服务项目用户并设置角色。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'ProjectId', - 'in' => 'query', - 'schema' => [ - 'title' => '数据服务项目Id', - 'description' => '数据服务项目Id', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '102102', - ], - ], - [ - 'name' => 'AddCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '新增项目成员指令', - 'description' => '新增项目成员指令', - 'type' => 'object', - 'properties' => [ - 'ProjectMemberList' => [ - 'title' => '新增项目成员列表', - 'description' => '新增项目成员列表', - 'type' => 'array', - 'items' => [ - 'title' => '', - 'type' => 'object', - 'properties' => [ - 'Role' => [ - 'title' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', - 'description' => '用户角色: 2 开发用户,3 应用成员,4 服务项目管理员,5 运维用户', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '2', - ], - 'UserId' => [ - 'title' => '用户ID', - 'description' => '用户ID', - 'type' => 'string', - 'required' => true, - 'example' => '30012011', - ], - 'DisplayName' => [ - 'title' => '用户昵称', - 'description' => '用户昵称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], - 'AccountName' => [ - 'title' => '用户账号', - 'description' => '用户账号', - 'type' => 'string', - 'required' => true, - 'example' => 'xx@aliyuncs.com', - ], - ], - 'required' => false, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\"\\n}","type":"json"}]', - 'title' => '新增数据服务项目成员', - ], - 'CreateDataServiceApi' => [ - 'summary' => '创建新的数据服务API并提交。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'CreateCommand', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => 'API信息', - 'description' => '新建API请求', - 'type' => 'object', - 'properties' => [ - 'ApiName' => [ - 'title' => 'Api的名称', - 'description' => 'Api的名称', - 'type' => 'string', - 'required' => true, - 'example' => 'API_01', - ], - 'Version' => [ - 'title' => 'api初始版本名称', - 'description' => 'Api的版本', - 'type' => 'string', - 'required' => true, - 'example' => 'V1', - ], - 'ApiType' => [ - 'title' => 'Api的类型:'."\n" - .'- 3:数据源SQL模式', - 'description' => 'Api的类型:'."\n" - ."\n" - .'- 3:数据源SQL模式', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'enumValueTitles' => [], - 'example' => '3', - ], - 'Mode' => [ - 'title' => 'Api的开发模式:'."\n" - .'- 0:Basic模式 '."\n" - .'- 1:Dev-Prod模式', - 'description' => 'Api的开发模式:'."\n" - ."\n" - .'- 0:Basic模式 '."\n" - .'- 1:Dev-Prod模式', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], - 'ProjectId' => [ - 'title' => '数据服务项目ID', - 'description' => '数据服务项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '123', - ], - 'ApiGroupId' => [ - 'title' => 'Api分组ID', - 'description' => 'Api的分组ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '101', - ], - 'ApiGroupName' => [ - 'title' => 'Api分组名称', - 'description' => 'Api的分组名称', - 'type' => 'string', - 'required' => true, - 'example' => '默认API分组', - ], - 'Description' => [ - 'title' => 'Api的描述信息', - 'description' => 'Api的描述信息', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'RequestType' => [ - 'title' => 'api的请求方式,可选枚举值包括 :'."\n" - .'0(GET):仅返回单条,查询结果唯一 '."\n" - .'1(LIST):返回多条'."\n" - .'2(CREATE):创建对象,可支持单条或批量创建'."\n" - .'3(UPDATE):更新对象,可支持单条或批量更新'."\n" - .'4(DELETE):删除对象,可支持单条或批量删除', - 'description' => 'Api的请求方式:'."\n" - ."\n" - .'- 0(GET):仅返回单条,查询结果唯一 '."\n" - .'- 1(LIST):返回多条'."\n" - .'- 2(CREATE):创建对象,可支持单条或批量创建'."\n" - .'- 3(UPDATE):更新对象,可支持单条或批量更新'."\n" - .'- 4(DELETE):删除对象,可支持单条或批量删除', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'BizProtocol' => [ - 'title' => '协议,不同的网关类型可支持的协议不同,请查看帮助文档,枚举值:0:HTTP 1:HTTPS', - 'description' => '协议,不同的网关类型可支持的协议不同,请查看帮助文档,枚举值:'."\n" - .'- 0:HTTP '."\n" - .'- 1:HTTPS', - 'type' => 'array', - 'items' => [ - 'title' => '0:HTTP 1:HTTPS', - 'description' => '0:HTTP 1:HTTPS', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '0', - ], - 'required' => true, - ], - 'Timeout' => [ - 'title' => '超时时间,单位为秒', - 'description' => '超时时间,单位为秒', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '30', - ], - 'CacheTimeout' => [ - 'title' => '缓存超时时间,单位为秒', - 'description' => '缓存超时时间,单位为秒', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '600', - ], - 'UpdateRate' => [ - 'title' => '更新频次(默认值为1):'."\n" - .'0: 自定义'."\n" - .'1:天'."\n" - .'2:小时'."\n" - .'3:分钟', - 'description' => '更新频次(默认值为1):'."\n" - ."\n" - .'- 0: 自定义'."\n" - .'- 1: 天'."\n" - .'- 2: 小时'."\n" - .'- 3: 分钟', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'CustomUpdateRate' => [ - 'title' => '自定义更新频率,当更新频率(update_rate)为自定义时为必填', - 'description' => '自定义更新频率,当更新频率为自定义时为必填', - 'type' => 'string', - 'required' => false, - 'example' => '每天8点', - ], - 'CallMode' => [ - 'title' => 'API的调用模式,可枚举值包括(默认值为1):'."\n" - .'1:同步调用'."\n" - .'2:异步调用', - 'description' => 'API的调用模式(默认值为1):'."\n" - ."\n" - .'- 1:同步调用'."\n" - .'- 2:异步调用', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - 'ExecutionTimeout' => [ - 'title' => 'API执行超时时间,仅对API异步调用API生效,异步调用时必填', - 'description' => '异步调用API执行超时时间,仅对异步调用API生效,异步调用时必填', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '30', - ], - 'ScriptDetails' => [ - 'title' => '脚本API的详情', - 'description' => '脚本API的详情', - 'type' => 'object', - 'properties' => [ - 'Script' => [ - 'title' => 'sql脚本', - 'description' => 'SQL脚本', - 'type' => 'string', - 'required' => true, - 'example' => 'select a,b,c from table1 where d = ${d}', - ], - 'IsPaginated' => [ - 'title' => '结果是否分页,仅当RequestType模式为List时才需要(默认为false)', - 'description' => '结果是否分页,仅当RequestType模式为List时才需要(默认为false),且异步调用模式不支持', - 'type' => 'boolean', - 'required' => false, - 'example' => 'false', - ], - 'SqlMode' => [ - 'title' => 'SQL模式,枚举值:'."\n" - .'1:基础模式'."\n" - .'2:高级模式', - 'description' => 'SQL模式:'."\n" - ."\n" - .'- 1:基础模式'."\n" - .'- 2:高级模式', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'SortPriority' => [ - 'title' => '排序的优先级,仅SQL模式为基础模式时生效(默认值2),枚举值:'."\n" - .'1:SQL脚本 '."\n" - .'2:OrderByList请求参数', - 'description' => '排序的优先级,仅SQL模式为基础模式时生效(默认值2):'."\n" - ."\n" - .'- 1:SQL脚本 '."\n" - .'- 2:OrderByList请求参数', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '2', - ], - 'DatasourceType' => [ - 'title' => '基于的数据源或数据服务单元的类型,枚举值:'."\n" - .'0:数据服务单元 '."\n" - .'1:数据源', - 'description' => 'API基于的数据类型 :'."\n" - .'- 1:数据源', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'DatasourceID' => [ - 'title' => '数据源的ID,API模式为直连数据源时必填', - 'description' => '数据源的ID,API模式为直连数据源时必填', - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - 'example' => '6668888888888812345L', - ], - 'ScriptRequestParameters' => [ - 'title' => '脚本 API 的请求参数列表', - 'description' => '脚本 API 的请求参数列表', - 'type' => 'array', - 'items' => [ - 'description' => '请求参数', - 'type' => 'object', - 'properties' => [ - 'ParameterName' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'required' => true, - 'example' => 'd', - ], - 'ParameterDescription' => [ - 'title' => '描述', - 'description' => '参数描述', - 'type' => 'string', - 'required' => false, - 'example' => '字段d', - ], - 'ParameterValueType' => [ - 'title' => '参数值的类型:'."\n" - .'1-单值:固定值,用于=、>=、<=、>、<、!=、between等操作符 '."\n" - .'2-多值:输入参数为多值,用逗号“,”分隔。用于In、Not In操作符', - 'description' => '参数值的类型:'."\n" - ."\n" - .'- 1单值:固定值,用于=、>=、<=、>、<、!=、between等操作符 '."\n" - .'- 2多值:输入参数为多值,用逗号“,”分隔。用于In、Not In操作符', - 'type' => 'string', - 'required' => true, - 'example' => '=', - ], - 'ParameterDataType' => [ - 'title' => '数据类型 "STRING", "DOUBLE", "INT", "DATE", "LONG", "FLOAT", "BOOLEAN", "SHORT", "BYTE", "BIGDECIMAL", "BINARY", "ARRAY", "Array(int)", "Array(string)"', - 'description' => '数据类型:'."\n" - .'- "STRING"'."\n" - .'- "DOUBLE"'."\n" - .'- "INT"'."\n" - .'- "DATE"'."\n" - .'- "LONG"'."\n" - .'- "FLOAT"'."\n" - .'- "BOOLEAN"'."\n" - .'- "SHORT"'."\n" - .'- "BYTE"'."\n" - .'- "BIGDECIMAL"'."\n" - .'- "BINARY"'."\n" - .'- "ARRAY"'."\n" - .'- "Array(int)"'."\n" - .'- "Array(string)"', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - ], - 'ExampleValue' => [ - 'title' => '示例值', - 'description' => '示例值', - 'type' => 'string', - 'required' => false, - 'example' => 'test', - ], - 'IsRequiredParameter' => [ - 'title' => '是否必填', - 'description' => '是否必填', - 'type' => 'boolean', - 'required' => true, - 'example' => 'false', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - 'ScriptResponseParameters' => [ - 'title' => '脚本 API 的返回参数列表', - 'description' => '脚本 API 的返回参数列表', - 'type' => 'array', - 'items' => [ - 'description' => '返回参数', - 'type' => 'object', - 'properties' => [ - 'ParameterName' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'required' => true, - 'example' => 'a', - ], - 'ParameterDescription' => [ - 'title' => '描述', - 'description' => '参数描述', - 'type' => 'string', - 'required' => false, - 'example' => '字段a', - ], - 'ParameterDataType' => [ - 'title' => '数据类型 "STRING", "DOUBLE", "INT", "DATE", "LONG", "FLOAT", "BOOLEAN", "SHORT", "BYTE", "BIGDECIMAL", "BINARY", "ARRAY", "Array(int)", "Array(string)"', - 'description' => '数据类型:'."\n" - .'- "STRING"'."\n" - .'- "DOUBLE"'."\n" - .'- "INT"'."\n" - .'- "DATE"'."\n" - .'- "LONG"'."\n" - .'- "FLOAT"'."\n" - .'- "BOOLEAN"'."\n" - .'- "SHORT"'."\n" - .'- "BYTE"'."\n" - .'- "BIGDECIMAL"'."\n" - .'- "BINARY"'."\n" - .'- "ARRAY"'."\n" - .'- "Array(int)"'."\n" - .'- "Array(string)"', - 'type' => 'string', - 'required' => true, - 'example' => 'STRING', - ], - 'ExampleValue' => [ - 'title' => '示例值', - 'description' => '示例值', - 'type' => 'string', - 'required' => false, - 'example' => 'amazing', - ], - ], - 'required' => true, - ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ApiId' => [ - 'title' => '创建的API编号', - 'description' => '创建的API编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10086', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', - ], - ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ApiId\\": 10086\\n}","type":"json"}]', - 'title' => '创建新的数据服务API并提交', - 'extraInfo' => '接口上线版本:v5.1.0', - ], - 'ListApiByApp' => [ - 'summary' => '根据app查询api列表。', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], - 'tags' => [], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', - ], - ], - [ - 'name' => 'PageQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '分页查询参数', - 'description' => '分页查询参数', - 'type' => 'object', - 'properties' => [ - 'Keyword' => [ - 'title' => '关键字', - 'description' => '关键字', - 'type' => 'string', - 'required' => false, - 'example' => 'apiName', - ], - 'PageSize' => [ - 'title' => '分页大小', - 'description' => '分页大小', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '20', - ], - 'PageNum' => [ - 'title' => '页码', - 'description' => '页码', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'example' => '1', - ], - 'AppKey' => [ - 'title' => 'appKey', - 'description' => 'appKey', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '10121101', - ], - ], - 'required' => true, - ], - ], - ], - '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' => '82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140', - ], - 'Success' => [ - 'title' => '请求成功与否', - 'description' => '请求成功与否', - 'type' => 'boolean', - 'example' => 'true', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP响应码', - 'description' => 'HTTP响应码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '后端响应码', - 'description' => '后端响应码', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '后端相应异常详情', - 'description' => '后端相应异常详情', - 'type' => 'string', - 'example' => 'internal error', - ], - 'ListResult' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '总数', - 'description' => '总数', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'Data' => [ - 'title' => 'api列表', - 'description' => 'api列表', - 'type' => 'array', - 'items' => [ - 'title' => 'API详情', - 'description' => 'API详情', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => 'API的id', - 'description' => 'API的id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'Name' => [ - 'title' => 'API名称', - 'description' => 'API名称', - 'type' => 'string', - 'example' => 'exampleApi', - ], - 'GroupId' => [ - 'title' => 'API分组id', - 'description' => 'API分组id', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '67890', - ], - 'GroupName' => [ - 'title' => 'API分组名', - 'description' => 'API分组名', - 'type' => 'string', - 'example' => 'exampleGroup', - ], - 'RequestMethod' => [ - 'title' => '请求方法', - 'description' => '请求方法', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'RequestMethodName' => [ - 'title' => '请求方法名', - 'description' => '请求方法名', - 'type' => 'string', - 'example' => 'GET', - ], - 'UpdateRate' => [ - 'title' => '更新频率', - 'description' => '更新频率', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'UpdateRateName' => [ - 'title' => '更新频率名', - 'description' => '更新频率名', - 'type' => 'string', - 'example' => '每日更新', - ], - 'Description' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => '这是一个示例API', - ], - 'ReturnType' => [ - 'title' => '返回类型', - 'description' => '返回类型', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'ReturnTypeName' => [ - 'title' => '返回类型名', - 'description' => '返回类型名', - 'type' => 'string', - 'example' => 'JSON', - ], - 'Protocol' => [ - 'title' => '协议', - 'description' => '协议', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'ProtocolName' => [ - 'title' => '协议名', - 'description' => '协议名', - 'type' => 'string', - 'example' => 'HTTP和HTTPS', - ], - 'SqlStatement' => [ - 'title' => 'SQL语句', - 'description' => 'SQL语句', - 'type' => 'string', - 'example' => 'SELECT * FROM example_table', - ], - 'RequestParamList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '请求参数响应DTO', - 'description' => '请求参数响应DTO', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '主键ID', - 'description' => '主键ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1001', - ], - 'ParamName' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'param1', - ], - 'MappingColumn' => [ - 'title' => '前端绑定字段', - 'description' => '前端绑定字段', - 'type' => 'string', - 'example' => 'column1', - ], - 'ParamType' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'String', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'value1', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '这是一个示例参数', - ], - 'DescriptionCode' => [ - 'title' => '参数描述码', - 'description' => '参数描述码', - 'type' => 'string', - 'example' => 'CODE_001', - ], - 'Must' => [ - 'title' => '请求参数是否必填', - 'description' => '请求参数是否必填', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Optional' => [ - 'title' => '是否可以编辑', - 'description' => '是否可以编辑', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DateFormat' => [ - 'title' => '日期格式', - 'description' => '日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Operator' => [ - 'title' => '操作符', - 'description' => '操作符', - 'type' => 'string', - 'example' => '=', - ], - 'OriginalColumn' => [ - 'title' => '原字段名', - 'description' => '原字段名', - 'type' => 'string', - 'example' => 'original_column', - ], - 'InitialValue' => [ - 'title' => '初始化值', - 'description' => '初始化值', - 'type' => 'string', - 'example' => 'app_key_value', - ], - 'TableAndDsList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '数据源简单DTO', - 'description' => '数据源简单DTO', - 'type' => 'object', - 'properties' => [ - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => 'ds12345', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'exampleDatasource', - ], - 'DatasourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DatasourceUrl' => [ - 'title' => '数据源URL', - 'description' => '数据源URL', - 'type' => 'string', - 'example' => 'https://example.com/datasource', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 'example_table', - ], - ], - ], - ], - 'ParameterLocation' => [ - 'title' => '注册API-请求参数位置|返回参数取值路径', - 'description' => '注册API-请求参数位置|返回参数取值路径', - 'type' => 'string', - 'example' => '/path/to/param', - ], - 'DefaultValue' => [ - 'title' => '注册API-默认值', - 'description' => '注册API-默认值', - 'type' => 'string', - 'example' => 'default_value', - ], - ], - ], - ], - 'ResponseParamList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '响应参数响应DTO', - 'description' => '响应参数响应DTO', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '主键ID', - 'description' => '主键ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2001', - ], - 'ParamName' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'responseParam1', - ], - 'MappingColumn' => [ - 'title' => '前端绑定字段', - 'description' => '前端绑定字段', - 'type' => 'string', - 'example' => 'responseColumn1', - ], - 'ParamType' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'String', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'responseValue1', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '这是一个示例响应参数', - ], - 'DescriptionCode' => [ - 'title' => '参数描述码', - 'description' => '参数描述码', - 'type' => 'string', - 'example' => 'CODE_002', - ], - 'Must' => [ - 'title' => '请求参数是否必填', - 'description' => '请求参数是否必填', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Optional' => [ - 'title' => '是否可以编辑', - 'description' => '是否可以编辑', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DateFormat' => [ - 'title' => '日期格式', - 'description' => '日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Operator' => [ - 'title' => '操作符', - 'description' => '操作符', - 'type' => 'string', - 'example' => '=', - ], - 'OriginalColumn' => [ - 'title' => '原字段名', - 'description' => '原字段名', - 'type' => 'string', - 'example' => 'original_response_column', - ], - 'InitialValue' => [ - 'title' => '初始化值', - 'description' => '初始化值', - 'type' => 'string', - 'example' => 'app_key_value', - ], - 'TableAndDsList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '数据源简单DTO', - 'description' => '数据源简单DTO', - 'type' => 'object', - 'properties' => [ - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => 'ds67890', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'responseDatasource', - ], - 'DatasourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '2', - ], - 'DatasourceUrl' => [ - 'title' => '数据源URL', - 'description' => '数据源URL', - 'type' => 'string', - 'example' => 'https://example.com/response_datasource', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 'response_table', - ], - ], - ], - ], - 'ParameterLocation' => [ - 'title' => '注册API-请求参数位置|返回参数取值路径', - 'description' => '注册API-请求参数位置|返回参数取值路径', - 'type' => 'string', - 'example' => '/path/to/response_param', - ], - 'DefaultValue' => [ - 'title' => '注册API-默认值', - 'description' => '注册API-默认值', - 'type' => 'string', - 'example' => 'default_response_value', - ], - ], - ], - ], - 'PublicParamList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '公共参数响应DTO', - 'description' => '公共参数响应DTO', - 'type' => 'object', - 'properties' => [ - 'Id' => [ - 'title' => '主键ID', - 'description' => '主键ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3001', - ], - 'ParamName' => [ - 'title' => '前端参数名称', - 'description' => '前端参数名称', - 'type' => 'string', - 'example' => 'publicParam1', - ], - 'MappingColumn' => [ - 'title' => '前端绑定字段', - 'description' => '前端绑定字段', - 'type' => 'string', - 'example' => 'publicColumn1', - ], - 'ParamType' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'string', - 'example' => 'String', - ], - 'Sample' => [ - 'title' => '参数示例', - 'description' => '参数示例', - 'type' => 'string', - 'example' => 'publicValue1', - ], - 'Description' => [ - 'title' => '参数描述', - 'description' => '参数描述', - 'type' => 'string', - 'example' => '这是一个示例公共参数', - ], - 'DescriptionCode' => [ - 'title' => '参数描述码', - 'description' => '参数描述码', - 'type' => 'string', - 'example' => 'CODE_003', - ], - 'Must' => [ - 'title' => '请求参数是否必填', - 'description' => '请求参数是否必填', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'Optional' => [ - 'title' => '是否可以编辑', - 'description' => '是否可以编辑', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DateFormat' => [ - 'title' => '日期格式', - 'description' => '日期格式', - 'type' => 'string', - 'example' => 'yyyy-MM-dd', - ], - 'Operator' => [ - 'title' => '操作符', - 'description' => '操作符', - 'type' => 'string', - 'example' => '=', - ], - 'OriginalColumn' => [ - 'title' => '原字段名', - 'description' => '原字段名', - 'type' => 'string', - 'example' => 'original_public_column', - ], - 'InitialValue' => [ - 'title' => '初始化值', - 'description' => '初始化值', - 'type' => 'string', - 'example' => 'app_key_value', - ], - 'TableAndDsList' => [ - 'title' => '-', - 'description' => '-', - 'type' => 'array', - 'items' => [ - 'title' => '数据源简单DTO', - 'description' => '数据源简单DTO', - 'type' => 'object', - 'properties' => [ - 'DatasourceId' => [ - 'title' => '数据源ID', - 'description' => '数据源ID', - 'type' => 'string', - 'example' => 'ds54321', - ], - 'DatasourceName' => [ - 'title' => '数据源名称', - 'description' => '数据源名称', - 'type' => 'string', - 'example' => 'publicDatasource', - ], - 'DatasourceType' => [ - 'title' => '数据源类型', - 'description' => '数据源类型', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '3', - ], - 'DatasourceUrl' => [ - 'title' => '数据源URL', - 'description' => '数据源URL', - 'type' => 'string', - 'example' => 'https://example.com/public_datasource', - ], - 'TableName' => [ - 'title' => '表名', - 'description' => '表名', - 'type' => 'string', - 'example' => 'public_table', - ], - ], - ], - ], - 'ParameterLocation' => [ - 'title' => '注册API-请求参数位置|返回参数取值路径', - 'description' => '注册API-请求参数位置|返回参数取值路径', - 'type' => 'string', - 'example' => '/path/to/public_param', - ], - 'DefaultValue' => [ - 'title' => '注册API-默认值', - 'description' => '注册API-默认值', - 'type' => 'string', - 'example' => 'default_public_value', - ], - ], - ], - ], - 'SpecialSql' => [ - 'title' => '特殊SQL标志', - 'description' => '特殊SQL标志', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'CreateType' => [ - 'title' => '创建类型', - 'description' => '创建类型'."\n" - .'SQL_MODE(0, "逻辑表API-SQL模式"),'."\n" - .'WIZARD_MODE(1, "逻辑表API-向导模式"),'."\n" - .'DIRECT_API_MODE(2, "直连数据源-SQL模式"),'."\n" - .'REGISTER_API_MODE(3, "注册API模式"),'."\n" - .'COMPOSITE_API_MODE(4, "组合API模式");', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'ApiNo' => [ - 'title' => 'API编号', - 'description' => 'API编号', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '987654321', - ], - 'ModelType' => [ - 'title' => '模式', - 'description' => '模式', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'DbEnv' => [ - 'title' => '数据环境', - 'description' => '数据环境', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'ResultSample' => [ - 'title' => '调用结果样例', - 'description' => '调用结果样例', - 'type' => 'string', - 'example' => '{"status":"success","data":[]}', - ], - 'BizModuleEnName' => [ - 'title' => '业务板块名', - 'description' => '业务板块名', - 'type' => 'string', - 'example' => 'exampleModule', - ], - 'TableName' => [ - 'title' => '逻辑表名', - 'description' => '逻辑表名', - 'type' => 'string', - 'example' => 'exampleTable', - ], - 'IsLogicalTable' => [ - 'title' => '是否逻辑表', - 'description' => '是否逻辑表', - 'type' => 'boolean', - ], - 'DirectDatasourceId' => [ - 'title' => '直连API的数据源ID', - 'description' => '直连API的数据源ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '54321', - ], - 'DirectDatasourceName' => [ - 'title' => '直连API的数据源名称', - 'description' => '直连API的数据源名称', - 'type' => 'string', - 'example' => 'directDatasource', - ], - 'ApiTimeout' => [ - 'title' => 'API超时', - 'description' => 'API超时', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'MaxReturnNum' => [ - 'title' => '最大返回条数', - 'description' => '最大返回条数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'ProjId' => [ - 'title' => '服务项目ID', - 'description' => '服务项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '112233', - ], - 'ProjName' => [ - 'title' => '服务项目名称', - 'description' => '服务项目名称', - 'type' => 'string', - 'example' => 'exampleProject', - ], - 'AppName' => [ - 'title' => '我的应用', - 'description' => '我的应用', - 'type' => 'string', - 'example' => 'exampleApp', - ], - 'RsGrpId' => [ - 'title' => '资源组ID', - 'description' => '资源组ID', - 'type' => 'string', - 'example' => 'grp12345', - ], - 'ResourceGroupName' => [ - 'title' => '资源组名称', - 'description' => '资源组名称', - 'type' => 'string', - 'example' => 'exampleResourceGroup', - ], - 'CacheSwitch' => [ - 'title' => 'API缓存开关', - 'description' => 'API缓存开关', - 'type' => 'string', - 'example' => '1', - ], - 'CacheTime' => [ - 'title' => '缓存时长(秒)', - 'description' => '缓存时长(秒)', - 'type' => 'string', - 'example' => '60', - ], - 'Timeout' => [ - 'title' => '超时时长(秒)', - 'description' => '超时时长(秒)', - 'type' => 'string', - 'example' => '10', - ], - 'ScriptType' => [ - 'title' => '脚本类型', - 'description' => '脚本类型', - 'type' => 'string', - 'example' => 'SQL', - ], - 'RegisterApi' => [ - 'title' => '注册API信息', - 'description' => '注册API信息', - 'type' => 'object', - 'properties' => [ - 'ApiId' => [ - 'title' => 'data_api主键', - 'description' => 'data_api主键', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '67890', - ], - 'ModelType' => [ - 'title' => '模式', - 'description' => '模式', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - 'HttpMethod' => [ - 'title' => '注册API请求方式', - 'description' => '注册API请求方式', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], - 'DatasourceId' => [ - 'title' => 'API数据源ID', - 'description' => 'API数据源ID', - 'type' => 'string', - 'example' => 'ds67890', - ], - 'DatasourceName' => [ - 'title' => 'API数据源名称', - 'description' => 'API数据源名称', - 'type' => 'string', - 'example' => 'registerDatasource', - ], - 'Url' => [ - 'title' => 'API数据源URL地址', - 'description' => 'API数据源URL地址', - 'type' => 'string', - 'example' => 'https://example.com/register_api', - ], - 'AuthenticationMode' => [ - 'title' => 'API数据源认证方式', - 'description' => 'API数据源认证方式', - 'type' => 'string', - 'example' => 'OAuth2', - ], - 'Protocol' => [ - 'title' => 'API数据源请求协议', - 'description' => 'API数据源请求协议', - 'type' => 'string', - 'example' => 'HTTPS', - ], - 'Path' => [ - 'title' => '服务path', - 'description' => '服务path', - 'type' => 'string', - 'example' => '/api/v1/register', - ], - 'Timeout' => [ - 'title' => '超时时间', - 'description' => '超时时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '30', - ], - 'SuccessExample' => [ - 'title' => '成功示例', - 'description' => '成功示例', - 'type' => 'string', - 'example' => '{"status":"success","data":[]}', - ], - 'FailExample' => [ - 'title' => '失败示例', - 'description' => '失败示例', - 'type' => 'string', - 'example' => '{"status":"error","message":"Invalid request"}', - ], - ], - ], - 'Version' => [ - 'title' => 'API版本', - 'description' => 'API版本', - 'type' => 'string', - 'example' => 'v1.0', - ], - 'IsPagedQuery' => [ - 'title' => '是否是分页查询', - 'description' => '是否是分页查询', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '0', - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'GetQualityWatchTask', + 'description' => '获取监控任务对象', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetQualityWatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetDevObjectDependency', + 'description' => '查询开发态对象上游依赖', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetDevObjectDependency', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'ResumePhysicalNode', + 'description' => '恢复物理节点调度', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:ResumePhysicalNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'ListUserGroups', + 'description' => '用户组列表分页查询', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListUserGroups', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"82E78D6B-AA8F-1FEF-8AA3-5C9DA2A79140\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"internal error\\",\\n \\"ListResult\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"Id\\": 12345,\\n \\"Name\\": \\"exampleApi\\",\\n \\"GroupId\\": 67890,\\n \\"GroupName\\": \\"exampleGroup\\",\\n \\"RequestMethod\\": 1,\\n \\"RequestMethodName\\": \\"GET\\",\\n \\"UpdateRate\\": 2,\\n \\"UpdateRateName\\": \\"每日更新\\",\\n \\"Description\\": \\"这是一个示例API\\",\\n \\"ReturnType\\": 3,\\n \\"ReturnTypeName\\": \\"JSON\\",\\n \\"Protocol\\": 3,\\n \\"ProtocolName\\": \\"HTTP和HTTPS\\",\\n \\"SqlStatement\\": \\"SELECT * FROM example_table\\",\\n \\"RequestParamList\\": [\\n {\\n \\"Id\\": 1001,\\n \\"ParamName\\": \\"param1\\",\\n \\"MappingColumn\\": \\"column1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"value1\\",\\n \\"Description\\": \\"这是一个示例参数\\",\\n \\"DescriptionCode\\": \\"CODE_001\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds12345\\",\\n \\"DatasourceName\\": \\"exampleDatasource\\",\\n \\"DatasourceType\\": 1,\\n \\"DatasourceUrl\\": \\"https://example.com/datasource\\",\\n \\"TableName\\": \\"example_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/param\\",\\n \\"DefaultValue\\": \\"default_value\\"\\n }\\n ],\\n \\"ResponseParamList\\": [\\n {\\n \\"Id\\": 2001,\\n \\"ParamName\\": \\"responseParam1\\",\\n \\"MappingColumn\\": \\"responseColumn1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"responseValue1\\",\\n \\"Description\\": \\"这是一个示例响应参数\\",\\n \\"DescriptionCode\\": \\"CODE_002\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_response_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds67890\\",\\n \\"DatasourceName\\": \\"responseDatasource\\",\\n \\"DatasourceType\\": 2,\\n \\"DatasourceUrl\\": \\"https://example.com/response_datasource\\",\\n \\"TableName\\": \\"response_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/response_param\\",\\n \\"DefaultValue\\": \\"default_response_value\\"\\n }\\n ],\\n \\"PublicParamList\\": [\\n {\\n \\"Id\\": 3001,\\n \\"ParamName\\": \\"publicParam1\\",\\n \\"MappingColumn\\": \\"publicColumn1\\",\\n \\"ParamType\\": \\"String\\",\\n \\"Sample\\": \\"publicValue1\\",\\n \\"Description\\": \\"这是一个示例公共参数\\",\\n \\"DescriptionCode\\": \\"CODE_003\\",\\n \\"Must\\": 1,\\n \\"Optional\\": 1,\\n \\"DateFormat\\": \\"yyyy-MM-dd\\",\\n \\"Operator\\": \\"=\\",\\n \\"OriginalColumn\\": \\"original_public_column\\",\\n \\"InitialValue\\": \\"app_key_value\\",\\n \\"TableAndDsList\\": [\\n {\\n \\"DatasourceId\\": \\"ds54321\\",\\n \\"DatasourceName\\": \\"publicDatasource\\",\\n \\"DatasourceType\\": 3,\\n \\"DatasourceUrl\\": \\"https://example.com/public_datasource\\",\\n \\"TableName\\": \\"public_table\\"\\n }\\n ],\\n \\"ParameterLocation\\": \\"/path/to/public_param\\",\\n \\"DefaultValue\\": \\"default_public_value\\"\\n }\\n ],\\n \\"SpecialSql\\": 0,\\n \\"CreateType\\": 1,\\n \\"ApiNo\\": 987654321,\\n \\"ModelType\\": 0,\\n \\"DbEnv\\": 0,\\n \\"ResultSample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"success\\\\\\",\\\\\\"data\\\\\\":[]}\\",\\n \\"BizModuleEnName\\": \\"exampleModule\\",\\n \\"TableName\\": \\"exampleTable\\",\\n \\"IsLogicalTable\\": true,\\n \\"DirectDatasourceId\\": 54321,\\n \\"DirectDatasourceName\\": \\"directDatasource\\",\\n \\"ApiTimeout\\": 30,\\n \\"MaxReturnNum\\": 100,\\n \\"ProjId\\": 112233,\\n \\"ProjName\\": \\"exampleProject\\",\\n \\"AppName\\": \\"exampleApp\\",\\n \\"RsGrpId\\": \\"grp12345\\",\\n \\"ResourceGroupName\\": \\"exampleResourceGroup\\",\\n \\"CacheSwitch\\": \\"1\\",\\n \\"CacheTime\\": \\"60\\",\\n \\"Timeout\\": \\"10\\",\\n \\"ScriptType\\": \\"SQL\\",\\n \\"RegisterApi\\": {\\n \\"ApiId\\": 67890,\\n \\"ModelType\\": 0,\\n \\"HttpMethod\\": 1,\\n \\"DatasourceId\\": \\"ds67890\\",\\n \\"DatasourceName\\": \\"registerDatasource\\",\\n \\"Url\\": \\"https://example.com/register_api\\",\\n \\"AuthenticationMode\\": \\"OAuth2\\",\\n \\"Protocol\\": \\"HTTPS\\",\\n \\"Path\\": \\"/api/v1/register\\",\\n \\"Timeout\\": 30,\\n \\"SuccessExample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"success\\\\\\",\\\\\\"data\\\\\\":[]}\\",\\n \\"FailExample\\": \\"{\\\\\\"status\\\\\\":\\\\\\"error\\\\\\",\\\\\\"message\\\\\\":\\\\\\"Invalid request\\\\\\"}\\"\\n },\\n \\"Version\\": \\"v1.0\\",\\n \\"IsPagedQuery\\": 0\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询应用下api详情列表', - 'description' => '可以根据appKey查询已发布接口的详细信息', - ], - 'ListAuthorizedDataServiceApiDetails' => [ - 'summary' => '查询应用已申请的API的具体的字段列表。', - 'methods' => [ - 'post', + [ + 'apiName' => 'GetUsers', + 'description' => '根据UserId获取用户详情信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetUsers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'ListUserGroupMembers', + 'description' => '用户组成员分页查询', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListUserGroupMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'CreateStreamBatchJobMapping', + 'description' => '创建流批一体任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateStreamBatchJobMapping', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'DeleteBizEntity', + 'description' => '删除业务实体', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteBizUnit', + 'description' => '删除数据板块', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateBatchTask', + 'description' => '更新离线计算任务', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBatchTask', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'OnlineBizEntity', + 'description' => '上线业务实体', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:OnlineBizEntity', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CheckProjectHasDependency', + 'description' => '校验项目是否被依赖', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:CheckProjectHasDependency', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ExecuteManualNode', + 'description' => '运行手动任务', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'dataphin:ExecuteManualNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateDataSourceBasicInfo', + 'description' => '编辑数据源基础信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateDataSourceBasicInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteUserGroup', + 'description' => '删除用户组', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'dataphin:DeleteUserGroup', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetBatchTaskVersions', + 'description' => '获取离线计算任务版本列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetBatchTaskVersions', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetPhysicalNodeContent', + 'description' => '查询调度节点代码内容', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetPhysicalNodeContent', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateDirectory', + 'description' => '创建菜单树目录', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreateDirectory', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListPublishRecords', + 'description' => '分页查询发布记录', 'operationType' => 'list', - 'riskType' => 'none', + 'ramAction' => [ + 'action' => 'dataphin:ListPublishRecords', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'OpTenantId', - 'in' => 'query', - 'schema' => [ - 'title' => '租户ID', - 'description' => '租户ID', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '30001011', + [ + 'apiName' => 'GetOperationSubmitStatus', + 'description' => '获取补数据工作流提交状态', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetOperationSubmitStatus', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ListQuery', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '查询请求', - 'description' => '查询请求', - 'type' => 'object', - 'properties' => [ - 'AppKey' => [ - 'title' => 'AppKey', - 'description' => 'AppKey', - 'type' => 'integer', - 'format' => 'int64', - 'required' => true, - 'example' => '200000000', - ], - 'Page' => [ - 'title' => '页码,从1开始', - 'description' => '页码,从1开始', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'minimum' => '1', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '每页显示的条数,最大100条', - 'description' => '每页显示的条数,最大100条', - 'type' => 'integer', - 'format' => 'int32', - 'required' => true, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '20', - ], - ], - 'required' => true, - 'example' => '30001011', + ], + [ + 'apiName' => 'GetMyRoles', + 'description' => '获取当前用户角色列表', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetMyRoles', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应结果', - 'description' => '响应结果', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求标识ID,一次请求的唯一标识', - 'description' => '请求标识ID,一次请求的唯一标识', - 'type' => 'string', - 'example' => '75DD06F8-1661-5A6E-B0A6-7E23133BDC60', - ], - 'Success' => [ - 'title' => '请求是否成功', - 'description' => '请求是否成功', - 'type' => 'boolean', - ], - 'HttpStatusCode' => [ - 'title' => 'HTTP 状态码', - 'description' => 'HTTP 状态码', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'Code' => [ - 'title' => '请求错误码,OK表示请求正常', - 'description' => '请求错误码,OK表示请求正常', - 'type' => 'string', - 'example' => 'OK', - ], - 'Message' => [ - 'title' => '请求错误信息', - 'description' => '请求错误信息', - 'type' => 'string', - 'example' => '非法入参', - ], - 'Result' => [ - 'title' => '查询结果', - 'description' => '查询结果', - 'type' => 'object', - 'properties' => [ - 'TotalCount' => [ - 'title' => '返回总数', - 'description' => '返回总数', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '100', - ], - 'Data' => [ - 'title' => '返回授权的API详情列表', - 'description' => '返回授权的API详情列表', - 'type' => 'array', - 'items' => [ - 'title' => '授权的API详情', - 'description' => '授权的API详情', - 'type' => 'object', - 'properties' => [ - 'ApiId' => [ - 'title' => 'API_ID', - 'description' => 'API_ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'ApiName' => [ - 'title' => 'API名称', - 'description' => 'API名称', - 'type' => 'string', - 'example' => 'GetData', - ], - 'AppId' => [ - 'title' => '应用 ID', - 'description' => '应用 ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '12345', - ], - 'ProjectId' => [ - 'title' => '数据服务项目ID', - 'description' => '数据服务项目ID', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10000', - ], - 'Description' => [ - 'title' => 'API描述信息', - 'description' => 'API描述信息', - 'type' => 'string', - 'example' => 'Description1', - ], - 'DevAuthPeriod' => [ - 'title' => '开发环境API权限有效期', - 'description' => '开发环境API权限有效期', - 'type' => 'string', - 'example' => '2035-12-31', - ], - 'ProdAuthPeriod' => [ - 'title' => '生产环境API权限有效期', - 'description' => '生产环境API权限有效期', - 'type' => 'string', - 'example' => '2035-12-31', - ], - 'AuthType' => [ - 'title' => '权限类型', - 'description' => '权限类型', - 'type' => 'string', - 'example' => '使用权限', - ], - 'AuthorizedDevReturnParameters' => [ - 'title' => 'API开发环境授权的字段列表', - 'description' => 'API开发环境授权的字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '字段对象', - 'description' => '字段对象', - 'type' => 'object', - 'properties' => [ - 'ParameterName' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'example' => 'param1', - ], - 'ParameterDataType' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - 'enum' => [ - '0:String', - '1:Int', - '2:Short', - '3:Long', - '4:Float', - '5:Double', - '6:Byte', - '7:Boolean', - '8:Binary', - '9:Bigdecimal', - '10:DATE(yyy-MM-dd HH:mm:ss)', - '11:Array', - '12:Array(int)', - '13:Array(string)', - ], - ], - 'ParameterDescription' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'description1', - ], - 'ExampleValue' => [ - 'title' => '示例值', - 'description' => '示例值', - 'type' => 'string', - 'example' => 'example1', - ], - 'IsAuthorized' => [ - 'title' => '字段授权情况', - 'description' => '字段授权情况', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'enum' => [ - '0:未授权', - '1:已授权', - ], - ], - ], - ], - ], - 'AuthorizedProdReturnParameters' => [ - 'title' => 'API生产环境授权的字段列表', - 'description' => 'API生产环境授权的字段列表', - 'type' => 'array', - 'items' => [ - 'title' => '字段对象', - 'description' => '字段对象', - 'type' => 'object', - 'properties' => [ - 'ParameterName' => [ - 'title' => '参数名称', - 'description' => '参数名称', - 'type' => 'string', - 'example' => 'param1', - ], - 'ParameterDataType' => [ - 'title' => '参数类型', - 'description' => '参数类型', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - 'enum' => [ - '0:String', - '1:Int', - '2:Short', - '3:Long', - '4:Float', - '5:Double', - '6:Byte', - '7:Boolean', - '8:Binary', - '9:Bigdecimal', - '10:DATE(yyy-MM-dd HH:mm:ss)', - '11:Array', - '12:Array(int)', - '13:Array(string)', - ], - ], - 'ParameterDescription' => [ - 'title' => '描述', - 'description' => '描述', - 'type' => 'string', - 'example' => 'description1', - ], - 'ExampleValue' => [ - 'title' => '示例值', - 'description' => '示例值', - 'type' => 'string', - 'example' => 'example1', - ], - 'IsAuthorized' => [ - 'title' => '字段授权情况', - 'description' => '字段授权情况', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - 'enum' => [ - '0:未授权', - '1:已授权', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], + [ + 'apiName' => 'GetAdHocFile', + 'description' => '查询即席查询文件', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocFile', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 401 => [ - [ - 'errorCode' => 'DataphinOpenAPIRamUnAuthorized', - 'errorMessage' => 'You are not authorized to do this action, you should be authorized by RAM.', + [ + 'apiName' => 'GetAdHocTaskResult', + 'description' => '获取即席查询的任务运行结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'dataphin:GetAdHocTaskResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 403 => [ - [ - 'errorCode' => 'DataphinOpenApiForbidden', - 'errorMessage' => 'Openapi request is forbidden, may tenantId invalid.', + ], + [ + 'apiName' => 'CreatePipelineNode', + 'description' => '创建数据集成管道任务', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'dataphin:CreatePipelineNode', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - 406 => [ - [ - 'errorCode' => 'DataphinOpenApiNotAcceptable', - 'errorMessage' => 'Request not acceptable, may exceed quota limit.', + ], + [ + 'apiName' => 'UpdateBizUnit', + 'description' => '更新数据板块', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'dataphin:UpdateBizUnit', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'RemoveUserGroupMember', + 'description' => '移除用户组成员', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:RemoveUserGroupMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListTenantMembers', + 'description' => '获取租户成员列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'dataphin:ListTenantMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'Dataphin', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"75DD06F8-1661-5A6E-B0A6-7E23133BDC60\\",\\n \\"Success\\": true,\\n \\"HttpStatusCode\\": 200,\\n \\"Code\\": \\"OK\\",\\n \\"Message\\": \\"非法入参\\",\\n \\"Result\\": {\\n \\"TotalCount\\": 100,\\n \\"Data\\": [\\n {\\n \\"ApiId\\": 12345,\\n \\"ApiName\\": \\"GetData\\",\\n \\"AppId\\": 12345,\\n \\"ProjectId\\": 10000,\\n \\"Description\\": \\"Description1\\",\\n \\"DevAuthPeriod\\": \\"2035-12-31\\",\\n \\"ProdAuthPeriod\\": \\"2035-12-31\\",\\n \\"AuthType\\": \\"使用权限\\",\\n \\"AuthorizedDevReturnParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterDataType\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsAuthorized\\": 1\\n }\\n ],\\n \\"AuthorizedProdReturnParameters\\": [\\n {\\n \\"ParameterName\\": \\"param1\\",\\n \\"ParameterDataType\\": 0,\\n \\"ParameterDescription\\": \\"description1\\",\\n \\"ExampleValue\\": \\"example1\\",\\n \\"IsAuthorized\\": 1\\n }\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '查询应用已申请的API的具体的字段列表', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'dataphin-public.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'dataphin-public.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'dataphin-public.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'dataphin-public.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'dataphin-public.cn-chengdu.aliyuncs.com', ], + 'resourceTypes' => [], ], ]; -- cgit v1.2.3