diff options
| author | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-07-12 17:11:17 +0800 |
| commit | 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch) | |
| tree | 5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/ververica/2022-07-18 | |
| parent | 7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff) | |
| download | afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip | |
update APIs 20260712
Diffstat (limited to 'data/zh_cn/ververica/2022-07-18')
| -rw-r--r-- | data/zh_cn/ververica/2022-07-18/api-docs.php | 17296 |
1 files changed, 6177 insertions, 11119 deletions
diff --git a/data/zh_cn/ververica/2022-07-18/api-docs.php b/data/zh_cn/ververica/2022-07-18/api-docs.php index 3fbb9f4..9a685b1 100644 --- a/data/zh_cn/ververica/2022-07-18/api-docs.php +++ b/data/zh_cn/ververica/2022-07-18/api-docs.php @@ -1,194 +1,93 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'ververica', - 'version' => '2022-07-18', - ], + 'info' => ['style' => 'ROA', 'product' => 'ververica', 'version' => '2022-07-18'], 'directories' => [ [ - 'id' => 364574, - 'title' => '作业草稿文件夹', + 'children' => ['ValidateDeploymentDraftAsync', 'GetValidateDeploymentDraftResult', 'CreateDeploymentDraft', 'UpdateDeploymentDraft', 'DeleteDeploymentDraft', 'GetDeploymentDraft', 'ListDeploymentDrafts', 'GetDeploymentDraftLock', 'DeployDeploymentDraftAsync', 'GetDeployDeploymentDraftResult', 'ValidateSqlStatement'], 'type' => 'directory', - 'children' => [ - 'CreateFolder', - 'UpdateFolder', - 'DeleteFolder', - 'GetFolder', - ], + 'title' => '作业草稿', + 'id' => 143663, ], [ - 'id' => 364579, - 'title' => '作业草稿', + 'children' => ['CreateUdfArtifact', 'UpdateUdfArtifact', 'GetUdfArtifacts', 'DeleteUdfArtifact', 'DeleteUdfFunction', 'RegisterUdfFunction'], 'type' => 'directory', - 'children' => [ - 'ValidateDeploymentDraftAsync', - 'GetValidateDeploymentDraftResult', - 'CreateDeploymentDraft', - 'UpdateDeploymentDraft', - 'DeleteDeploymentDraft', - 'GetDeploymentDraft', - 'ListDeploymentDrafts', - 'GetDeploymentDraftLock', - 'DeployDeploymentDraftAsync', - 'GetDeployDeploymentDraftResult', - 'ValidateSqlStatement', - ], + 'title' => '自定义函数', + 'id' => 143672, ], [ - 'id' => 364591, - 'title' => '自定义函数', + 'children' => ['ListCustomConnectors', 'RegisterCustomConnector', 'DeleteCustomConnector'], 'type' => 'directory', - 'children' => [ - 'CreateUdfArtifact', - 'UpdateUdfArtifact', - 'GetUdfArtifacts', - 'DeleteUdfArtifact', - 'DeleteUdfFunction', - 'RegisterUdfFunction', - ], + 'title' => '自定义连接器', + 'id' => 143679, ], [ - 'id' => 364598, - 'title' => '自定义连接器', + 'children' => ['GetDatabases', 'GetTables', 'GetCatalogs', 'ExecuteSqlStatement'], 'type' => 'directory', - 'children' => [ - 'ListCustomConnectors', - 'RegisterCustomConnector', - 'DeleteCustomConnector', - ], + 'title' => '元数据', + 'id' => 343110, ], [ - 'id' => 364602, - 'title' => '元数据', + 'children' => ['CreateSavepoint', 'GetSavepoint', 'DeleteSavepoint', 'ListSavepoints'], 'type' => 'directory', - 'children' => [ - 'GetDatabases', - 'GetTables', - 'GetCatalogs', - 'ExecuteSqlStatement', - ], + 'title' => '快照', + 'id' => 143617, ], [ - 'id' => 364607, - 'title' => '快照', + 'children' => ['GetDeploymentsByName', 'GetDeploymentsByLabel', 'GetDeploymentsByIp', 'UpdateDeployment', 'DeleteDeployment', 'GetEvents'], 'type' => 'directory', - 'children' => [ - 'CreateSavepoint', - 'GetSavepoint', - 'DeleteSavepoint', - 'ListSavepoints', - ], + 'title' => '已部署作业', + 'id' => 143637, ], [ - 'id' => 364612, - 'title' => '已部署作业', + 'children' => ['GetJob', 'StartJobWithParams', 'StopJob', 'HotUpdateJob', 'GetHotUpdateJobResult', 'GetLatestJobStartLog', 'GetJobDiagnosis', 'StartJob'], 'type' => 'directory', - 'children' => [ - 'GetDeploymentsByName', - 'GetDeploymentsByLabel', - 'GetDeploymentsByIp', - 'CreateDeployment', - 'UpdateDeployment', - 'GetDeployment', - 'ListDeployments', - 'DeleteDeployment', - 'GetEvents', - ], + 'title' => '作业实例', + 'id' => 143622, ], [ - 'id' => 364622, - 'title' => '作业实例', + 'children' => ['CreateScheduledPlan', 'UpdateScheduledPlan', 'DeleteScheduledPlan', 'ListScheduledPlan', 'ApplyScheduledPlan', 'StopApplyScheduledPlan', 'GetAppliedScheduledPlan', 'ListScheduledPlanExecutedHistory'], 'type' => 'directory', - 'children' => [ - 'GetJob', - 'ListJobs', - 'StartJobWithParams', - 'StopJob', - 'DeleteJob', - 'HotUpdateJob', - 'GetHotUpdateJobResult', - 'GetLatestJobStartLog', - 'GetJobDiagnosis', - 'StartJob', - ], + 'title' => '定时计划', + 'id' => 343138, ], [ - 'id' => 364633, - 'title' => '定时计划', + 'children' => ['UpdateSessionCluster'], 'type' => 'directory', - 'children' => [ - 'CreateScheduledPlan', - 'UpdateScheduledPlan', - 'DeleteScheduledPlan', - 'ListScheduledPlan', - 'ApplyScheduledPlan', - 'StopApplyScheduledPlan', - 'GetAppliedScheduledPlan', - 'ListScheduledPlanExecutedHistory', - ], + 'title' => 'Session集群', + 'id' => 343147, ], [ - 'id' => 364642, - 'title' => 'Session集群', + 'children' => ['CreateDeploymentTargetV2', 'UpdateDeploymentTargetV2', 'CreateDeploymentTarget', 'UpdateDeploymentTarget', 'DeleteDeploymentTarget', 'ListDeploymentTargets'], 'type' => 'directory', - 'children' => [ - 'CreateSessionCluster', - 'UpdateSessionCluster', - 'DeleteSessionCluster', - 'GetSessionCluster', - 'ListSessionClusters', - 'StartSessionCluster', - 'StopSessionCluster', - ], + 'title' => '作业部署目标', + 'id' => 143632, ], [ - 'id' => 364650, - 'title' => '作业部署目标', + 'children' => ['CreateMember', 'UpdateMember', 'DeleteMember', 'GetMember'], 'type' => 'directory', - 'children' => [ - 'CreateDeploymentTarget', - 'UpdateDeploymentTarget', - 'DeleteDeploymentTarget', - 'ListDeploymentTargets', - ], + 'title' => '成员管理', + 'id' => 143644, ], - 'UpdateDeploymentTargetV2', - 'CreateDeploymentTargetV2', [ - 'id' => 364657, - 'title' => '成员管理', + 'children' => ['StartSqlExecution'], 'type' => 'directory', - 'children' => [ - 'CreateMember', - 'UpdateMember', - 'DeleteMember', - 'GetMember', - 'ListMembers', - ], + 'title' => '数据查询', + 'id' => 408621, ], [ - 'id' => 364663, - 'title' => '变量', + 'children' => ['ListVariables'], 'type' => 'directory', - 'children' => [ - 'UpdateVariable', - 'CreateVariable', - 'DeleteVariable', - 'ListVariables', - ], + 'title' => '变量', + 'id' => 143612, ], [ - 'id' => 364668, - 'title' => '其他', - 'type' => 'directory', 'children' => [ - 'ListEngineVersionMetadata', - 'GenerateResourcePlanWithFlinkConfAsync', - 'GetGenerateResourcePlanResult', - 'FlinkApiProxy', - 'GetLineageInfo', + 'ListEngineVersionMetadata', 'GenerateResourcePlanWithFlinkConfAsync', 'GetGenerateResourcePlanResult', 'FlinkApiProxy', 'GetLineageInfo', 'CreateDeployment', 'CreateFolder', 'CreateSessionCluster', 'CreateVariable', 'DeleteFolder', 'DeleteJob', 'DeleteSessionCluster', 'DeleteVariable', 'GetDeployment', 'GetFolder', 'GetSessionCluster', 'ListDeployments', 'ListJobs', 'ListMembers', 'ListSessionClusters', + 'StartSessionCluster', 'StopSessionCluster', 'UpdateFolder', 'UpdateVariable', ], + 'type' => 'directory', + 'title' => '其他', + 'id' => 143650, ], ], 'components' => [ @@ -196,26 +95,14 @@ 'AiModel' => [ 'type' => 'object', 'properties' => [ - 'outputSchema' => [ - '$ref' => '#/components/schemas/Schema', - ], - 'inputSchema' => [ - '$ref' => '#/components/schemas/Schema', - ], - 'name' => [ - 'type' => 'string', - 'required' => true, - ], - 'comment' => [ - 'type' => 'string', - ], + 'outputSchema' => ['$ref' => '#/components/schemas/Schema'], + 'inputSchema' => ['$ref' => '#/components/schemas/Schema'], + 'name' => ['type' => 'string', 'required' => true], + 'comment' => ['type' => 'string'], 'options' => [ 'type' => 'object', 'required' => true, - 'additionalProperties' => [ - 'type' => 'string', - 'required' => true, - ], + 'additionalProperties' => ['type' => 'string', 'required' => true], ], ], ], @@ -224,35 +111,21 @@ 'description' => 'Artifact承载了用户启动一个已部署作业所必需的用户侧信息,没有Artifact信息已部署作业无法创建。对于SQL作业是SQL文本以及依赖的udf/connector等,对于JAR作业是使用到的全部的JAR包和依赖文件,对于Python作业是要使用到的py文件以及zip包。', 'type' => 'object', 'properties' => [ - 'sqlArtifact' => [ - 'title' => 'SQL作业', - 'description' => 'SQL作业必填信息。', - '$ref' => '#/components/schemas/SqlArtifact', - ], - 'jarArtifact' => [ - 'title' => 'Jar作业', - 'description' => 'JAR作业必填信息。', - '$ref' => '#/components/schemas/JarArtifact', - ], - 'pythonArtifact' => [ - 'title' => 'Python作业', - 'description' => 'Python作业必填信息。', - '$ref' => '#/components/schemas/PythonArtifact', - ], + 'sqlArtifact' => ['title' => 'SQL作业', 'description' => 'SQL作业必填信息。', '$ref' => '#/components/schemas/SqlArtifact'], + 'jarArtifact' => ['title' => 'Jar作业', 'description' => 'JAR作业必填信息。', '$ref' => '#/components/schemas/JarArtifact'], + 'pythonArtifact' => ['title' => 'Python作业', 'description' => 'Python作业必填信息。', '$ref' => '#/components/schemas/PythonArtifact'], + 'cdcYamlArtifact' => ['title' => '数据摄入作业', 'description' => '数据摄入作业', '$ref' => '#/components/schemas/CdcYamlArtifact'], 'kind' => [ 'title' => '生效作业类型', 'description' => '生效作业类型,必填,创建后无法修改。'."\n" .'- SQLSCRIPT:SQL作业。'."\n" .'- JAR:JAR作业。'."\n" - .'- PYTHON:Python作业。', + .'- PYTHON:Python作业。'."\n" + .'- CDCYAML:CDC数据摄入作业', 'type' => 'string', 'required' => false, 'example' => 'SQLSCRIPT', - 'enum' => [ - 'SQLSCRIPT', - 'JAR', - 'PYTHON', - ], + 'enum' => ['SQLSCRIPT', 'JAR', 'PYTHON', 'CDCYAML'], ], ], ], @@ -261,51 +134,20 @@ 'description' => '异步部署作业草稿结果。', 'type' => 'object', 'properties' => [ - 'ticketStatus' => [ - 'title' => '执行状态', - 'description' => '执行状态。', - 'type' => 'string', - 'example' => 'FINISHED', - ], - 'artifactValidationDetail' => [ - 'description' => 'SQL校验结果。', - '$ref' => '#/components/schemas/ValidateStatementResult', - ], - 'deploymentId' => [ - 'title' => '已部署作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '部署是否成功', - 'description' => '是否部署成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'title' => '部署结果信息', - 'description' => '部署结果信息。', - 'type' => 'string', - 'example' => '"Validation error: SQL validate failed"', - ], + 'ticketStatus' => ['title' => '执行状态', 'description' => '执行状态。', 'type' => 'string', 'example' => 'FINISHED'], + 'artifactValidationDetail' => ['description' => 'SQL校验结果。', '$ref' => '#/components/schemas/ValidateStatementResult'], + 'deploymentId' => ['title' => '已部署作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '部署是否成功', 'description' => '是否部署成功。', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['title' => '部署结果信息', 'description' => '部署结果信息。', 'type' => 'string', 'example' => '"Validation error: SQL validate failed"'], ], ], 'AsyncDraftValidateResult' => [ 'type' => 'object', 'properties' => [ - 'ticketStatus' => [ - 'type' => 'string', - ], - 'success' => [ - 'type' => 'boolean', - ], - 'message' => [ - 'type' => 'string', - ], - 'draftValidationDetail' => [ - '$ref' => '#/components/schemas/DraftValidationDetail', - ], + 'ticketStatus' => ['type' => 'string'], + 'success' => ['type' => 'boolean'], + 'message' => ['type' => 'string'], + 'draftValidationDetail' => ['$ref' => '#/components/schemas/DraftValidationDetail'], ], ], 'AsyncResourcePlanOperationResult' => [ @@ -320,31 +162,12 @@ .'- FINISHED:执行完成。'."\n" .'- FAILED:执行失败。', 'type' => 'string', - 'enumValueTitles' => [ - 'EXECUTING' => 'EXECUTING', - 'FAILED' => 'FAILED', - 'FINISHED' => 'FINISHED', - ], + 'enumValueTitles' => ['EXECUTING' => 'EXECUTING', 'FAILED' => 'FAILED', 'FINISHED' => 'FINISHED'], 'example' => 'FINISHED', - 'enum' => [ - 'INIT', - 'EXECUTING', - 'FINISHED', - 'FAILED', - ], - ], - 'plan' => [ - 'title' => '细粒度资源值', - 'description' => '专家模式的资源配置计划,ticketStatus状态为FINISHED时返回。', - 'type' => 'string', - 'example' => '{\\"ssgProfiles\\":[{\\"name\\":\\"default\\",\\"cpu\\":1.13,\\"heap\\":\\"1 gb\\",\\"offHeap\\":\\"32 mb\\",\\"managed\\":{},\\"extended\\":{}}],\\"nodes\\":[{\\"id\\":1,\\"type\\":\\"StreamExecTableSourceScan\\",\\"desc\\":\\"Source: datagen_source[78]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}},{\\"id\\":2,\\"type\\":\\"StreamExecSink\\",\\"desc\\":\\"Sink: blackhole_sink[79]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}}],\\"edges\\":[{\\"source\\":1,\\"target\\":2,\\"mode\\":\\"PIPELINED\\",\\"strategy\\":\\"FORWARD\\"}],\\"vertices\\":{\\"717c7b8afebbfb7137f6f0f99beb2a94\\":[1,2]}}', - ], - 'message' => [ - 'title' => '错误信息', - 'description' => '工单信息,ticketStatus为FAILED或EXECUTING状态时返回。', - 'type' => 'string', - 'example' => '"create resource plan failed"', + 'enum' => ['INIT', 'EXECUTING', 'FINISHED', 'FAILED'], ], + 'plan' => ['title' => '细粒度资源值', 'description' => '专家模式的资源配置计划,ticketStatus状态为FINISHED时返回。', 'type' => 'string', 'example' => '{\\"ssgProfiles\\":[{\\"name\\":\\"default\\",\\"cpu\\":1.13,\\"heap\\":\\"1 gb\\",\\"offHeap\\":\\"32 mb\\",\\"managed\\":{},\\"extended\\":{}}],\\"nodes\\":[{\\"id\\":1,\\"type\\":\\"StreamExecTableSourceScan\\",\\"desc\\":\\"Source: datagen_source[78]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}},{\\"id\\":2,\\"type\\":\\"StreamExecSink\\",\\"desc\\":\\"Sink: blackhole_sink[79]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}}],\\"edges\\":[{\\"source\\":1,\\"target\\":2,\\"mode\\":\\"PIPELINED\\",\\"strategy\\":\\"FORWARD\\"}],\\"vertices\\":{\\"717c7b8afebbfb7137f6f0f99beb2a94\\":[1,2]}}'], + 'message' => ['title' => '错误信息', 'description' => '工单信息,ticketStatus为FAILED或EXECUTING状态时返回。', 'type' => 'string', 'example' => '"create resource plan failed"'], ], ], 'BasicResourceSetting' => [ @@ -352,23 +175,9 @@ 'description' => '本数据结构表示用户使用的社区版本常用的基础模式资源配置,有别于商业版本提供的专家模式资源配置。', 'type' => 'object', 'properties' => [ - 'parallelism' => [ - 'title' => '并发度', - 'description' => '并发度。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4', - ], - 'jobmanagerResourceSettingSpec' => [ - 'title' => 'JobManager资源设置', - 'description' => 'JobManager资源设置。', - '$ref' => '#/components/schemas/BasicResourceSettingSpec', - ], - 'taskmanagerResourceSettingSpec' => [ - 'title' => 'TaskManager资源设置', - 'description' => 'TaskManager资源设置。', - '$ref' => '#/components/schemas/BasicResourceSettingSpec', - ], + 'parallelism' => ['title' => '并发度', 'description' => '并发度。', 'type' => 'integer', 'format' => 'int64', 'example' => '4'], + 'jobmanagerResourceSettingSpec' => ['title' => 'JobManager资源设置', 'description' => 'JobManager资源设置。', '$ref' => '#/components/schemas/BasicResourceSettingSpec'], + 'taskmanagerResourceSettingSpec' => ['title' => 'TaskManager资源设置', 'description' => 'TaskManager资源设置。', '$ref' => '#/components/schemas/BasicResourceSettingSpec'], ], ], 'BasicResourceSettingSpec' => [ @@ -376,19 +185,8 @@ 'description' => '本数据结构表示对作业使用CPU和内存资源的包装,依据本数据结构可以生成对JM/TM资源的粗粒度的描述。', 'type' => 'object', 'properties' => [ - 'cpu' => [ - 'title' => 'CPU', - 'description' => 'CPU核数。', - 'type' => 'number', - 'format' => 'double', - 'example' => '2.0', - ], - 'memory' => [ - 'title' => '内存', - 'description' => '内存,单位GiB。', - 'type' => 'string', - 'example' => '4 GiB', - ], + 'cpu' => ['title' => 'CPU', 'description' => 'CPU核数。', 'type' => 'number', 'format' => 'double', 'example' => '2.0'], + 'memory' => ['title' => '内存', 'description' => '内存,单位GiB。', 'type' => 'string', 'example' => '4 GiB'], ], ], 'BatchResourceSetting' => [ @@ -396,18 +194,8 @@ 'description' => '本数据结构代表批模式资源设置信息。', 'type' => 'object', 'properties' => [ - 'maxSlot' => [ - 'title' => '最大slot数', - 'description' => '最大slot数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], - 'basicResourceSetting' => [ - 'title' => '基础资源设置', - 'description' => '基础模式资源设置。', - '$ref' => '#/components/schemas/BasicResourceSetting', - ], + 'maxSlot' => ['title' => '最大slot数', 'description' => '最大slot数。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], + 'basicResourceSetting' => ['title' => '基础资源设置', 'description' => '基础模式资源设置。', '$ref' => '#/components/schemas/BasicResourceSetting'], ], ], 'BriefDeploymentTarget' => [ @@ -419,22 +207,12 @@ 'title' => 'mode', 'description' => '部署模式。', 'type' => 'string', - 'enumValueTitles' => [ - 'SESSION' => 'SESSION', - 'PER_JOB' => 'PER_JOB', - ], + 'enumValueTitles' => ['SESSION' => 'SESSION', 'PER_JOB' => 'PER_JOB'], 'example' => 'PER_JOB', - 'enum' => [ - 'PER_JOB', - ], - ], - 'name' => [ - 'title' => 'name', - 'description' => '- perjob类型:使用部署目标名称,可通过ListDeploymentTargets接口获取。'."\n" - .'- session类型:使用session集群名称。', - 'type' => 'string', - 'example' => 'default-queue ', + 'enum' => ['PER_JOB'], ], + 'name' => ['title' => 'name', 'description' => '- perjob类型:使用部署目标名称,可通过ListDeploymentTargets接口获取。'."\n" + .'- session类型:使用session集群名称。', 'type' => 'string', 'example' => 'default-queue '], ], ], 'BriefResourceSetting' => [ @@ -442,22 +220,9 @@ 'description' => '本数据结构用来描述作业在流/批两种模式下能使用的资源情况。', 'type' => 'object', 'properties' => [ - 'flinkConf' => [ - 'title' => 'flink配置设置', - 'description' => 'Flink配置。', - 'type' => 'object', - 'example' => '“execution.checkpointing.interval: 180s”', - ], - 'batchResourceSetting' => [ - 'title' => '批作业资源设置', - 'description' => '运行批模式的资源设置,选择批模式时必填。', - '$ref' => '#/components/schemas/BatchResourceSetting', - ], - 'streamingResourceSetting' => [ - 'title' => '流作业资源设置', - 'description' => '运行流模式的资源设置,选择流模式时必填。', - '$ref' => '#/components/schemas/StreamingResourceSetting', - ], + 'flinkConf' => ['title' => 'flink配置设置', 'description' => 'Flink配置。', 'type' => 'object', 'example' => '“execution.checkpointing.interval: 180s”'], + 'batchResourceSetting' => ['title' => '批作业资源设置', 'description' => '运行批模式的资源设置,选择批模式时必填。', '$ref' => '#/components/schemas/BatchResourceSetting'], + 'streamingResourceSetting' => ['title' => '流作业资源设置', 'description' => '运行流模式的资源设置,选择流模式时必填。', '$ref' => '#/components/schemas/StreamingResourceSetting'], ], ], 'Catalog' => [ @@ -465,123 +230,65 @@ 'description' => 'catalog结构。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => 'catalog名称', - 'description' => 'catalog名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'paimon-test', - ], - 'properties' => [ - 'title' => 'catalog配置参数', - 'description' => 'catalog配置参数。', - 'type' => 'object', - 'required' => true, - ], + 'name' => ['title' => 'catalog名称', 'description' => 'catalog名称。', 'type' => 'string', 'example' => 'paimon-test', 'required' => true], + 'properties' => ['title' => 'catalog配置参数', 'description' => 'catalog配置参数。', 'type' => 'object', 'required' => true], 'extensionConf' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], - 'Cell' => [ + 'CdcYamlArtifact' => [ 'type' => 'object', 'properties' => [ - 'value' => [ - 'type' => 'string', + 'cdcYaml' => ['title' => '数据摄入作业的代码', 'description' => '数据摄入作业的代码', 'type' => 'string'], + 'additionalDependencies' => [ + 'title' => '附加依赖文件的URL全路径', + 'description' => '附加依赖文件的URL全路径', + 'type' => 'array', + 'items' => ['type' => 'string', 'description' => ''], ], ], + 'description' => '', + ], + 'Cell' => [ + 'type' => 'object', + 'properties' => [ + 'value' => ['type' => 'string'], + ], ], 'Connector' => [ 'title' => 'A short description of struct', 'description' => '自定义连接器connector。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => 'connector名称', - 'description' => 'connector名称。', - 'type' => 'string', - 'example' => 'mysql-test', - ], - 'type' => [ - 'title' => 'connector类型', - 'description' => 'connector类型。', - 'type' => 'string', - 'example' => 'mysql-test', - ], - 'source' => [ - 'title' => '是否为source', - 'description' => '是否可以作为source。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'sink' => [ - 'title' => '是否为sink', - 'description' => '是否可以作为sink。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'lookup' => [ - 'title' => '是否为lookup', - 'description' => '是否可以作为lookup。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'name' => ['title' => 'connector名称', 'description' => 'connector名称。', 'type' => 'string', 'example' => 'mysql-test'], + 'type' => ['title' => 'connector类型', 'description' => 'connector类型。', 'type' => 'string', 'example' => 'mysql-test'], + 'source' => ['title' => '是否为source', 'description' => '是否可以作为source。', 'type' => 'boolean', 'example' => 'false'], + 'sink' => ['title' => '是否为sink', 'description' => '是否可以作为sink。', 'type' => 'boolean', 'example' => 'true'], + 'lookup' => ['title' => '是否为lookup', 'description' => '是否可以作为lookup。', 'type' => 'boolean', 'example' => 'true'], 'properties' => [ 'title' => '配置信息', 'description' => '参数配置信息。', 'type' => 'array', - 'items' => [ - 'description' => 'connector参数。', - '$ref' => '#/components/schemas/Property', - ], + 'items' => ['description' => 'connector参数。', '$ref' => '#/components/schemas/Property'], ], 'supportedFormats' => [ 'title' => '支持的格式', 'description' => '支持的格式组。', 'type' => 'array', - 'items' => [ - 'description' => '支持的格式。', - 'type' => 'string', - 'example' => 'Json', - ], + 'items' => ['description' => '支持的格式。', 'type' => 'string', 'example' => 'Json'], ], 'dependencies' => [ 'title' => '依赖', 'description' => '附加依赖文件组。', 'type' => 'array', - 'items' => [ - 'description' => '附加依赖文件。', - 'type' => 'string', - 'example' => 'oss://bucket/add.jar', - ], - ], - 'creator' => [ - 'title' => '创建者UID', - 'description' => '创建者UID。', - 'type' => 'string', - 'example' => '183899668*******', - ], - 'creatorName' => [ - 'title' => '创建者昵称', - 'description' => '创建者昵称。', - 'type' => 'string', - 'example' => 'userA', - ], - 'modifier' => [ - 'title' => '修改者UID', - 'description' => '修改者UID。', - 'type' => 'string', - 'example' => '183899668*******', - ], - 'modifierName' => [ - 'title' => '修改者昵称', - 'description' => '修改者昵称。', - 'type' => 'string', - 'example' => 'userA', + 'items' => ['description' => '附加依赖文件。', 'type' => 'string', 'example' => 'oss://bucket/add.jar'], ], + 'creator' => ['title' => '创建者UID', 'description' => '创建者UID。', 'type' => 'string', 'example' => '183899668*******'], + 'creatorName' => ['title' => '创建者昵称', 'description' => '创建者昵称。', 'type' => 'string', 'example' => 'userA'], + 'modifier' => ['title' => '修改者UID', 'description' => '修改者UID。', 'type' => 'string', 'example' => '183899668*******'], + 'modifierName' => ['title' => '修改者昵称', 'description' => '修改者昵称。', 'type' => 'string', 'example' => 'userA'], ], ], 'CreateUdfArtifactResult' => [ @@ -589,31 +296,14 @@ 'description' => '创建UdfArtifact返回数据。', 'type' => 'object', 'properties' => [ - 'createSuccess' => [ - 'title' => '创建是否成功', - 'description' => '创建是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'title' => '创建信息', - 'description' => '创建信息。', - 'type' => 'string', - 'example' => '“”', - ], - 'udfArtifact' => [ - 'title' => '创建的udfArtifact', - 'description' => '创建的udfArtifact。', - '$ref' => '#/components/schemas/UdfArtifact', - ], + 'createSuccess' => ['title' => '创建是否成功', 'description' => '创建是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['title' => '创建信息', 'description' => '创建信息。', 'type' => 'string', 'example' => '“”'], + 'udfArtifact' => ['title' => '创建的udfArtifact', 'description' => '创建的udfArtifact。', '$ref' => '#/components/schemas/UdfArtifact'], 'collidingClasses' => [ 'title' => '存在冲突的class', 'description' => '存在冲突的全部类。', 'type' => 'array', - 'items' => [ - 'description' => '存在冲突的类名称。', - '$ref' => '#/components/schemas/UdfClass', - ], + 'items' => ['description' => '存在冲突的类名称。', '$ref' => '#/components/schemas/UdfClass'], ], ], ], @@ -622,24 +312,9 @@ 'description' => 'database结构。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => 'database名称', - 'description' => 'database名称。', - 'type' => 'string', - 'example' => 'database-test', - ], - 'properties' => [ - 'title' => 'database配置参数', - 'description' => 'database配置参数。', - 'type' => 'object', - 'example' => '“”', - ], - 'comment' => [ - 'title' => '备注', - 'description' => '备注。', - 'type' => 'string', - 'example' => '测试数据库。', - ], + 'name' => ['title' => 'database名称', 'description' => 'database名称。', 'type' => 'string', 'example' => 'database-test'], + 'properties' => ['title' => 'database配置参数', 'description' => 'database配置参数。', 'type' => 'object', 'example' => '“”'], + 'comment' => ['title' => '备注', 'description' => '备注。', 'type' => 'string', 'example' => '测试数据库。'], ], ], 'DeleteUdfArtifactResult' => [ @@ -647,26 +322,13 @@ 'description' => '删除UdfArtifact返回数据。', 'type' => 'object', 'properties' => [ - 'deleteSuccess' => [ - 'title' => '删除是否成功', - 'description' => '删除是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'title' => '删除信息', - 'description' => '删除信息。', - 'type' => 'string', - 'example' => '“”', - ], + 'deleteSuccess' => ['title' => '删除是否成功', 'description' => '删除是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['title' => '删除信息', 'description' => '删除信息。', 'type' => 'string', 'example' => '“”'], 'referencedClasses' => [ 'title' => '相关联的class', 'description' => '相关联的全部类。', 'type' => 'array', - 'items' => [ - 'description' => '自定义函数类名。', - '$ref' => '#/components/schemas/UdfClass', - ], + 'items' => ['description' => '自定义函数类名。', '$ref' => '#/components/schemas/UdfClass'], ], ], ], @@ -675,92 +337,21 @@ 'description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', 'type' => 'object', 'properties' => [ - 'deploymentId' => [ - 'title' => '作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-0000012312****', - ], - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'name' => [ - 'title' => '作业名称', - 'description' => '已部署作业名称。', - 'type' => 'string', - 'example' => 'deploymentName', - ], - 'engineVersion' => [ - 'title' => '引擎版本', - 'description' => '引擎版本。', - 'type' => 'string', - 'example' => 'vvr-6.0.0-flink-1.15', - ], - 'description' => [ - 'title' => '描述信息', - 'description' => '描述信息。', - 'type' => 'string', - 'example' => 'this is a deployment description', - ], - 'creator' => [ - 'title' => '创建者', - 'description' => '创建者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'description' => '修改者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'description' => '修改者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'deploymentHasChanged' => [ - 'title' => '作业启动后是否被修改', - 'description' => '已部署作业启动后是否被修改。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'artifact' => [ - 'title' => 'artifact', - 'description' => '用户启动已部署作业必填的数据结构。', - '$ref' => '#/components/schemas/Artifact', - ], - 'flinkConf' => [ - 'title' => 'Flink配置', - 'description' => 'Flink配置。', - 'type' => 'object', - 'example' => '{"taskmanager.numberOfTaskSlots":"1"}', - ], - 'logging' => [ - 'title' => '日志配置', - 'description' => '日志配置。', - '$ref' => '#/components/schemas/Logging', - ], - 'jobSummary' => [ - 'title' => '实例信息汇总', - 'description' => '已部署作业下的作业实例信息汇总。', - '$ref' => '#/components/schemas/JobSummary', - ], - 'deploymentTarget' => [ - 'title' => '部署目标', - 'description' => '部署目标。', - '$ref' => '#/components/schemas/BriefDeploymentTarget', - ], + 'deploymentId' => ['title' => '作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-0000012312****'], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'default-namespace'], + 'name' => ['title' => '作业名称', 'description' => '已部署作业名称。', 'type' => 'string', 'example' => 'deploymentName'], + 'engineVersion' => ['title' => '引擎版本', 'description' => '引擎版本。', 'type' => 'string', 'example' => 'vvr-6.0.0-flink-1.15'], + 'description' => ['title' => '描述信息', 'description' => '描述信息。', 'type' => 'string', 'example' => 'this is a deployment description'], + 'creator' => ['title' => '创建者', 'description' => '创建者。', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'description' => '创建者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'description' => '修改者。', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'description' => '修改者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'deploymentHasChanged' => ['title' => '作业启动后是否被修改', 'description' => '已部署作业启动后是否被修改。', 'type' => 'boolean', 'example' => 'true'], + 'artifact' => ['title' => 'artifact', 'description' => '用户启动已部署作业必填的数据结构。', '$ref' => '#/components/schemas/Artifact'], + 'flinkConf' => ['title' => 'Flink配置', 'description' => 'Flink配置。', 'type' => 'object', 'example' => '{"taskmanager.numberOfTaskSlots":"1"}'], + 'logging' => ['title' => '日志配置', 'description' => '日志配置。', '$ref' => '#/components/schemas/Logging'], + 'jobSummary' => ['title' => '实例信息汇总', 'description' => '已部署作业下的作业实例信息汇总。', '$ref' => '#/components/schemas/JobSummary'], + 'deploymentTarget' => ['title' => '部署目标', 'description' => '部署目标。', '$ref' => '#/components/schemas/BriefDeploymentTarget'], 'executionMode' => [ 'title' => '执行模式,支持STREAMING或者BATCH', 'description' => '执行模式。'."\n" @@ -768,58 +359,21 @@ .'- BATCH:批模式。', 'type' => 'string', 'example' => 'STREAMING', - 'enum' => [ - 'STREAMING', - 'BATCH', - ], - ], - 'streamingResourceSetting' => [ - 'title' => '流作业资源设置', - 'description' => '流作业资源设置。', - '$ref' => '#/components/schemas/StreamingResourceSetting', - ], - 'batchResourceSetting' => [ - 'title' => '批作业资源设置', - 'description' => '批作业资源设置。', - '$ref' => '#/components/schemas/BatchResourceSetting', - ], - 'labels' => [ - 'title' => '作业标签', - 'description' => '作业标签', - 'type' => 'object', + 'enum' => ['STREAMING', 'BATCH'], ], + 'streamingResourceSetting' => ['title' => '流作业资源设置', 'description' => '流作业资源设置。', '$ref' => '#/components/schemas/StreamingResourceSetting'], + 'batchResourceSetting' => ['title' => '批作业资源设置', 'description' => '批作业资源设置。', '$ref' => '#/components/schemas/BatchResourceSetting'], + 'labels' => ['title' => '作业标签', 'description' => '作业标签', 'type' => 'object'], 'localVariables' => [ 'title' => '作业变量', 'description' => '作业变量', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/LocalVariable', - ], - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间', - 'type' => 'string', - 'example' => '1714058507'."\n", - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间', - 'type' => 'string', - 'example' => '1714058843', - ], - 'referencedDeploymentDraftId' => [ - 'title' => '关联作业草稿ID', - 'description' => '关联作业草稿ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000000003', + 'items' => ['$ref' => '#/components/schemas/LocalVariable', 'description' => ''], ], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间', 'type' => 'string', 'example' => 'edcef******b4f'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '1714058507'."\n"], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '1714058843'], + 'referencedDeploymentDraftId' => ['title' => '关联作业草稿ID', 'description' => '关联作业草稿ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000000003'], ], ], 'DeploymentDraft' => [ @@ -827,119 +381,35 @@ 'description' => '作业草稿。', 'type' => 'object', 'properties' => [ - 'deploymentDraftId' => [ - 'title' => '作业草稿ID', - 'description' => '作业草稿ID。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-00000012****', - ], - 'name' => [ - 'title' => '作业草稿名称', - 'description' => '作业草稿名称。', - 'type' => 'string', - 'example' => 'test-draft', - ], - 'parentId' => [ - 'title' => '父目录ID', - 'description' => '父文件夹目录ID。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-00000013****', - ], - 'referencedDeploymentId' => [ - 'title' => '关联的已部署作业ID', - 'description' => '关联的已部署作业ID。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-0000012312****', - ], + 'deploymentDraftId' => ['title' => '作业草稿ID', 'description' => '作业草稿ID。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-00000012****'], + 'name' => ['title' => '作业草稿名称', 'description' => '作业草稿名称。', 'type' => 'string', 'example' => 'test-draft'], + 'parentId' => ['title' => '父目录ID', 'description' => '父文件夹目录ID。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-00000013****'], + 'referencedDeploymentId' => ['title' => '关联的已部署作业ID', 'description' => '关联的已部署作业ID。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-0000012312****'], 'executionMode' => [ 'title' => '执行模式', 'description' => '执行模式。', 'type' => 'string', 'example' => 'STREAMING', - 'enum' => [ - 'STREAMING', - 'BATCH', - ], - ], - 'artifact' => [ - 'description' => 'SQL作业文本内容,仅支持SQLSCRIPT类型。', - '$ref' => '#/components/schemas/Artifact', - ], - 'engineVersion' => [ - 'title' => '引擎版本', - 'description' => '引擎版本。', - 'type' => 'string', - 'example' => 'vvr-6.0.7-flink-1.15', + 'enum' => ['STREAMING', 'BATCH'], ], + 'artifact' => ['description' => '作业文本内容,支持SQLSCRIPT、CDCYAML类型。', '$ref' => '#/components/schemas/Artifact'], + 'engineVersion' => ['title' => '引擎版本', 'description' => '引擎版本。', 'type' => 'string', 'example' => 'vvr-6.0.7-flink-1.15'], 'localVariables' => [ 'title' => '作业变量', 'description' => '作业变量。', 'type' => 'array', - 'items' => [ - 'description' => '作业变量。', - '$ref' => '#/components/schemas/LocalVariable', - ], - ], - 'labels' => [ - 'title' => '作业标签', - 'description' => '作业标签。', - 'type' => 'object', - ], - 'lock' => [ - 'title' => '作业草稿锁', - 'description' => '作业草稿锁。', - '$ref' => '#/components/schemas/Lock', - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间。', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'creator' => [ - 'title' => '创建者', - 'description' => '创建者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'description' => '修改者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'description' => '修改者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', + 'items' => ['description' => '作业变量。', '$ref' => '#/components/schemas/LocalVariable'], ], + 'labels' => ['title' => '作业标签', 'description' => '作业标签。', 'type' => 'object'], + 'lock' => ['title' => '作业草稿锁', 'description' => '作业草稿锁。', '$ref' => '#/components/schemas/Lock'], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间。', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'default-namespace'], + 'creator' => ['title' => '创建者', 'description' => '创建者。', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'description' => '创建者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'description' => '修改者。', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'description' => '修改者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], ], ], 'DeploymentRestoreStrategy' => [ @@ -957,32 +427,11 @@ ."\n\n", 'type' => 'string', 'example' => 'LATEST_STATE', - 'enum' => [ - 'NONE', - 'LATEST_SAVEPOINT', - 'FROM_SAVEPOINT', - 'LATEST_STATE', - ], - ], - 'allowNonRestoredState' => [ - 'title' => '是否无状态启动', - 'description' => '允许忽略部分算子状态。仅当Python类型或者Jar类型作业选择有状态恢复时需要设置。', - 'type' => 'boolean', - 'example' => 'TRUE', - ], - 'jobStartTimeInMs' => [ - 'title' => '无状态启动时间,当选择无状态启动时,可以设置本参数让所有支持startTime 的源表均从该时刻开始读取数据', - 'description' => '无状态启动时间,需输入13位时间戳。当选择无状态启动时,可以设置本参数让所有支持startTime的源表均从该时刻开始读取数据。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1660293803155', - ], - 'savepointId' => [ - 'title' => '启动作业快照ID', - 'description' => '启动作业快照ID,启动策略为FROM_SAVEPOINT时必填。', - 'type' => 'string', - 'example' => '354dde66-a3ae-463e-967a-0b4107fd****', + 'enum' => ['NONE', 'LATEST_SAVEPOINT', 'FROM_SAVEPOINT', 'LATEST_STATE'], ], + 'allowNonRestoredState' => ['title' => '是否无状态启动', 'description' => '允许忽略部分算子状态。仅当Python类型或者Jar类型作业选择有状态恢复时需要设置。', 'type' => 'boolean', 'example' => 'TRUE'], + 'jobStartTimeInMs' => ['title' => '无状态启动时间,当选择无状态启动时,可以设置本参数让所有支持startTime 的源表均从该时刻开始读取数据', 'description' => '无状态启动时间,需输入13位时间戳。当选择无状态启动时,可以设置本参数让所有支持startTime的源表均从该时刻开始读取数据。', 'type' => 'integer', 'format' => 'int64', 'example' => '1660293803155'], + 'savepointId' => ['title' => '启动作业快照ID', 'description' => '启动作业快照ID,启动策略为FROM_SAVEPOINT时必填。', 'type' => 'string', 'example' => '354dde66-a3ae-463e-967a-0b4107fd****'], ], ], 'DeploymentTarget' => [ @@ -990,22 +439,19 @@ 'description' => '本数据结构用来描述集群中设置的perjob类型的部署目标相关信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => '部署目标名称', - 'description' => 'perjob类型部署目标名称。', - 'type' => 'string', - 'example' => 'deployment target', - ], - 'namespace' => [ - 'title' => '项目空间名称', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'namespace', - ], - 'quota' => [ - 'title' => '资源配额', - 'description' => '资源配额', - '$ref' => '#/components/schemas/ResourceQuota', + 'name' => ['title' => '部署目标名称', 'description' => 'perjob类型部署目标名称。', 'type' => 'string', 'example' => 'deployment target'], + 'namespace' => ['title' => '项目空间名称', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'namespace'], + 'quota' => ['title' => '资源配额', 'description' => '资源配额', '$ref' => '#/components/schemas/ResourceQuota'], + ], + ], + 'DqlResult' => [ + 'type' => 'object', + 'properties' => [ + 'statementIndex' => ['type' => 'integer', 'format' => 'int32'], + 'submitPreviewResult' => ['$ref' => '#/components/schemas/SubmitPreviewResult'], + 'tableResults' => [ + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/TableResult'], ], ], ], @@ -1014,23 +460,9 @@ 'description' => '作业草稿部署参数。', 'type' => 'object', 'properties' => [ - 'skipValidate' => [ - 'title' => '是否跳过深度校验', - 'description' => '是否跳过深度校验。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'deploymentTarget' => [ - 'title' => '部署目标', - 'description' => '部署目标。', - '$ref' => '#/components/schemas/BriefDeploymentTarget', - ], - 'deploymentDraftId' => [ - 'title' => '作业草稿ID', - 'description' => '作业草稿ID。', - 'type' => 'string', - 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51****', - ], + 'skipValidate' => ['title' => '是否跳过深度校验', 'description' => '是否跳过深度校验。', 'type' => 'boolean', 'example' => 'false'], + 'deploymentTarget' => ['title' => '部署目标', 'description' => '部署目标。', '$ref' => '#/components/schemas/BriefDeploymentTarget'], + 'deploymentDraftId' => ['title' => '作业草稿ID', 'description' => '作业草稿ID。', 'type' => 'string', 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51****'], ], ], 'DraftDeployResult' => [ @@ -1038,50 +470,24 @@ 'description' => '作业草稿部署结果。', 'type' => 'object', 'properties' => [ - 'success' => [ - 'title' => '部署结果', - 'description' => '是否部署成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'message' => [ - 'title' => '部署信息', - 'description' => '部署信息。', - 'type' => 'string', - 'example' => '""', - ], - 'deploymentId' => [ - 'title' => '已部署作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], - 'artifactValidationDetail' => [ - 'description' => 'SQL校验结果。', - '$ref' => '#/components/schemas/ValidateStatementResult', - ], + 'success' => ['title' => '部署结果', 'description' => '是否部署成功。', 'type' => 'boolean', 'example' => 'true'], + 'message' => ['title' => '部署信息', 'description' => '部署信息。', 'type' => 'string', 'example' => '""'], + 'deploymentId' => ['title' => '已部署作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], + 'artifactValidationDetail' => ['description' => 'SQL校验结果。', '$ref' => '#/components/schemas/ValidateStatementResult'], ], ], 'DraftMetaInfoErrorDetail' => [ 'type' => 'object', 'properties' => [ - 'message' => [ - 'type' => 'string', - ], - 'reason' => [ - 'type' => 'string', - ], + 'message' => ['type' => 'string'], + 'reason' => ['type' => 'string'], ], ], 'DraftValidateParams' => [ 'type' => 'object', 'properties' => [ - 'deploymentDraftId' => [ - 'type' => 'string', - ], - 'deploymentTargetName' => [ - 'type' => 'string', - ], + 'deploymentDraftId' => ['type' => 'string'], + 'deploymentTargetName' => ['type' => 'string'], ], ], 'DraftValidationDetail' => [ @@ -1089,16 +495,10 @@ 'properties' => [ 'draftMetaInfoErrorDetails' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/DraftMetaInfoErrorDetail', - ], - ], - 'sqlValidationResult' => [ - 'type' => 'string', - ], - 'sqlErrorDetail' => [ - '$ref' => '#/components/schemas/ValidationErrorDetails', + 'items' => ['$ref' => '#/components/schemas/DraftMetaInfoErrorDetail'], ], + 'sqlValidationResult' => ['type' => 'string'], + 'sqlErrorDetail' => ['$ref' => '#/components/schemas/ValidationErrorDetails'], ], ], 'Edge' => [ @@ -1110,19 +510,13 @@ 'title' => '表关系', 'description' => '表关系。', 'type' => 'array', - 'items' => [ - 'description' => '关联表信息。', - '$ref' => '#/components/schemas/Relation', - ], + 'items' => ['description' => '关联表信息。', '$ref' => '#/components/schemas/Relation'], ], 'columnLineage' => [ 'title' => '列关系', 'description' => '字段关系。', 'type' => 'array', - 'items' => [ - 'description' => '关联字段信息。', - '$ref' => '#/components/schemas/Relation', - ], + 'items' => ['description' => '关联字段信息。', '$ref' => '#/components/schemas/Relation'], ], ], ], @@ -1130,18 +524,9 @@ 'title' => '有编辑权限的项目空间对象', 'type' => 'object', 'properties' => [ - 'Role' => [ - 'title' => '用户角色', - 'type' => 'string', - ], - 'WorkspaceId' => [ - 'title' => '工作空间ID', - 'type' => 'string', - ], - 'Namespace' => [ - 'title' => '项目空间名字', - 'type' => 'string', - ], + 'Role' => ['title' => '用户角色', 'type' => 'string'], + 'WorkspaceId' => ['title' => '工作空间ID', 'type' => 'string'], + 'Namespace' => ['title' => '项目空间名字', 'type' => 'string'], ], ], 'EngineVersionMetadata' => [ @@ -1149,13 +534,7 @@ 'description' => '本数据结构代表作业引擎版本的基础信息。', 'type' => 'object', 'properties' => [ - 'engineVersion' => [ - 'title' => '引擎版本名称。', - 'description' => '引擎版本名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'vvr-6.0.0-flink-1.15', - ], + 'engineVersion' => ['title' => '引擎版本名称。', 'description' => '引擎版本名称。', 'type' => 'string', 'required' => true, 'example' => 'vvr-6.0.0-flink-1.15'], 'status' => [ 'title' => '该引擎版本状态。', 'description' => '该引擎版本状态。'."\n" @@ -1167,18 +546,9 @@ 'type' => 'string', 'required' => true, 'example' => 'STABLE', - 'enum' => [ - 'STABLE', - 'BETA', - 'DEPRECATED', - 'EXPIRED', - ], - ], - 'features' => [ - 'title' => '该引擎版本所支持的特性。', - 'description' => '该引擎版本所支持的特性。', - '$ref' => '#/components/schemas/EngineVersionSupportedFeatures', + 'enum' => ['STABLE', 'BETA', 'DEPRECATED', 'EXPIRED'], ], + 'features' => ['title' => '该引擎版本所支持的特性。', 'description' => '该引擎版本所支持的特性。', '$ref' => '#/components/schemas/EngineVersionSupportedFeatures'], ], ], 'EngineVersionMetadataIndex' => [ @@ -1186,20 +556,12 @@ 'description' => '本数据结构代表作业引擎版本的汇总信息。', 'type' => 'object', 'properties' => [ - 'defaultEngineVersion' => [ - 'title' => '默认使用的引擎版本。', - 'description' => '默认使用的引擎版本。', - 'type' => 'string', - 'example' => 'vvr-6.0.1-flink-1.15', - ], + 'defaultEngineVersion' => ['title' => '默认使用的引擎版本。', 'description' => '默认使用的引擎版本。', 'type' => 'string', 'example' => 'vvr-6.0.1-flink-1.15'], 'engineVersionMetadata' => [ 'title' => '所有支持的引擎版本信息。', 'description' => '所有支持的引擎版本信息。', 'type' => 'array', - 'items' => [ - 'description' => '引擎版本基础信息。', - '$ref' => '#/components/schemas/EngineVersionMetadata', - ], + 'items' => ['description' => '引擎版本基础信息。', '$ref' => '#/components/schemas/EngineVersionMetadata'], ], ], ], @@ -1208,18 +570,8 @@ 'description' => '本数据结构代表该引擎版本支持的特性描述。', 'type' => 'object', 'properties' => [ - 'useForSqlDeployments' => [ - 'title' => '该引擎版本是否具备提交Sql作业能力。', - 'description' => '该引擎版本是否具备提交SQL作业能力。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'supportNativeSavepoint' => [ - 'title' => '该引擎版本是否具备支持native savepoint的能力。', - 'description' => '该引擎版本是否具备支持原生快照的能力。', - 'type' => 'boolean', - 'example' => 'true', - ], + 'useForSqlDeployments' => ['title' => '该引擎版本是否具备提交Sql作业能力。', 'description' => '该引擎版本是否具备提交SQL作业能力。', 'type' => 'boolean', 'example' => 'true'], + 'supportNativeSavepoint' => ['title' => '该引擎版本是否具备支持native savepoint的能力。', 'description' => '该引擎版本是否具备支持原生快照的能力。', 'type' => 'boolean', 'example' => 'true'], ], ], 'ErrorDetails' => [ @@ -1227,45 +579,16 @@ 'description' => 'Sql作业代码校验错误细节。', 'type' => 'object', 'properties' => [ - 'lineNumber' => [ - 'title' => '错误开始行数', - 'description' => '错误开始行数。', - 'type' => 'string', - 'example' => '3', - ], - 'columnNumber' => [ - 'title' => '错误开始列数', - 'description' => '错误开始列数。', - 'type' => 'string', - 'example' => '2', - ], - 'endLineNumber' => [ - 'title' => '错误结束行数', - 'description' => '错误结束行数。', - 'type' => 'string', - 'example' => '5', - ], - 'endColumnNumber' => [ - 'title' => '错误结束列数', - 'description' => '错误结束列数。', - 'type' => 'string', - 'example' => '11', - ], - 'message' => [ - 'title' => '错误信息', - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '""', - ], + 'lineNumber' => ['title' => '错误开始行数', 'description' => '错误开始行数。', 'type' => 'string', 'example' => '3'], + 'columnNumber' => ['title' => '错误开始列数', 'description' => '错误开始列数。', 'type' => 'string', 'example' => '2'], + 'endLineNumber' => ['title' => '错误结束行数', 'description' => '错误结束行数。', 'type' => 'string', 'example' => '5'], + 'endColumnNumber' => ['title' => '错误结束列数', 'description' => '错误结束列数。', 'type' => 'string', 'example' => '11'], + 'message' => ['title' => '错误信息', 'description' => '错误信息。', 'type' => 'string', 'example' => '""'], 'invalidflinkConf' => [ 'title' => '无效flink conf', 'description' => '无效flink conf列表。', 'type' => 'array', - 'items' => [ - 'description' => '无效flink conf信息。', - 'type' => 'string', - 'example' => '{"k:v"}', - ], + 'items' => ['description' => '无效flink conf信息。', 'type' => 'string', 'example' => '{"k:v"}'], ], ], ], @@ -1274,43 +597,14 @@ 'description' => 'event', 'type' => 'object', 'properties' => [ - 'eventId' => [ - 'title' => '运行事件ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000000001', - ], - 'jobId' => [ - 'title' => '作业实例ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000005043', - ], - 'createdAt' => [ - 'type' => 'string', - ], - 'workspace' => [ - 'title' => '工作空间', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'deploymentId' => [ - 'title' => '作业ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000680003', - ], - 'namespace' => [ - 'title' => '项目空间', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'eventName' => [ - 'title' => '运行事件名称', - 'type' => 'string', - 'example' => 'STATE_TRANSITION_IS_COMPLETED', - ], - 'message' => [ - 'title' => '运行事件信息', - 'type' => 'string', - ], + 'eventId' => ['title' => '运行事件ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000000001'], + 'namespace' => ['title' => '项目空间', 'type' => 'string', 'example' => 'default-namespace'], + 'workspace' => ['title' => '工作空间', 'type' => 'string', 'example' => 'edcef******b4f'], + 'eventName' => ['title' => '运行事件名称', 'type' => 'string', 'example' => 'STATE_TRANSITION_IS_COMPLETED'], + 'deploymentId' => ['title' => '作业ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000680003'], + 'jobId' => ['title' => '作业实例ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000005043'], + 'message' => ['title' => '运行事件信息', 'type' => 'string'], + 'createdAt' => ['type' => 'string'], ], ], 'ExpertResourceSetting' => [ @@ -1318,133 +612,52 @@ 'description' => '本数据结构代表作业专家模式资源配置的信息。', 'type' => 'object', 'properties' => [ - 'jobmanagerResourceSettingSpec' => [ - 'title' => 'JobManager基础资源设置', - 'description' => 'JobManager基础资源设置。', - '$ref' => '#/components/schemas/BasicResourceSettingSpec', - ], - 'resourcePlan' => [ - 'title' => '细粒度资源计划', - 'description' => '专家模式资源配置计划。', - 'type' => 'string', - 'example' => '{\\"ssgProfiles\\":[{\\"name\\":\\"default\\",\\"cpu\\":1.13,\\"heap\\":\\"1 gb\\",\\"offHeap\\":\\"32 mb\\",\\"managed\\":{},\\"extended\\":{}}],\\"nodes\\":[{\\"id\\":1,\\"type\\":\\"StreamExecTableSourceScan\\",\\"desc\\":\\"Source: datagen_source[78]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}},{\\"id\\":2,\\"type\\":\\"StreamExecSink\\",\\"desc\\":\\"Sink: blackhole_sink[79]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}}],\\"edges\\":[{\\"source\\":1,\\"target\\":2,\\"mode\\":\\"PIPELINED\\",\\"strategy\\":\\"FORWARD\\"}],\\"vertices\\":{\\"717c7b8afebbfb7137f6f0f99beb2a94\\":[1,2]}}', - ], + 'jobmanagerResourceSettingSpec' => ['title' => 'JobManager基础资源设置', 'description' => 'JobManager基础资源设置。', '$ref' => '#/components/schemas/BasicResourceSettingSpec'], + 'resourcePlan' => ['title' => '细粒度资源计划', 'description' => '专家模式资源配置计划。', 'type' => 'string', 'example' => '{\\"ssgProfiles\\":[{\\"name\\":\\"default\\",\\"cpu\\":1.13,\\"heap\\":\\"1 gb\\",\\"offHeap\\":\\"32 mb\\",\\"managed\\":{},\\"extended\\":{}}],\\"nodes\\":[{\\"id\\":1,\\"type\\":\\"StreamExecTableSourceScan\\",\\"desc\\":\\"Source: datagen_source[78]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}},{\\"id\\":2,\\"type\\":\\"StreamExecSink\\",\\"desc\\":\\"Sink: blackhole_sink[79]\\",\\"profile\\":{\\"group\\":\\"default\\",\\"parallelism\\":1,\\"maxParallelism\\":32768,\\"minParallelism\\":1}}],\\"edges\\":[{\\"source\\":1,\\"target\\":2,\\"mode\\":\\"PIPELINED\\",\\"strategy\\":\\"FORWARD\\"}],\\"vertices\\":{\\"717c7b8afebbfb7137f6f0f99beb2a94\\":[1,2]}}'], ], ], 'FetchResult' => [ 'type' => 'object', 'properties' => [ - 'resultType' => [ - 'type' => 'string', - ], - 'resultMessage' => [ - 'type' => 'string', - ], + 'resultType' => ['type' => 'string'], + 'resultMessage' => ['type' => 'string'], 'tableResults' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/TableResult', - ], + 'items' => ['$ref' => '#/components/schemas/TableResult'], ], ], ], - 'FlinkConf' => [ - 'title' => 'Flink conf', - 'description' => 'flink配置参数', - 'type' => 'object', - 'example' => '{"taskmanager.numberOfTaskSlots":"1","table.exec.state.ttl":"128000s"}'."\n", - ], + 'FlinkConf' => ['title' => 'Flink conf', 'description' => 'flink配置参数', 'type' => 'object', 'example' => '{"taskmanager.numberOfTaskSlots":"1","table.exec.state.ttl":"128000s"}'."\n"], 'Folder' => [ 'title' => 'A short description of struct', 'description' => '作业草稿文件夹。', 'type' => 'object', 'properties' => [ - 'folderId' => [ - 'title' => '文件夹id', - 'description' => '文件夹id。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-0000012312****', - ], - 'parentId' => [ - 'title' => '父级文件夹id', - 'description' => '父级文件夹id。', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-0000012390****', - ], - 'name' => [ - 'title' => '文件夹名称', - 'description' => '文件夹名称。', - 'type' => 'string', - 'example' => 'test', - ], + 'folderId' => ['title' => '文件夹id', 'description' => '文件夹id。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-0000012312****'], + 'parentId' => ['title' => '父级文件夹id', 'description' => '父级文件夹id。', 'type' => 'string', 'example' => '00000000-0000-0000-0000-0000012390****'], + 'name' => ['title' => '文件夹名称', 'description' => '文件夹名称。', 'type' => 'string', 'example' => 'test'], 'subFolder' => [ 'title' => '子文件夹', 'description' => '子文件夹列表。', 'type' => 'array', - 'items' => [ - 'description' => '子文件夹信息。', - '$ref' => '#/components/schemas/SubFolder', - ], - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间ID。', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', + 'items' => ['description' => '子文件夹信息。', '$ref' => '#/components/schemas/SubFolder'], ], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间ID。', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'default-namespace'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], ], ], 'Function' => [ 'type' => 'object', 'properties' => [ - 'gmtModified' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], - 'functionLanguage' => [ - 'title' => 'FUNCTION_LANGUAGE_INVALID: <code>FUNCTION_LANGUAGE_INVALID = 0;</code>, FUNCTION_LANGUAGE_JAVA: <code>FUNCTION_LANGUAGE_JAVA = 1;</code>, FUNCTION_LANGUAGE_SCALA: <code>FUNCTION_LANGUAGE_SCALA = 2;</code>, FUNCTION_LANGUAGE_PYTHON: '."\n" - .'<code>FUNCTION_LANGUAGE_PYTHON = 3;', - 'type' => 'string', - 'required' => true, - ], - 'name' => [ - 'type' => 'string', - 'required' => true, - ], - 'description' => [ - 'type' => 'string', - ], - 'className' => [ - 'title' => '', - 'type' => 'string', - 'required' => true, - ], - 'functionType' => [ - 'title' => 'FUNCTION_TYPE_INVALID: <code>FUNCTION_TYPE_INVALID = 0;</code>, FUNCTION_TYPE_FLINK: <code>FUNCTION_TYPE_FLINK = 1;</code>, FUNCTION_TYPE_UNKNOWN_EXTERNAL: <code>FUNCTION_TYPE_UNKNOWN_EXTERNAL = 2;</code>', - 'type' => 'string', - 'required' => true, - ], + 'gmtModified' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + 'functionLanguage' => ['title' => 'FUNCTION_LANGUAGE_INVALID: <code>FUNCTION_LANGUAGE_INVALID = 0;</code>, FUNCTION_LANGUAGE_JAVA: <code>FUNCTION_LANGUAGE_JAVA = 1;</code>, FUNCTION_LANGUAGE_SCALA: <code>FUNCTION_LANGUAGE_SCALA = 2;</code>, FUNCTION_LANGUAGE_PYTHON: '."\n" + .'<code>FUNCTION_LANGUAGE_PYTHON = 3;', 'type' => 'string', 'required' => true], + 'name' => ['type' => 'string', 'required' => true], + 'description' => ['type' => 'string'], + 'className' => ['title' => '', 'type' => 'string', 'required' => true], + 'functionType' => ['title' => 'FUNCTION_TYPE_INVALID: <code>FUNCTION_TYPE_INVALID = 0;</code>, FUNCTION_TYPE_FLINK: <code>FUNCTION_TYPE_FLINK = 1;</code>, FUNCTION_TYPE_UNKNOWN_EXTERNAL: <code>FUNCTION_TYPE_UNKNOWN_EXTERNAL = 2;</code>', 'type' => 'string', 'required' => true], ], ], 'GetLineageInfoParams' => [ @@ -1452,35 +665,16 @@ 'description' => '数据血缘查询参数。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '作业id或表id', - 'description' => '作业实例id或表id。可通过listjobs接口获取作业实例ID或通过lisTables接口获取表ID。', - 'type' => 'string', - 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****', - ], - 'depth' => [ - 'title' => '血缘深度', - 'description' => '血缘深度。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1', - ], + 'id' => ['title' => '作业id或表id', 'description' => '作业实例id或表id。可通过listjobs接口获取作业实例ID或通过lisTables接口获取表ID。', 'type' => 'string', 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****'], + 'depth' => ['title' => '血缘深度', 'description' => '血缘深度。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'], 'idType' => [ 'title' => '数据类型,JOB/TABLE', 'description' => '数据类型,JOB/TABLE,需要和id设置一致。', 'type' => 'string', 'example' => 'JOB', - 'enum' => [ - 'TABLE', - 'JOB', - ], - ], - 'isColumnLevel' => [ - 'title' => '谱系类型,true为列级谱系,false为表级谱系', - 'description' => '谱系类型,true为字段级血缘,false为表级血缘。', - 'type' => 'boolean', - 'example' => 'true', + 'enum' => ['TABLE', 'JOB'], ], + 'isColumnLevel' => ['title' => '谱系类型,true为列级谱系,false为表级谱系', 'description' => '谱系类型,true为字段级血缘,false为表级血缘。', 'type' => 'boolean', 'example' => 'true'], 'direction' => [ 'title' => '血缘方向,UPSTREAM/DOWNSTREAM/BOTH', 'description' => '血缘方向。'."\n" @@ -1490,43 +684,18 @@ .'- BOTH:同时寻找上下游节点。', 'type' => 'string', 'example' => 'Both', - 'enum' => [ - 'UPSTREAM', - 'DOWNSTREAM', - 'BOTH', - ], - ], - 'isTemporary' => [ - 'title' => '是否为临时表', - 'description' => '是否为临时表。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间ID。', - 'type' => 'string', - 'example' => 'a14bd5d90a****'."\n", - ], - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间。', - 'type' => 'string', - 'example' => 'default-namespace', + 'enum' => ['UPSTREAM', 'DOWNSTREAM', 'BOTH'], ], + 'isTemporary' => ['title' => '是否为临时表', 'description' => '是否为临时表。', 'type' => 'boolean', 'example' => 'true'], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间ID。', 'type' => 'string', 'example' => 'a14bd5d90a****'."\n"], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间。', 'type' => 'string', 'example' => 'default-namespace'], ], ], 'GetPreSignedUrlForObjectResult' => [ 'type' => 'object', 'properties' => [ - 'preSignedUrl' => [ - 'title' => '签名URL', - 'type' => 'string', - ], - 'jarUrl' => [ - 'title' => 'jar存放路径', - 'type' => 'string', - ], + 'preSignedUrl' => ['title' => '签名URL', 'type' => 'string'], + 'jarUrl' => ['title' => 'jar存放路径', 'type' => 'string'], ], ], 'HotUpdateJobFailureInfo' => [ @@ -1534,27 +703,14 @@ 'description' => '作业动态更新状态。', 'type' => 'object', 'properties' => [ - 'reason' => [ - 'title' => '错误原因', - 'description' => '错误原因。', - 'type' => 'string', - 'example' => '“”', - ], - 'message' => [ - 'title' => '错误信息', - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '“”', - ], + 'reason' => ['title' => '错误原因', 'description' => '错误原因。', 'type' => 'string', 'example' => '“”'], + 'message' => ['title' => '错误信息', 'description' => '错误信息。', 'type' => 'string', 'example' => '“”'], 'failureSeverity' => [ 'title' => '错误等级', 'description' => '错误等级。', 'type' => 'string', 'example' => 'LOW', - 'enum' => [ - 'CRITICAL', - 'LOW', - ], + 'enum' => ['CRITICAL', 'LOW'], ], ], ], @@ -1563,14 +719,8 @@ 'description' => '作业动态更新参数。', 'type' => 'object', 'properties' => [ - 'rescaleJobParam' => [ - 'description' => '资源动态更新。', - '$ref' => '#/components/schemas/RescaleJobParam', - ], - 'updateJobConfigParam' => [ - 'description' => '运行参数动态更新。', - '$ref' => '#/components/schemas/UpdateJobConfigParam', - ], + 'rescaleJobParam' => ['description' => '资源动态更新。', '$ref' => '#/components/schemas/RescaleJobParam'], + 'updateJobConfigParam' => ['description' => '运行参数动态更新。', '$ref' => '#/components/schemas/UpdateJobConfigParam'], ], ], 'HotUpdateJobResult' => [ @@ -1578,33 +728,11 @@ 'description' => '作业动态更新结果。', 'type' => 'object', 'properties' => [ - 'jobHotUpdateId' => [ - 'title' => '动态更新id', - 'description' => '动态更新id。', - 'type' => 'string', - 'example' => '123hashd****', - ], - 'jobId' => [ - 'title' => '作业id', - 'description' => '作业实例id。', - 'type' => 'string', - 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****', - ], - 'targetResourceSetting' => [ - 'title' => '目标作业资源', - 'description' => '目标作业资源配置。', - '$ref' => '#/components/schemas/BriefResourceSetting', - ], - 'hotUpdateParams' => [ - 'title' => '动态更新参数', - 'description' => '动态更新参数。', - '$ref' => '#/components/schemas/HotUpdateJobParams', - ], - 'status' => [ - 'title' => '动态更新状态', - 'description' => '动态更新状态。', - '$ref' => '#/components/schemas/HotUpdateJobStatus', - ], + 'jobHotUpdateId' => ['title' => '动态更新id', 'description' => '动态更新id。', 'type' => 'string', 'example' => '123hashd****'], + 'jobId' => ['title' => '作业id', 'description' => '作业实例id。', 'type' => 'string', 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****'], + 'targetResourceSetting' => ['title' => '目标作业资源', 'description' => '目标作业资源配置。', '$ref' => '#/components/schemas/BriefResourceSetting'], + 'hotUpdateParams' => ['title' => '动态更新参数', 'description' => '动态更新参数。', '$ref' => '#/components/schemas/HotUpdateJobParams'], + 'status' => ['title' => '动态更新状态', 'description' => '动态更新状态。', '$ref' => '#/components/schemas/HotUpdateJobStatus'], ], ], 'HotUpdateJobStatus' => [ @@ -1617,24 +745,10 @@ 'description' => '动态更新状态。', 'type' => 'string', 'example' => 'HOT_UPDATED', - 'enum' => [ - 'INIT', - 'HOT_UPDATING', - 'FAILED', - 'HOT_UPDATED', - ], - ], - 'requestId' => [ - 'title' => '请求id', - 'description' => '请求id。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'failure' => [ - 'title' => '动态更新错误信息', - 'description' => '动态更新错误信息。', - '$ref' => '#/components/schemas/HotUpdateJobFailureInfo', + 'enum' => ['INIT', 'HOT_UPDATING', 'FAILED', 'HOT_UPDATED'], ], + 'requestId' => ['title' => '请求id', 'description' => '请求id。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'failure' => ['title' => '动态更新错误信息', 'description' => '动态更新错误信息。', '$ref' => '#/components/schemas/HotUpdateJobFailureInfo'], ], ], 'JarArtifact' => [ @@ -1642,33 +756,14 @@ 'description' => '本数据结构代表JAR类型作业必填的信息。', 'type' => 'object', 'properties' => [ - 'jarUri' => [ - 'title' => 'Jar作业URL全路径', - 'description' => 'JAR作业URL全路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/test.jar', - ], - 'entryClass' => [ - 'title' => '启动类,需要填写类的全称', - 'description' => '启动类,需要填写类的全称。', - 'type' => 'string', - 'example' => 'org.apapche.flink.test', - ], - 'mainArgs' => [ - 'title' => '启动类所需参数', - 'description' => '启动类所需参数。', - 'type' => 'string', - 'example' => 'start from main', - ], + 'jarUri' => ['title' => 'Jar作业URL全路径', 'description' => 'JAR作业URL全路径。', 'type' => 'string', 'example' => 'https://oss/bucket/test.jar'], + 'entryClass' => ['title' => '启动类,需要填写类的全称', 'description' => '启动类,需要填写类的全称。', 'type' => 'string', 'example' => 'org.apapche.flink.test'], + 'mainArgs' => ['title' => '启动类所需参数', 'description' => '启动类所需参数。', 'type' => 'string', 'example' => 'start from main'], 'additionalDependencies' => [ 'title' => '附加依赖URL全路径,可以将Jar需要使用的其他依赖在这里填写', 'description' => '附加依赖的URL全路径,可以将JAR需要使用的其他依赖在这里填写。', 'type' => 'array', - 'items' => [ - 'description' => '附加依赖文件的URL全路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/addition.jar', - ], + 'items' => ['description' => '附加依赖文件的URL全路径。', 'type' => 'string', 'example' => 'https://oss/bucket/addition.jar'], ], ], ], @@ -1677,30 +772,10 @@ 'description' => '本数据结构代表已部署作业生成的实例详情。', 'type' => 'object', 'properties' => [ - 'jobId' => [ - 'title' => '实例ID', - 'description' => '作业实例ID。', - 'type' => 'string', - 'example' => '354dde66-a3ae-463e-967a-0b4107fd****', - ], - 'deploymentId' => [ - 'title' => '作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => '354dde66-a3ae-463e-967a-0b4107fd****', - ], - 'deploymentName' => [ - 'title' => '作业名称', - 'description' => '已部署作业名称。', - 'type' => 'string', - 'example' => 'flinktest', - ], - 'namespace' => [ - 'title' => '项目空间名称', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'namespacetest', - ], + 'jobId' => ['title' => '实例ID', 'description' => '作业实例ID。', 'type' => 'string', 'example' => '354dde66-a3ae-463e-967a-0b4107fd****'], + 'deploymentId' => ['title' => '作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => '354dde66-a3ae-463e-967a-0b4107fd****'], + 'deploymentName' => ['title' => '作业名称', 'description' => '已部署作业名称。', 'type' => 'string', 'example' => 'flinktest'], + 'namespace' => ['title' => '项目空间名称', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'namespacetest'], 'executionMode' => [ 'title' => '实例运行模式', 'description' => '作业实例运行模式。'."\n" @@ -1708,133 +783,34 @@ .'- BATCH:批模式。', 'type' => 'string', 'example' => 'BATCH', - 'enum' => [ - 'STREAMING', - 'BATCH', - ], - ], - 'creator' => [ - 'title' => '创建者', - 'description' => '创建者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'description' => '创建者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'description' => '修改者。', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'description' => '修改者名称。', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'startTime' => [ - 'title' => '实例启动时间', - 'description' => '作业实例启动时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1660190835', - ], - 'endTime' => [ - 'title' => '实例结束时间', - 'description' => '作业实例结束时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1660277235', - ], - 'engineVersion' => [ - 'title' => '作业引擎版本', - 'description' => '作业引擎版本。', - 'type' => 'string', - 'example' => 'vvr-4.0.14-flink-1.13', - ], - 'flinkConf' => [ - 'title' => '作业配置', - 'description' => '作业实例全量参数配置。', - 'type' => 'object', - 'example' => '{execution.checkpointing.unaligned: false}', - ], - 'status' => [ - 'title' => '实例状态', - 'description' => '作业实例状态。', - '$ref' => '#/components/schemas/JobStatus', - ], - 'metric' => [ - 'title' => '实例资源信息', - 'description' => '作业实例资源信息。', - '$ref' => '#/components/schemas/JobMetric', - ], - 'sessionClusterName' => [ - 'title' => 'session集群名称', - 'description' => '如果作业实例运行在Session集群,展示该Session集群名称,否则为null。', - 'type' => 'string', - 'example' => 'null', - ], - 'artifact' => [ - 'title' => '作业内容模版', - 'description' => '作业实例内容模版。', - '$ref' => '#/components/schemas/Artifact', - ], - 'logging' => [ - 'title' => '作业日志配置', - 'description' => '作业实例日志配置。', - '$ref' => '#/components/schemas/Logging', - ], - 'batchResourceSetting' => [ - 'title' => 'batchResourceSetting', - 'description' => '批模式资源设置。', - '$ref' => '#/components/schemas/BatchResourceSetting', - ], - 'streamingResourceSetting' => [ - 'title' => '批作业资源设置', - 'description' => '流模式资源设置。', - '$ref' => '#/components/schemas/StreamingResourceSetting', - ], - 'restoreStrategy' => [ - 'title' => '流作业资源设置', - 'description' => '作业实例启动策略。', - '$ref' => '#/components/schemas/DeploymentRestoreStrategy', - ], - 'userFlinkConf' => [ - 'title' => '用户作业配置', - 'description' => '用户作业参数配置。', - '$ref' => '#/components/schemas/FlinkConf', - ], + 'enum' => ['STREAMING', 'BATCH'], + ], + 'creator' => ['title' => '创建者', 'description' => '创建者。', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'description' => '创建者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'description' => '修改者。', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'description' => '修改者名称。', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'startTime' => ['title' => '实例启动时间', 'description' => '作业实例启动时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1660190835'], + 'endTime' => ['title' => '实例结束时间', 'description' => '作业实例结束时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1660277235'], + 'engineVersion' => ['title' => '作业引擎版本', 'description' => '作业引擎版本。', 'type' => 'string', 'example' => 'vvr-4.0.14-flink-1.13'], + 'flinkConf' => ['title' => '作业配置', 'description' => '作业实例全量参数配置。', 'type' => 'object', 'example' => '{execution.checkpointing.unaligned: false}'], + 'status' => ['title' => '实例状态', 'description' => '作业实例状态。', '$ref' => '#/components/schemas/JobStatus'], + 'metric' => ['title' => '实例资源信息', 'description' => '作业实例资源信息。', '$ref' => '#/components/schemas/JobMetric'], + 'sessionClusterName' => ['title' => 'session集群名称', 'description' => '如果作业实例运行在Session集群,展示该Session集群名称,否则为null。', 'type' => 'string', 'example' => 'null'], + 'artifact' => ['title' => '作业内容模版', 'description' => '作业实例内容模版。', '$ref' => '#/components/schemas/Artifact'], + 'logging' => ['title' => '作业日志配置', 'description' => '作业实例日志配置。', '$ref' => '#/components/schemas/Logging'], + 'batchResourceSetting' => ['title' => 'batchResourceSetting', 'description' => '批模式资源设置。', '$ref' => '#/components/schemas/BatchResourceSetting'], + 'streamingResourceSetting' => ['title' => '批作业资源设置', 'description' => '流模式资源设置。', '$ref' => '#/components/schemas/StreamingResourceSetting'], + 'restoreStrategy' => ['title' => '流作业资源设置', 'description' => '作业实例启动策略。', '$ref' => '#/components/schemas/DeploymentRestoreStrategy'], + 'userFlinkConf' => ['title' => '用户作业配置', 'description' => '用户作业参数配置。', '$ref' => '#/components/schemas/FlinkConf'], 'localVariables' => [ 'title' => '作业变量', 'description' => '作业变量。', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/LocalVariable', - ], - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间。', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'string', - 'example' => '1714058507', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间。', - 'type' => 'string', - 'example' => '1714058800', + 'items' => ['$ref' => '#/components/schemas/LocalVariable', 'description' => ''], ], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间。', 'type' => 'string', 'example' => 'edcef******b4f'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'string', 'example' => '1714058507'], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'string', 'example' => '1714058800'], ], ], 'JobDiagnosis' => [ @@ -1842,47 +818,19 @@ 'description' => '作业诊断结果', 'type' => 'object', 'properties' => [ - 'symptoms' => [ - 'title' => '诊断详情', - 'description' => '诊断详情', - '$ref' => '#/components/schemas/JobDiagnosisSymptoms', - ], - 'workspace' => [ - 'title' => '工作空间', - 'description' => '工作空间', - 'type' => 'string', - 'example' => 'a14bd5d90a****', - ], + 'diagnoseId' => ['title' => '诊断ID', 'description' => '诊断ID', 'type' => 'string', 'example' => 'ba30cd99-37a5-4a20-8cd9-ed4b*****'], + 'diagnoseTime' => ['title' => '诊断时间', 'description' => '诊断时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1740389560871'], + 'workspace' => ['title' => '工作空间', 'description' => '工作空间', 'type' => 'string', 'example' => 'a14bd5d90a****'], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间', 'type' => 'string', 'example' => 'default-namespace-*****'], 'riskLevel' => [ 'title' => '风险等级', 'description' => '风险等级', 'type' => 'string', - 'enumValueTitles' => [ - 'RISK_LEVEL_HIGH' => 'RISK_LEVEL_HIGH', - 'RISK_LEVEL_MID' => 'RISK_LEVEL_MID', - 'RISK_LEVEL_LOW' => 'RISK_LEVEL_LOW', - ], + 'enumValueTitles' => ['RISK_LEVEL_HIGH' => 'RISK_LEVEL_HIGH', 'RISK_LEVEL_MID' => 'RISK_LEVEL_MID', 'RISK_LEVEL_LOW' => 'RISK_LEVEL_LOW'], 'example' => 'RISK_LEVEL_LOW', ], - 'diagnoseId' => [ - 'title' => '诊断ID', - 'description' => '诊断ID', - 'type' => 'string', - 'example' => 'ba30cd99-37a5-4a20-8cd9-ed4b*****', - ], - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间', - 'type' => 'string', - 'example' => 'default-namespace-*****', - ], - 'diagnoseTime' => [ - 'title' => '诊断时间', - 'description' => '诊断时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1740389560871', - ], + 'symptoms' => ['title' => '诊断详情', 'description' => '诊断详情', '$ref' => '#/components/schemas/JobDiagnosisSymptoms'], + 'healthScore' => ['title' => '健康分, 非空时值范围是[0, 100]', 'type' => 'integer', 'format' => 'int32'], ], ], 'JobDiagnosisSymptom' => [ @@ -1890,24 +838,9 @@ 'description' => '诊断项', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => '诊断名称', - 'description' => '诊断名称', - 'type' => 'string', - 'example' => '启动速度分析', - ], - 'description' => [ - 'title' => '诊断结果', - 'description' => '诊断结果', - 'type' => 'string', - 'example' => 'JM资源配置过低导致作业启动慢', - ], - 'recommendation' => [ - 'title' => '修复建议', - 'description' => '修复建议', - 'type' => 'string', - 'example' => '将 JOBManager 内存从 1Gi 改为 4Gi', - ], + 'name' => ['title' => '诊断名称', 'description' => '诊断名称', 'type' => 'string', 'example' => '启动速度分析'], + 'description' => ['title' => '诊断结果', 'description' => '诊断结果', 'type' => 'string', 'example' => 'JM资源配置过低导致作业启动慢'], + 'recommendation' => ['title' => '修复建议', 'description' => '修复建议', 'type' => 'string', 'example' => '将 JOBManager 内存从 1Gi 改为 4Gi'], ], ], 'JobDiagnosisSymptoms' => [ @@ -1915,55 +848,36 @@ 'description' => '作业所有诊断项。', 'type' => 'object', 'properties' => [ - 'autopilot' => [ - 'title' => '资源诊断详情', - 'description' => '作业资源诊断。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], + 'autopilot' => ['title' => '资源诊断详情', 'description' => '作业资源诊断。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], 'startup' => [ 'title' => '启动诊断详情', 'description' => '启动过程诊断。', 'type' => 'array', - 'items' => [ - 'description' => '诊断项详情。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], + 'items' => ['description' => '诊断项详情。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], ], 'runtime' => [ 'title' => '运行诊断详情', 'description' => '运行情况诊断。', 'type' => 'array', - 'items' => [ - 'description' => '诊断项详情。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], - ], - 'troubleshooting' => [ - 'title' => '异常诊断详情', - 'description' => '底层异常诊断。', - 'type' => 'array', - 'items' => [ - 'description' => '诊断项详情。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], + 'items' => ['description' => '诊断项详情。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], ], 'state' => [ 'title' => '作业State诊断详情', 'description' => '作业状态诊断。', 'type' => 'array', - 'items' => [ - 'description' => '诊断项详情。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], + 'items' => ['description' => '诊断项详情。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], + ], + 'troubleshooting' => [ + 'title' => '异常诊断详情', + 'description' => '底层异常诊断。', + 'type' => 'array', + 'items' => ['description' => '诊断项详情。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], ], 'others' => [ 'title' => '其它诊断详情', 'description' => '其它项目诊断。', 'type' => 'array', - 'items' => [ - 'description' => '诊断项详情。', - '$ref' => '#/components/schemas/JobDiagnosisSymptom', - ], + 'items' => ['description' => '诊断项详情。', '$ref' => '#/components/schemas/JobDiagnosisSymptom'], ], ], ], @@ -1972,25 +886,9 @@ 'description' => '本数据结构代表作业失败信息。', 'type' => 'object', 'properties' => [ - 'message' => [ - 'title' => '失败信息详情', - 'description' => '失败信息详情。', - 'type' => 'string', - 'example' => 'Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.', - ], - 'reason' => [ - 'title' => '失败原因', - 'description' => '失败原因。', - 'type' => 'string', - 'example' => 'KubernetesDeploymentNotProgressing', - ], - 'failedAt' => [ - 'title' => '失败时间', - 'description' => '失败时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1660120062', - ], + 'message' => ['title' => '失败信息详情', 'description' => '失败信息详情。', 'type' => 'string', 'example' => 'Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.'], + 'reason' => ['title' => '失败原因', 'description' => '失败原因。', 'type' => 'string', 'example' => 'KubernetesDeploymentNotProgressing'], + 'failedAt' => ['title' => '失败时间', 'description' => '失败时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1660120062'], ], ], 'JobInfo' => [ @@ -1998,18 +896,8 @@ 'description' => '作业信息。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '作业id', - 'description' => '作业实例id。', - 'type' => 'string', - 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****'."\n", - ], - 'properties' => [ - 'title' => '作业信息', - 'description' => '作业详情。', - 'type' => 'object', - 'example' => '{"id:xxx","createTime:v"}', - ], + 'id' => ['title' => '作业id', 'description' => '作业实例id。', 'type' => 'string', 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****'."\n"], + 'properties' => ['title' => '作业信息', 'description' => '作业详情。', 'type' => 'object', 'example' => '{"id:xxx","createTime:v"}'], ], ], 'JobMetric' => [ @@ -2017,20 +905,8 @@ 'description' => '本数据结构表示作业运行实例上资源的指标信息。', 'type' => 'object', 'properties' => [ - 'totalMemoryByte' => [ - 'title' => '内存,单位是Byte', - 'description' => '内存,单位是Byte。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4096', - ], - 'totalCpu' => [ - 'title' => 'CPU', - 'description' => 'CPU。', - 'type' => 'number', - 'format' => 'double', - 'example' => '2', - ], + 'totalMemoryByte' => ['title' => '内存,单位是Byte', 'description' => '内存,单位是Byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '4096'], + 'totalCpu' => ['title' => 'CPU', 'description' => 'CPU。', 'type' => 'number', 'format' => 'double', 'example' => '2'], ], ], 'JobStartParameters' => [ @@ -2038,37 +914,16 @@ 'description' => '启动作业参数', 'type' => 'object', 'properties' => [ - 'deploymentId' => [ - 'title' => '作业ID', - 'description' => '作业ID', - 'type' => 'string', - 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****', - ], - 'restoreStrategy' => [ - 'title' => '作业启动位点设置', - 'description' => '作业启动位点设置', - '$ref' => '#/components/schemas/DeploymentRestoreStrategy', - ], - 'resourceQueueName' => [ - 'title' => '作业运行的资源队列', - 'description' => '作业运行的资源队列', - 'type' => 'string', - 'example' => 'default-queue', - ], + 'deploymentId' => ['title' => '作业ID', 'description' => '作业ID', 'type' => 'string', 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****'], + 'restoreStrategy' => ['title' => '作业启动位点设置', 'description' => '作业启动位点设置', '$ref' => '#/components/schemas/DeploymentRestoreStrategy'], + 'resourceQueueName' => ['title' => '作业运行的资源队列', 'description' => '作业运行的资源队列', 'type' => 'string', 'example' => 'default-queue'], 'localVariables' => [ 'title' => '作业变量', 'description' => '作业变量', 'type' => 'array', - 'items' => [ - 'description' => '作业变量', - '$ref' => '#/components/schemas/LocalVariable', - ], - ], - 'jobId' => [ - 'title' => '作业实例 ID', - 'description' => '作业实例 ID', - 'type' => 'string', + 'items' => ['description' => '作业变量', '$ref' => '#/components/schemas/LocalVariable'], ], + 'jobId' => ['title' => '作业实例 ID', 'description' => '作业实例 ID', 'type' => 'string'], ], ], 'JobStatus' => [ @@ -2076,19 +931,6 @@ 'description' => '本数据结构代表作业下生成实例的状态。', 'type' => 'object', 'properties' => [ - 'running' => [ - 'title' => '实例运行信息', - 'description' => '实例运行信息。当作业状态为RUNNING的时候,该数据结构有值。', - '$ref' => '#/components/schemas/JobStatusRunning', - ], - 'riskLevel' => [ - 'type' => 'string', - ], - 'failure' => [ - 'title' => '实例失败信息', - 'description' => '实例失败信息。当作业状态为FAILED的时候,该数据结构有值。', - '$ref' => '#/components/schemas/JobFailure', - ], 'currentJobStatus' => [ 'title' => '当前实例的运行状态', 'description' => '当前实例的状态。'."\n" @@ -2100,19 +942,12 @@ .'- FINISHED:已完成。', 'type' => 'string', 'example' => 'RUNNING', - 'enum' => [ - 'STARTING', - 'RUNNING', - 'CANCELLING', - 'FAILED', - 'CANCELLED', - 'FINISHED', - ], - ], - 'healthScore' => [ - 'type' => 'integer', - 'format' => 'int32', + 'enum' => ['STARTING', 'RUNNING', 'CANCELLING', 'FAILED', 'CANCELLED', 'FINISHED'], ], + 'failure' => ['title' => '实例失败信息', 'description' => '实例失败信息。当作业状态为FAILED的时候,该数据结构有值。', '$ref' => '#/components/schemas/JobFailure'], + 'running' => ['title' => '实例运行信息', 'description' => '实例运行信息。当作业状态为RUNNING的时候,该数据结构有值。', '$ref' => '#/components/schemas/JobStatusRunning'], + 'healthScore' => ['type' => 'integer', 'format' => 'int32', 'description' => ''], + 'riskLevel' => ['type' => 'string', 'description' => ''], ], ], 'JobStatusRunning' => [ @@ -2120,19 +955,8 @@ 'description' => '本数据结构表示实例的运行状态。', 'type' => 'object', 'properties' => [ - 'observedFlinkJobRestarts' => [ - 'title' => '实力重启次数', - 'description' => '实例重启次数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '4', - ], - 'observedFlinkJobStatus' => [ - 'title' => '当前Flink作业状态', - 'description' => '当前Flink实例状态。', - 'type' => 'string', - 'example' => 'RUNNING', - ], + 'observedFlinkJobRestarts' => ['title' => '实力重启次数', 'description' => '实例重启次数。', 'type' => 'integer', 'format' => 'int64', 'example' => '4'], + 'observedFlinkJobStatus' => ['title' => '当前Flink作业状态', 'description' => '当前Flink实例状态。', 'type' => 'string', 'example' => 'RUNNING'], ], ], 'JobSummary' => [ @@ -2140,48 +964,12 @@ 'description' => '本数据结构代表作业下所有实例状态的汇总。', 'type' => 'object', 'properties' => [ - 'starting' => [ - 'title' => '启动中实例数', - 'description' => '启动中实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'running' => [ - 'title' => '运行中实例数', - 'description' => '运行中实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'cancelling' => [ - 'title' => '停止中实例数', - 'description' => '停止中实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '0', - ], - 'cancelled' => [ - 'title' => '已停止实例数', - 'description' => '已停止实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '5', - ], - 'finished' => [ - 'title' => '已完成实例数', - 'description' => '已完成实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'failed' => [ - 'title' => '已失败实例数', - 'description' => '已失败实例数。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '6', - ], + 'starting' => ['title' => '启动中实例数', 'description' => '启动中实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'running' => ['title' => '运行中实例数', 'description' => '运行中实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '2'], + 'cancelling' => ['title' => '停止中实例数', 'description' => '停止中实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'], + 'cancelled' => ['title' => '已停止实例数', 'description' => '已停止实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '5'], + 'finished' => ['title' => '已完成实例数', 'description' => '已完成实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], + 'failed' => ['title' => '已失败实例数', 'description' => '已失败实例数。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'], ], ], 'LineageColumn' => [ @@ -2189,68 +977,16 @@ 'description' => '血缘列信息。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '列id', - 'description' => '列字段ID。', - 'type' => 'string', - 'example' => '123ss3', - ], - 'columnName' => [ - 'title' => '列名', - 'description' => '列名称。', - 'type' => 'string', - 'example' => 'name', - ], - 'nullable' => [ - 'title' => '是否为空', - 'description' => '是否为空。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'description' => [ - 'title' => '描述信息', - 'description' => '描述信息。', - 'type' => 'string', - 'example' => '订单用户名称', - ], - 'columnType' => [ - 'title' => '列类型', - 'description' => '列类型。', - 'type' => 'string', - 'example' => 'string', - ], - 'columnNativeType' => [ - 'title' => '列原始类型', - 'description' => '列原始类型。', - 'type' => 'string', - 'example' => 'string', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537978', - ], - 'creator' => [ - 'title' => '创建者', - 'description' => '创建者。', - 'type' => 'string', - 'example' => 'userA', - ], - 'modifier' => [ - 'title' => '修改者', - 'description' => '修改者。', - 'type' => 'string', - 'example' => 'userA', - ], + 'id' => ['title' => '列id', 'description' => '列字段ID。', 'type' => 'string', 'example' => '123ss3'], + 'columnName' => ['title' => '列名', 'description' => '列名称。', 'type' => 'string', 'example' => 'name'], + 'nullable' => ['title' => '是否为空', 'description' => '是否为空。', 'type' => 'boolean', 'example' => 'false'], + 'description' => ['title' => '描述信息', 'description' => '描述信息。', 'type' => 'string', 'example' => '订单用户名称'], + 'columnType' => ['title' => '列类型', 'description' => '列类型。', 'type' => 'string', 'example' => 'string'], + 'columnNativeType' => ['title' => '列原始类型', 'description' => '列原始类型。', 'type' => 'string', 'example' => 'string'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537978'], + 'creator' => ['title' => '创建者', 'description' => '创建者。', 'type' => 'string', 'example' => 'userA'], + 'modifier' => ['title' => '修改者', 'description' => '修改者。', 'type' => 'string', 'example' => 'userA'], ], ], 'LineageInfo' => [ @@ -2262,24 +998,14 @@ 'title' => '节点', 'description' => '节点列表。', 'type' => 'array', - 'items' => [ - 'description' => '节点信息。', - '$ref' => '#/components/schemas/Node', - ], - ], - 'edges' => [ - 'title' => '边', - 'description' => '边信息。', - '$ref' => '#/components/schemas/Edge', + 'items' => ['description' => '节点信息。', '$ref' => '#/components/schemas/Node'], ], + 'edges' => ['title' => '边', 'description' => '边信息。', '$ref' => '#/components/schemas/Edge'], 'jobInfos' => [ 'title' => '作业信息', 'description' => '作业列表。', 'type' => 'array', - 'items' => [ - 'description' => '作业信息。', - '$ref' => '#/components/schemas/JobInfo', - ], + 'items' => ['description' => '作业信息。', '$ref' => '#/components/schemas/JobInfo'], ], ], ], @@ -2288,36 +1014,15 @@ 'description' => '血缘表信息。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '表id', - 'description' => '表id。', - 'type' => 'string', - 'example' => '434508', - ], - 'tableName' => [ - 'title' => '表名称', - 'description' => '表名称。', - 'type' => 'string', - 'example' => 'order-test', - ], - 'with' => [ - 'title' => '表参数', - 'description' => '表参数。', - 'type' => 'object', - ], - 'properties' => [ - 'title' => '表信息', - 'description' => '表信息。包括创建者和修改者,最近创建时间和修改时间。', - 'type' => 'object', - ], + 'id' => ['title' => '表id', 'description' => '表id。', 'type' => 'string', 'example' => '434508'], + 'tableName' => ['title' => '表名称', 'description' => '表名称。', 'type' => 'string', 'example' => 'order-test'], + 'with' => ['title' => '表参数', 'description' => '表参数。', 'type' => 'object'], + 'properties' => ['title' => '表信息', 'description' => '表信息。包括创建者和修改者,最近创建时间和修改时间。', 'type' => 'object'], 'columns' => [ 'title' => '列', 'description' => '列信息。', 'type' => 'array', - 'items' => [ - 'description' => '列信息详情。', - '$ref' => '#/components/schemas/LineageColumn', - ], + 'items' => ['description' => '列信息详情。', '$ref' => '#/components/schemas/LineageColumn'], ], ], ], @@ -2326,18 +1031,8 @@ 'description' => '作业变量', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => '作业变量名称', - 'description' => '作业变量名称', - 'type' => 'string', - 'example' => 'test', - ], - 'value' => [ - 'title' => '作业变量值', - 'description' => '作业变量值', - 'type' => 'string', - 'example' => 'datagen', - ], + 'name' => ['title' => '作业变量名称', 'description' => '作业变量名称', 'type' => 'string', 'example' => 'test'], + 'value' => ['title' => '作业变量值', 'description' => '作业变量值', 'type' => 'string', 'example' => 'datagen'], ], ], 'Lock' => [ @@ -2345,36 +1040,11 @@ 'description' => '作业草稿锁信息。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '锁ID', - 'description' => '锁ID。', - 'type' => 'string', - 'example' => 'stt-fu1658tbk6mnkk2****', - ], - 'workspace' => [ - 'title' => '工作空间ID', - 'description' => '工作空间ID。', - 'type' => 'string', - 'example' => 'a14bd5d90a****', - ], - 'namespace' => [ - 'title' => '项目空间名称', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'holderId' => [ - 'title' => '锁持有者ID', - 'description' => '锁持有者ID。', - 'type' => 'string', - 'example' => '18389966****', - ], - 'holderName' => [ - 'title' => '锁持有者用户名', - 'description' => '锁持有者用户名。', - 'type' => 'string', - 'example' => 'userA', - ], + 'id' => ['title' => '锁ID', 'description' => '锁ID。', 'type' => 'string', 'example' => 'stt-fu1658tbk6mnkk2****'], + 'workspace' => ['title' => '工作空间ID', 'description' => '工作空间ID。', 'type' => 'string', 'example' => 'a14bd5d90a****'], + 'namespace' => ['title' => '项目空间名称', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'default-namespace'], + 'holderId' => ['title' => '锁持有者ID', 'description' => '锁持有者ID。', 'type' => 'string', 'example' => '18389966****'], + 'holderName' => ['title' => '锁持有者用户名', 'description' => '锁持有者用户名。', 'type' => 'string', 'example' => 'userA'], ], ], 'Log4jLogger' => [ @@ -2382,44 +1052,13 @@ 'description' => '本数据结构代表作业实例上日志输出的相关配置信息。', 'type' => 'object', 'properties' => [ - 'loggerName' => [ - 'title' => '输出日志的累的名称', - 'description' => '输出日志的类的名称。', - 'type' => 'string', - 'example' => 'StdOutErrConsoleAppender', - ], + 'loggerName' => ['title' => '输出日志的累的名称', 'description' => '输出日志的类的名称。', 'type' => 'string', 'example' => 'StdOutErrConsoleAppender'], 'loggerLevel' => [ 'title' => '输出日志的级别', 'description' => '输出日志的级别。', 'type' => 'string', 'example' => 'ERROR', - 'enum' => [ - 'TRACE', - 'DEBUG', - 'INFO', - 'WARN', - 'ERROR', - ], - ], - ], - ], - 'LogReservePolicy' => [ - 'title' => '日志保存策略', - 'description' => '本数据结构代表作业实例上日志保存的相关配置。', - 'type' => 'object', - 'properties' => [ - 'openHistory' => [ - 'title' => '是否开启日志保存', - 'description' => '是否开启日志保存。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'expirationDays' => [ - 'title' => '开启日志保存后,日志保存天数', - 'description' => '开启日志保存后,日志保存天数。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '7', + 'enum' => ['TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR'], ], ], ], @@ -2432,35 +1071,27 @@ 'title' => '系统日志模版类型', 'description' => '系统日志默认模版。', 'type' => 'string', - 'enumValueTitles' => [ - 'default' => 'default', - ], + 'enumValueTitles' => ['default' => 'default'], 'example' => 'default', - 'enum' => [ - 'default', - 'oss', - ], - ], - 'log4j2ConfigurationTemplate' => [ - 'title' => '自定义日志模版', - 'description' => '自定义日志模版。', - 'type' => 'string', - 'example' => 'xml格式文本', + 'enum' => ['default', 'oss'], ], + 'log4j2ConfigurationTemplate' => ['title' => '自定义日志模版', 'description' => '自定义日志模版。', 'type' => 'string', 'example' => 'xml格式文本'], 'log4jLoggers' => [ 'title' => 'log4j配置', 'description' => 'log4j配置。', 'type' => 'array', - 'items' => [ - 'description' => '作业实例上日志输出相关配置信息。', - '$ref' => '#/components/schemas/Log4jLogger', - ], - ], - 'logReservePolicy' => [ - 'title' => '日志保存策略', - 'description' => '日志保存策略。', - '$ref' => '#/components/schemas/LogReservePolicy', + 'items' => ['description' => '作业实例上日志输出相关配置信息。', '$ref' => '#/components/schemas/Log4jLogger'], ], + 'logReservePolicy' => ['title' => '日志保存策略', 'description' => '日志保存策略。', '$ref' => '#/components/schemas/LogReservePolicy'], + ], + ], + 'LogReservePolicy' => [ + 'title' => '日志保存策略', + 'description' => '本数据结构代表作业实例上日志保存的相关配置。', + 'type' => 'object', + 'properties' => [ + 'openHistory' => ['title' => '是否开启日志保存', 'description' => '是否开启日志保存。', 'type' => 'boolean', 'example' => 'true'], + 'expirationDays' => ['title' => '开启日志保存后,日志保存天数', 'description' => '开启日志保存后,日志保存天数。', 'type' => 'integer', 'format' => 'int64', 'example' => '7'], ], ], 'Member' => [ @@ -2468,22 +1099,12 @@ 'description' => '成员数据结构。', 'type' => 'object', 'properties' => [ - 'member' => [ - 'title' => '成员名称', - 'description' => '成员UID。', - 'type' => 'string', - 'required' => true, - 'example' => 'user: 181319557522****', - ], + 'member' => ['title' => '成员名称', 'description' => '成员UID。', 'type' => 'string', 'required' => true, 'example' => 'user: 181319557522****'], 'role' => [ 'title' => '成员角色', 'description' => '成员角色', 'type' => 'string', - 'enumValueTitles' => [ - 'EDITOR' => 'EDITOR', - 'OWNER' => 'OWNER', - 'VIEWER' => 'VIEWER', - ], + 'enumValueTitles' => ['EDITOR' => 'EDITOR', 'OWNER' => 'OWNER', 'VIEWER' => 'VIEWER'], 'example' => 'VIEWER', ], ], @@ -2493,17 +1114,8 @@ 'description' => '元信息。', 'type' => 'object', 'properties' => [ - 'key' => [ - 'title' => '元信息字段', - 'description' => '元信息字段。', - 'type' => 'string', - 'example' => 'topic', - ], - 'virtual' => [ - 'title' => '是否仅可读', - 'description' => '是否仅可读。', - 'type' => 'boolean', - ], + 'key' => ['title' => '元信息字段', 'description' => '元信息字段。', 'type' => 'string', 'example' => 'topic'], + 'virtual' => ['title' => '是否仅可读', 'description' => '是否仅可读。', 'type' => 'boolean'], ], ], 'Node' => [ @@ -2511,44 +1123,16 @@ 'description' => '血缘节点信息。', 'type' => 'object', 'properties' => [ - 'id' => [ - 'title' => '节点id', - 'description' => '节点id。', - 'type' => 'string', - 'example' => '97383', - ], - 'catalogName' => [ - 'title' => 'catalog名称', - 'description' => 'catalog名称。', - 'type' => 'string', - 'example' => 'paimon', - ], - 'databaseName' => [ - 'title' => 'database名称', - 'description' => 'database名称。', - 'type' => 'string', - 'example' => 'paimon-ods', - ], - 'isTemporary' => [ - 'title' => '是否为临时表', - 'description' => '是否为临时表。', - 'type' => 'boolean', - 'example' => 'false', - ], - 'connector' => [ - 'title' => '连接器', - 'description' => '连接器名称。', - 'type' => 'string', - 'example' => 'paimon', - ], + 'id' => ['title' => '节点id', 'description' => '节点id。', 'type' => 'string', 'example' => '97383'], + 'catalogName' => ['title' => 'catalog名称', 'description' => 'catalog名称。', 'type' => 'string', 'example' => 'paimon'], + 'databaseName' => ['title' => 'database名称', 'description' => 'database名称。', 'type' => 'string', 'example' => 'paimon-ods'], + 'isTemporary' => ['title' => '是否为临时表', 'description' => '是否为临时表。', 'type' => 'boolean', 'example' => 'false'], + 'connector' => ['title' => '连接器', 'description' => '连接器名称。', 'type' => 'string', 'example' => 'paimon'], 'tables' => [ 'title' => '表', 'description' => '表信息。', 'type' => 'array', - 'items' => [ - 'description' => '表详情。', - '$ref' => '#/components/schemas/LineageTable', - ], + 'items' => ['description' => '表详情。', '$ref' => '#/components/schemas/LineageTable'], ], ], ], @@ -2557,33 +1141,19 @@ 'properties' => [ 'context' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string'], ], ], ], 'NodeExecutionStatusDTO' => [ 'type' => 'object', 'properties' => [ - 'executionId' => [ - 'type' => 'string', - ], - 'workspace' => [ - 'type' => 'string', - ], - 'resourceId' => [ - 'type' => 'string', - ], - 'namespace' => [ - 'type' => 'string', - ], - 'type' => [ - 'type' => 'string', - ], - 'status' => [ - 'type' => 'string', - ], + 'executionId' => ['type' => 'string'], + 'workspace' => ['type' => 'string'], + 'resourceId' => ['type' => 'string'], + 'namespace' => ['type' => 'string'], + 'type' => ['type' => 'string'], + 'status' => ['type' => 'string'], ], ], 'PeriodicSchedulingPolicy' => [ @@ -2591,44 +1161,17 @@ 'description' => '定时计划策略', 'type' => 'object', 'properties' => [ - 'onlyOnceTriggerTime' => [ - 'title' => '单次触发时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723195800000', - ], - 'onlyOnceTriggerTimeIsExpired' => [ - 'title' => '单次触发是否过期', - 'type' => 'boolean', - 'example' => 'true', - ], - 'periodicTriggerTime' => [ - 'title' => '周期触发时间', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723199340000', - ], - 'periodicSchedulingLevel' => [ - 'title' => '触发周期', - 'type' => 'string', - 'example' => 'DAY', - ], + 'onlyOnceTriggerTime' => ['title' => '单次触发时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1723195800000'], + 'onlyOnceTriggerTimeIsExpired' => ['title' => '单次触发是否过期', 'type' => 'boolean', 'example' => 'true'], + 'periodicTriggerTime' => ['title' => '周期触发时间', 'type' => 'integer', 'format' => 'int64', 'example' => '1723199340000'], + 'periodicSchedulingLevel' => ['title' => '触发周期', 'type' => 'string', 'example' => 'DAY'], 'periodicSchedulingValues' => [ 'title' => '周期触发值', 'type' => 'array', - 'items' => [ - 'type' => 'integer', - 'format' => 'int32', - ], - ], - 'isFinished' => [ - 'title' => '单次触发是否完成', - 'type' => 'boolean', - ], - 'resourceSetting' => [ - 'title' => '作业资源设置', - '$ref' => '#/components/schemas/BriefResourceSetting', + 'items' => ['type' => 'integer', 'format' => 'int32'], ], + 'isFinished' => ['title' => '单次触发是否完成', 'type' => 'boolean'], + 'resourceSetting' => ['title' => '作业资源设置', '$ref' => '#/components/schemas/BriefResourceSetting'], ], ], 'PrimaryKey' => [ @@ -2636,38 +1179,18 @@ 'description' => '表主键。', 'type' => 'object', 'properties' => [ - 'constraintName' => [ - 'title' => '约束名', - 'description' => '约束名。', - 'type' => 'string', - 'required' => true, - 'example' => 'pk', - ], + 'constraintName' => ['title' => '约束名', 'description' => '约束名。', 'type' => 'string', 'example' => 'pk', 'required' => true], 'columns' => [ 'title' => '列', 'description' => '主键列组。', 'type' => 'array', - 'items' => [ - 'description' => '列名称。', - 'type' => 'string', - 'example' => 'id', - ], - 'required' => true, - ], - 'constraintType' => [ - 'title' => 'CONSTRAINT_TYPE_INVALID;'."\n" - .'CONSTRAINT_TYPE_PRIMARY_KEY;'."\n" - .'CONSTRAINT_TYPE_UNIQUE;', - 'description' => 'CONSTRAINT_TYPE_INVALID;'."\n" - .'CONSTRAINT_TYPE_PRIMARY_KEY;'."\n" - .'CONSTRAINT_TYPE_UNIQUE;', - 'type' => 'string', - 'required' => true, - ], - 'enforced' => [ - 'type' => 'boolean', + 'items' => ['description' => '列名称。', 'type' => 'string', 'example' => 'id'], 'required' => true, ], + 'constraintType' => ['title' => 'CONSTRAINT_TYPE_INVALID;'."\n" + .'CONSTRAINT_TYPE_PRIMARY_KEY;'."\n" + .'CONSTRAINT_TYPE_UNIQUE;', 'type' => 'string', 'required' => true], + 'enforced' => ['type' => 'boolean', 'required' => true], ], 'required' => false, ], @@ -2676,42 +1199,12 @@ 'description' => 'connector配置信息。', 'type' => 'object', 'properties' => [ - 'key' => [ - 'title' => 'key', - 'description' => '参数键名称。', - 'type' => 'string', - 'example' => 'username', - ], - 'defaultValue' => [ - 'title' => '默认值', - 'description' => '参数默认值。', - 'type' => 'string', - 'example' => 'userA', - ], - 'description' => [ - 'title' => '描述', - 'description' => '描述。', - 'type' => 'string', - 'example' => '用户名', - ], - 'required' => [ - 'title' => '是否必填', - 'description' => '是否必填参数。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'definesFormat' => [ - 'title' => '是否定义格式', - 'description' => '是否定义格式。', - 'type' => 'boolean', - 'example' => 'flase', - ], - 'sensitive' => [ - 'title' => '是否为敏感数据', - 'description' => '是否为敏感数据。', - 'type' => 'boolean', - 'example' => 'false', - ], + 'key' => ['title' => 'key', 'description' => '参数键名称。', 'type' => 'string', 'example' => 'username'], + 'defaultValue' => ['title' => '默认值', 'description' => '参数默认值。', 'type' => 'string', 'example' => 'userA'], + 'description' => ['title' => '描述', 'description' => '描述。', 'type' => 'string', 'example' => '用户名'], + 'required' => ['title' => '是否必填', 'description' => '是否必填参数。', 'type' => 'boolean', 'example' => 'true'], + 'definesFormat' => ['title' => '是否定义格式', 'description' => '是否定义格式。', 'type' => 'boolean', 'example' => 'flase'], + 'sensitive' => ['title' => '是否为敏感数据', 'description' => '是否为敏感数据。', 'type' => 'boolean', 'example' => 'false'], ], ], 'PythonArtifact' => [ @@ -2719,53 +1212,26 @@ 'description' => '本数据结构代表Python类型作业必填的信息。', 'type' => 'object', 'properties' => [ - 'pythonArtifactUri' => [ - 'title' => 'python作业URL全路径', - 'description' => 'Python类型作业URL全路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/test.py', - ], - 'mainArgs' => [ - 'title' => '启动参数', - 'description' => '启动参数。', - 'type' => 'string', - 'example' => 'start from main', - ], - 'entryModule' => [ - 'title' => 'python的启动模块', - 'description' => 'Python的启动模块。', - 'type' => 'string', - 'example' => 'test.py', - ], + 'pythonArtifactUri' => ['title' => 'python作业URL全路径', 'description' => 'Python类型作业URL全路径。', 'type' => 'string', 'example' => 'https://oss/bucket/test.py'], + 'mainArgs' => ['title' => '启动参数', 'description' => '启动参数。', 'type' => 'string', 'example' => 'start from main'], + 'entryModule' => ['title' => 'python的启动模块', 'description' => 'Python的启动模块。', 'type' => 'string', 'example' => 'test.py'], 'additionalDependencies' => [ 'title' => '其他附件依赖文件URL路径', 'description' => '其他附件依赖文件URL路径。', 'type' => 'array', - 'items' => [ - 'description' => '依赖文件URL路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/addition.py', - ], + 'items' => ['description' => '依赖文件URL路径。', 'type' => 'string', 'example' => 'https://oss/bucket/addition.py'], ], 'additionalPythonLibraries' => [ 'title' => '依赖的python lib文件URL路径', 'description' => '依赖的Python lib文件。', 'type' => 'array', - 'items' => [ - 'description' => 'Python lib文件的URL路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/additionlib.py', - ], + 'items' => ['description' => 'Python lib文件的URL路径。', 'type' => 'string', 'example' => 'https://oss/bucket/additionlib.py'], ], 'additionalPythonArchives' => [ 'title' => '依赖的python archives文件URL路径', 'description' => '依赖的Python archives文件。', 'type' => 'array', - 'items' => [ - 'description' => 'Python archive文件的URL路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/additionArchives.zip', - ], + 'items' => ['description' => 'Python archive文件的URL路径。', 'type' => 'string', 'example' => 'https://oss/bucket/additionArchives.zip'], ], ], ], @@ -2774,24 +1240,9 @@ 'description' => '血缘信息。', 'type' => 'object', 'properties' => [ - 'source' => [ - 'title' => '源', - 'description' => '源表信息。', - 'type' => 'string', - 'example' => 'TableA', - ], - 'destination' => [ - 'title' => '目标', - 'description' => '目标表信息。', - 'type' => 'string', - 'example' => 'TableB', - ], - 'jobId' => [ - 'title' => '作业id', - 'description' => '作业实例id。', - 'type' => 'string', - 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****', - ], + 'source' => ['title' => '源', 'description' => '源表信息。', 'type' => 'string', 'example' => 'TableA'], + 'destination' => ['title' => '目标', 'description' => '目标表信息。', 'type' => 'string', 'example' => 'TableB'], + 'jobId' => ['title' => '作业id', 'description' => '作业实例id。', 'type' => 'string', 'example' => '664cc64d-5dea-4ad3-9ee4-8432a874****'], ], ], 'RescaleJobParam' => [ @@ -2799,26 +1250,14 @@ 'description' => '动态更新作业资源配置。', 'type' => 'object', 'properties' => [ - 'jobParallelism' => [ - 'title' => '并行度', - 'description' => '并行度。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '10', - ], + 'jobParallelism' => ['title' => '并行度', 'description' => '并行度。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'], ], ], 'Resource' => [ 'type' => 'object', 'properties' => [ - 'fixedResource' => [ - 'title' => '固定资源。', - 'required' => true, - '$ref' => '#/components/schemas/ResourceSpec', - ], - 'elasticResource' => [ - '$ref' => '#/components/schemas/ResourceSpec', - ], + 'fixedResource' => ['title' => '固定资源。', 'required' => true, '$ref' => '#/components/schemas/ResourceSpec'], + 'elasticResource' => ['$ref' => '#/components/schemas/ResourceSpec'], ], 'required' => true, ], @@ -2827,18 +1266,9 @@ 'description' => '资源配额', 'type' => 'object', 'properties' => [ - 'limit' => [ - 'title' => '已分配资源', - '$ref' => '#/components/schemas/ResourceSpec', - ], - 'used' => [ - 'title' => '已使用资源', - '$ref' => '#/components/schemas/ResourceSpec', - ], - 'request' => [ - 'title' => '保障资源', - '$ref' => '#/components/schemas/ResourceSpec', - ], + 'limit' => ['title' => '已分配资源', '$ref' => '#/components/schemas/ResourceSpec'], + 'used' => ['title' => '已使用资源', '$ref' => '#/components/schemas/ResourceSpec'], + 'request' => ['title' => '保障资源', '$ref' => '#/components/schemas/ResourceSpec'], ], ], 'ResourceSpec' => [ @@ -2846,19 +1276,8 @@ 'description' => '资源规范', 'type' => 'object', 'properties' => [ - 'cpu' => [ - 'title' => 'cpu大小', - 'description' => 'cpu大小', - 'type' => 'number', - 'format' => 'double', - 'example' => '1.0', - ], - 'memory' => [ - 'title' => 'memory大小', - 'description' => 'memory大小', - 'type' => 'string', - 'example' => '4Gi', - ], + 'cpu' => ['title' => 'cpu大小', 'description' => 'cpu大小。', 'type' => 'number', 'format' => 'double', 'example' => '1.0'], + 'memory' => ['title' => 'memory大小', 'description' => 'memory大小', 'type' => 'string', 'example' => '4Gi'], ], ], 'Row' => [ @@ -2866,21 +1285,15 @@ 'properties' => [ 'cells' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/Cell', - ], + 'items' => ['$ref' => '#/components/schemas/Cell'], ], ], ], 'RowUpdate' => [ 'type' => 'object', 'properties' => [ - 'rowKind' => [ - 'type' => 'string', - ], - 'row' => [ - '$ref' => '#/components/schemas/Row', - ], + 'rowKind' => ['type' => 'string'], + 'row' => ['$ref' => '#/components/schemas/Row'], ], ], 'Savepoint' => [ @@ -2888,30 +1301,10 @@ 'description' => '本数据结构代表作业快照相关信息。', 'type' => 'object', 'properties' => [ - 'savepointId' => [ - 'title' => '作业快照ID', - 'description' => '作业快照ID。', - 'type' => 'string', - 'example' => '354dde66-a3ae-463e-967a-0b4107fd****', - ], - 'deploymentId' => [ - 'title' => '作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => '1d716b22-6aad-4be2-85c2-50cfc757****', - ], - 'jobId' => [ - 'title' => '实例ID', - 'description' => '作业实例ID。', - 'type' => 'string', - 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****', - ], - 'namespace' => [ - 'title' => '项目空间名称', - 'description' => '项目空间名称。', - 'type' => 'string', - 'example' => 'namespacetest', - ], + 'savepointId' => ['title' => '作业快照ID', 'description' => '作业快照ID。', 'type' => 'string', 'example' => '354dde66-a3ae-463e-967a-0b4107fd****'], + 'deploymentId' => ['title' => '作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => '1d716b22-6aad-4be2-85c2-50cfc757****'], + 'jobId' => ['title' => '实例ID', 'description' => '作业实例ID。', 'type' => 'string', 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****'], + 'namespace' => ['title' => '项目空间名称', 'description' => '项目空间名称。', 'type' => 'string', 'example' => 'namespacetest'], 'savepointOrigin' => [ 'title' => '作业快照生成方式', 'description' => '作业快照生成方式。'."\n" @@ -2920,56 +1313,15 @@ .'- `RETAINED_CHECKPOINT`:返回的系统检查点。', 'type' => 'string', 'example' => 'USER_REQUEST', - 'enum' => [ - 'USER_REQUEST', - 'STOP_WITH_SAVEPOINT', - 'RETAINED_CHECKPOINT', - 'AUTO_TRIGGERED', - ], - ], - 'nativeFormat' => [ - 'title' => '作业快照是否原生模式', - 'description' => '作业快照是否原生模式。', - 'type' => 'boolean', - 'example' => 'TRUE', - ], - 'description' => [ - 'title' => '作业快照描述', - 'description' => '作业快照描述。', - 'type' => 'string', - 'example' => '作业快照1', - ], - 'stopWithDrainEnabled' => [ - 'title' => '是否使用stop-with-drain模式', - 'description' => '是否使用stop-with-drain模式。', - 'type' => 'boolean', - 'example' => 'TRUE', - ], - 'savepointLocation' => [ - 'title' => '作业快照存储路径', - 'description' => '作业快照存储路径。', - 'type' => 'string', - 'example' => 'https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285', - ], - 'status' => [ - 'title' => '作业快照状态', - 'description' => '作业快照状态。', - '$ref' => '#/components/schemas/SavepointStatus', - ], - 'createdAt' => [ - 'title' => 'savepoint创建时间', - 'description' => '作业快照创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1659066711', - ], - 'modifiedAt' => [ - 'title' => 'savepoint最新修改时间', - 'description' => '作业快照最新修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1659069473', + 'enum' => ['USER_REQUEST', 'STOP_WITH_SAVEPOINT', 'RETAINED_CHECKPOINT', 'AUTO_TRIGGERED'], ], + 'nativeFormat' => ['title' => '作业快照是否原生模式', 'description' => '作业快照是否原生模式。', 'type' => 'boolean', 'example' => 'TRUE'], + 'description' => ['title' => '作业快照描述', 'description' => '作业快照描述。', 'type' => 'string', 'example' => '作业快照1'], + 'stopWithDrainEnabled' => ['title' => '是否使用stop-with-drain模式', 'description' => '是否使用stop-with-drain模式。', 'type' => 'boolean', 'example' => 'TRUE'], + 'savepointLocation' => ['title' => '作业快照存储路径', 'description' => '作业快照存储路径。', 'type' => 'string', 'example' => 'https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285'], + 'status' => ['title' => '作业快照状态', 'description' => '作业快照状态。', '$ref' => '#/components/schemas/SavepointStatus'], + 'createdAt' => ['title' => 'savepoint创建时间', 'description' => '作业快照创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1659066711'], + 'modifiedAt' => ['title' => 'savepoint最新修改时间', 'description' => '作业快照最新修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1659069473'], ], ], 'SavepointFailure' => [ @@ -2977,25 +1329,9 @@ 'description' => '本数据结构代表作业快照失败的相关信息。', 'type' => 'object', 'properties' => [ - 'message' => [ - 'title' => '失败信息', - 'description' => '失败信息。', - 'type' => 'string', - 'example' => 'create savepoint failed', - ], - 'reason' => [ - 'title' => '失败原因', - 'description' => '失败原因。', - 'type' => 'string', - 'example' => 'IO Exception', - ], - 'failedAt' => [ - 'title' => '失败时间点', - 'description' => '失败时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1655006835', - ], + 'message' => ['title' => '失败信息', 'description' => '失败信息。', 'type' => 'string', 'example' => 'create savepoint failed'], + 'reason' => ['title' => '失败原因', 'description' => '失败原因。', 'type' => 'string', 'example' => 'IO Exception'], + 'failedAt' => ['title' => '失败时间点', 'description' => '失败时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1655006835'], ], ], 'SavepointStatus' => [ @@ -3011,17 +1347,9 @@ .'- FAILED:已失败。', 'type' => 'string', 'example' => 'COMPLETED', - 'enum' => [ - 'STARTED', - 'COMPLETED', - 'FAILED', - ], - ], - 'failure' => [ - 'title' => '作业快照失败详情', - 'description' => '作业快照失败详情。', - '$ref' => '#/components/schemas/SavepointFailure', + 'enum' => ['STARTED', 'COMPLETED', 'FAILED'], ], + 'failure' => ['title' => '作业快照失败详情', 'description' => '作业快照失败详情。', '$ref' => '#/components/schemas/SavepointFailure'], ], ], 'ScheduledPlan' => [ @@ -3029,83 +1357,25 @@ 'description' => '定时计划策略', 'type' => 'object', 'properties' => [ - 'workspace' => [ - 'title' => '工作空间ID', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间ID', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'type' => 'string', - 'example' => '1723197248', - ], - 'creator' => [ - 'title' => '创建者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'type' => 'string', - 'example' => '1723197248', - ], - 'scheduledPlanId' => [ - 'title' => '定时计划ID', - 'type' => 'string', - 'example' => 'f3b4ec1e-85dc-4b1d-9726-1d7f4c37****', - ], - 'name' => [ - 'title' => '定时计划名称', - 'type' => 'string', - 'example' => 'test-scheduled-plan', - ], - 'deploymentId' => [ - 'title' => '作业实例ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000000001', - ], - 'updatedByUser' => [ - 'title' => '是否由用户更新', - 'type' => 'boolean', - 'example' => 'true', - ], - 'origin' => [ - 'title' => '定时计划来源', - 'type' => 'string', - 'example' => 'USER_DEFINED', - ], + 'workspace' => ['title' => '工作空间ID', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间ID', 'type' => 'string', 'example' => 'default-namespace'], + 'createdAt' => ['title' => '创建时间', 'type' => 'string', 'example' => '1723197248'], + 'creator' => ['title' => '创建者', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifiedAt' => ['title' => '修改时间', 'type' => 'string', 'example' => '1723197248'], + 'scheduledPlanId' => ['title' => '定时计划ID', 'type' => 'string', 'example' => 'f3b4ec1e-85dc-4b1d-9726-1d7f4c37****'], + 'name' => ['title' => '定时计划名称', 'type' => 'string', 'example' => 'test-scheduled-plan'], + 'deploymentId' => ['title' => '作业实例ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000000001'], + 'updatedByUser' => ['title' => '是否由用户更新', 'type' => 'boolean', 'example' => 'true'], + 'origin' => ['title' => '定时计划来源', 'type' => 'string', 'example' => 'USER_DEFINED'], 'periodicSchedulingPolicies' => [ 'title' => '周期执行策略', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/PeriodicSchedulingPolicy', - ], - ], - 'status' => [ - 'title' => '定时计划状态', - 'type' => 'string', - 'example' => 'FINISHED', + 'items' => ['$ref' => '#/components/schemas/PeriodicSchedulingPolicy'], ], + 'status' => ['title' => '定时计划状态', 'type' => 'string', 'example' => 'FINISHED'], ], ], 'ScheduledPlanAppliedInfo' => [ @@ -3113,56 +1383,16 @@ 'description' => '定时计划执行信息', 'type' => 'object', 'properties' => [ - 'workspace' => [ - 'title' => '工作空间ID', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间ID', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'modifier' => [ - 'title' => '修改者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'type' => 'string', - 'example' => '1723197248', - ], - 'scheduledPlanId' => [ - 'title' => '定时计划ID', - 'type' => 'string', - 'example' => 'f3b4ec1e-85dc-4b1d-9726-1d7f4c37****', - ], - 'scheduledPlanName' => [ - 'title' => '定时计划名称', - 'type' => 'string', - 'example' => 'test-scheduled-plan', - ], - 'deploymentId' => [ - 'title' => '作业ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000000001', - ], - 'expectedState' => [ - 'title' => '期望状态', - 'type' => 'string', - 'example' => 'RUNNING', - ], - 'statusState' => [ - 'title' => '实际状态', - 'type' => 'string', - 'example' => 'WAITING', - ], + 'workspace' => ['title' => '工作空间ID', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间ID', 'type' => 'string', 'example' => 'default-namespace'], + 'modifier' => ['title' => '修改者', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifiedAt' => ['title' => '修改时间', 'type' => 'string', 'example' => '1723197248'], + 'scheduledPlanId' => ['title' => '定时计划ID', 'type' => 'string', 'example' => 'f3b4ec1e-85dc-4b1d-9726-1d7f4c37****'], + 'scheduledPlanName' => ['title' => '定时计划名称', 'type' => 'string', 'example' => 'test-scheduled-plan'], + 'deploymentId' => ['title' => '作业ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000000001'], + 'expectedState' => ['title' => '期望状态', 'type' => 'string', 'example' => 'RUNNING'], + 'statusState' => ['title' => '实际状态', 'type' => 'string', 'example' => 'WAITING'], ], ], 'ScheduledPlanExecutedInfo' => [ @@ -3170,75 +1400,20 @@ 'description' => '作业执行信息', 'type' => 'object', 'properties' => [ - 'workspace' => [ - 'title' => '工作空间ID', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间ID', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'type' => 'string', - 'example' => '1723197248', - ], - 'creator' => [ - 'title' => '创建者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'type' => 'string', - 'example' => '1723197248', - ], - 'jobResourceUpgradingId' => [ - 'title' => '执行ID', - 'type' => 'string', - 'example' => '0e6d3bab-2277-4ed1-b573-9de6413d****', - ], - 'name' => [ - 'title' => '执行名称', - 'type' => 'string', - 'example' => 'test-scheduled-plan', - ], - 'origin' => [ - 'title' => '执行来源', - 'type' => 'string', - 'example' => 'SCHEDULED_PLAN', - ], - 'deploymentId' => [ - 'title' => '作业ID', - 'type' => 'string', - 'example' => '00000000-0000-0000-0000-000000000001', - ], - 'originJobId' => [ - 'title' => '作业实例ID', - 'type' => 'string', - 'example' => 'f8a2d5d9-9fc5-4273-bfcc-2a3cd354****', - ], - 'status' => [ - 'title' => '作业资源变更状态', - '$ref' => '#/components/schemas/ScheduledPlanExecutedStatus', - ], + 'workspace' => ['title' => '工作空间ID', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间ID', 'type' => 'string', 'example' => 'default-namespace'], + 'createdAt' => ['title' => '创建时间', 'type' => 'string', 'example' => '1723197248'], + 'creator' => ['title' => '创建者', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifiedAt' => ['title' => '修改时间', 'type' => 'string', 'example' => '1723197248'], + 'jobResourceUpgradingId' => ['title' => '执行ID', 'type' => 'string', 'example' => '0e6d3bab-2277-4ed1-b573-9de6413d****'], + 'name' => ['title' => '执行名称', 'type' => 'string', 'example' => 'test-scheduled-plan'], + 'origin' => ['title' => '执行来源', 'type' => 'string', 'example' => 'SCHEDULED_PLAN'], + 'deploymentId' => ['title' => '作业ID', 'type' => 'string', 'example' => '00000000-0000-0000-0000-000000000001'], + 'originJobId' => ['title' => '作业实例ID', 'type' => 'string', 'example' => 'f8a2d5d9-9fc5-4273-bfcc-2a3cd354****'], + 'status' => ['title' => '作业资源变更状态', '$ref' => '#/components/schemas/ScheduledPlanExecutedStatus'], ], ], 'ScheduledPlanExecutedStatus' => [ @@ -3246,16 +1421,8 @@ 'description' => '定时计划执行状态', 'type' => 'object', 'properties' => [ - 'statusState' => [ - 'title' => '当前状态', - 'type' => 'string', - 'example' => 'UPGRADED', - ], - 'restartType' => [ - 'title' => '重启类型', - 'type' => 'string', - 'example' => 'HOT_UPDATE', - ], + 'statusState' => ['title' => '当前状态', 'type' => 'string', 'example' => 'UPGRADED'], + 'restartType' => ['title' => '重启类型', 'type' => 'string', 'example' => 'HOT_UPDATE'], ], ], 'Schema' => [ @@ -3267,24 +1434,15 @@ 'title' => '列信息', 'description' => '列信息。', 'type' => 'array', - 'items' => [ - 'description' => '表字段信息。', - '$ref' => '#/components/schemas/TableColumn', - ], + 'items' => ['description' => '表字段信息。', '$ref' => '#/components/schemas/TableColumn'], ], 'watermarkSpecs' => [ 'title' => 'watermark信息', 'description' => 'watermark信息。', 'type' => 'array', - 'items' => [ - 'description' => '水印信息。', - '$ref' => '#/components/schemas/WatermarkSpec', - ], - ], - 'primaryKey' => [ - 'description' => '主键信息。', - '$ref' => '#/components/schemas/PrimaryKey', + 'items' => ['description' => '水印信息。', '$ref' => '#/components/schemas/WatermarkSpec'], ], + 'primaryKey' => ['description' => '主键信息。', '$ref' => '#/components/schemas/PrimaryKey'], ], ], 'SessionCluster' => [ @@ -3292,87 +1450,23 @@ 'description' => 'SessionCluster', 'type' => 'object', 'properties' => [ - 'workspace' => [ - 'title' => '工作空间', - 'type' => 'string', - 'example' => 'edcef******b4f', - ], - 'namespace' => [ - 'title' => '项目空间', - 'type' => 'string', - 'example' => 'default-namespace', - ], - 'creator' => [ - 'title' => '创建者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'creatorName' => [ - 'title' => '创建者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'modifier' => [ - 'title' => '修改者', - 'type' => 'string', - 'example' => '27846363877456****', - ], - 'modifierName' => [ - 'title' => '修改者名称', - 'type' => 'string', - 'example' => '****@streamcompute.onaliyun.com', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'type' => 'integer', - 'format' => 'int64', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'type' => 'integer', - 'format' => 'int64', - ], - 'sessionClusterId' => [ - 'title' => 'session集群ID', - 'type' => 'string', - 'example' => '1f68a52c-1760-43c6-97fb-afe0674b****', - ], - 'name' => [ - 'title' => 'session集群名称', - 'type' => 'string', - 'example' => 'test-sessionCluster', - ], - 'deploymentTargetName' => [ - 'title' => '部署目标', - 'type' => 'string', - 'example' => 'default-queue', - ], - 'engineVersion' => [ - 'title' => '引擎版本', - 'type' => 'string', - 'example' => 'vvr-6.0.7-flink-1.15', - ], - 'labels' => [ - 'title' => '作业标签', - 'type' => 'object', - ], - 'basicResourceSetting' => [ - 'title' => '资源设置', - '$ref' => '#/components/schemas/BasicResourceSetting', - ], - 'flinkConf' => [ - 'title' => 'Flink配置', - 'type' => 'object', - 'example' => '{"taskmanager.numberOfTaskSlots":"1"}', - ], - 'logging' => [ - 'title' => '日志配置', - '$ref' => '#/components/schemas/Logging', - ], - 'status' => [ - 'title' => 'session集群状态信息', - '$ref' => '#/components/schemas/SessionClusterStatus', - ], + 'workspace' => ['title' => '工作空间', 'type' => 'string', 'example' => 'edcef******b4f'], + 'namespace' => ['title' => '项目空间', 'type' => 'string', 'example' => 'default-namespace'], + 'creator' => ['title' => '创建者', 'type' => 'string', 'example' => '27846363877456****'], + 'creatorName' => ['title' => '创建者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'modifier' => ['title' => '修改者', 'type' => 'string', 'example' => '27846363877456****'], + 'modifierName' => ['title' => '修改者名称', 'type' => 'string', 'example' => '****@streamcompute.onaliyun.com'], + 'createdAt' => ['title' => '创建时间', 'type' => 'integer', 'format' => 'int64'], + 'modifiedAt' => ['title' => '修改时间', 'type' => 'integer', 'format' => 'int64'], + 'sessionClusterId' => ['title' => 'session集群ID', 'type' => 'string', 'example' => '1f68a52c-1760-43c6-97fb-afe0674b****'], + 'name' => ['title' => 'session集群名称', 'type' => 'string', 'example' => 'test-sessionCluster'], + 'deploymentTargetName' => ['title' => '部署目标', 'type' => 'string', 'example' => 'default-queue'], + 'engineVersion' => ['title' => '引擎版本', 'type' => 'string', 'example' => 'vvr-6.0.7-flink-1.15'], + 'labels' => ['title' => '作业标签', 'type' => 'object'], + 'basicResourceSetting' => ['title' => '资源设置', '$ref' => '#/components/schemas/BasicResourceSetting'], + 'flinkConf' => ['title' => 'Flink配置', 'type' => 'object', 'example' => '{"taskmanager.numberOfTaskSlots":"1"}'], + 'logging' => ['title' => '日志配置', '$ref' => '#/components/schemas/Logging'], + 'status' => ['title' => 'session集群状态信息', '$ref' => '#/components/schemas/SessionClusterStatus'], ], ], 'SessionClusterFailureInfo' => [ @@ -3380,19 +1474,9 @@ 'description' => 'session集群失败信息', 'type' => 'object', 'properties' => [ - 'message' => [ - 'title' => '失败信息', - 'type' => 'string', - ], - 'reason' => [ - 'title' => '失败原因', - 'type' => 'string', - ], - 'failedAt' => [ - 'title' => '失败时间', - 'type' => 'integer', - 'format' => 'int64', - ], + 'message' => ['title' => '失败信息', 'type' => 'string'], + 'reason' => ['title' => '失败原因', 'type' => 'string'], + 'failedAt' => ['title' => '失败时间', 'type' => 'integer', 'format' => 'int64'], ], ], 'SessionClusterRunningInfo' => [ @@ -3400,22 +1484,12 @@ 'description' => 'session集群运行信息', 'type' => 'object', 'properties' => [ - 'startedAt' => [ - 'title' => '启动时间', - 'type' => 'integer', - 'format' => 'int64', - ], - 'lastUpdateTime' => [ - 'title' => '更新时间', - 'type' => 'integer', - 'format' => 'int64', - ], + 'startedAt' => ['title' => '启动时间', 'type' => 'integer', 'format' => 'int64'], + 'lastUpdateTime' => ['title' => '更新时间', 'type' => 'integer', 'format' => 'int64'], 'referenceDeploymentIds' => [ 'title' => '运行在session集群上的部署作业id', 'type' => 'array', - 'items' => [ - 'type' => 'string', - ], + 'items' => ['type' => 'string'], ], ], ], @@ -3427,23 +1501,10 @@ 'currentSessionClusterStatus' => [ 'title' => 'session集群当前状态', 'type' => 'string', - 'enum' => [ - 'STOPPED', - 'STARTING', - 'RUNNING', - 'UPDATING', - 'STOPPING', - 'FAILED', - ], - ], - 'failure' => [ - 'title' => 'session集群失败信息', - '$ref' => '#/components/schemas/SessionClusterFailureInfo', - ], - 'running' => [ - 'title' => 'session集群运行信息', - '$ref' => '#/components/schemas/SessionClusterRunningInfo', + 'enum' => ['STOPPED', 'STARTING', 'RUNNING', 'UPDATING', 'STOPPING', 'FAILED'], ], + 'failure' => ['title' => 'session集群失败信息', '$ref' => '#/components/schemas/SessionClusterFailureInfo'], + 'running' => ['title' => 'session集群运行信息', '$ref' => '#/components/schemas/SessionClusterRunningInfo'], ], ], 'SqlArtifact' => [ @@ -3451,45 +1512,74 @@ 'description' => '本数据结构代表SQL类型作业必填的信息。', 'type' => 'object', 'properties' => [ - 'sqlScript' => [ - 'title' => 'SQL作业文本内容', - 'description' => 'SQL作业文本内容。', - 'type' => 'string', - 'example' => 'CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;', - ], + 'sqlScript' => ['title' => 'SQL作业文本内容', 'description' => 'SQL作业文本内容。', 'type' => 'string', 'example' => 'CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;'], 'additionalDependencies' => [ 'title' => '附加文件URL全路径地址,如果您要是用未在VVP平台上注册的UDF/Connector/Format等依赖时,需要使用该方式添加,已注册的内容不需要使用本方式关联', 'description' => '附加依赖文件,如果您要是用未在VVP平台上注册的UDF/Connector/Format等依赖时,需要使用该方式添加,已注册的内容不需要使用本方式关联。', 'type' => 'array', - 'items' => [ - 'description' => '附加依赖文件的URL地址。', - 'type' => 'string', - 'example' => 'https://oss/bucket/addition.jar', - ], + 'items' => ['description' => '附加依赖文件的URL地址。', 'type' => 'string', 'example' => 'https://oss/bucket/addition.jar'], ], ], ], + 'SqlExecution' => [ + 'type' => 'object', + 'properties' => [ + 'namespace' => ['title' => '项目空间', 'type' => 'string', 'example' => 'default-namespace'], + 'workspace' => ['title' => '工作空间', 'type' => 'string', 'example' => 'edcef******b4f'], + 'sqlExecutionId' => ['type' => 'string'], + 'name' => ['type' => 'string'], + 'description' => ['type' => 'string'], + 'sessionClusterName' => ['type' => 'string'], + 'sqlFileId' => ['type' => 'string'], + 'sqlScript' => ['type' => 'string'], + 'batchMode' => ['type' => 'boolean'], + 'state' => ['type' => 'string'], + 'message' => ['type' => 'string'], + 'statements' => [ + 'type' => 'array', + 'items' => ['$ref' => '#/components/schemas/SqlStatement'], + ], + ], + ], + 'SqlExecutionFetchResult' => [ + 'type' => 'object', + 'properties' => [ + 'sqlExecution' => ['$ref' => '#/components/schemas/SqlExecution'], + 'dqlResult' => ['$ref' => '#/components/schemas/DqlResult'], + ], + ], + 'SqlFile' => [ + 'type' => 'object', + 'properties' => [ + 'name' => ['type' => 'string'], + 'sqlFileId' => ['type' => 'string'], + 'parentId' => ['type' => 'string'], + 'description' => ['type' => 'string'], + 'sessionClusterName' => ['type' => 'string'], + 'sqlScript' => ['type' => 'string'], + 'batchMode' => ['type' => 'string'], + 'workspace' => ['type' => 'string'], + 'namespace' => ['type' => 'string'], + ], + ], + 'SqlStatement' => [ + 'type' => 'object', + 'properties' => [ + 'index' => ['type' => 'integer', 'format' => 'int32'], + 'sqlScript' => ['type' => 'string'], + 'type' => ['type' => 'string'], + 'statusState' => ['type' => 'string'], + 'message' => ['type' => 'string'], + ], + ], 'SqlStatementExecuteResult' => [ 'title' => 'A short description of struct', 'description' => 'sql statement执行返回结果。', 'type' => 'object', 'properties' => [ - 'executeSuccess' => [ - 'title' => '是否执行成功', - 'description' => '是否执行成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'errorDetails' => [ - 'description' => '执行错误信息。', - '$ref' => '#/components/schemas/ErrorDetails', - ], - 'statement' => [ - 'title' => '执行语句', - 'description' => '执行语句。', - 'type' => 'string', - 'example' => '“show create table order”', - ], + 'executeSuccess' => ['title' => '是否执行成功', 'description' => '是否执行成功。', 'type' => 'boolean', 'example' => 'true'], + 'errorDetails' => ['description' => '执行错误信息。', '$ref' => '#/components/schemas/ErrorDetails'], + 'statement' => ['title' => '执行语句', 'description' => '执行语句。', 'type' => 'string', 'example' => '“show create table order”'], ], ], 'SqlStatementValidationResult' => [ @@ -3497,40 +1587,16 @@ 'description' => 'Sql作业代码校验结果。', 'type' => 'object', 'properties' => [ - 'success' => [ - 'title' => '校验是否通过', - 'description' => '校验是否通过。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'message' => [ - 'title' => '校验信息', - 'description' => '校验信息。', - 'type' => 'string', - 'example' => '“”', - ], + 'success' => ['title' => '校验是否通过', 'description' => '校验是否通过。', 'type' => 'boolean', 'example' => 'True'], + 'message' => ['title' => '校验信息', 'description' => '校验信息。', 'type' => 'string', 'example' => '“”'], 'validationResult' => [ 'title' => '校验结果', 'description' => '校验结果。', 'type' => 'string', 'example' => 'VALIDATION_RESULT_INVALID', - 'enum' => [ - 'VALIDATION_RESULT_INVALID', - 'VALIDATION_RESULT_INVALID_QUERY', - 'VALIDATION_RESULT_UNSUPPORTED_QUERY', - 'VALIDATION_RESULT_INVALID_CONNECTOR_CONFIG', - 'VALIDATION_RESULT_VALID_INSERT_QUERY', - 'VALIDATION_RESULT_VALID_SELECT_QUERY', - 'VALIDATION_RESULT_VALID_DDL_STATEMENT', - 'VALIDATION_RESULT_VALID_COMMAND_STATEMENT', - 'VALIDATION_RESULT_INVALID_FLINK_CONFIG', - ], - ], - 'errorDetails' => [ - 'title' => '校验错误信息', - 'description' => '校验错误信息。', - '$ref' => '#/components/schemas/ErrorDetails', + 'enum' => ['VALIDATION_RESULT_INVALID', 'VALIDATION_RESULT_INVALID_QUERY', 'VALIDATION_RESULT_UNSUPPORTED_QUERY', 'VALIDATION_RESULT_INVALID_CONNECTOR_CONFIG', 'VALIDATION_RESULT_VALID_INSERT_QUERY', 'VALIDATION_RESULT_VALID_SELECT_QUERY', 'VALIDATION_RESULT_VALID_DDL_STATEMENT', 'VALIDATION_RESULT_VALID_COMMAND_STATEMENT', 'VALIDATION_RESULT_INVALID_FLINK_CONFIG'], ], + 'errorDetails' => ['title' => '校验错误信息', 'description' => '校验错误信息。', '$ref' => '#/components/schemas/ErrorDetails'], ], ], 'SqlStatementWithContext' => [ @@ -3538,45 +1604,20 @@ 'description' => '作业代码内容', 'type' => 'object', 'properties' => [ - 'statement' => [ - 'title' => '代码内容', - 'description' => '代码内容', - 'type' => 'string', - 'required' => true, - 'example' => 'CREATE TEMPORARY TABLE datagen_source ('."\n" - .' name VARCHAR,'."\n" - .' score BIGINT'."\n" - .') WITH ('."\n" - .' \'connector\' = \'datagen\''."\n" - .');', - ], - 'flinkConfiguration' => [ - 'title' => 'Flink配置', - 'description' => 'Flink配置', - 'type' => 'object', - ], - 'batchMode' => [ - 'title' => '是否为批作业', - 'description' => '是否为批作业', - 'type' => 'boolean', - 'required' => true, - 'example' => 'false', - ], - 'versionName' => [ - 'title' => '引擎版本', - 'description' => '引擎版本', - 'type' => 'string', - 'example' => 'vvr-8.0.6-flink-1.17', - ], + 'statement' => ['title' => '代码内容', 'description' => '代码内容', 'type' => 'string', 'required' => true, 'example' => 'CREATE TEMPORARY TABLE datagen_source ('."\n" + .' name VARCHAR,'."\n" + .' score BIGINT'."\n" + .') WITH ('."\n" + .' \'connector\' = \'datagen\''."\n" + .');'], + 'flinkConfiguration' => ['title' => 'Flink配置', 'description' => 'Flink配置', 'type' => 'object'], + 'batchMode' => ['title' => '是否为批作业', 'description' => '是否为批作业', 'type' => 'boolean', 'required' => true, 'example' => 'false'], + 'versionName' => ['title' => '引擎版本', 'description' => '引擎版本', 'type' => 'string', 'example' => 'vvr-8.0.6-flink-1.17'], 'additionalDependencies' => [ 'title' => '附加依赖', 'description' => '附加依赖', 'type' => 'array', - 'items' => [ - 'description' => '附加依赖文件的URL地址。', - 'type' => 'string', - 'example' => '"oss://xxx"', - ], + 'items' => ['description' => '附加依赖文件的URL地址。', 'type' => 'string', 'example' => '"oss://xxx"'], ], ], ], @@ -3585,22 +1626,25 @@ 'description' => '本数据结构代表作业启动的相关信息。', 'type' => 'object', 'properties' => [ - 'deploymentId' => [ - 'title' => '作业ID', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'example' => '5a19a71b-1c42-4f34-94fd-86cf6078****', - ], - 'resourceSettingSpec' => [ - 'title' => '作业资源设置', - 'description' => '作业资源设置。', - '$ref' => '#/components/schemas/BriefResourceSetting', - ], - 'restoreStrategy' => [ - 'title' => '作业启动位点设置', - 'description' => '作业实例启动位点设置。', - '$ref' => '#/components/schemas/DeploymentRestoreStrategy', - ], + 'deploymentId' => ['title' => '作业ID', 'description' => '已部署作业ID。', 'type' => 'string', 'example' => '5a19a71b-1c42-4f34-94fd-86cf6078****'], + 'resourceSettingSpec' => ['title' => '作业资源设置', 'description' => '作业资源设置。', '$ref' => '#/components/schemas/BriefResourceSetting'], + 'restoreStrategy' => ['title' => '作业启动位点设置', 'description' => '作业实例启动位点设置。', '$ref' => '#/components/schemas/DeploymentRestoreStrategy'], + ], + ], + 'StartSqlExecutionBody' => [ + 'type' => 'object', + 'properties' => [ + 'sqlFileId' => ['type' => 'string'], + 'sqlScript' => ['type' => 'string'], + 'description' => ['type' => 'string'], + ], + ], + 'StartSqlExecutionResult' => [ + 'type' => 'object', + 'properties' => [ + 'newlyCreated' => ['type' => 'boolean'], + 'sqlExecutionId' => ['type' => 'string'], + 'success' => ['type' => 'boolean'], ], ], 'StopJobRequestBody' => [ @@ -3617,11 +1661,7 @@ 'type' => 'string', 'required' => true, 'example' => 'NONE', - 'enum' => [ - 'NONE', - 'STOP_WITH_SAVEPOINT', - 'STOP_WITH_DRAIN', - ], + 'enum' => ['NONE', 'STOP_WITH_SAVEPOINT', 'STOP_WITH_DRAIN'], ], ], ], @@ -3637,21 +1677,10 @@ .'- BASIC:基础模式。'."\n", 'type' => 'string', 'example' => 'EXPERT', - 'enum' => [ - 'BASIC', - 'EXPERT', - ], - ], - 'expertResourceSetting' => [ - 'title' => '细粒度资源设置', - 'description' => '专家模式资源设置。', - '$ref' => '#/components/schemas/ExpertResourceSetting', - ], - 'basicResourceSetting' => [ - 'title' => '基础资源设置', - 'description' => '基础模式资源设置。', - '$ref' => '#/components/schemas/BasicResourceSetting', + 'enum' => ['BASIC', 'EXPERT'], ], + 'expertResourceSetting' => ['title' => '细粒度资源设置', 'description' => '专家模式资源设置。', '$ref' => '#/components/schemas/ExpertResourceSetting'], + 'basicResourceSetting' => ['title' => '基础资源设置', 'description' => '基础模式资源设置。', '$ref' => '#/components/schemas/BasicResourceSetting'], ], ], 'SubFolder' => [ @@ -3659,61 +1688,19 @@ 'description' => '作业草稿子文件夹信息。', 'type' => 'object', 'properties' => [ - 'folderId' => [ - 'title' => '文件夹id', - 'description' => '文件夹id。', - 'type' => 'string', - 'example' => 'a579aec9-1d5e-3382-9d65-9887ff6cfaff', - ], - 'parentId' => [ - 'title' => '父级文件夹id', - 'description' => '父级文件夹id。', - 'type' => 'string', - 'example' => '95c0787c-408f-4e1f-88ba-ef0a84a2c2ee', - ], - 'name' => [ - 'title' => '文件夹名称', - 'description' => '文件夹名称。', - 'type' => 'string', - 'example' => 'test', - ], - ], - ], - 'SubmitPreview' => [ - 'type' => 'object', - 'properties' => [ - 'queryName' => [ - 'title' => '查询id', - 'type' => 'string', - ], - 'sessionId' => [ - 'title' => 'session id', - 'type' => 'string', - ], - 'tableSchemas' => [ - 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/TableSchema', - ], - ], + 'folderId' => ['title' => '文件夹id', 'description' => '文件夹id。', 'type' => 'string', 'example' => 'a579aec9-1d5e-3382-9d65-9887ff6cfaff'], + 'parentId' => ['title' => '父级文件夹id', 'description' => '父级文件夹id。', 'type' => 'string', 'example' => '95c0787c-408f-4e1f-88ba-ef0a84a2c2ee'], + 'name' => ['title' => '文件夹名称', 'description' => '文件夹名称。', 'type' => 'string', 'example' => 'test'], ], ], 'SubmitPreviewResult' => [ 'type' => 'object', 'properties' => [ - 'queryId' => [ - 'title' => '查询id', - 'type' => 'string', - ], - 'sessionId' => [ - 'title' => 'session id', - 'type' => 'string', - ], + 'queryId' => ['title' => '查询id', 'type' => 'string'], + 'sessionId' => ['title' => 'session id', 'type' => 'string'], 'tableSchemas' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/TableSchema', - ], + 'items' => ['$ref' => '#/components/schemas/TableSchema'], ], ], ], @@ -3722,55 +1709,25 @@ 'description' => '表信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => '表名', - 'description' => '表名。', - 'type' => 'string', - 'required' => true, - 'example' => 'order-test', - ], - 'schema' => [ - 'title' => '表schema信息', - 'description' => '表schema信息。', - 'required' => false, - '$ref' => '#/components/schemas/Schema', - ], - 'properties' => [ - 'title' => '配置', - 'description' => '表参数配置。', - 'type' => 'object', - ], - 'comment' => [ - 'title' => '备注', - 'description' => '备注。', - 'type' => 'string', - 'example' => '测试订单表', - ], + 'name' => ['title' => '表名', 'description' => '表名。', 'type' => 'string', 'required' => true, 'example' => 'order-test'], + 'schema' => ['title' => '表schema信息', 'description' => '表schema信息。', 'required' => false, '$ref' => '#/components/schemas/Schema'], + 'properties' => ['title' => '配置', 'description' => '表参数配置。', 'type' => 'object'], + 'comment' => ['title' => '备注', 'description' => '备注。', 'type' => 'string', 'example' => '测试订单表'], 'partitionKeys' => [ 'title' => '分区键', 'description' => '分区键。', 'type' => 'array', - 'items' => [ - 'description' => '分区字段。', - 'type' => 'string', - 'example' => 'ad=xxxxx', - ], - ], - 'tableType' => [ - 'title' => ' TABLE;'."\n" - .' MATERIALIZED_TABLE;'."\n" - .' VIEW;', - 'description' => ' TABLE;'."\n" - .' MATERIALIZED_TABLE;'."\n" - .' VIEW;', - 'type' => 'string', - 'required' => true, + 'items' => ['description' => '分区字段。', 'type' => 'string', 'example' => 'ad=xxxxx'], ], + 'tableType' => ['title' => ' TABLE;'."\n" + .' MATERIALIZED_TABLE;'."\n" + .' VIEW;', 'description' => ' TABLE;'."\n" + .' MATERIALIZED_TABLE;'."\n" + .' VIEW;', 'type' => 'string', 'required' => true], 'metadata' => [ 'type' => 'object', - 'additionalProperties' => [ - 'type' => 'string', - ], + 'additionalProperties' => ['type' => 'string', 'description' => ''], + 'description' => '', ], ], ], @@ -3779,39 +1736,12 @@ 'description' => '列信息。', 'type' => 'object', 'properties' => [ - 'name' => [ - 'title' => '列名', - 'description' => '列名。', - 'type' => 'string', - 'required' => true, - 'example' => 'name', - ], - 'metadataInfo' => [ - 'title' => '元信息', - 'description' => '元信息。', - '$ref' => '#/components/schemas/MetadataInfo', - ], - 'expression' => [ - 'title' => '表达式', - 'description' => '计算列。', - 'type' => 'string', - 'example' => '“”', - ], - 'type' => [ - 'title' => '字段类型', - 'description' => '字段类型。', - 'type' => 'string', - 'example' => 'string', - ], - 'nullable' => [ - 'title' => '是否可为空', - 'description' => '是否可为空。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'logicalType' => [ - 'type' => 'string', - ], + 'name' => ['title' => '列名', 'description' => '列名。', 'type' => 'string', 'required' => true, 'example' => 'name'], + 'metadataInfo' => ['title' => '元信息', 'description' => '元信息。', '$ref' => '#/components/schemas/MetadataInfo'], + 'expression' => ['title' => '表达式', 'description' => '计算列。', 'type' => 'string', 'example' => '“”'], + 'type' => ['title' => '字段类型', 'description' => '字段类型。', 'type' => 'string', 'example' => 'string'], + 'nullable' => ['title' => '是否可为空', 'description' => '是否可为空。', 'type' => 'boolean', 'example' => 'true'], + 'logicalType' => ['type' => 'string', 'description' => ''], ], ], 'TableMeta' => [ @@ -3819,49 +1749,28 @@ 'description' => 'Table元信息。', 'type' => 'object', 'properties' => [ - 'catalogName' => [ - 'title' => 'catalog名称', - 'description' => 'catalog名称。', - 'type' => 'string', - 'example' => 'paimon', - ], - 'databaseName' => [ - 'title' => 'database名称', - 'description' => 'database名称。', - 'type' => 'string', - 'example' => 'paimon-ods', - ], - 'tableName' => [ - 'title' => 'table名称', - 'description' => 'table名称。', - 'type' => 'string', - 'example' => 'order-table', - ], + 'catalogName' => ['title' => 'catalog名称', 'description' => 'catalog名称。', 'type' => 'string', 'example' => 'paimon'], + 'databaseName' => ['title' => 'database名称', 'description' => 'database名称。', 'type' => 'string', 'example' => 'paimon-ods'], + 'tableName' => ['title' => 'table名称', 'description' => 'table名称。', 'type' => 'string', 'example' => 'order-table'], ], ], 'TableResult' => [ 'type' => 'object', 'properties' => [ - 'tableName' => [ - 'type' => 'string', - ], + 'tableName' => ['type' => 'string'], + 'collectSinkOperatorId' => ['type' => 'string'], 'rowUpdates' => [ 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/RowUpdate', - ], + 'items' => ['$ref' => '#/components/schemas/RowUpdate'], ], ], ], 'TableSchema' => [ 'type' => 'object', 'properties' => [ - 'tableName' => [ - 'type' => 'string', - ], - 'schema' => [ - '$ref' => '#/components/schemas/Schema', - ], + 'tableName' => ['type' => 'string'], + 'schema' => ['$ref' => '#/components/schemas/Schema'], + 'collectSinkOperatorId' => ['type' => 'string'], ], ], 'UdfArtifact' => [ @@ -3869,73 +1778,30 @@ 'description' => 'udfArtifact数据结构。', 'type' => 'object', 'properties' => [ - 'namespace' => [ - 'title' => '项目空间', - 'description' => '项目空间。', - 'type' => 'string', - 'example' => 'default-namespace'."\n", - ], - 'creator' => [ - 'title' => '创建者', - 'description' => '创建者。', - 'type' => 'string', - 'example' => 'userA', - ], - 'createdAt' => [ - 'title' => '创建时间', - 'description' => '创建时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723532876', - ], - 'modifiedAt' => [ - 'title' => '修改时间', - 'description' => '修改时间。', - 'type' => 'integer', - 'format' => 'int64', - 'example' => '1723537876', - ], - 'name' => [ - 'title' => 'udfArtifact名称', - 'description' => 'udfArtifact名称。', - 'type' => 'string', - 'example' => 'udfCollection.jar'."\n", - ], - 'jarUrl' => [ - 'title' => 'udfArtifact url', - 'description' => 'udfArtifact存储路径。', - 'type' => 'string', - 'example' => 'oss://bucket/udfCollection.jar'."\n", - ], + 'namespace' => ['title' => '项目空间', 'description' => '项目空间。', 'type' => 'string', 'example' => 'default-namespace'."\n"], + 'creator' => ['title' => '创建者', 'description' => '创建者。', 'type' => 'string', 'example' => 'userA'], + 'createdAt' => ['title' => '创建时间', 'description' => '创建时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723532876'], + 'modifiedAt' => ['title' => '修改时间', 'description' => '修改时间。', 'type' => 'integer', 'format' => 'int64', 'example' => '1723537876'], + 'name' => ['title' => 'udfArtifact名称', 'description' => 'udfArtifact名称。', 'type' => 'string', 'example' => 'udfCollection.jar'."\n"], + 'jarUrl' => ['title' => 'udfArtifact url', 'description' => 'udfArtifact存储路径。', 'type' => 'string', 'example' => 'oss://bucket/udfCollection.jar'."\n"], 'dependencyJarUris' => [ 'title' => 'udfArtifact依赖url', 'description' => 'udfArtifact附加依赖存储路径列表。', 'type' => 'array', - 'items' => [ - 'description' => 'udfArtifact附加依赖存储路径。', - 'type' => 'string', - 'example' => 'oss://bucket/addition/add.jar'."\n", - ], + 'items' => ['description' => 'udfArtifact附加依赖存储路径。', 'type' => 'string', 'example' => 'oss://bucket/addition/add.jar'."\n"], ], 'artifactType' => [ 'title' => 'udfArtifact类型', 'description' => 'udfArtifact类型。', 'type' => 'string', 'example' => 'ARTIFACT_TYPE_JAVA', - 'enum' => [ - 'ARTIFACT_TYPE_JAVA', - 'ARTIFACT_TYPE_PYTHON', - 'ARTIFACT_TYPE_UNKNOWN', - ], + 'enum' => ['ARTIFACT_TYPE_JAVA', 'ARTIFACT_TYPE_PYTHON', 'ARTIFACT_TYPE_UNKNOWN'], ], 'udfClasses' => [ 'title' => 'udfArtifact类', 'description' => 'udfArtifact类名称列表。', 'type' => 'array', - 'items' => [ - 'description' => 'udf类名称。', - '$ref' => '#/components/schemas/UdfClass', - ], + 'items' => ['description' => 'udf类名称。', '$ref' => '#/components/schemas/UdfClass'], ], ], ], @@ -3944,41 +1810,20 @@ 'description' => 'udf类信息。', 'type' => 'object', 'properties' => [ - 'udfArtifactName' => [ - 'title' => 'udfArtifact名称', - 'description' => 'udfArtifact名称。', - 'type' => 'string', - 'example' => 'udfCollection.jar', - ], - 'className' => [ - 'title' => 'class名称', - 'description' => 'class名称。', - 'type' => 'string', - 'example' => 'myfunctionTest', - ], + 'udfArtifactName' => ['title' => 'udfArtifact名称', 'description' => 'udfArtifact名称。', 'type' => 'string', 'example' => 'udfCollection.jar'], + 'className' => ['title' => 'class名称', 'description' => 'class名称。', 'type' => 'string', 'example' => 'myfunctionTest'], 'classType' => [ 'title' => 'class类型', 'description' => 'class类型。', 'type' => 'string', 'example' => 'UDF_TYPE_TABLE_AGGREGATE', - 'enum' => [ - 'UDF_TYPE_INVALID', - 'UDF_TYPE_SCALAR', - 'UDF_TYPE_TABLE', - 'UDF_TYPE_AGGREGATE', - 'UDF_TYPE_TABLE_AGGREGATE', - 'UDF_TYPE_OTHER', - ], + 'enum' => ['UDF_TYPE_INVALID', 'UDF_TYPE_SCALAR', 'UDF_TYPE_TABLE', 'UDF_TYPE_AGGREGATE', 'UDF_TYPE_TABLE_AGGREGATE', 'UDF_TYPE_OTHER'], ], 'functionNames' => [ 'title' => '函数名', 'description' => '函数名列表。', 'type' => 'array', - 'items' => [ - 'description' => '函数名。', - 'type' => 'string', - 'example' => 'myfunction', - ], + 'items' => ['description' => '函数名。', 'type' => 'string', 'example' => 'myfunction'], ], ], ], @@ -3987,24 +1832,9 @@ 'description' => 'udf函数。', 'type' => 'object', 'properties' => [ - 'functionName' => [ - 'title' => '函数名称', - 'description' => '函数名称。', - 'type' => 'string', - 'example' => 'myFunction', - ], - 'udfArtifactName' => [ - 'title' => 'udfArtifact名称', - 'description' => 'udfArtifact名称', - 'type' => 'string', - 'example' => 'udfCollection.jar', - ], - 'className' => [ - 'title' => 'class名称', - 'description' => 'class名称', - 'type' => 'string', - 'example' => 'myFunctionTest', - ], + 'functionName' => ['title' => '函数名称', 'description' => '函数名称。', 'type' => 'string', 'example' => 'myFunction'], + 'udfArtifactName' => ['title' => 'udfArtifact名称', 'description' => 'udfArtifact名称', 'type' => 'string', 'example' => 'udfCollection.jar'], + 'className' => ['title' => 'class名称', 'description' => 'class名称', 'type' => 'string', 'example' => 'myFunctionTest'], ], ], 'UpdateJobConfigParam' => [ @@ -4012,12 +1842,7 @@ 'description' => '动态更新作业运行参数配置。', 'type' => 'object', 'properties' => [ - 'newFlinkConf' => [ - 'title' => '作业参数配置', - 'description' => '作业参数配置。', - 'type' => 'object', - 'example' => '{"table.exec.parallelism:4"}', - ], + 'newFlinkConf' => ['title' => '作业参数配置', 'description' => '作业参数配置。', 'type' => 'object', 'example' => '{"table.exec.parallelism:4"}'], ], ], 'UpdateUdfArtifactResult' => [ @@ -4025,31 +1850,18 @@ 'description' => '更新UdfArtifact返回数据', 'type' => 'object', 'properties' => [ - 'updateSuccess' => [ - 'title' => '更新是否成功', - 'type' => 'boolean', - ], - 'udfArtifact' => [ - 'title' => '更新的udfArtifact', - '$ref' => '#/components/schemas/UdfArtifact', - ], - 'message' => [ - 'title' => '更新信息', - 'type' => 'string', - ], + 'updateSuccess' => ['title' => '更新是否成功', 'type' => 'boolean'], + 'udfArtifact' => ['title' => '更新的udfArtifact', '$ref' => '#/components/schemas/UdfArtifact'], + 'message' => ['title' => '更新信息', 'type' => 'string'], 'collidingClasses' => [ 'title' => '存在冲突的class', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/UdfClass', - ], + 'items' => ['$ref' => '#/components/schemas/UdfClass'], ], 'missingClasses' => [ 'title' => '存在缺失的calss', 'type' => 'array', - 'items' => [ - '$ref' => '#/components/schemas/UdfClass', - ], + 'items' => ['$ref' => '#/components/schemas/UdfClass'], ], ], ], @@ -4058,16 +1870,8 @@ 'description' => 'SQL校验结果。', 'type' => 'object', 'properties' => [ - 'validationResult' => [ - 'title' => '校验结果', - 'description' => '校验结果。', - 'type' => 'string', - 'example' => '"there have some errors""', - ], - 'errorDetails' => [ - 'description' => 'SQL校验错误详情。', - '$ref' => '#/components/schemas/ValidationErrorDetails', - ], + 'validationResult' => ['title' => '校验结果', 'description' => '校验结果。', 'type' => 'string', 'example' => '"there have some errors""'], + 'errorDetails' => ['description' => 'SQL校验错误详情。', '$ref' => '#/components/schemas/ValidationErrorDetails'], ], ], 'ValidationErrorDetails' => [ @@ -4075,36 +1879,11 @@ 'description' => 'SQL校验结果错误详情。', 'type' => 'object', 'properties' => [ - 'lineNumber' => [ - 'title' => '错误开始行数', - 'description' => '错误开始行数。', - 'type' => 'string', - 'example' => '3', - ], - 'columnNumber' => [ - 'title' => '错误开始列数', - 'description' => '错误开始列数。', - 'type' => 'string', - 'example' => '10', - ], - 'endLineNumber' => [ - 'title' => '错误结束行数', - 'description' => '错误结束行数。', - 'type' => 'string', - 'example' => '4', - ], - 'endColumnNumber' => [ - 'title' => '错误结束列数', - 'description' => '错误结束列数。', - 'type' => 'string', - 'example' => '5', - ], - 'message' => [ - 'title' => '错误信息', - 'description' => '错误信息。', - 'type' => 'string', - 'example' => '“”', - ], + 'lineNumber' => ['title' => '错误开始行数', 'description' => '错误开始行数。', 'type' => 'string', 'example' => '3'], + 'columnNumber' => ['title' => '错误开始列数', 'description' => '错误开始列数。', 'type' => 'string', 'example' => '10'], + 'endLineNumber' => ['title' => '错误结束行数', 'description' => '错误结束行数。', 'type' => 'string', 'example' => '4'], + 'endColumnNumber' => ['title' => '错误结束列数', 'description' => '错误结束列数。', 'type' => 'string', 'example' => '5'], + 'message' => ['title' => '错误信息', 'description' => '错误信息。', 'type' => 'string', 'example' => '“”'], ], ], 'Variable' => [ @@ -4114,40 +1893,16 @@ 'properties' => [ 'kind' => [ 'title' => '变量类型', - 'description' => '变量类型。明文类型为Clear,密文类型为Encrypted或者Plain', + 'description' => '变量类型。明文类型为Clear,密文类型为Encrypted。', 'type' => 'string', 'required' => true, - 'enumValueTitles' => [ - 'Plain' => 'Plain', - 'Encrypted' => 'Encrypted', - 'Clear' => 'Clear', - ], + 'enumValueTitles' => ['Encrypted' => 'Encrypted'], 'example' => 'Encrypted', - 'enum' => [ - 'Plain', - ], - ], - 'name' => [ - 'title' => '变量名称', - 'description' => '变量名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'mysqlPassword', - 'pattern' => '^[a-zA-Z0-9_-]{1,64}$', - ], - 'value' => [ - 'title' => '变量值', - 'description' => '变量值。', - 'type' => 'string', - 'required' => true, - 'example' => 'myPassword', - ], - 'description' => [ - 'title' => '变量描述', - 'description' => '变量描述信息。', - 'type' => 'string', - 'example' => 'test', + 'enum' => ['Plain'], ], + 'name' => ['title' => '变量名称', 'description' => '变量名称。', 'type' => 'string', 'required' => true, 'example' => 'mysqlPassword', 'pattern' => '^[a-zA-Z0-9_-]{1,64}$'], + 'value' => ['title' => '变量值', 'description' => '变量值。', 'type' => 'string', 'required' => true, 'example' => 'myPassword'], + 'description' => ['title' => '变量描述', 'description' => '变量描述信息。', 'type' => 'string', 'example' => 'test'], ], ], 'WatermarkSpec' => [ @@ -4155,556 +1910,525 @@ 'description' => 'Watermark信息。', 'type' => 'object', 'properties' => [ - 'column' => [ - 'title' => 'event time属性的列', - 'description' => 'event time属性的列。', - 'type' => 'string', - 'example' => 'time', - ], - 'watermarkExpression' => [ - 'title' => 'watermark表达式', - 'description' => 'watermark表达式。', - 'type' => 'string', - 'example' => 'INTERVAL \'5\' SECOND', - ], - 'watermarkType' => [ - 'type' => 'string', - ], + 'column' => ['title' => 'event time属性的列', 'description' => 'event time属性的列。', 'type' => 'string', 'example' => 'time'], + 'watermarkExpression' => ['title' => 'watermark表达式', 'description' => 'watermark表达式。', 'type' => 'string', 'example' => 'INTERVAL \'5\' SECOND'], + 'watermarkType' => ['type' => 'string'], ], ], ], ], 'apis' => [ - 'CreateFolder' => [ - 'summary' => '创建文件夹。', - 'path' => '/api/v2/namespaces/{namespace}/folder', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'ApplyScheduledPlan' => [ + 'summary' => '执行定时计划', + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}:apply', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'abilityTreeCode' => '235224', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], - 'produces' => [ - 'application/json', + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'scheduledPlanId', + 'in' => 'path', + 'schema' => ['description' => '定时计划ID。', 'type' => 'string', 'required' => true, 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****'], + ], ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '响应数据。', + 'description' => '响应数据。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表应用的定时计划。', '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '应用定时计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyScheduledPlan'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ApplyScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', + ], + 'CreateDeployment' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', - 'abilityTreeCode' => '223021', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'abilityTreeCode' => '146090', + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间名称', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '文件夹数据结构。', - 'required' => false, - '$ref' => '#/components/schemas/Folder', - ], + 'schema' => ['title' => 'Deployment内容。', 'description' => 'Deployment内容。', 'required' => true, '$ref' => '#/components/schemas/Deployment'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '创建文件夹返回数据结构。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '文件夹数据结构。', - '$ref' => '#/components/schemas/Folder', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '响应数据。', 'description' => '- 当success为true,返回创建的作业信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '创建文件夹', - ], - 'UpdateFolder' => [ - 'summary' => '调用本API可完成对文件夹信息的更新。', - 'path' => '/api/v2/namespaces/{namespace}/folder/{folderId}', - 'methods' => [ - 'patch', + 'title' => '创建已部署作业', + 'summary' => '创建一个已部署作业。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeployment'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</CreateDeploymentResponse>","errorExample":""}]', + ], + 'CreateDeploymentDraft' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '223054', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '223181', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'f89a0c1ca8****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '作业草稿数据结构。', 'required' => true, '$ref' => '#/components/schemas/DeploymentDraft'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '作业草稿数据结构。', '$ref' => '#/components/schemas/DeploymentDraft'], + ], ], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建作业草稿', + 'summary' => '创建SQL、数据摄入作业的草稿。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeploymentDraft'], + ], + ], + 'ramActions' => [ [ - 'name' => 'folderId', - 'in' => 'path', - 'schema' => [ - 'description' => '文件夹ID,可通过GetFolder接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => '13803', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"stt-fu1658tbk6mnkk2****\\",\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"holderId\\": \\"18389966****\\",\\n \\"holderName\\": \\"userA\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', + ], + 'CreateDeploymentTarget' => [ + 'summary' => '创建部署目标', + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '235197', + 'abilityTreeNodes' => ['FEATUREscRC0N9T'], + ], + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'deploymentTargetName', + 'in' => 'query', + 'schema' => ['description' => '部署目标名称。', 'type' => 'string', 'required' => true, 'example' => 'test-dt'], + ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '文件夹数据结构。', - 'required' => true, - '$ref' => '#/components/schemas/Folder', - ], + 'schema' => ['description' => '本数据结构代表部署目标的资源。', 'required' => false, '$ref' => '#/components/schemas/ResourceSpec'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '更新文件夹信息。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '更新文件夹后的信息。', - '$ref' => '#/components/schemas/Folder', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构用来代表创建的部署目标。', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '更新文件夹', - ], - 'DeleteFolder' => [ - 'summary' => '删除空文件夹,如果该文件夹下存在其他文件或文件夹则无法删除。', - 'path' => '/api/v2/namespaces/{namespace}/folder/{folderId}', - 'methods' => [ - 'delete', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建部署目标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeploymentTarget'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'CreateDeploymentTargetV2' => [ + 'summary' => '创建部署目标', + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/support-elastic', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '223067', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '235197', + 'abilityTreeNodes' => ['FEATUREscRC0N9T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'c96306e2b****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'folderId', - 'in' => 'path', - 'schema' => [ - 'description' => '文件夹ID,可通过GetFloder接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => '13803', - ], + 'name' => 'deploymentTargetName', + 'in' => 'query', + 'schema' => ['description' => '部署目标名称。', 'type' => 'string', 'required' => true, 'example' => 'test-dt'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '部署目标资源。', 'required' => false, '$ref' => '#/components/schemas/Resource'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '部署目标详情。', 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a151****", "name": "69d001d5-419a-4bfc-9c2e-849cacd3****", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建部署目标(V2版本)', + 'description' => '原创建部署目标的接口仅支持创建固定资源或弹性资源的部署目标,新接口支持创建固定资源、弹性资源或者混合模式的部署目标。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', - 'title' => '删除文件夹', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentTargetV2', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', ], - 'GetFolder' => [ - 'summary' => '获取文件夹的具体信息', + 'CreateFolder' => [ 'path' => '/api/v2/namespaces/{namespace}/folder', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '223029', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '223021', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['description' => '工作空间名称', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'folderId', - 'in' => 'query', - 'schema' => [ - 'description' => '文件夹ID,为空返回根文件夹。', - 'type' => 'string', - 'required' => false, - 'example' => '89097', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '文件夹数据结构。', 'required' => false, '$ref' => '#/components/schemas/Folder'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '创建文件夹返回数据结构。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '文件夹信息数据结构。', - '$ref' => '#/components/schemas/Folder', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '文件夹数据结构。', '$ref' => '#/components/schemas/Folder'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '获取文件夹信息', - ], - 'ValidateDeploymentDraftAsync' => [ - 'summary' => '异步进行Flink作业草稿深度检查,进行语法检查、资源配置等合法性检验', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/async-validate', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建文件夹', + 'summary' => '创建文件夹。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFolder'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', + ], + 'CreateMember' => [ + 'path' => '/gateway/v2/namespaces/{namespace}/members', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'abilityTreeCode' => '177220', + 'abilityTreeNodes' => ['FEATUREscWQDSD2'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'ca84d539167d4d'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'u-gs3rgla9-default'], ], [ 'name' => 'body', 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'description' => '作业草稿参数对象。', - 'required' => false, - '$ref' => '#/components/schemas/DraftValidateParams', - ], + 'schema' => ['title' => '成员内容。', 'description' => '成员账号和权限对应关系。', 'required' => false, '$ref' => '#/components/schemas/Member'], ], ], 'responses' => [ @@ -4714,122 +2438,93 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '响应数据。', - 'type' => 'object', - 'properties' => [ - 'ticketId' => [ - 'title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', - 'description' => '异步工单ID,可以使用该ID查询异步操作结果。 ', - 'type' => 'string', - 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****', - ], - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'F989CA70-2925-5A94-92B7-20F5762B71C8'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回创建的成员;当success为false,该值为空。', 'description' => '- 当success为false,返回空值;'."\n" + ."\n" + .'- 当success为true,返回授权信息。', '$ref' => '#/components/schemas/Member'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","type":"json"}]', - 'title' => '异步进行作业草稿深度检查', - 'description' => '作业草稿异步进行深度校验接口,用于对尚未提交部署的作业草稿配置进行全链路合规性与兼容性检查。', - ], - 'GetValidateDeploymentDraftResult' => [ - 'summary' => '根据ticketId查询作业草稿深度校验的结果', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/tickets/{ticketId}/async-validate', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '新增成员授权', + 'summary' => '将一个用户添加到对应项目空间下并授予对应权限。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMember'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F989CA70-2925-5A94-92B7-20F5762B71C8\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', + ], + 'CreateSavepoint' => [ + 'path' => '/api/v2/namespaces/{namespace}/savepoints', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '146960', + 'abilityTreeNodes' => ['FEATUREscUX40QK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'ticketId', - 'in' => 'path', + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', 'schema' => [ - 'title' => '异步工单ID,可以通过提交异步操作获取。', - 'description' => '异步工单ID,可以通过提交异步操作获取。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', + 'title' => '触发savepoint参数。', + 'description' => '触发savepoint参数。', + 'type' => 'object', + 'properties' => [ + 'deploymentId' => ['title' => '作业ID。', 'description' => '作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], + 'description' => ['title' => 'savepoint描述信息。', 'description' => 'savepoint描述信息。', 'type' => 'string', 'required' => false, 'example' => 'Job snapshot description'], + 'nativeFormat' => ['title' => '是否使用nativeFormat模式。', 'description' => '是否使用nativeFormat模式:'."\n" + ."\n" + .'- true:使用'."\n" + ."\n" + .'- false:不使用', 'type' => 'boolean', 'required' => false, 'example' => 'true'], + ], + 'required' => false, ], ], ], @@ -4840,867 +2535,623 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '作业草稿深度检查的执行结果对象', - '$ref' => '#/components/schemas/AsyncDraftValidateResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回触发成功的savepoint信息;当success为false,该值为空。', 'description' => '- 当success为true,返回触发成功的savepoint信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Savepoint'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"\\",\\n \\"success\\": true,\\n \\"message\\": \\"\\",\\n \\"draftValidationDetail\\": {\\n \\"draftMetaInfoErrorDetails\\": [\\n {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\"\\n }\\n ],\\n \\"sqlValidationResult\\": \\"\\",\\n \\"sqlErrorDetail\\": {\\n \\"lineNumber\\": \\"\\",\\n \\"columnNumber\\": \\"\\",\\n \\"endLineNumber\\": \\"\\",\\n \\"endColumnNumber\\": \\"\\",\\n \\"message\\": \\"\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '查询深度检查结果', - ], - 'CreateDeploymentDraft' => [ - 'summary' => '创建SQL作业的草稿。', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts', - 'methods' => [ - 'post', + 'title' => '创建快照', + 'summary' => '创建快照。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSavepoint'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"作业快照1\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"create savepoint failed\\",\\n \\"reason\\": \\"IO Exception\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</CreateSavepointResponse>","errorExample":""}]', + ], + 'CreateScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', - 'abilityTreeCode' => '223181', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'abilityTreeCode' => '235220', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '作业草稿数据结构。', - 'required' => true, - '$ref' => '#/components/schemas/DeploymentDraft', - ], + 'schema' => ['description' => '本数据结构代表创建的定时计划。', 'required' => false, '$ref' => '#/components/schemas/ScheduledPlan'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '作业草稿数据结构。', - '$ref' => '#/components/schemas/DeploymentDraft', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表创建的定时计划。', '$ref' => '#/components/schemas/ScheduledPlan'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"\\",\\n \\"workspace\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"holderId\\": \\"\\",\\n \\"holderName\\": \\"\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '创建作业草稿', - ], - 'UpdateDeploymentDraft' => [ - 'summary' => '更新SQL作业草稿。', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', - 'methods' => [ - 'patch', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建定时计划', + 'summary' => '创建定时计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateScheduledPlan'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', + ], + 'CreateSessionCluster' => [ + 'path' => '/api/v2/namespaces/{namespace}/sessionclusters', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '223182', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], - ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '本数据结构代表创建的Session集群。', 'required' => false, '$ref' => '#/components/schemas/SessionCluster'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + 'title' => '响应数据。', + 'description' => '响应数据。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表创建的Session集群。', '$ref' => '#/components/schemas/SessionCluster'], + ], ], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建Session集群', + 'summary' => '创建Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSessionCluster'], + ], + ], + 'ramActions' => [ [ - 'name' => 'deploymentDraftId', - 'in' => 'path', - 'schema' => [ - 'description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'CreateUdfArtifact' => [ + 'path' => '/api/v2/namespaces/{namespace}/udfartifacts', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'abilityTreeCode' => '230166', + 'abilityTreeNodes' => ['FEATUREscOYA64T'], + ], + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'u-gs3rgla9-default'], + ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '更新作业草稿信息。', - 'required' => true, - '$ref' => '#/components/schemas/DeploymentDraft', - ], + 'schema' => ['description' => '自定义函数资源文件。', 'required' => true, '$ref' => '#/components/schemas/UdfArtifact'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '返回作业草稿结果。', - '$ref' => '#/components/schemas/DeploymentDraft', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '创建自定义函数文件结果。', '$ref' => '#/components/schemas/CreateUdfArtifactResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"\\",\\n \\"workspace\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"holderId\\": \\"\\",\\n \\"holderName\\": \\"\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '更新作业草稿', - ], - 'DeleteDeploymentDraft' => [ - 'summary' => '删除SQL作业草稿,如该草稿存在已经上线或运行中的部署作业,则无法删除', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', - 'methods' => [ - 'delete', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '创建自定义函数文件', + 'summary' => '通过对您上传的Jar/Python包的解析,解析您Jar/Python包中全部的UDF方法并为你创建自定义函数文件。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateUdfArtifact'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"createSuccess\\": true,\\n \\"message\\": \\"“”\\",\\n \\"udfArtifact\\": {\\n \\"namespace\\": \\"default-namespace\\\\n\\",\\n \\"creator\\": \\"userA\\",\\n \\"createdAt\\": 1723532876,\\n \\"modifiedAt\\": 1723537876,\\n \\"name\\": \\"udfCollection.jar\\\\n\\",\\n \\"jarUrl\\": \\"oss://bucket/udfCollection.jar\\\\n\\",\\n \\"dependencyJarUris\\": [\\n \\"oss://bucket/addition/add.jar\\\\n\\"\\n ],\\n \\"artifactType\\": \\"ARTIFACT_TYPE_JAVA\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n },\\n \\"collidingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'CreateVariable' => [ + 'path' => '/api/v2/namespaces/{namespace}/variables', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '223183', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'create', + 'abilityTreeCode' => '147069', + 'abilityTreeNodes' => ['FEATUREscGTCR1G'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentDraftId', - 'in' => 'path', - 'schema' => [ - 'description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n", - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['title' => '创建变量的数据内容。', 'description' => '创建变量的数据内容。', 'required' => true, '$ref' => '#/components/schemas/Variable'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回创建的变量;当success为false,该值为空。', 'description' => '- 当success为true,返回创建的变量;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Variable'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', - 'title' => '删除作业草稿', - ], - 'GetDeploymentDraft' => [ - 'summary' => '获取sql作业草稿详情。', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', - 'methods' => [ - 'get', + 'title' => '创建变量', + 'summary' => '创建变量。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVariable'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"kind\\": \\"Encrypted\\",\\n \\"name\\": \\"mysqlPassword\\",\\n \\"value\\": \\"myPassword\\",\\n \\"description\\": \\"test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateVariableResponse>\\n <requestId>CBC799F0-ABCD-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <kind>Plain</kind>\\n <name>variableName</name>\\n <value>variableValue</value>\\n <description>This is a variable description</description>\\n </data>\\n</CreateVariableResponse>","errorExample":""}]', + ], + 'DeleteCustomConnector' => [ + 'path' => '/api/v2/namespaces/{namespace}/connectors/{connectorName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '223184', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '230270', + 'abilityTreeNodes' => ['FEATUREsc2PXREJ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'test-flink-bigdata-default'], ], [ - 'name' => 'deploymentDraftId', + 'name' => 'connectorName', 'in' => 'path', - 'schema' => [ - 'description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n", - ], + 'schema' => ['description' => '自定义连接器的名称。', 'type' => 'string', 'required' => true, 'example' => 'mysql-test'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '作业草稿信息。', - '$ref' => '#/components/schemas/DeploymentDraft', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '展示使用自定义connector创建的表的信息。', '$ref' => '#/components/schemas/TableMeta'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"\\",\\n \\"workspace\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"holderId\\": \\"\\",\\n \\"holderName\\": \\"\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n}","type":"json"}]', - 'title' => '获取作业草稿详情', - ], - 'ListDeploymentDrafts' => [ - 'summary' => '获取SQL作业草稿的列表信息', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除自定义连接器', + 'summary' => '删除已经注册的自定义连接器。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomConnector'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:DeleteCustomConnector', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"catalogName\\": \\"paimon\\",\\n \\"databaseName\\": \\"paimon-ods\\",\\n \\"tableName\\": \\"order-table\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'DeleteDeployment' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '223185', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '146802', + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], - ], - [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'name' => 'deploymentId', + 'in' => 'path', + 'schema' => ['title' => '作业ID。', 'description' => '作业ID。', 'type' => 'string', 'required' => true, 'example' => '5737ef81-d2f1-49cf-8752-30910809****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '69', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业草稿列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '作业草稿详情。', - '$ref' => '#/components/schemas/DeploymentDraft', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 69,\\n \\"data\\": [\\n {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"\\",\\n \\"workspace\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"holderId\\": \\"\\",\\n \\"holderName\\": \\"\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查看作业草稿列表', - ], - 'GetDeploymentDraftLock' => [ - 'summary' => '当您调用API编辑作业草稿时,为避免页面操作和API操作互相影响,您需要先获取编辑锁', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/getLock', - 'methods' => [ - 'post', + 'title' => '删除已部署作业', + 'summary' => '根据已部署作业ID删除已部署作业。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeployment'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteDeploymentResponse>","errorExample":""}]', + ], + 'DeleteDeploymentDraft' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '223187', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '223183', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentDraftId', - 'in' => 'query', - 'schema' => [ - 'description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', - 'type' => 'string', - 'required' => true, - 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n", - ], + 'in' => 'path', + 'schema' => ['description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', 'type' => 'string', 'required' => true, 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n"], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '编辑锁数据结构信息。', - '$ref' => '#/components/schemas/Lock', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"id\\": \\"\\",\\n \\"workspace\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"holderId\\": \\"\\",\\n \\"holderName\\": \\"\\"\\n }\\n}","type":"json"}]', - 'title' => '获取作业草稿编辑锁', - ], - 'DeployDeploymentDraftAsync' => [ - 'summary' => 'SQL作业草稿部署上线', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/async-deploy', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除作业草稿', + 'summary' => '删除SQL、数据摄入作业草稿,如该草稿存在已经上线或运行中的部署作业,则无法删除', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeploymentDraft'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'DeleteDeploymentTarget' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/{deploymentTargetName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '223188', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '235201', + 'abilityTreeNodes' => ['FEATUREscR3E3VD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '作业草稿及部署阶段信息。', - 'required' => true, - '$ref' => '#/components/schemas/DraftDeployParams', - ], + 'name' => 'deploymentTargetName', + 'in' => 'path', + 'schema' => ['description' => '部署目标名称。', 'type' => 'string', 'required' => true, 'example' => 'test-dt'], ], ], 'responses' => [ @@ -5710,594 +3161,463 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '当 success 为 true,返回异步操作结果信息。', - 'type' => 'object', - 'properties' => [ - 'ticketId' => [ - 'title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', - 'description' => '异步工单ID,可以使用该ID查询异步操作结果。 ', - 'type' => 'string', - 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****', - ], - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构用来代表删除的部署目标。', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","type":"json"}]', - 'title' => '部署作业草稿', - ], - 'GetDeployDeploymentDraftResult' => [ - 'summary' => '根据作业草稿部署异步工单的ID信息,查看部署的结果', - 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/tickets/{ticketId}/async-deploy', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除部署目标', + 'summary' => '删除部署目标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeploymentTarget'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'DeleteFolder' => [ + 'path' => '/api/v2/namespaces/{namespace}/folder/{folderId}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '223190', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '223067', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8****', - ], + 'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'c96306e2b****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'ticketId', + 'name' => 'folderId', 'in' => 'path', - 'schema' => [ - 'title' => '异步工单ID,可以通过提交异步操作获取。', - 'description' => '异步工单ID,可以通过提交异步操作获取。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', - ], + 'schema' => ['description' => '文件夹ID,可通过GetFloder接口获取。', 'type' => 'string', 'required' => true, 'example' => '13803'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码。'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息。'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '作业草稿部署结果。', - '$ref' => '#/components/schemas/AsyncDraftDeployResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"FINISHED\\",\\n \\"artifactValidationDetail\\": {\\n \\"validationResult\\": \\"\\\\\\"there have some errors\\\\\\"\\\\\\"\\",\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"\\",\\n \\"columnNumber\\": \\"\\",\\n \\"endLineNumber\\": \\"\\",\\n \\"endColumnNumber\\": \\"\\",\\n \\"message\\": \\"\\"\\n }\\n },\\n \\"deploymentId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"message\\": \\"\\\\\\"Validation error: SQL validate failed\\\\\\"\\"\\n }\\n}","type":"json"}]', - 'title' => '获取作业草稿部署结果', - ], - 'ValidateSqlStatement' => [ - 'summary' => '校验sql作业代码。', - 'path' => '/api/v2/namespaces/{namespace}/sql-statement/validate', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除文件夹', + 'summary' => '删除空文件夹,如果该文件夹下存在其他文件或文件夹则无法删除。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFolder'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'DeleteJob' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '206207', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '146926', + 'abilityTreeNodes' => ['FEATUREscB9XR98'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间ID。', 'description' => '项目空间ID。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'title' => 'Deployment内容。', - 'description' => '待验证的sql内容。', - 'required' => true, - '$ref' => '#/components/schemas/SqlStatementWithContext', - ], + 'name' => 'jobId', + 'in' => 'path', + 'schema' => ['title' => '实例ID。', 'description' => '作业实例ID。', 'type' => 'string', 'required' => true, 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'title' => '响应数据。', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-****-1D30-8A4F-882ED4DD5E02', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构代表sql验证结果详情。', - '$ref' => '#/components/schemas/SqlStatementValidationResult', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-****-1D30-8A4F-882ED4DD5E02\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"success\\": true,\\n \\"message\\": \\"\\",\\n \\"validationResult\\": \\"\\",\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"\\",\\n \\"columnNumber\\": \\"\\",\\n \\"endLineNumber\\": \\"\\",\\n \\"endColumnNumber\\": \\"\\",\\n \\"message\\": \\"\\",\\n \\"invalidflinkConf\\": [\\n \\"\\"\\n ]\\n }\\n }\\n}","type":"json"}]', - 'title' => '验证sql语句', - ], - 'CreateUdfArtifact' => [ - 'summary' => '通过对您上传的Jar/Python包的解析,解析您Jar/Python包中全部的UDF方法并为你创建自定义函数文件。', - 'path' => '/api/v2/namespaces/{namespace}/udfartifacts', - 'methods' => [ - 'post', + 'title' => '删除作业实例', + 'summary' => '删除一个作业下非运行状态的作业实例信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteJob'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteJobResponse>","errorExample":""}]', + ], + 'DeleteMember' => [ + 'path' => '/gateway/v2/namespaces/{namespace}/members/{member}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '230166', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'operationType' => 'delete', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '177280', + 'abilityTreeNodes' => ['FEATUREscWQDSD2'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8c34d'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'u-gs3rgla9-default', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '自定义函数资源文件。', - 'required' => true, - '$ref' => '#/components/schemas/UdfArtifact', - ], + 'name' => 'member', + 'in' => 'path', + 'schema' => ['title' => '成员名称。', 'description' => '成员UID。', 'type' => 'string', 'required' => true, 'example' => 'user:223769'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '创建自定义函数文件结果。', - '$ref' => '#/components/schemas/CreateUdfArtifactResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"createSuccess\\": true,\\n \\"message\\": \\"\\",\\n \\"udfArtifact\\": {\\n \\"namespace\\": \\"\\",\\n \\"creator\\": \\"\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"name\\": \\"\\",\\n \\"jarUrl\\": \\"\\",\\n \\"dependencyJarUris\\": [\\n \\"\\"\\n ],\\n \\"artifactType\\": \\"\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"collidingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '创建自定义函数文件', - ], - 'UpdateUdfArtifact' => [ - 'summary' => '对已创建的自定义函数文件进行更新。', - 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/{udfArtifactName}', - 'methods' => [ - 'put', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除用户权限', + 'summary' => '删除指定的用户权限信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMember'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'DeleteSavepoint' => [ + 'path' => '/api/v2/namespaces/{namespace}/savepoints/{savepointId}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '230195', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '147041', + 'abilityTreeNodes' => ['FEATUREscUX40QK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'udfArtifactName', + 'name' => 'savepointId', 'in' => 'path', + 'schema' => ['title' => '需要删除的savepoint ID。', 'description' => '需要删除的Savepoint ID。', 'type' => 'string', 'required' => true, 'example' => '907a8f0e-4f6c-412b-8a5e-7d4a065b****'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'description' => '已创建的自定义函数文件名。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-udf', + 'title' => '响应数据。', + 'description' => '响应数据。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + ], ], ], + ], + 'title' => '删除快照', + 'summary' => '删除快照。', + 'extraInfo' => '补充。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSavepoint'], + ], + ], + 'ramActions' => [ [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '自定义函数文件详情。', - 'required' => true, - '$ref' => '#/components/schemas/UdfArtifact', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteSavepointResponse>","errorExample":""}]', + ], + 'DeleteScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}', + 'methods' => ['delete'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'delete', + 'abilityTreeCode' => '235222', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], + ], + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'scheduledPlanId', + 'in' => 'path', + 'schema' => ['description' => '定时计划ID。', 'type' => 'string', 'required' => true, 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '更新自定义函数文件详情。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '自定义函数文件更新结果。', - '$ref' => '#/components/schemas/UpdateUdfArtifactResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表删除的定时计划。', '$ref' => '#/components/schemas/ScheduledPlan'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"updateSuccess\\": true,\\n \\"udfArtifact\\": {\\n \\"namespace\\": \\"\\",\\n \\"creator\\": \\"\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"name\\": \\"\\",\\n \\"jarUrl\\": \\"\\",\\n \\"dependencyJarUris\\": [\\n \\"\\"\\n ],\\n \\"artifactType\\": \\"\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n },\\n \\"message\\": \\"\\",\\n \\"collidingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"missingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '更新自定义函数文件', - ], - 'GetUdfArtifacts' => [ - 'summary' => '获取您上传并创建的包含UDF的Jar或者Python文件的详情信息。', - 'path' => '/api/v2/namespaces/{namespace}/udfartifacts', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除定时计划', + 'summary' => '删除定时计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteScheduledPlan'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', + ], + 'DeleteSessionCluster' => [ + 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '230252', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '237098', + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8c34d', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'udfArtifactName', - 'in' => 'query', - 'schema' => [ - 'description' => 'UDF对应的Jar或者Python文件的名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'test-udf', - ], + 'name' => 'sessionClusterName', + 'in' => 'path', + 'schema' => ['description' => 'Session集群名称。', 'type' => 'string', 'required' => true, 'example' => 'test-session'], ], ], 'responses' => [ @@ -6307,120 +3627,72 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的UDF的Jar或者Python文件的详情;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '自定义函数资源详情。', - '$ref' => '#/components/schemas/UdfArtifact', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表删除的Session集群。', '$ref' => '#/components/schemas/SessionCluster'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '删除Session集群', + 'summary' => '删除Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSessionCluster'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"namespace\\": \\"\\",\\n \\"creator\\": \\"\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"name\\": \\"\\",\\n \\"jarUrl\\": \\"\\",\\n \\"dependencyJarUris\\": [\\n \\"\\"\\n ],\\n \\"artifactType\\": \\"\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取自定义函数资源详情', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', ], 'DeleteUdfArtifact' => [ - 'summary' => '删除已经创建的自定义函数资源,删除前需要您先删除该资源下注册的自定义函数', 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/{udfArtifactName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'delete', 'abilityTreeCode' => '230197', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'abilityTreeNodes' => ['FEATUREscOYA64T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'udfArtifactName', 'in' => 'path', - 'schema' => [ - 'description' => '自定义函数文件名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'check', - ], + 'schema' => ['description' => '自定义函数文件名称。', 'type' => 'string', 'required' => true, 'example' => 'check'], ], ], 'responses' => [ @@ -6430,135 +3702,86 @@ 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '删除自定义函数文件结果。', - '$ref' => '#/components/schemas/DeleteUdfArtifactResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '删除自定义函数文件结果。', '$ref' => '#/components/schemas/DeleteUdfArtifactResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deleteSuccess\\": true,\\n \\"message\\": \\"\\",\\n \\"referencedClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\",\\n \\"classType\\": \\"\\",\\n \\"functionNames\\": [\\n \\"\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '删除自定义函数资源', + 'summary' => '删除已经创建的自定义函数资源,删除前需要您先删除该资源下注册的自定义函数', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteUdfArtifact'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deleteSuccess\\": true,\\n \\"message\\": \\"“”\\",\\n \\"referencedClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', ], 'DeleteUdfFunction' => [ - 'summary' => '删除已注册的自定义函数。', 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/function/{functionName}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '230205', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'abilityTreeNodes' => ['FEATUREscOYA64T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'u-gs3rgla9-default', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'u-gs3rgla9-default'], ], [ 'name' => 'functionName', 'in' => 'path', - 'schema' => [ - 'description' => '需删除的自定义函数名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'category', - ], + 'schema' => ['description' => '需删除的自定义函数名称。', 'type' => 'string', 'required' => true, 'example' => 'category'], ], [ 'name' => 'udfArtifactName', 'in' => 'query', - 'schema' => [ - 'description' => '需要删除的自定义函数对应的自定义函数资源名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-udf', - ], + 'schema' => ['description' => '需要删除的自定义函数对应的自定义函数资源名称。', 'type' => 'string', 'required' => true, 'example' => 'test-udf'], ], [ 'name' => 'className', 'in' => 'query', - 'schema' => [ - 'description' => '自定义函数对应的类名。', - 'type' => 'string', - 'required' => true, - 'example' => 'Category', - ], + 'schema' => ['description' => '自定义函数对应的类名。', 'type' => 'string', 'required' => true, 'example' => 'Category'], ], ], 'responses' => [ @@ -6568,239 +3791,153 @@ 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '删除自定义函数', - ], - 'RegisterUdfFunction' => [ - 'summary' => '通过本API可以选择已创建的自定义函数文件中解析出的自定义函数,选择其中的部分或全部函数进行注册,注册后可在SQL中使用。', - 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/function:registerUdfFunction', - 'methods' => [ - 'post', + 'summary' => '删除已注册的自定义函数。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteUdfFunction'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:DeleteUdfFunction', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'DeleteVariable' => [ + 'summary' => '删除变量。', + 'path' => '/api/v2/namespaces/{namespace}/variables/{name}', + 'methods' => ['delete'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '230203', - 'abilityTreeNodes' => [ - 'FEATUREscOYA64T', - ], + 'operationType' => 'delete', + 'abilityTreeCode' => '147071', + 'abilityTreeNodes' => ['FEATUREscGTCR1G'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'functionName', - 'in' => 'query', - 'schema' => [ - 'description' => '函数名称,一般与类名称相同,您可以先选择自定义其他名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'orderRank', - ], - ], - [ - 'name' => 'udfArtifactName', - 'in' => 'query', - 'schema' => [ - 'description' => '自定义函数对应的Jar或者Python文件的名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-udf', - ], - ], - [ - 'name' => 'className', - 'in' => 'query', - 'schema' => [ - 'description' => '自定义函数对应的类名。', - 'type' => 'string', - 'required' => true, - 'example' => 'orderRank', - ], + 'name' => 'name', + 'in' => 'path', + 'schema' => ['title' => '变量名称。', 'description' => '需要删除的变量名称。', 'type' => 'string', 'required' => true, 'example' => 'variableName'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '响应结果。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '自定义函数信息。', - '$ref' => '#/components/schemas/UdfFunction', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"functionName\\": \\"\\",\\n \\"udfArtifactName\\": \\"\\",\\n \\"className\\": \\"\\"\\n }\\n}","type":"json"}]', - 'title' => '注册自定义函数', - ], - 'ListCustomConnectors' => [ - 'summary' => '获取已注册的自定义连接器的列表信息。', - 'path' => '/api/v2/namespaces/{namespace}/connectors', - 'methods' => [ - 'get', + 'title' => '删除变量', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVariable'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteVariableResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteVariableResponse>","errorExample":""}]', + ], + 'DeployDeploymentDraftAsync' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/async-deploy', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '230268', - 'abilityTreeNodes' => [ - 'FEATUREsc2PXREJ', - ], + 'abilityTreeCode' => '223188', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '作业草稿及部署阶段信息。', 'required' => true, '$ref' => '#/components/schemas/DraftDeployParams'], ], ], 'responses' => [ @@ -6810,120 +3947,82 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回项目空间下自定义连接器的列表信息;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '自定义连接器详情。', - '$ref' => '#/components/schemas/Connector', + 'description' => '当 success 为 true,返回异步操作结果信息。', + 'type' => 'object', + 'properties' => [ + 'ticketId' => ['title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', 'description' => '异步工单ID,可以使用该ID查询异步操作结果。 ', 'type' => 'string', 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"source\\": true,\\n \\"sink\\": true,\\n \\"lookup\\": true,\\n \\"properties\\": [\\n {\\n \\"key\\": \\"\\",\\n \\"defaultValue\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"required\\": true,\\n \\"definesFormat\\": true,\\n \\"sensitive\\": true\\n }\\n ],\\n \\"supportedFormats\\": [\\n \\"\\"\\n ],\\n \\"dependencies\\": [\\n \\"\\"\\n ],\\n \\"creator\\": \\"\\",\\n \\"creatorName\\": \\"\\",\\n \\"modifier\\": \\"\\",\\n \\"modifierName\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取自定义连接器列表', - ], - 'RegisterCustomConnector' => [ - 'summary' => '在项目空间下注册自定义连接器,注册的自定义连接器可以在SQL中使用。', - 'path' => '/api/v2/namespaces/{namespace}/connectors:register', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '部署作业草稿', + 'summary' => 'SQL作业草稿部署上线', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeployDeploymentDraftAsync'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:DeployDeploymentDraftAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","type":"json"}]', + ], + 'ExecuteSqlStatement' => [ + 'path' => '/api/v2/namespaces/{namespace}/sql-statement/execute', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '230266', - 'abilityTreeNodes' => [ - 'FEATUREsc2PXREJ', - ], + 'abilityTreeCode' => '230265', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8c34d'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'jarUrl', - 'in' => 'query', - 'schema' => [ - 'description' => '自定义连接器Jar包存放的地址,需要平台可访问该地址。', - 'type' => 'string', - 'required' => true, - 'example' => 'oss://flink/connector/mysql123', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '元数据相关SQL语句。', 'required' => false, '$ref' => '#/components/schemas/SqlStatementWithContext'], ], ], 'responses' => [ @@ -6933,253 +4032,183 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '自定义连接器信息。', - '$ref' => '#/components/schemas/Connector', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '元数据SQL执行结果。', '$ref' => '#/components/schemas/SqlStatementExecuteResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"source\\": true,\\n \\"sink\\": true,\\n \\"lookup\\": true,\\n \\"properties\\": [\\n {\\n \\"key\\": \\"\\",\\n \\"defaultValue\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"required\\": true,\\n \\"definesFormat\\": true,\\n \\"sensitive\\": true\\n }\\n ],\\n \\"supportedFormats\\": [\\n \\"\\"\\n ],\\n \\"dependencies\\": [\\n \\"\\"\\n ],\\n \\"creator\\": \\"\\",\\n \\"creatorName\\": \\"\\",\\n \\"modifier\\": \\"\\",\\n \\"modifierName\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '注册自定义连接器', - ], - 'DeleteCustomConnector' => [ - 'summary' => '删除已经注册的自定义连接器。', - 'path' => '/api/v2/namespaces/{namespace}/connectors/{connectorName}', - 'methods' => [ - 'delete', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '执行元数据SQL语句', + 'summary' => '您可以通过本API完成元数据相关SQL的运行,仅支持DDL和DML,不支持DQL。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteSqlStatement'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ExecuteSqlStatement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"executeSuccess\\": true,\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"3\\",\\n \\"columnNumber\\": \\"2\\",\\n \\"endLineNumber\\": \\"5\\",\\n \\"endColumnNumber\\": \\"11\\",\\n \\"message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"invalidflinkConf\\": [\\n \\"{\\\\\\"k:v\\\\\\"}\\"\\n ]\\n },\\n \\"statement\\": \\"“show create table order”\\"\\n }\\n}","type":"json"}]', + ], + 'FlinkApiProxy' => [ + 'path' => '/flink-ui/v2/proxy', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '230270', - 'abilityTreeNodes' => [ - 'FEATUREsc2PXREJ', - ], + 'abilityTreeCode' => '146918', + 'abilityTreeNodes' => ['FEATUREscO1AVSF'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-flink-bigdata-default', - ], + 'in' => 'query', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'connectorName', - 'in' => 'path', - 'schema' => [ - 'description' => '自定义连接器的名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'mysql-test', - ], + 'name' => 'resourceType', + 'in' => 'query', + 'schema' => ['title' => '资源类型,支持以下类型:'."\n" + .'-jobs', 'description' => '资源类型,支持以下类型:'."\n" + .'<ul>'."\n" + .'<li>'."\n" + .'jobs'."\n" + .'</li>'."\n" + .'<li>'."\n" + .'sessionclusters'."\n" + .'</li>'."\n" + .'</ul>', 'type' => 'string', 'required' => true, 'example' => 'jobs'], + ], + [ + 'name' => 'resourceId', + 'in' => 'query', + 'schema' => ['title' => '资源ID。', 'description' => '资源类型是jobs,则使用jobid;资源类型是sessionclusters,则使用session名称。', 'type' => 'string', 'required' => true, 'example' => '5a27a3aa-c5b9-4dc1-8c86-be57d2d6****'], + ], + [ + 'name' => 'flinkApiPath', + 'in' => 'query', + 'schema' => ['title' => 'flink-ui路径。', 'description' => 'flink rest api路径。如/jobs/jobid/config可以获取jobid对应作业的配置信息,更多使用可查看[flink社区 rest api文档](https://nightlies.apache.org/flink/flink-docs-release-1.19/zh/docs/ops/rest_api/)。', 'type' => 'string', 'required' => true, 'example' => '/jobs/:4df35f8e54554b23bf7dcd38a151****/config'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '响应数据。', - 'description' => '响应数据。', + 'description' => 'Flink请求的返回值。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '展示使用自定义connector创建的表的信息。', - '$ref' => '#/components/schemas/TableMeta', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'httpCode' => ['description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'success' => ['description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回代理请求结果;当success为false,该值为空。', 'description' => '- 当success为true,返回代理请求结果;'."\n" + ."\n" + .'- 当success为false,返回空值。', 'type' => 'string', 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a151****", "name": "69d001d5-419a-4bfc-9c2e-849cacd3****", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }'], ], + 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a15135f4", "name": "69d001d5-419a-4bfc-9c2e-849cacd31658", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }', ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"catalogName\\": \\"\\",\\n \\"databaseName\\": \\"\\",\\n \\"tableName\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '删除自定义连接器', - ], - 'GetDatabases' => [ - 'summary' => '获取指定Catalog下DataBase的信息或列出所有DataBase的信息', - 'path' => '/api/v2/namespaces/{namespace}/catalogs/{catalogName}/databases', - 'methods' => [ - 'get', + 'title' => 'Flink Rest API代理', + 'summary' => '您可以使用flink rest api的方式来调用本接口,获取session集群或者运行作业的相关信息。注意本接口仅支持您获取相关信息,无法对session集群和作业进行操作或管理。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FlinkApiProxy'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:FlinkApiProxy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"httpCode\\": 200,\\n \\"success\\": true,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": \\"{ \\\\\\"jobs\\\\\\": [ { \\\\\\"jid\\\\\\": \\\\\\"4df35f8e54554b23bf7dcd38a151****\\\\\\", \\\\\\"name\\\\\\": \\\\\\"69d001d5-419a-4bfc-9c2e-849cacd3****\\\\\\", \\\\\\"state\\\\\\": \\\\\\"RUNNING\\\\\\", \\\\\\"start-time\\\\\\": 1659154942068, \\\\\\"end-time\\\\\\": -1, \\\\\\"duration\\\\\\": 188161756, \\\\\\"last-modification\\\\\\": 1659154968305, \\\\\\"tasks\\\\\\": { \\\\\\"total\\\\\\": 2, \\\\\\"created\\\\\\": 0, \\\\\\"scheduled\\\\\\": 0, \\\\\\"deploying\\\\\\": 0, \\\\\\"running\\\\\\": 2, \\\\\\"finished\\\\\\": 0, \\\\\\"canceling\\\\\\": 0, \\\\\\"canceled\\\\\\": 0, \\\\\\"failed\\\\\\": 0, \\\\\\"reconciling\\\\\\": 0, \\\\\\"initializing\\\\\\": 0 } } ] }\\"\\n}","errorExample":""},{"type":"xml","example":"<FlinkApiProxyResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <httpCode>200</httpCode>\\n <success>true</success>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>{ \\"jobs\\": [ { \\"jid\\": \\"4df35f8e54554b23bf7dcd38a151****\\", \\"name\\": \\"69d001d5-419a-4bfc-9c2e-849cacd3****\\", \\"state\\": \\"RUNNING\\", \\"start-time\\": 1659154942068, \\"end-time\\": -1, \\"duration\\": 188161756, \\"last-modification\\": 1659154968305, \\"tasks\\": { \\"total\\": 2, \\"created\\": 0, \\"scheduled\\": 0, \\"deploying\\": 0, \\"running\\": 2, \\"finished\\": 0, \\"canceling\\": 0, \\"canceled\\": 0, \\"failed\\": 0, \\"reconciling\\": 0, \\"initializing\\": 0 } } ] }</data>\\n</FlinkApiProxyResponse>","errorExample":""}]', + ], + 'GenerateResourcePlanWithFlinkConfAsync' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/resource-plan:asyncGenerate', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '230263', - 'abilityTreeNodes' => [ - 'FEATUREsc53OKIK', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '151658', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'catalogName', + 'name' => 'deploymentId', 'in' => 'path', - 'schema' => [ - 'description' => 'catalog名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'paimon', - ], + 'schema' => ['title' => 'deploymentId信息,deployment唯一标识。', 'description' => 'deploymentId,deployment的唯一标识。', 'type' => 'string', 'required' => true, 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****'], ], [ - 'name' => 'databaseName', - 'in' => 'query', - 'schema' => [ - 'description' => 'database名称,为空时返回所有database信息。', - 'type' => 'string', - 'required' => false, - 'example' => 'paimon-ods', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '生成resource plan需要的Flink configuration。', 'required' => false, '$ref' => '#/components/schemas/FlinkConf'], ], ], 'responses' => [ @@ -7189,140 +4218,83 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的database列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => 'Database信息详情。', - '$ref' => '#/components/schemas/Database', + 'description' => '- 当success为true,返回异步操作结果信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', + 'type' => 'object', + 'properties' => [ + 'ticketId' => ['title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', 'description' => '回执ID,用于查询异步操作结果。', 'type' => 'string', 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****'], ], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"comment\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取Database信息', - ], - 'GetTables' => [ - 'summary' => '获取指定catalog的database下某张表的具体详情或者database下所有表的信息', - 'path' => '/api/v2/namespaces/{namespace}/catalogs/{catalogName}/databases/{databaseName}/tables', - 'methods' => [ - 'get', + 'title' => '异步生成细粒度资源', + 'summary' => '提交异步生成resource plan工单,返回一个异步工单ID用于查询工单结果。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateResourcePlanWithFlinkConfAsync'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GenerateResourcePlanWithFlinkConfAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GenerateResourcePlanWithFlinkConfAsyncResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <ticketId>b3dcdb25-bf36-457d-92ba-a36077e8****</ticketId>\\n </data>\\n</GenerateResourcePlanWithFlinkConfAsyncResponse>","errorExample":""}]', + ], + 'GetAppliedScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans:getExecutedScheduledPlan', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '230264', - 'abilityTreeNodes' => [ - 'FEATUREsc53OKIK', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '235226', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'u-gs3rgla9-default', - ], - ], - [ - 'name' => 'catalogName', - 'in' => 'path', - 'schema' => [ - 'description' => 'catalog名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'paimon', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'databaseName', - 'in' => 'path', - 'schema' => [ - 'description' => 'database名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'paimon-ods', - ], - ], - [ - 'name' => 'tableName', + 'name' => 'deploymentId', 'in' => 'query', - 'schema' => [ - 'description' => '表名,表名为空返回所有表信息。', - 'type' => 'string', - 'required' => false, - 'example' => 'item', - ], + 'schema' => ['title' => 'deployment名称。', 'description' => '已部署作业ID。', 'type' => 'string', 'required' => true, 'example' => '5737ef81-d2f1-49cf-8752-30910809****'], ], ], 'responses' => [ @@ -7332,120 +4304,72 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'ECE641B2-AB0B-4174-9C3B-885881558637', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的表的列表和详情;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '表信息。', - '$ref' => '#/components/schemas/Table', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表应用的定时计划。', '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取应用的定时计划', + 'summary' => '获取应用的执行计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAppliedScheduledPlan'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ECE641B2-AB0B-4174-9C3B-885881558637\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"schema\\": {\\n \\"columns\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"metadataInfo\\": {\\n \\"key\\": \\"\\",\\n \\"virtual\\": true\\n },\\n \\"expression\\": \\"\\",\\n \\"type\\": \\"\\",\\n \\"nullable\\": true,\\n \\"logicalType\\": \\"\\"\\n }\\n ],\\n \\"watermarkSpecs\\": [\\n {\\n \\"column\\": \\"\\",\\n \\"watermarkExpression\\": \\"\\",\\n \\"watermarkType\\": \\"\\"\\n }\\n ],\\n \\"primaryKey\\": {\\n \\"constraintName\\": \\"\\",\\n \\"columns\\": [\\n \\"\\"\\n ],\\n \\"constraintType\\": \\"\\",\\n \\"enforced\\": true\\n }\\n },\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"comment\\": \\"\\",\\n \\"partitionKeys\\": [\\n \\"\\"\\n ],\\n \\"tableType\\": \\"\\",\\n \\"metadata\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取表信息', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetAppliedScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', ], 'GetCatalogs' => [ - 'summary' => '获取指定或全部catalog详情GetCatalogs', 'path' => '/api/v2/namespaces/{namespace}/catalogs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'abilityTreeCode' => '230262', - 'abilityTreeNodes' => [ - 'FEATUREsc53OKIK', - ], + 'abilityTreeNodes' => ['FEATUREsc53OKIK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'catalogName', 'in' => 'query', - 'schema' => [ - 'description' => 'catalog名称,为空时,列表所有catalog。', - 'type' => 'string', - 'required' => false, - 'example' => 'paimon', - ], + 'schema' => ['description' => 'catalog名称,为空时,列表所有catalog。', 'type' => 'string', 'required' => false, 'example' => 'paimon'], ], ], 'responses' => [ @@ -7455,119 +4379,86 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', 'description' => '当success为true,返回满足条件的catalog列表;当success为false,该值为空。', 'type' => 'array', - 'items' => [ - 'description' => 'catalog信息详情。', - '$ref' => '#/components/schemas/Catalog', - ], + 'items' => ['description' => 'catalog信息详情。', '$ref' => '#/components/schemas/Catalog'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"extensionConf\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '获取Catalog信息', - ], - 'ExecuteSqlStatement' => [ - 'summary' => '您可以通过本API完成元数据相关SQL的运行,仅支持DDL和DML,不支持DQL。', - 'path' => '/api/v2/namespaces/{namespace}/sql-statement/execute', - 'methods' => [ - 'post', + 'summary' => '获取指定或全部catalog详情GetCatalogs', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCatalogs'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetCatalogs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"paimon-test\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"extensionConf\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetDatabases' => [ + 'path' => '/api/v2/namespaces/{namespace}/catalogs/{catalogName}/databases', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '230265', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '230263', + 'abilityTreeNodes' => ['FEATUREsc53OKIK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8c34d', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '元数据相关SQL语句。', - 'required' => false, - '$ref' => '#/components/schemas/SqlStatementWithContext', - ], + 'name' => 'catalogName', + 'in' => 'path', + 'schema' => ['description' => 'catalog名称。', 'type' => 'string', 'required' => true, 'example' => 'paimon'], + ], + [ + 'name' => 'databaseName', + 'in' => 'query', + 'schema' => ['description' => 'database名称,为空时返回所有database信息。', 'type' => 'string', 'required' => false, 'example' => 'paimon-ods'], ], ], 'responses' => [ @@ -7577,145 +4468,81 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '元数据SQL执行结果。', - '$ref' => '#/components/schemas/SqlStatementExecuteResult', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的database列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => 'Database信息详情。', '$ref' => '#/components/schemas/Database'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"executeSuccess\\": true,\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"\\",\\n \\"columnNumber\\": \\"\\",\\n \\"endLineNumber\\": \\"\\",\\n \\"endColumnNumber\\": \\"\\",\\n \\"message\\": \\"\\",\\n \\"invalidflinkConf\\": [\\n \\"\\"\\n ]\\n },\\n \\"statement\\": \\"\\"\\n }\\n}","type":"json"}]', - 'title' => '执行元数据SQL语句', - ], - 'CreateSavepoint' => [ - 'summary' => '创建快照。', - 'path' => '/api/v2/namespaces/{namespace}/savepoints', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取Database信息', + 'summary' => '获取指定Catalog下DataBase的信息或列出所有DataBase的信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDatabases'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDatabases', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"database-test\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"comment\\": \\"测试数据库。\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetDeployDeploymentDraftResult' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/tickets/{ticketId}/async-deploy', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '146960', - 'abilityTreeNodes' => [ - 'FEATUREscUX40QK', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '223190', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'style' => 'json', - 'schema' => [ - 'title' => '触发savepoint参数。', - 'description' => '触发savepoint参数。', - 'type' => 'object', - 'properties' => [ - 'deploymentId' => [ - 'title' => '作业ID。', - 'description' => '作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], - 'description' => [ - 'title' => 'savepoint描述信息。', - 'description' => 'savepoint描述信息。', - 'type' => 'string', - 'required' => false, - 'example' => '作业快照描述', - ], - 'nativeFormat' => [ - 'title' => '是否使用nativeFormat模式。', - 'description' => '是否使用nativeFormat模式:'."\n" - ."\n" - .'- true:使用'."\n" - ."\n" - .'- false:不使用', - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - ], - 'required' => false, - ], + 'name' => 'ticketId', + 'in' => 'path', + 'schema' => ['title' => '异步工单ID,可以通过提交异步操作获取。', 'description' => '异步工单ID,可以通过提交异步操作获取。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], ], 'responses' => [ @@ -7725,118 +4552,77 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回触发成功的savepoint信息;当success为false,该值为空。', - 'description' => '- 当success为true,返回触发成功的savepoint信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Savepoint', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '作业草稿部署结果。', '$ref' => '#/components/schemas/AsyncDraftDeployResult'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</CreateSavepointResponse>","errorExample":""}]', - 'title' => '创建快照', - ], - 'GetSavepoint' => [ - 'summary' => '获取快照和系统检查点的详细信息。', - 'path' => '/api/v2/namespaces/{namespace}/savepoints/{savepointId}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取作业草稿部署结果', + 'summary' => '根据作业草稿部署异步工单的ID信息,查看部署的结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployDeploymentDraftResult'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetDeployDeploymentDraftResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"FINISHED\\",\\n \\"artifactValidationDetail\\": {\\n \\"validationResult\\": \\"\\\\\\"there have some errors\\\\\\"\\\\\\"\\",\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"3\\",\\n \\"columnNumber\\": \\"10\\",\\n \\"endLineNumber\\": \\"4\\",\\n \\"endColumnNumber\\": \\"5\\",\\n \\"message\\": \\"“”\\"\\n }\\n },\\n \\"deploymentId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"message\\": \\"\\\\\\"Validation error: SQL validate failed\\\\\\"\\"\\n }\\n}","type":"json"}]', + ], + 'GetDeployment' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '146997', - 'abilityTreeNodes' => [ - 'FEATUREscUX40QK', - ], + 'abilityTreeCode' => '146286', + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'savepointId', + 'name' => 'deploymentId', 'in' => 'path', - 'schema' => [ - 'title' => 'Savepoint ID。', - 'description' => 'Savepoint ID。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', - ], + 'schema' => ['title' => '作业ID。', 'description' => '作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], ], ], 'responses' => [ @@ -7846,440 +4632,273 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => 'Savepoint信息。', - 'description' => '- 当success为true,返回快照信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Savepoint', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回根据ID查询的作业;当success为false,该值为空。', 'description' => '- 当success为true,返回查询的作业信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode> </errorCode>\\n <errorMessage> </errorMessage>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</GetSavepointResponse>","errorExample":""}]', - 'title' => '获取快照和系统检查点', - ], - 'DeleteSavepoint' => [ - 'summary' => '删除快照。', - 'path' => '/api/v2/namespaces/{namespace}/savepoints/{savepointId}', - 'methods' => [ - 'delete', + 'title' => '获取已部署作业', + 'summary' => '获取已部署作业的详细信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployment'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>SQLSCRIPT</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</GetDeploymentResponse>","errorExample":""}]', + ], + 'GetDeploymentDraft' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '147041', - 'abilityTreeNodes' => [ - 'FEATUREscUX40QK', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '223184', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'savepointId', + 'name' => 'deploymentDraftId', 'in' => 'path', - 'schema' => [ - 'title' => '需要删除的savepoint ID。', - 'description' => '需要删除的Savepoint ID。', - 'type' => 'string', - 'required' => true, - 'example' => '907a8f0e-4f6c-412b-8a5e-7d4a065b****', - ], + 'schema' => ['description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', 'type' => 'string', 'required' => true, 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n"], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '作业草稿信息。', '$ref' => '#/components/schemas/DeploymentDraft'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteSavepointResponse>","errorExample":""}]', - 'title' => '删除快照', - 'extraInfo' => '补充。', - ], - 'ListSavepoints' => [ - 'summary' => '获取作业快照及最近系统检查点列表。', - 'path' => '/api/v2/namespaces/{namespace}/savepoints', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取作业草稿详情', + 'summary' => '获取SQL、数据摄入作业草稿详情。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeploymentDraft'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"stt-fu1658tbk6mnkk2****\\",\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"holderId\\": \\"18389966****\\",\\n \\"holderName\\": \\"userA\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', + ], + 'GetDeploymentDraftLock' => [ + 'summary' => '当您调用API编辑、检查、部署作业草稿时,为避免页面操作和API操作互相影响,您需要先获取作业草稿锁。拥有【开发SQL/YAML作业(创建、编辑)】或【解锁SQL/YAML作业草稿】任一权限即可获取锁。', + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/getLock', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '147013', - 'abilityTreeNodes' => [ - 'FEATUREscUX40QK', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '223187', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'deploymentId', - 'in' => 'query', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '作业ID,非必填。', - 'type' => 'string', - 'required' => false, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', - ], - ], - [ - 'name' => 'jobId', - 'in' => 'query', - 'schema' => [ - 'title' => '实例ID。', - 'description' => '实例ID,非必填。', - 'type' => 'string', - 'required' => false, - 'example' => '99a8fc49-e090-430a-85d8-3ee8c79c****', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], - ], - [ - 'name' => 'pageIndex', + 'name' => 'deploymentDraftId', 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', 'type' => 'string', 'required' => true, 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'."\n"], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'data' => [ - 'title' => '当success为true,返回满足查询条件的savepoint列表;当success为false,该值为空。', - 'description' => '- 当success为true,返回满足查询条件的快照列表;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'array', - 'items' => [ - 'title' => 'savepoint数据。', - 'description' => '快照数据。', - '$ref' => '#/components/schemas/Savepoint', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '编辑锁数据结构信息。', '$ref' => '#/components/schemas/Lock'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListSavepointsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>100</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>500</totalSize>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</ListSavepointsResponse>","errorExample":""}]', - 'title' => '获取作业快照及系统检查点列表', - ], - 'GetDeploymentsByName' => [ - 'summary' => '本接口用于通过已部署作业名称搜索并获取指定工作空间和项目空间下匹配的已部署作业实例', - 'path' => '/api/v2/namespaces/{namespace}/deployments/name/{deploymentName}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取作业草稿锁', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeploymentDraftLock'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentDraftLock', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"id\\": \\"stt-fu1658tbk6mnkk2****\\",\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"holderId\\": \\"18389966****\\",\\n \\"holderName\\": \\"userA\\"\\n }\\n}","type":"json"}]', + ], + 'GetDeploymentsByIp' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/getDeployments/byIp', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentName', - 'in' => 'path', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '已部署作业名称', - 'type' => 'string', - 'required' => true, - 'example' => 'test', - ], + 'name' => 'srcIp', + 'in' => 'query', + 'schema' => ['description' => '源 IP 地址,用于匹配作业的输入源地址', 'type' => 'string', 'required' => false, 'example' => '192.168.1.100'], + ], + [ + 'name' => 'srcPort', + 'in' => 'query', + 'schema' => ['description' => '源端口,配合 srcIp 使用,精确匹配连接', 'type' => 'string', 'required' => false, 'example' => '54321'], + ], + [ + 'name' => 'dstIp', + 'in' => 'query', + 'schema' => ['description' => '目标 IP 地址,用于匹配作业的目标写入地址', 'type' => 'string', 'required' => false, 'example' => '10.100.2.200'], + ], + [ + 'name' => 'dstPort', + 'in' => 'query', + 'schema' => ['description' => '目标端口,配合 dstIp 使用', 'type' => 'string', 'required' => false, 'example' => '9092'], ], [ 'name' => 'ignoreJobSummary', 'in' => 'query', 'schema' => [ - 'description' => '是否忽略返回结果中的作业摘要信息(如 jobName、status),仅返回 JobId,用于提升性能', + 'description' => '是否忽略返回结果中的作业摘要信息,仅返回Deployment部署作业信息,用于提升性能', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [], - 'example' => 'true', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'example' => 'false', ], ], [ 'name' => 'ignoreResourceSetting', 'in' => 'query', 'schema' => [ - 'description' => '是否忽略资源配置信息(如 parallelism、CU 数量),减少返回数据体积', + 'description' => '是否忽略资源配置信息,减少返回数据体积', 'type' => 'boolean', 'required' => false, - 'example' => 'true', + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], + 'example' => 'false', ], ], ], @@ -8290,128 +4909,90 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], 'data' => [ 'description' => '响应数据。', 'type' => 'array', - 'items' => [ - 'description' => '本数据结构代表已部署作业生成的实例详情。', - '$ref' => '#/components/schemas/Deployment', - ], + 'items' => ['description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '通过IP搜索已部署作业', + 'summary' => '本接口支持通过指定IP查询该节点上已部署作业列表以及作业信息。', + 'description' => '本接口用于通过网络连接中的 源 IP 与端口或 目标 IP 与端口 查询关联的 Flink 已部署作业。', + 'requestParamsDescription' => '- 至少需要填写 srcIp、dstIp 中的一个'."\n" + .'- 端口为可选,用于进一步缩小范围精确搜索定位作业,如需精准定位建议通过 srcIp + srcPort 组合查询'."\n" + .'- 支持组合查询,例如:'."\n" + .'只填 dstIp=10.100.2.200 → 查找所有写往该 IP 的作业'."\n" + .'同时填 srcIp 和 dstIp → 查找两点之间的数据链路作业'."\n" + ."\n" + .'- 建议生产环境调用时设置 ignoreJobSummary=true 或 ignoreResourceSetting=true 以降低响应延迟', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '通过名称搜索已部署作业', - 'responseParamsDescription' => '由于 deploymentName 是用户自定义的逻辑标识,不保证唯一性,该接口将返回所有名称匹配的部署记录列表,按创建时间倒序排列,便于查看最新部署或对比历史版本。', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByIp', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', ], 'GetDeploymentsByLabel' => [ 'summary' => '本接口支持通过指定标签查询关联的已部署作业列表以及作业信息', 'path' => '/api/v2/namespaces/{namespace}/deployments/getDeployments/byLabel', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'labelKey', 'in' => 'query', - 'schema' => [ - 'description' => '标签名,用于标签过滤,', - 'type' => 'string', - 'required' => true, - 'example' => 'key', - ], + 'schema' => ['description' => '标签名,用于标签过滤,', 'type' => 'string', 'required' => true, 'example' => 'key'], ], [ 'name' => 'labelValue', 'in' => 'query', - 'schema' => [ - 'description' => '标签值,支持多个值用 英文逗号 , 分隔,表示“或”关系', - 'type' => 'string', - 'required' => true, - 'example' => 'value', - ], + 'schema' => ['description' => '标签值,支持多个值用 英文逗号 , 分隔,表示“或”关系', 'type' => 'string', 'required' => true, 'example' => 'value'], ], [ 'name' => 'ignoreJobSummary', @@ -8420,10 +5001,7 @@ 'description' => '是否忽略返回结果中的作业摘要信息(如 jobName、status),仅返回 JobId,用于提升性能', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'true', ], ], @@ -8434,10 +5012,7 @@ 'description' => '是否忽略资源配置信息(如 parallelism、CU 数量),减少返回数据体积', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], + 'enumValueTitles' => ['true' => 'true', 'false' => 'false'], 'example' => 'true', ], ], @@ -8449,180 +5024,95 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], 'data' => [ 'description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', 'type' => 'array', - 'items' => [ - 'description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', - 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"', - '$ref' => '#/components/schemas/Deployment', - ], + 'items' => ['description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '通过标签搜索已部署作业', 'description' => '本接口用于通过指定作业标签查询被打标关联的已部署作业列表及其详细信息。支持按 labelKey 和 labelValue 精确匹配。', 'requestParamsDescription' => '1. llabelKey 和 labelValue 组成一个键值对,用于筛选打上该标签的部署作业。'."\n" .'2. 建议在大数据量场景下启用 ignoreJobSummary 或 ignoreResourceSetting 以降低系统负载。'."\n" .'3. 目前仅支持单个标签键值对查询,不支持多标签逻辑组合(AND/OR)', - ], - 'GetDeploymentsByIp' => [ - 'summary' => '本接口支持通过指定IP查询该节点上已部署作业列表以及作业信息。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/getDeployments/byIp', - 'methods' => [ - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByLabel', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetDeploymentsByName' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/name/{deploymentName}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'srcIp', - 'in' => 'query', - 'schema' => [ - 'description' => '源 IP 地址,用于匹配作业的输入源地址', - 'type' => 'string', - 'required' => false, - 'example' => '192.168.1.100', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'srcPort', - 'in' => 'query', - 'schema' => [ - 'description' => '源端口,配合 srcIp 使用,精确匹配连接', - 'type' => 'string', - 'required' => false, - 'example' => '54321', - ], - ], - [ - 'name' => 'dstIp', - 'in' => 'query', - 'schema' => [ - 'description' => '目标 IP 地址,用于匹配作业的目标写入地址', - 'type' => 'string', - 'required' => false, - 'example' => '10.100.2.200', - ], - ], - [ - 'name' => 'dstPort', - 'in' => 'query', - 'schema' => [ - 'description' => '目标端口,配合 dstIp 使用', - 'type' => 'string', - 'required' => false, - 'example' => '9092', - ], + 'name' => 'deploymentName', + 'in' => 'path', + 'schema' => ['title' => '作业ID。', 'description' => '已部署作业名称', 'type' => 'string', 'required' => true, 'example' => 'test'], ], [ 'name' => 'ignoreJobSummary', 'in' => 'query', 'schema' => [ - 'description' => '是否忽略返回结果中的作业摘要信息,仅返回Deployment部署作业信息,用于提升性能', + 'description' => '是否忽略返回结果中的作业摘要信息(如 jobName、status),仅返回 JobId,用于提升性能', 'type' => 'boolean', 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], - 'example' => 'false', + 'enumValueTitles' => [], + 'example' => 'true', ], ], [ 'name' => 'ignoreResourceSetting', 'in' => 'query', - 'schema' => [ - 'description' => '是否忽略资源配置信息,减少返回数据体积', - 'type' => 'boolean', - 'required' => false, - 'enumValueTitles' => [ - 'true' => 'true', - 'false' => 'false', - ], - 'example' => 'false', - ], + 'schema' => ['description' => '是否忽略资源配置信息(如 parallelism、CU 数量),减少返回数据体积', 'type' => 'boolean', 'required' => false, 'example' => 'true'], ], ], 'responses' => [ @@ -8632,378 +5122,268 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], 'data' => [ 'description' => '响应数据。', 'type' => 'array', - 'items' => [ - 'description' => '本数据结构用来描述一个完整的已部署作业的数据结构。', - 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"', - '$ref' => '#/components/schemas/Deployment', - ], + 'items' => ['description' => '本数据结构代表已部署作业生成的实例详情。', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '通过IP搜索已部署作业', - 'description' => '本接口用于通过网络连接中的 源 IP 与端口或 目标 IP 与端口 查询关联的 Flink 已部署作业。', - 'requestParamsDescription' => '- 至少需要填写 srcIp、dstIp 中的一个'."\n" - .'- 端口为可选,用于进一步缩小范围精确搜索定位作业,如需精准定位建议通过 srcIp + srcPort 组合查询'."\n" - .'- 支持组合查询,例如:'."\n" - .'只填 dstIp=10.100.2.200 → 查找所有写往该 IP 的作业'."\n" - .'同时填 srcIp 和 dstIp → 查找两点之间的数据链路作业'."\n" - ."\n" - .'- 建议生产环境调用时设置 ignoreJobSummary=true 或 ignoreResourceSetting=true 以降低响应延迟', - ], - 'CreateDeployment' => [ - 'summary' => '创建一个已部署作业。', - 'path' => '/api/v2/namespaces/{namespace}/deployments', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '通过名称搜索已部署作业', + 'summary' => '本接口用于通过已部署作业名称搜索并获取指定工作空间和项目空间下匹配的已部署作业实例', + 'responseParamsDescription' => '由于 deploymentName 是用户自定义的逻辑标识,不保证唯一性,该接口将返回所有名称匹配的部署记录列表,按创建时间倒序排列,便于查看最新部署或对比历史版本。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetEvents' => [ + 'path' => '/api/v2/namespaces/{namespace}/events', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '146090', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '235188', + 'abilityTreeNodes' => ['FEATUREscW7NIYA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'title' => 'Deployment内容。', - 'description' => 'Deployment内容。', - 'required' => true, - '$ref' => '#/components/schemas/Deployment', - ], + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'deploymentId', + 'in' => 'query', + 'schema' => ['title' => 'deployment名称。', 'description' => '已部署作业ID。', 'type' => 'string', 'required' => false, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], + ], + [ + 'name' => 'deploymentName', + 'in' => 'query', + 'schema' => ['type' => 'string'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'title' => '响应数据。', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], 'data' => [ - 'title' => '响应数据。', - 'description' => '- 当success为true,返回创建的作业信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Deployment', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '本数据结构用来代表已部署作业的运行事件。', '$ref' => '#/components/schemas/Event'], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</CreateDeploymentResponse>","errorExample":""}]', - 'title' => '创建已部署作业', - ], - 'UpdateDeployment' => [ - 'summary' => '更新已部署作业的信息。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', - 'methods' => [ - 'put', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取运行事件', + 'summary' => '获取运行事件', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetEvents'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetEvents', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 4,\\n \\"data\\": [\\n {\\n \\"eventId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"eventName\\": \\"STATE_TRANSITION_IS_COMPLETED\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000680003\\",\\n \\"jobId\\": \\"00000000-0000-0000-0000-000000005043\\",\\n \\"message\\": \\"\\",\\n \\"createdAt\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetFolder' => [ + 'path' => '/api/v2/namespaces/{namespace}/folder', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '146804', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '223029', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentId', - 'in' => 'path', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], + 'name' => 'folderId', + 'in' => 'query', + 'schema' => ['description' => '文件夹ID,为空返回根文件夹。', 'type' => 'string', 'required' => false, 'example' => '89097'], ], [ - 'name' => 'body', - 'in' => 'body', + 'name' => 'rootType', + 'in' => 'query', 'schema' => [ - 'title' => '需要更新的作业内容。', - 'description' => '需要更新的作业内容。', - 'required' => true, - '$ref' => '#/components/schemas/Deployment', + 'type' => 'string', + 'example' => 'DEVELOPMENT', + 'enum' => ['DEVELOPMENT', 'SQL_FILE'], ], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回更新后的作业内容;当success为false,该值为空。', - 'description' => '- 当success为true,返回更新后的作业信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Deployment', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '文件夹信息数据结构。', '$ref' => '#/components/schemas/Folder'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<UpdateDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</UpdateDeploymentResponse>","errorExample":""}]', - 'title' => '更新已部署作业', - ], - 'GetDeployment' => [ - 'summary' => '获取已部署作业的详细信息。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取文件夹信息', + 'summary' => '获取文件夹的具体信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFolder'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', + ], + 'GetGenerateResourcePlanResult' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/tickets/{ticketId}/resource-plan:asyncGenerate', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', - 'abilityTreeCode' => '146286', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'abilityTreeCode' => '147081', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentId', + 'name' => 'ticketId', 'in' => 'path', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], + 'schema' => ['title' => '异步工单ID,可以通过提交异步操作获取。', 'description' => '回执ID,调用GenerateResourcePlanWithFlinkConfAsync API获取。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], ], 'responses' => [ @@ -9013,233 +5393,159 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回根据ID查询的作业;当success为false,该值为空。', - 'description' => '- 当success为true,返回查询的作业信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Deployment', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '异步操作结果。', 'description' => '- 当success为true,返回异步操作结果;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/AsyncResourcePlanOperationResult'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>SQLSCRIPT</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</GetDeploymentResponse>","errorExample":""}]', - 'title' => '获取已部署作业', - ], - 'ListDeployments' => [ - 'summary' => '获取所有已部署作业的信息。', - 'path' => '/api/v2/namespaces/{namespace}/deployments', - 'methods' => [ - 'get', + 'title' => '获取异步生成细粒度资源结果', + 'summary' => '根据异步工单ID获取异步生成细粒度资源结果。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetGenerateResourcePlanResult'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetGenerateResourcePlanResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"FINISHED\\",\\n \\"plan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\",\\n \\"message\\": \\"\\\\\\"create resource plan failed\\\\\\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetGenerateResourcePlanResultResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <ticketStatus>FINISHED</ticketStatus>\\n <plan>{\\\\\\"ssgProfiles\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"default\\\\\\",\\\\\\"cpu\\\\\\":1.13,\\\\\\"heap\\\\\\":\\\\\\"1 gb\\\\\\",\\\\\\"offHeap\\\\\\":\\\\\\"32 mb\\\\\\",\\\\\\"managed\\\\\\":{},\\\\\\"extended\\\\\\":{}}],\\\\\\"nodes\\\\\\":[{\\\\\\"id\\\\\\":1,\\\\\\"type\\\\\\":\\\\\\"StreamExecTableSourceScan\\\\\\",\\\\\\"desc\\\\\\":\\\\\\"Source: datagen_source[78]\\\\\\",\\\\\\"profile\\\\\\":{\\\\\\"group\\\\\\":\\\\\\"default\\\\\\",\\\\\\"parallelism\\\\\\":1,\\\\\\"maxParallelism\\\\\\":32768,\\\\\\"minParallelism\\\\\\":1}},{\\\\\\"id\\\\\\":2,\\\\\\"type\\\\\\":\\\\\\"StreamExecSink\\\\\\",\\\\\\"desc\\\\\\":\\\\\\"Sink: blackhole_sink[79]\\\\\\",\\\\\\"profile\\\\\\":{\\\\\\"group\\\\\\":\\\\\\"default\\\\\\",\\\\\\"parallelism\\\\\\":1,\\\\\\"maxParallelism\\\\\\":32768,\\\\\\"minParallelism\\\\\\":1}}],\\\\\\"edges\\\\\\":[{\\\\\\"source\\\\\\":1,\\\\\\"target\\\\\\":2,\\\\\\"mode\\\\\\":\\\\\\"PIPELINED\\\\\\",\\\\\\"strategy\\\\\\":\\\\\\"FORWARD\\\\\\"}],\\\\\\"vertices\\\\\\":{\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\":[1,2]}}</plan>\\n <message>\\"\\"</message>\\n </data>\\n</GetGenerateResourcePlanResultResponse>","errorExample":""}]', + ], + 'GetHotUpdateJobResult' => [ + 'summary' => '对作业进行动态更新时,可通过本API获取作业动态更新的结果', + 'path' => '/api/v2/namespaces/{namespace}/jobs/hot-updates/{jobHotUpdateId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '146799', - 'abilityTreeNodes' => [ - 'FEATUREscB9XR98', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '229982', + 'abilityTreeNodes' => ['FEATUREscU5EGD9'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], - ], - [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], - ], - [ - 'name' => 'name', - 'in' => 'query', - 'schema' => [ - 'title' => 'deployment名称。', - 'description' => 'deployment名称。', - 'type' => 'string', - 'required' => false, - 'example' => 'vvp_ds_0522', - ], + 'name' => 'jobHotUpdateId', + 'in' => 'path', + 'schema' => ['description' => '动态更新ID。调用HotUpdateJob后可获取本ID信息。', 'type' => 'string', 'required' => true, 'example' => '123hashd****'], ], - [ - 'name' => 'executionMode', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => 'deployment执行模式。', - 'description' => 'deployment执行模式。', - 'type' => 'string', - 'required' => false, - 'example' => 'STREAMING', - 'enum' => [ - 'BATCH', - 'STREAMING', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回获取结果;当success为false,该值为空。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '动态更新结果信息。', '$ref' => '#/components/schemas/HotUpdateJobResult'], ], ], ], - [ - 'name' => 'status', - 'in' => 'query', - 'schema' => [ - 'description' => 'deployment最新作业状态。', - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'CANCELLED' => 'CANCELLED', - 'FAILED' => 'FAILED', - 'RUNNING' => 'RUNNING', - 'TRANSITIONING' => 'TRANSITIONING', - 'FINISHED' => 'FINISHED', - ], - 'example' => 'RUNNING', - ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取作业动态更新结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetHotUpdateJobResult'], ], + ], + 'ramActions' => [ [ - 'name' => 'creator', - 'in' => 'query', - 'schema' => [ - 'description' => '创建者UID。', - 'type' => 'string', - 'required' => false, - 'example' => '183899668*******', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetHotUpdateJobResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobHotUpdateId\\": \\"123hashd****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"targetResourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n },\\n \\"hotUpdateParams\\": {\\n \\"rescaleJobParam\\": {\\n \\"jobParallelism\\": 10\\n },\\n \\"updateJobConfigParam\\": {\\n \\"newFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"status\\": \\"HOT_UPDATED\\",\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"failure\\": {\\n \\"reason\\": \\"“”\\",\\n \\"message\\": \\"“”\\",\\n \\"failureSeverity\\": \\"LOW\\"\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'GetJob' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'modifier', - 'in' => 'query', - 'schema' => [ - 'description' => '修改者UID。', - 'type' => 'string', - 'required' => false, - 'example' => '183899668*******', - ], + 'AK' => [], ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '146921', + 'abilityTreeNodes' => ['FEATUREscU5EGD9'], + ], + 'parameters' => [ [ - 'name' => 'labelKey', - 'in' => 'query', - 'schema' => [ - 'description' => '标签名。', - 'type' => 'string', - 'required' => false, - 'example' => 'key', - ], + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ - 'name' => 'labelValueArray', - 'in' => 'query', - 'schema' => [ - 'description' => '标签值,多个值使用分号隔开。', - 'type' => 'string', - 'required' => false, - 'example' => 'value1,value2', - ], + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'sortName', - 'in' => 'query', - 'schema' => [ - 'description' => '排序方式,支持按创建时间和修改时间倒序返回数据。', - 'type' => 'string', - 'required' => false, - 'example' => 'gmt_create', - 'enum' => [ - 'gmt_create', - 'gmt_modified', - ], - ], + 'name' => 'jobId', + 'in' => 'path', + 'schema' => ['title' => '实例ID。', 'description' => '作业实例ID。', 'type' => 'string', 'required' => true, 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****'], ], ], 'responses' => [ @@ -9249,292 +5555,162 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,表示所请求页码元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '- 当success为true,返回满足查询条件的作业列表;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'array', - 'items' => [ - 'title' => '作业数据。', - 'description' => '作业数据。', - '$ref' => '#/components/schemas/Deployment', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回查询的实例;当success为false,该值为空。', 'description' => '- 当success为true,返回查询的实例信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Job'], + 'accessDeniedDetail' => ['type' => 'string'], ], ], ], ], - 'eventInfo' => [ - 'enable' => false, - 'eventNames' => [], - ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 1,\\n \\"cancelling\\": 1,\\n \\"cancelled\\": 1,\\n \\"finished\\": 1,\\n \\"failed\\": 1\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"\\",\\n \\"name\\": \\"\\"\\n },\\n \\"executionMode\\": \\"STREAMING | BATCH\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListDeploymentsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageIndex>10</pageIndex>\\n <pageSize>1</pageSize>\\n <totalSize>1</totalSize>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</ListDeploymentsResponse>","errorExample":""}]', - 'title' => '获取已部署作业列表', - ], - 'DeleteDeployment' => [ - 'summary' => '根据已部署作业ID删除已部署作业。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', - 'methods' => [ - 'delete', + 'title' => '获取作业实例', + 'summary' => '获取作业实例的详细信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJob'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"failure\\": {\\n \\"message\\": \\"Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.\\",\\n \\"reason\\": \\"KubernetesDeploymentNotProgressing\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"healthScore\\": 0,\\n \\"riskLevel\\": \\"\\"\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"null\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\",\\n \\"table.exec.state.ttl\\": \\"128000s\\"\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\",\\n \\"modifiedAt\\": \\"1714058800\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<GetJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <sessionClusterName>preview</sessionClusterName>\\n <artifact>\\n <sqlArtifact>\\n <sqlScript>CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;</sqlScript>\\n </sqlArtifact>\\n <kind>SQLSCRIPT</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</GetJobResponse>","errorExample":""}]', + ], + 'GetJobDiagnosis' => [ + 'summary' => '智能诊断作业,获取异常诊断项信息', + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/jobs/{jobId}/job-diagnoses/lite', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '146802', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '249132', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentId', 'in' => 'path', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '5737ef81-d2f1-49cf-8752-30910809****', - ], + 'schema' => ['description' => '已部署作业ID。', 'type' => 'string', 'required' => true, 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****'], + ], + [ + 'name' => 'jobId', + 'in' => 'path', + 'schema' => ['description' => '作业实例ID。', 'type' => 'string', 'required' => true, 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '诊断结果。', 'example' => 'As shown in the response example.', '$ref' => '#/components/schemas/JobDiagnosis'], + 'accessDeniedDetail' => ['description' => '异常诊断项详情。', 'type' => 'string', 'example' => '“”'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteDeploymentResponse>","errorExample":""}]', - 'title' => '删除已部署作业', - ], - 'GetEvents' => [ - 'summary' => '获取运行事件', - 'path' => '/api/v2/namespaces/{namespace}/events', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取作业诊断详情', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJobDiagnosis'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetJobDiagnosis', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"diagnoseId\\": \\"ba30cd99-37a5-4a20-8cd9-ed4b*****\\",\\n \\"diagnoseTime\\": 1740389560871,\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace-*****\\",\\n \\"riskLevel\\": \\"RISK_LEVEL_LOW\\",\\n \\"symptoms\\": {\\n \\"autopilot\\": {\\n \\"name\\": \\"启动速度分析\\",\\n \\"description\\": \\"JM资源配置过低导致作业启动慢\\",\\n \\"recommendation\\": \\"将 JOBManager 内存从 1Gi 改为 4Gi\\"\\n },\\n \\"startup\\": [\\n {\\n \\"name\\": \\"启动速度分析\\",\\n \\"description\\": \\"JM资源配置过低导致作业启动慢\\",\\n \\"recommendation\\": \\"将 JOBManager 内存从 1Gi 改为 4Gi\\"\\n }\\n ],\\n \\"runtime\\": [\\n {\\n \\"name\\": \\"启动速度分析\\",\\n \\"description\\": \\"JM资源配置过低导致作业启动慢\\",\\n \\"recommendation\\": \\"将 JOBManager 内存从 1Gi 改为 4Gi\\"\\n }\\n ],\\n \\"state\\": [],\\n \\"troubleshooting\\": [],\\n \\"others\\": []\\n },\\n \\"healthScore\\": 0\\n },\\n \\"accessDeniedDetail\\": \\"“”\\"\\n}","type":"json"}]', + ], + 'GetLatestJobStartLog' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/latest_jobmanager_start_log', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '235188', - 'abilityTreeNodes' => [ - 'FEATUREscW7NIYA', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '206199', + 'abilityTreeNodes' => ['FEATUREscIA7S9T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], - ], - [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentId', - 'in' => 'query', - 'schema' => [ - 'title' => 'deployment名称。', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => false, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], + 'in' => 'path', + 'schema' => ['description' => '已部署作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], ], ], 'responses' => [ @@ -9544,326 +5720,137 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '本数据结构用来代表已部署作业的运行事件。', - '$ref' => '#/components/schemas/Event', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '当success为false时,该值不为空,表示最新作业运行日志;当success为true时,该值为空。', 'type' => 'string', 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 4,\\n \\"data\\": [\\n {\\n \\"eventId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"jobId\\": \\"00000000-0000-0000-0000-000000005043\\",\\n \\"createdAt\\": \\"\\",\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000680003\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"eventName\\": \\"STATE_TRANSITION_IS_COMPLETED\\",\\n \\"message\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取运行事件', - ], - 'GetJob' => [ - 'summary' => '获取作业实例的详细信息。', - 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取最新作业实例的启动日志', + 'summary' => '获取作业实例最新的启动日志。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLatestJobStartLog'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetLatestJobStartLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": \\"\\\\\\"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\\\\\\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint\\\\\\"\\"\\n}","type":"json"}]', + ], + 'GetLineageInfo' => [ + 'summary' => '通过本API可以获取作业和数据的血缘信息。', + 'path' => '/meta/v2/lineage', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '146921', - 'abilityTreeNodes' => [ - 'FEATUREscU5EGD9', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '230001', + 'abilityTreeNodes' => ['FEATUREscDYS18E'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8****'], ], [ - 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'jobId', - 'in' => 'path', - 'schema' => [ - 'title' => '实例ID。', - 'description' => '作业实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '血缘信息参数结构体。', 'required' => false, '$ref' => '#/components/schemas/GetLineageInfoParams'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回项目空间下指定的血缘信息;当success为false,该值为空。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回查询的实例;当success为false,该值为空。', - 'description' => '- 当success为true,返回查询的实例信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Job', - ], - 'accessDeniedDetail' => [ - 'type' => 'string', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '血缘信息详情。', '$ref' => '#/components/schemas/LineageInfo'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"riskLevel\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"healthScore\\": 0\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"preview\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <sessionClusterName>preview</sessionClusterName>\\n <artifact>\\n <sqlArtifact>\\n <sqlScript>CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;</sqlScript>\\n </sqlArtifact>\\n <kind>SQLSCRIPT</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</GetJobResponse>","errorExample":""}]', - 'title' => '获取作业实例', - ], - 'ListJobs' => [ - 'summary' => '获取到某个已部署作业下所有作业实例的信息。', - 'path' => '/api/v2/namespaces/{namespace}/jobs', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取血缘信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLineageInfo'], + ], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"nodes\\": [\\n {\\n \\"id\\": \\"97383\\",\\n \\"catalogName\\": \\"paimon\\",\\n \\"databaseName\\": \\"paimon-ods\\",\\n \\"isTemporary\\": false,\\n \\"connector\\": \\"paimon\\",\\n \\"tables\\": [\\n {\\n \\"id\\": \\"434508\\",\\n \\"tableName\\": \\"order-test\\",\\n \\"with\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"columns\\": [\\n {\\n \\"id\\": \\"123ss3\\",\\n \\"columnName\\": \\"name\\",\\n \\"nullable\\": false,\\n \\"description\\": \\"订单用户名称\\",\\n \\"columnType\\": \\"string\\",\\n \\"columnNativeType\\": \\"string\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978,\\n \\"creator\\": \\"userA\\",\\n \\"modifier\\": \\"userA\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"edges\\": {\\n \\"tableLineage\\": [\\n {\\n \\"source\\": \\"TableA\\",\\n \\"destination\\": \\"TableB\\",\\n \\"jobId\\": \\"664cc64d-5dea-4ad3-9ee4-8432a874****\\"\\n }\\n ],\\n \\"columnLineage\\": [\\n {\\n \\"source\\": \\"TableA\\",\\n \\"destination\\": \\"TableB\\",\\n \\"jobId\\": \\"664cc64d-5dea-4ad3-9ee4-8432a874****\\"\\n }\\n ]\\n },\\n \\"jobInfos\\": [\\n {\\n \\"id\\": \\"664cc64d-5dea-4ad3-9ee4-8432a874****\\\\n\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', + ], + 'GetMember' => [ + 'path' => '/gateway/v2/namespaces/{namespace}/members/{member}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '146903', - 'abilityTreeNodes' => [ - 'FEATUREscDX72HD', - 'FEATUREscU5EGD9', - ], + 'abilityTreeCode' => '177281', + 'abilityTreeNodes' => ['FEATUREscWQDSD2'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], - ], - [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], - ], - [ - 'name' => 'deploymentId', - 'in' => 'query', - 'schema' => [ - 'title' => '作业ID。', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], - ], - [ - 'name' => 'sortName', - 'in' => 'query', - 'schema' => [ - 'description' => '排序规则。', - 'type' => 'string', - 'required' => false, - 'example' => 'gmt_create', - 'enum' => [ - 'gmt_create', - 'job_id', - 'status', - 'gmt_modified', - ], - ], - ], - [ - 'name' => 'sortOrder', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'asc', - 'desc', - ], - ], + 'name' => 'member', + 'in' => 'path', + 'schema' => ['title' => '成员名称。', 'description' => '成员名称。', 'type' => 'string', 'required' => true, 'example' => 'user:223769'], ], ], 'responses' => [ @@ -9873,279 +5860,159 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,表示所请求页码元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'data' => [ - 'title' => '当success为true,返回所有满足条件的实例信息;当success为false,该值为空。', - 'description' => '- 当success为true,返回所有满足条件的实例信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'array', - 'items' => [ - 'title' => '实例数据。', - 'description' => '实例数据。', - '$ref' => '#/components/schemas/Job', - ], - ], - 'accessDeniedDetail' => [ - 'type' => 'string', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回成员信息;当success为false,该值为空。', 'description' => '- 当success为false,返回空值;'."\n" + ."\n" + .'- 当success为true,返回授权信息。', '$ref' => '#/components/schemas/Member'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"riskLevel\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"healthScore\\": 0\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"preview\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\"\\n }\\n ],\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<ListJobsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <httpCode>200</httpCode>\\n <pageIndex>1</pageIndex>\\n <pageSize>10</pageSize>\\n <totalSize>1</totalSize>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <sessionClusterName>preview</sessionClusterName>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n </data>\\n</ListJobsResponse>","errorExample":""}]', - 'title' => '获取作业实例列表', - ], - 'StartJobWithParams' => [ - 'summary' => '启动一个作业实例。', - 'path' => '/api/v2/namespaces/{namespace}/jobs:start', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查看成员授权信息', + 'summary' => '查看用户授权详情。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMember'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', + ], + 'GetSavepoint' => [ + 'path' => '/api/v2/namespaces/{namespace}/savepoints/{savepointId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '196584', - 'abilityTreeNodes' => [ - 'FEATUREscFIKID5', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '146997', + 'abilityTreeNodes' => ['FEATUREscUX40QK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****'."\n", - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace'."\n", - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'title' => '作业实例启动参数。', - 'description' => '作业实例启动参数。', - 'required' => false, - '$ref' => '#/components/schemas/JobStartParameters', - ], + 'name' => 'savepointId', + 'in' => 'path', + 'schema' => ['title' => 'Savepoint ID。', 'description' => 'Savepoint ID。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据结构。', + 'title' => '响应数据。', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'."\n", - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true'."\n", - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构代表已部署作业生成的实例详情。', - '$ref' => '#/components/schemas/Job', - ], - 'accessDeniedDetail' => [ - 'type' => 'string', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => 'Savepoint信息。', 'description' => '- 当success为true,返回快照信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Savepoint'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\\\n\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"riskLevel\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"healthScore\\": 0\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"preview\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","type":"json"}]', - 'title' => '启动作业实例', - ], - 'StopJob' => [ - 'summary' => '停止一个作业实例。', - 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}:stop', - 'methods' => [ - 'post', + 'title' => '获取快照和系统检查点', + 'summary' => '获取快照和系统检查点的详细信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSavepoint'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"作业快照1\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"create savepoint failed\\",\\n \\"reason\\": \\"IO Exception\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetSavepointResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode> </errorCode>\\n <errorMessage> </errorMessage>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</GetSavepointResponse>","errorExample":""}]', + ], + 'GetSessionCluster' => [ + 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '146949', - 'abilityTreeNodes' => [ - 'FEATUREscFIKID5', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '237093', + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'jobId', + 'name' => 'sessionClusterName', 'in' => 'path', - 'schema' => [ - 'title' => '实例ID。', - 'description' => '作业实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'title' => '启动实例参数。', - 'description' => '停止作业实例参数。', - 'required' => true, - '$ref' => '#/components/schemas/StopJobRequestBody', - ], + 'schema' => ['description' => 'Session集群名称。', 'type' => 'string', 'required' => true, 'example' => 'test-session'], ], ], 'responses' => [ @@ -10155,121 +6022,82 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '启动生成的实例数据。', - 'description' => '- 当success为true,返回被停止实例的数据;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Job', - ], - 'accessDeniedDetail' => [ - 'type' => 'string', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表获取的Session集群。', '$ref' => '#/components/schemas/SessionCluster'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"riskLevel\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"healthScore\\": 0\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"preview\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<StopJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</StopJobResponse>","errorExample":""}]', - 'title' => '停止作业实例', - ], - 'DeleteJob' => [ - 'summary' => '删除一个作业下非运行状态的作业实例信息。', - 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}', - 'methods' => [ - 'delete', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取Session集群', + 'summary' => '获取Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSessionCluster'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'GetTables' => [ + 'path' => '/api/v2/namespaces/{namespace}/catalogs/{catalogName}/databases/{databaseName}/tables', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '146926', - 'abilityTreeNodes' => [ - 'FEATUREscB9XR98', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '230264', + 'abilityTreeNodes' => ['FEATUREsc53OKIK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间ID。', - 'description' => '项目空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'u-gs3rgla9-default'], ], [ - 'name' => 'jobId', + 'name' => 'catalogName', 'in' => 'path', - 'schema' => [ - 'title' => '实例ID。', - 'description' => '作业实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****', - ], + 'schema' => ['description' => 'catalog名称。', 'type' => 'string', 'required' => true, 'example' => 'paimon'], + ], + [ + 'name' => 'databaseName', + 'in' => 'path', + 'schema' => ['description' => 'database名称。', 'type' => 'string', 'required' => true, 'example' => 'paimon-ods'], + ], + [ + 'name' => 'tableName', + 'in' => 'query', + 'schema' => ['description' => '表名,表名为空返回所有表信息。', 'type' => 'string', 'required' => false, 'example' => 'item'], ], ], 'responses' => [ @@ -10279,715 +6107,494 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'ECE641B2-AB0B-4174-9C3B-885881558637'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => [ + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的表的列表和详情;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '表信息。', '$ref' => '#/components/schemas/Table'], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteJobResponse>","errorExample":""}]', - 'title' => '删除作业实例', - ], - 'HotUpdateJob' => [ - 'summary' => '对正在运行的作业进行参数或资源的动态更新。', - 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}:hotUpdate', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取表信息', + 'summary' => '获取指定catalog的database下某张表的具体详情或者database下所有表的信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTables'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"ECE641B2-AB0B-4174-9C3B-885881558637\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"order-test\\",\\n \\"schema\\": {\\n \\"columns\\": [\\n {\\n \\"name\\": \\"name\\",\\n \\"metadataInfo\\": {\\n \\"key\\": \\"topic\\",\\n \\"virtual\\": true\\n },\\n \\"expression\\": \\"“”\\",\\n \\"type\\": \\"string\\",\\n \\"nullable\\": true,\\n \\"logicalType\\": \\"\\"\\n }\\n ],\\n \\"watermarkSpecs\\": [\\n {\\n \\"column\\": \\"time\\",\\n \\"watermarkExpression\\": \\"INTERVAL \'5\' SECOND\\",\\n \\"watermarkType\\": \\"\\"\\n }\\n ],\\n \\"primaryKey\\": {\\n \\"constraintName\\": \\"pk\\",\\n \\"columns\\": [\\n \\"id\\"\\n ],\\n \\"constraintType\\": \\"\\",\\n \\"enforced\\": true\\n }\\n },\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"comment\\": \\"测试订单表\\",\\n \\"partitionKeys\\": [\\n \\"ad=xxxxx\\"\\n ],\\n \\"tableType\\": \\"\\",\\n \\"metadata\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetUdfArtifacts' => [ + 'path' => '/api/v2/namespaces/{namespace}/udfartifacts', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '229978', - 'abilityTreeNodes' => [ - 'FEATUREscU5EGD9', - ], + 'operationType' => 'get', + 'abilityTreeCode' => '230252', + 'abilityTreeNodes' => ['FEATUREscOYA64T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8c34d'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'jobId', - 'in' => 'path', - 'schema' => [ - 'description' => '作业实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', - ], + 'name' => 'udfArtifactName', + 'in' => 'query', + 'schema' => ['description' => 'UDF对应的Jar或者Python文件的名称。', 'type' => 'string', 'required' => false, 'example' => 'test-udf'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回动态更新结果;当success为false,该值为空。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '动态更新结果。', - '$ref' => '#/components/schemas/HotUpdateJobResult', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的UDF的Jar或者Python文件的详情;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '自定义函数资源详情。', '$ref' => '#/components/schemas/UdfArtifact'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobHotUpdateId\\": \\"\\",\\n \\"jobId\\": \\"\\",\\n \\"targetResourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n },\\n \\"hotUpdateParams\\": {\\n \\"rescaleJobParam\\": {\\n \\"jobParallelism\\": 0\\n },\\n \\"updateJobConfigParam\\": {\\n \\"newFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"status\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"failure\\": {\\n \\"reason\\": \\"\\",\\n \\"message\\": \\"\\",\\n \\"failureSeverity\\": \\"\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '动态更新作业', - ], - 'GetHotUpdateJobResult' => [ - 'summary' => '对作业进行动态更新时,可通过本API获取作业动态更新的结果', - 'path' => '/api/v2/namespaces/{namespace}/jobs/hot-updates/{jobHotUpdateId}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取自定义函数资源详情', + 'summary' => '获取您上传并创建的包含UDF的Jar或者Python文件的详情信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetUdfArtifacts'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetUdfArtifacts', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"namespace\\": \\"default-namespace\\\\n\\",\\n \\"creator\\": \\"userA\\",\\n \\"createdAt\\": 1723532876,\\n \\"modifiedAt\\": 1723537876,\\n \\"name\\": \\"udfCollection.jar\\\\n\\",\\n \\"jarUrl\\": \\"oss://bucket/udfCollection.jar\\\\n\\",\\n \\"dependencyJarUris\\": [\\n \\"oss://bucket/addition/add.jar\\\\n\\"\\n ],\\n \\"artifactType\\": \\"ARTIFACT_TYPE_JAVA\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + ], + 'GetValidateDeploymentDraftResult' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/tickets/{ticketId}/async-validate', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '229982', - 'abilityTreeNodes' => [ - 'FEATUREscU5EGD9', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'jobHotUpdateId', + 'name' => 'ticketId', 'in' => 'path', - 'schema' => [ - 'description' => '动态更新ID。调用HotUpdateJob后可获取本ID信息。', - 'type' => 'string', - 'required' => true, - 'example' => '123hashd****', - ], + 'schema' => ['title' => '异步工单ID,可以通过提交异步操作获取。', 'description' => '异步工单ID,可以通过提交异步操作获取。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回获取结果;当success为false,该值为空。', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '动态更新结果信息。', - '$ref' => '#/components/schemas/HotUpdateJobResult', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '作业草稿深度检查的执行结果对象', '$ref' => '#/components/schemas/AsyncDraftValidateResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobHotUpdateId\\": \\"\\",\\n \\"jobId\\": \\"\\",\\n \\"targetResourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n },\\n \\"hotUpdateParams\\": {\\n \\"rescaleJobParam\\": {\\n \\"jobParallelism\\": 0\\n },\\n \\"updateJobConfigParam\\": {\\n \\"newFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"status\\": \\"\\",\\n \\"requestId\\": \\"\\",\\n \\"failure\\": {\\n \\"reason\\": \\"\\",\\n \\"message\\": \\"\\",\\n \\"failureSeverity\\": \\"\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取作业动态更新结果', - ], - 'GetLatestJobStartLog' => [ - 'summary' => '获取作业实例最新的启动日志。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/latest_jobmanager_start_log', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查询深度检查结果', + 'summary' => '根据ticketId查询作业草稿深度校验的结果', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetValidateDeploymentDraftResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"\\",\\n \\"success\\": true,\\n \\"message\\": \\"\\",\\n \\"draftValidationDetail\\": {\\n \\"draftMetaInfoErrorDetails\\": [\\n {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\"\\n }\\n ],\\n \\"sqlValidationResult\\": \\"\\",\\n \\"sqlErrorDetail\\": {\\n \\"lineNumber\\": \\"3\\",\\n \\"columnNumber\\": \\"10\\",\\n \\"endLineNumber\\": \\"4\\",\\n \\"endColumnNumber\\": \\"5\\",\\n \\"message\\": \\"“”\\"\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'HotUpdateJob' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}:hotUpdate', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '206199', - 'abilityTreeNodes' => [ - 'FEATUREscIA7S9T', - ], + 'abilityTreeCode' => '229978', + 'abilityTreeNodes' => ['FEATUREscU5EGD9'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentId', + 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], + 'schema' => ['description' => '作业实例ID。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回动态更新结果;当success为false,该值为空。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '当success为false时,该值不为空,表示最新作业运行日志;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint"', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '动态更新结果。', '$ref' => '#/components/schemas/HotUpdateJobResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": \\"\\\\\\"[main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint [] - --------------------------------------------------------------------------------\\\\\\\\n2024-05-22 11:46:39,871 [main] INFO org.apache.flink.runtime.entrypoint.ClusterEntrypoint\\\\\\"\\"\\n}","type":"json"}]', - 'title' => '获取最新作业实例的启动日志', - ], - 'GetJobDiagnosis' => [ - 'summary' => '智能诊断作业,获取异常诊断项信息', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/jobs/{jobId}/job-diagnoses/lite', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '动态更新作业', + 'summary' => '对正在运行的作业进行参数或资源的动态更新。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'HotUpdateJob'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:HotUpdateJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobHotUpdateId\\": \\"123hashd****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"targetResourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n },\\n \\"hotUpdateParams\\": {\\n \\"rescaleJobParam\\": {\\n \\"jobParallelism\\": 10\\n },\\n \\"updateJobConfigParam\\": {\\n \\"newFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n },\\n \\"status\\": {\\n \\"status\\": \\"HOT_UPDATED\\",\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"failure\\": {\\n \\"reason\\": \\"“”\\",\\n \\"message\\": \\"“”\\",\\n \\"failureSeverity\\": \\"LOW\\"\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'ListCustomConnectors' => [ + 'path' => '/api/v2/namespaces/{namespace}/connectors', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '249132', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'abilityTreeCode' => '230268', + 'abilityTreeNodes' => ['FEATUREsc2PXREJ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'deploymentId', - 'in' => 'path', - 'schema' => [ - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****', - ], - ], - [ - 'name' => 'jobId', - 'in' => 'path', - 'schema' => [ - 'description' => '作业实例ID。', - 'type' => 'string', - 'required' => true, - 'example' => '5af678c0-7db0-4650-94c2-d2604f0a****', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '诊断结果。', - 'example' => '如返回示例所示', - '$ref' => '#/components/schemas/JobDiagnosis', - ], - 'accessDeniedDetail' => [ - 'description' => '异常诊断项详情。', - 'type' => 'string', - 'example' => '“”', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回项目空间下自定义连接器的列表信息;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '自定义连接器详情。', '$ref' => '#/components/schemas/Connector'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"symptoms\\": {\\n \\"autopilot\\": {\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"recommendation\\": \\"\\"\\n },\\n \\"startup\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"recommendation\\": \\"\\"\\n }\\n ],\\n \\"runtime\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"description\\": \\"\\",\\n \\"recommendation\\": \\"\\"\\n }\\n ],\\n \\"troubleshooting\\": [],\\n \\"state\\": [],\\n \\"others\\": []\\n },\\n \\"workspace\\": \\"\\",\\n \\"riskLevel\\": \\"\\",\\n \\"diagnoseId\\": \\"\\",\\n \\"namespace\\": \\"\\",\\n \\"diagnoseTime\\": 0\\n },\\n \\"accessDeniedDetail\\": \\"“”\\"\\n}","type":"json"}]', - 'title' => '获取作业诊断详情', - ], - 'StartJob' => [ - 'summary' => '创建并启动一个作业实例。', - 'path' => '/api/v2/namespaces/{namespace}/jobs', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取自定义连接器列表', + 'summary' => '获取已注册的自定义连接器的列表信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCustomConnectors'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ListCustomConnectors', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"mysql-test\\",\\n \\"type\\": \\"mysql-test\\",\\n \\"source\\": false,\\n \\"sink\\": true,\\n \\"lookup\\": true,\\n \\"properties\\": [\\n {\\n \\"key\\": \\"username\\",\\n \\"defaultValue\\": \\"userA\\",\\n \\"description\\": \\"用户名\\",\\n \\"required\\": true,\\n \\"definesFormat\\": true,\\n \\"sensitive\\": false\\n }\\n ],\\n \\"supportedFormats\\": [\\n \\"Json\\"\\n ],\\n \\"dependencies\\": [\\n \\"oss://bucket/add.jar\\"\\n ],\\n \\"creator\\": \\"183899668*******\\",\\n \\"creatorName\\": \\"userA\\",\\n \\"modifier\\": \\"183899668*******\\",\\n \\"modifierName\\": \\"userA\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListDeploymentDrafts' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', - 'deprecated' => true, + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '146938', - 'abilityTreeNodes' => [ - 'FEATUREscFIKID5', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '223185', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '启动实例参数。', - 'required' => true, - '$ref' => '#/components/schemas/StartJobRequestBody', - ], + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => 'Id of the request', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '69'], 'data' => [ - 'description' => '- 当success为true,返回创建的实例信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Job', - ], - 'accessDeniedDetail' => [ - 'type' => 'string', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业草稿列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '作业草稿详情。', '$ref' => '#/components/schemas/DeploymentDraft'], ], ], ], ], ], - 'staticInfo' => [ - 'substitutions' => [ - 'ververica::2022-07-18::StartJobWithParams', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查看作业草稿列表', + 'summary' => '获取SQL、数据摄入作业草稿的列表信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeploymentDrafts'], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"riskLevel\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"healthScore\\": 0\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"preview\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss//bucket//test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss//bucket//test.py\\",\\n \\"mainArgs\\": \\"\\",\\n \\"entryModule\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"\\",\\n \\"modifiedAt\\": \\"\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<StartJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</StartJobResponse>","errorExample":""}]', - 'title' => '启动作业实例(废弃)', - ], - 'CreateScheduledPlan' => [ - 'summary' => '创建定时计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeploymentDrafts', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 69,\\n \\"data\\": [\\n {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"stt-fu1658tbk6mnkk2****\\",\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"holderId\\": \\"18389966****\\",\\n \\"holderName\\": \\"userA\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListDeploymentTargets' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '235220', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '146855', + 'abilityTreeNodes' => ['FEATUREscYYH6D4'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '本数据结构代表创建的定时计划。', - 'required' => false, - '$ref' => '#/components/schemas/ScheduledPlan', - ], + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值1000。', 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], ], 'responses' => [ @@ -10997,119 +6604,149 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,表示所请求页码元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'pageIndex' => ['title' => '页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'data' => [ - 'description' => '本数据结构代表创建的定时计划。', - '$ref' => '#/components/schemas/ScheduledPlan', + 'title' => '当success为true,返回所有满足条件的幕布目标信息;当success为false,该值为空。', + 'description' => '- 当success为true,返回满足查询条件的部署目标列表;'."\n" + ."\n" + .'- 当success为false,返回空值。', + 'type' => 'array', + 'items' => ['title' => '部署目标信息。', 'description' => '部署目标信息。', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', - 'title' => '创建定时计划', - ], - 'UpdateScheduledPlan' => [ - 'summary' => '更新定时计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}', - 'methods' => [ - 'put', + 'title' => '获取部署目标列表', + 'summary' => '获取作业可部署目标的列表,部署目标是session集群或者perjob集群。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeploymentTargets'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeploymentTargets', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListDeploymentTargetsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>10</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>1</totalSize>\\n <data>\\n <name>deployment target</name>\\n <namespace>namespace</namespace>\\n </data>\\n</ListDeploymentTargetsResponse>","errorExample":""}]', + ], + 'ListDeployments' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '235221', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '146799', + 'abilityTreeNodes' => ['FEATUREscB9XR98'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'name', + 'in' => 'query', + 'schema' => ['title' => 'deployment名称。', 'description' => 'deployment名称。', 'type' => 'string', 'required' => false, 'example' => 'vvp_ds_0522'], + ], + [ + 'name' => 'executionMode', + 'in' => 'query', 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', + 'title' => 'deployment执行模式。', + 'description' => 'deployment执行模式。', 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + 'required' => false, + 'example' => 'STREAMING', + 'enum' => ['BATCH', 'STREAMING'], ], ], [ - 'name' => 'scheduledPlanId', - 'in' => 'path', + 'name' => 'status', + 'in' => 'query', 'schema' => [ - 'description' => '定时计划ID。', + 'description' => 'deployment最新作业状态。', 'type' => 'string', - 'required' => true, - 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****', + 'required' => false, + 'enumValueTitles' => ['CANCELLED' => 'CANCELLED', 'FAILED' => 'FAILED', 'RUNNING' => 'RUNNING', 'TRANSITIONING' => 'TRANSITIONING', 'FINISHED' => 'FINISHED'], + 'example' => 'RUNNING', ], ], [ - 'name' => 'body', - 'in' => 'body', + 'name' => 'creator', + 'in' => 'query', + 'schema' => ['description' => '创建者UID。', 'type' => 'string', 'required' => false, 'example' => '183899668*******'], + ], + [ + 'name' => 'modifier', + 'in' => 'query', + 'schema' => ['description' => '修改者UID。', 'type' => 'string', 'required' => false, 'example' => '183899668*******'], + ], + [ + 'name' => 'labelKey', + 'in' => 'query', + 'schema' => ['description' => '标签名。', 'type' => 'string', 'required' => false, 'example' => 'key'], + ], + [ + 'name' => 'labelValueArray', + 'in' => 'query', + 'schema' => ['description' => '标签值,多个值使用分号隔开。', 'type' => 'string', 'required' => false, 'example' => 'value1,value2'], + ], + [ + 'name' => 'sortName', + 'in' => 'query', 'schema' => [ - 'description' => '本数据结构代表更新的定时计划。', + 'description' => '排序方式,支持按创建时间和修改时间倒序返回数据。', + 'type' => 'string', 'required' => false, - '$ref' => '#/components/schemas/ScheduledPlan', + 'example' => 'gmt_create', + 'enum' => ['gmt_create', 'gmt_modified'], ], ], ], @@ -11120,111 +6757,83 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,表示所请求页码元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'data' => [ - 'description' => '本数据结构代表更新的定时计划。', - '$ref' => '#/components/schemas/ScheduledPlan', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '- 当success为true,返回满足查询条件的作业列表;'."\n" + ."\n" + .'- 当success为false,返回空值。', + 'type' => 'array', + 'items' => ['title' => '作业数据。', 'description' => '作业数据。', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'eventInfo' => [ + 'enable' => false, + 'eventNames' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', - 'title' => '更新定时计划', - ], - 'DeleteScheduledPlan' => [ - 'summary' => '删除定时计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}', - 'methods' => [ - 'delete', + 'gatewayOptions' => [ + 'gatewayProtocols' => [], + ], + 'title' => '获取已部署作业列表', + 'summary' => '获取所有已部署作业的信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeployments'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeployments', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListDeploymentsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageIndex>10</pageIndex>\\n <pageSize>1</pageSize>\\n <totalSize>1</totalSize>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</ListDeploymentsResponse>","errorExample":""}]', + ], + 'ListEngineVersionMetadata' => [ + 'path' => '/api/v2/engine-version-meta.json', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '235222', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '146861', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], - ], - [ - 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'scheduledPlanId', - 'in' => 'path', - 'schema' => [ - 'description' => '定时计划ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], ], 'responses' => [ @@ -11234,140 +6843,109 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构代表删除的定时计划。', - '$ref' => '#/components/schemas/ScheduledPlan', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回系统支持的引擎版本总体信息;当success为false,该值为空。', 'description' => '- 当success为true,返回系统支持的引擎版本总体信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/EngineVersionMetadataIndex'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', - 'title' => '删除定时计划', - ], - 'ListScheduledPlan' => [ - 'summary' => '获取定时计划的列表信息', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans', - 'methods' => [ - 'get', + 'title' => '获取引擎版本列表', + 'summary' => '获取系统支持的引擎版本列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEngineVersionMetadata'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListEngineVersionMetadata', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"defaultEngineVersion\\": \\"vvr-6.0.1-flink-1.15\\",\\n \\"engineVersionMetadata\\": [\\n {\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"status\\": \\"STABLE\\",\\n \\"features\\": {\\n \\"useForSqlDeployments\\": true,\\n \\"supportNativeSavepoint\\": true\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListEngineVersionMetadataResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <defaultEngineVersion>vvr-6.0.1-flink-1.15</defaultEngineVersion>\\n <engineVersionMetadata>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <status>STABLE</status>\\n <features>\\n <useForSqlDeployments>true</useForSqlDeployments>\\n <supportNativeSavepoint>true</supportNativeSavepoint>\\n </features>\\n </engineVersionMetadata>\\n </data>\\n</ListEngineVersionMetadataResponse>","errorExample":""}]', + ], + 'ListJobs' => [ + 'summary' => '获取到某个已部署作业下所有作业实例的信息。', + 'path' => '/api/v2/namespaces/{namespace}/jobs', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'list', - 'abilityTreeCode' => '235223', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '146903', + 'abilityTreeNodes' => ['FEATUREscDX72HD', 'FEATUREscU5EGD9'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], [ 'name' => 'pageSize', 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], ], [ - 'name' => 'pageIndex', + 'name' => 'deploymentId', + 'in' => 'query', + 'schema' => ['title' => '作业ID。', 'description' => '已部署作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], + ], + [ + 'name' => 'sortName', 'in' => 'query', 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', + 'description' => '排序规则。', + 'type' => 'string', 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', + 'example' => 'gmt_create', + 'enum' => ['gmt_create', 'job_id', 'status', 'gmt_modified'], ], ], [ - 'name' => 'deploymentId', + 'name' => 'sortOrder', 'in' => 'query', 'schema' => [ - 'title' => 'deployment名称。', - 'description' => '已部署作业ID。', 'type' => 'string', - 'required' => false, - 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****', + 'enum' => ['asc', 'desc'], ], ], ], @@ -11378,137 +6956,93 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,表示所请求页码元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'title' => '当success为true,返回所有满足条件的实例信息;当success为false,该值为空。', + 'description' => '- 当success为true,返回所有满足条件的实例信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', 'type' => 'array', - 'items' => [ - 'description' => '本数据结构代表定时计划。', - '$ref' => '#/components/schemas/ScheduledPlan', - ], + 'items' => ['title' => '实例数据。', 'description' => '实例数据。', '$ref' => '#/components/schemas/Job'], ], + 'accessDeniedDetail' => ['type' => 'string', 'description' => ''], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 4,\\n \\"data\\": [\\n {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"resourcePlan\\": \\"\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取定时计划列表', - ], - 'ApplyScheduledPlan' => [ - 'summary' => '执行定时计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}:apply', - 'methods' => [ - 'post', + 'title' => '获取作业实例列表', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListJobs'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListJobs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"failure\\": {\\n \\"message\\": \\"Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.\\",\\n \\"reason\\": \\"KubernetesDeploymentNotProgressing\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"healthScore\\": 0,\\n \\"riskLevel\\": \\"\\"\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"null\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\",\\n \\"table.exec.state.ttl\\": \\"128000s\\"\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\",\\n \\"modifiedAt\\": \\"1714058800\\"\\n }\\n ],\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<ListJobsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <httpCode>200</httpCode>\\n <pageIndex>1</pageIndex>\\n <pageSize>10</pageSize>\\n <totalSize>1</totalSize>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <sessionClusterName>preview</sessionClusterName>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n </data>\\n</ListJobsResponse>","errorExample":""}]', + ], + 'ListMembers' => [ + 'path' => '/gateway/v2/namespaces/{namespace}/members', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '235224', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '177185', + 'abilityTreeNodes' => ['FEATUREscWQDSD2'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'scheduledPlanId', - 'in' => 'path', - 'schema' => [ - 'description' => '定时计划ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****', - ], + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], ], ], 'responses' => [ @@ -11518,111 +7052,102 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'], 'data' => [ - 'description' => '本数据结构代表应用的定时计划。', - '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo', + 'title' => '当success为true,返回所有满足条件的成员信息;当success为false,该值为空。', + 'description' => '- 当success为false,返回空值;'."\n" + ."\n" + .'- 当success为true,返回授权信息。', + 'type' => 'array', + 'items' => ['title' => '成员数据。', 'description' => '成员数据。', '$ref' => '#/components/schemas/Member'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', - 'title' => '应用定时计划', - ], - 'StopApplyScheduledPlan' => [ - 'summary' => '停止应用定时计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}:stop', - 'methods' => [ - 'patch', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '查看项目下成员授权列表', + 'summary' => '查看特定项目下用户UID和授权的对应关系。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMembers'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 50,\\n \\"data\\": [\\n {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListSavepoints' => [ + 'path' => '/api/v2/namespaces/{namespace}/savepoints', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '235225', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '147013', + 'abilityTreeNodes' => ['FEATUREscUX40QK'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'scheduledPlanId', - 'in' => 'path', - 'schema' => [ - 'description' => '定时计划ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****', - ], + 'name' => 'deploymentId', + 'in' => 'query', + 'schema' => ['title' => '作业ID。', 'description' => '作业ID,非必填。', 'type' => 'string', 'required' => false, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], + ], + [ + 'name' => 'jobId', + 'in' => 'query', + 'schema' => ['title' => '实例ID。', 'description' => '实例ID,非必填。', 'type' => 'string', 'required' => false, 'example' => '99a8fc49-e090-430a-85d8-3ee8c79c****'], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], ], 'responses' => [ @@ -11632,112 +7157,95 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'data' => [ - 'description' => '本数据结构代表定时计划应用信息。', - '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo', + 'title' => '当success为true,返回满足查询条件的savepoint列表;当success为false,该值为空。', + 'description' => '- 当success为true,返回满足查询条件的快照列表;'."\n" + ."\n" + .'- 当success为false,返回空值。', + 'type' => 'array', + 'items' => ['title' => 'savepoint数据。', 'description' => '快照数据。', '$ref' => '#/components/schemas/Savepoint'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', - 'title' => '停止应用定时计划', - ], - 'GetAppliedScheduledPlan' => [ - 'summary' => '获取应用的执行计划', - 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans:getExecutedScheduledPlan', - 'methods' => [ - 'get', + 'title' => '获取作业快照及系统检查点列表', + 'summary' => '获取作业快照及最近系统检查点列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSavepoints'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListSavepoints', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"1d716b22-6aad-4be2-85c2-50cfc757****\\",\\n \\"jobId\\": \\"5af678c0-7db0-4650-94c2-d2604f0a****\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"savepointOrigin\\": \\"USER_REQUEST\\",\\n \\"nativeFormat\\": true,\\n \\"description\\": \\"作业快照1\\",\\n \\"stopWithDrainEnabled\\": true,\\n \\"savepointLocation\\": \\"https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf60782c81/checkpoints/sp-3285\\",\\n \\"status\\": {\\n \\"state\\": \\"COMPLETED\\",\\n \\"failure\\": {\\n \\"message\\": \\"create savepoint failed\\",\\n \\"reason\\": \\"IO Exception\\",\\n \\"failedAt\\": 1655006835\\n }\\n },\\n \\"createdAt\\": 1659066711,\\n \\"modifiedAt\\": 1659069473\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListSavepointsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>100</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>500</totalSize>\\n <data>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n <deploymentId>1d716b22-6aad-4be2-85c2-50cfc757****</deploymentId>\\n <jobId>5af678c0-7db0-4650-94c2-d2604f0a****</jobId>\\n <namespace>namespacetest</namespace>\\n <savepointOrigin>USER_REQUEST</savepointOrigin>\\n <nativeFormat>true</nativeFormat>\\n <stopWithDrainEnabled>true</stopWithDrainEnabled>\\n <savepointLocation>https://oss/bucket/flink/flink-jobs/namespaces/vvp-team/deployments/5a19a71b-1c42-4f34-94fd-86cf6078****/checkpoints/sp-3285</savepointLocation>\\n <status>\\n <state>COMPLETED</state>\\n </status>\\n <createdAt>1659066711</createdAt>\\n <modifiedAt>1659069473</modifiedAt>\\n </data>\\n</ListSavepointsResponse>","errorExample":""}]', + ], + 'ListScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'none', - 'abilityTreeCode' => '235226', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '235223', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], + ], + [ + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], [ 'name' => 'deploymentId', 'in' => 'query', - 'schema' => [ - 'title' => 'deployment名称。', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '5737ef81-d2f1-49cf-8752-30910809****', - ], + 'schema' => ['title' => 'deployment名称。', 'description' => '已部署作业ID。', 'type' => 'string', 'required' => false, 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****'], ], ], 'responses' => [ @@ -11747,71 +7255,59 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], 'data' => [ - 'description' => '本数据结构代表应用的定时计划。', - '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '本数据结构代表定时计划。', '$ref' => '#/components/schemas/ScheduledPlan'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取定时计划列表', + 'summary' => '获取定时计划的列表信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListScheduledPlan'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', - 'title' => '获取应用的定时计划', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 4,\\n \\"data\\": [\\n {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n ]\\n}","type":"json"}]', ], 'ListScheduledPlanExecutedHistory' => [ - 'summary' => '获取定时计划执行历史', 'path' => '/api/v2/namespaces/{namespace}/job-resource-upgradings', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ @@ -11819,43 +7315,23 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '235227', - 'abilityTreeNodes' => [ - 'FEATUREsc6GKYF1', - ], + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentId', 'in' => 'query', - 'schema' => [ - 'title' => 'deployment名称。', - 'description' => '已部署作业ID。', - 'type' => 'string', - 'required' => true, - 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****', - ], + 'schema' => ['title' => 'deployment名称。', 'description' => '已部署作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], ], [ 'name' => 'origin', @@ -11866,9 +7342,7 @@ 'required' => false, 'example' => 'SCHEDULED_PLAN', 'default' => 'SCHEDULED_PLAN', - 'enum' => [ - 'SCHEDULED_PLAN', - ], + 'enum' => ['SCHEDULED_PLAN'], ], ], ], @@ -11879,132 +7353,63 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '4', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,所请求页码的元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '4'], 'data' => [ 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', 'type' => 'array', - 'items' => [ - 'description' => '本数据结构代表定时计划执行信息。', - '$ref' => '#/components/schemas/ScheduledPlanExecutedInfo', - ], + 'items' => ['description' => '本数据结构代表定时计划执行信息。', '$ref' => '#/components/schemas/ScheduledPlanExecutedInfo'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取定时计划执行历史', + 'summary' => '获取定时计划执行历史', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListScheduledPlanExecutedHistory'], + ], ], + 'ramActions' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 4,\\n \\"data\\": [\\n {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"jobResourceUpgradingId\\": \\"0e6d3bab-2277-4ed1-b573-9de6413d****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"origin\\": \\"SCHEDULED_PLAN\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"originJobId\\": \\"f8a2d5d9-9fc5-4273-bfcc-2a3cd354****\\",\\n \\"status\\": {\\n \\"statusState\\": \\"UPGRADED\\",\\n \\"restartType\\": \\"HOT_UPDATE\\"\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取定时计划执行历史', ], - 'CreateSessionCluster' => [ - 'summary' => '创建Session集群', + 'ListSessionClusters' => [ 'path' => '/api/v2/namespaces/{namespace}/sessionclusters', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'list', + 'abilityTreeCode' => '237091', + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '本数据结构代表创建的Session集群。', - 'required' => false, - '$ref' => '#/components/schemas/SessionCluster', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], ], 'responses' => [ @@ -12014,234 +7419,171 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '本数据结构代表创建的Session集群。', - '$ref' => '#/components/schemas/SessionCluster', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '本数据结构代表获取的Session集群。', '$ref' => '#/components/schemas/SessionCluster'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '创建Session集群', - ], - 'UpdateSessionCluster' => [ - 'summary' => '更新Session集群', - 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', - 'methods' => [ - 'patch', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '获取Session集群列表', + 'summary' => '获取Session集群的列表信息', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSessionClusters'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListSessionClusters', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListVariables' => [ + 'path' => '/api/v2/namespaces/{namespace}/variables', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '237096', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'operationType' => 'list', + 'abilityTreeCode' => '147070', + 'abilityTreeNodes' => ['FEATUREscGTCR1G'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8c34d', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'sessionClusterName', - 'in' => 'path', - 'schema' => [ - 'description' => 'Session集群名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-session', - ], + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => ['title' => '分页参数,所请求页码的元素数量,最大值为100,默认值为10。', 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '10', 'default' => '10'], ], [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '本数据结构代表更新的Session集群。', - 'required' => false, - '$ref' => '#/components/schemas/SessionCluster', - ], + 'name' => 'pageIndex', + 'in' => 'query', + 'schema' => ['title' => '分页参数,页码索引,表示所请求页码,默认值为1。', 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '响应数据。', - 'description' => '响应数据。', + 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'pageSize' => ['title' => '分页参数,所请求页码的元素数量。', 'description' => '分页参数,表示所请求页码元素数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'], + 'pageIndex' => ['title' => '分页参数,页码索引,表示所请求页码。', 'description' => '分页参数,页码索引,表示所请求页码。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], + 'totalSize' => ['title' => '满足查询条件的所有元素的数量。', 'description' => '满足查询条件的所有元素的数量。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'], 'data' => [ - 'description' => '本数据结构代表更新的Session集群。', - '$ref' => '#/components/schemas/SessionCluster', + 'title' => '当success为true,返回满足查询条件的所有变量;当success为false,该值为空。', + 'description' => '- 当success为true,返回满足查询条件的变量列表;'."\n" + ."\n" + .'- 当success为false,返回空值。', + 'type' => 'array', + 'items' => ['title' => '变量数据。', 'description' => '变量数据。', '$ref' => '#/components/schemas/Variable'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '更新Session集群', - ], - 'DeleteSessionCluster' => [ - 'summary' => '删除Session集群', - 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', - 'methods' => [ - 'delete', + 'title' => '获取变量列表', + 'summary' => '获取变量列表。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVariables'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListVariables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"kind\\": \\"Encrypted\\",\\n \\"name\\": \\"mysqlPassword\\",\\n \\"value\\": \\"myPassword\\",\\n \\"description\\": \\"test\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListVariablesResponse>\\n <requestId>CBC799F0-ABCF-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>10</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>1</totalSize>\\n <data>\\n <kind>Plain</kind>\\n <name>variableName</name>\\n <value>variableValue</value>\\n <description>This is a variable description</description>\\n </data>\\n</ListVariablesResponse>","errorExample":""}]', + ], + 'RegisterCustomConnector' => [ + 'path' => '/api/v2/namespaces/{namespace}/connectors:register', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '237098', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '230266', + 'abilityTreeNodes' => ['FEATUREsc2PXREJ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'sessionClusterName', - 'in' => 'path', - 'schema' => [ - 'description' => 'Session集群名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-session', - ], + 'name' => 'jarUrl', + 'in' => 'query', + 'schema' => ['description' => '自定义连接器Jar包存放的地址,需要平台可访问该地址。', 'type' => 'string', 'required' => true, 'example' => 'oss://flink/connector/mysql123'], ], ], 'responses' => [ @@ -12251,334 +7593,336 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'description' => '本数据结构代表删除的Session集群。', - '$ref' => '#/components/schemas/SessionCluster', + 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', + 'type' => 'array', + 'items' => ['description' => '自定义连接器信息。', '$ref' => '#/components/schemas/Connector'], ], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '删除Session集群', - ], - 'GetSessionCluster' => [ - 'summary' => '获取Session集群', - 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '注册自定义连接器', + 'summary' => '在项目空间下注册自定义连接器,注册的自定义连接器可以在SQL中使用。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RegisterCustomConnector'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:RegisterCustomConnector', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"name\\": \\"mysql-test\\",\\n \\"type\\": \\"mysql-test\\",\\n \\"source\\": false,\\n \\"sink\\": true,\\n \\"lookup\\": true,\\n \\"properties\\": [\\n {\\n \\"key\\": \\"username\\",\\n \\"defaultValue\\": \\"userA\\",\\n \\"description\\": \\"用户名\\",\\n \\"required\\": true,\\n \\"definesFormat\\": true,\\n \\"sensitive\\": false\\n }\\n ],\\n \\"supportedFormats\\": [\\n \\"Json\\"\\n ],\\n \\"dependencies\\": [\\n \\"oss://bucket/add.jar\\"\\n ],\\n \\"creator\\": \\"183899668*******\\",\\n \\"creatorName\\": \\"userA\\",\\n \\"modifier\\": \\"183899668*******\\",\\n \\"modifierName\\": \\"userA\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'RegisterUdfFunction' => [ + 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/function:registerUdfFunction', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'abilityTreeCode' => '237093', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '230203', + 'abilityTreeNodes' => ['FEATUREscOYA64T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'functionName', + 'in' => 'query', + 'schema' => ['description' => '函数名称,一般与类名称相同,您可以先选择自定义其他名称。', 'type' => 'string', 'required' => true, 'example' => 'orderRank'], + ], + [ + 'name' => 'udfArtifactName', + 'in' => 'query', + 'schema' => ['description' => '自定义函数对应的Jar或者Python文件的名称。', 'type' => 'string', 'required' => true, 'example' => 'test-udf'], + ], + [ + 'name' => 'className', + 'in' => 'query', + 'schema' => ['description' => '自定义函数对应的类名。', 'type' => 'string', 'required' => true, 'example' => 'orderRank'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '响应结果。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '自定义函数信息。', '$ref' => '#/components/schemas/UdfFunction'], + ], ], ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '注册自定义函数', + 'summary' => '通过本API可以选择已创建的自定义函数文件中解析出的自定义函数,选择其中的部分或全部函数进行注册,注册后可在SQL中使用。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RegisterUdfFunction'], + ], + ], + 'ramActions' => [ [ - 'name' => 'sessionClusterName', - 'in' => 'path', - 'schema' => [ - 'description' => 'Session集群名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-session', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:RegisterUdfFunction', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"functionName\\": \\"myFunction\\",\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myFunctionTest\\"\\n }\\n}","type":"json"}]', + ], + 'StartJob' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', + 'deprecated' => true, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '146938', + 'abilityTreeNodes' => ['FEATUREscFIKID5'], + ], + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '启动实例参数。', 'required' => true, '$ref' => '#/components/schemas/StartJobRequestBody'], + ], + ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', + 'title' => 'Schema of Response', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构代表获取的Session集群。', - '$ref' => '#/components/schemas/SessionCluster', - ], + 'requestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '- 当success为true,返回创建的实例信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Job'], + 'accessDeniedDetail' => ['type' => 'string', 'description' => ''], ], ], ], ], 'staticInfo' => [ - 'returnType' => 'synchronous', + 'substitutions' => ['ververica::2022-07-18::StartJobWithParams'], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '获取Session集群', - ], - 'ListSessionClusters' => [ - 'summary' => '获取Session集群的列表信息', - 'path' => '/api/v2/namespaces/{namespace}/sessionclusters', - 'methods' => [ - 'get', + 'title' => '启动作业实例(废弃)', + 'summary' => '创建并启动一个作业实例。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartJob'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StartJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"failure\\": {\\n \\"message\\": \\"Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.\\",\\n \\"reason\\": \\"KubernetesDeploymentNotProgressing\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"healthScore\\": 0,\\n \\"riskLevel\\": \\"\\"\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"null\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\",\\n \\"table.exec.state.ttl\\": \\"128000s\\"\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\",\\n \\"modifiedAt\\": \\"1714058800\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<StartJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</StartJobResponse>","errorExample":""}]', + ], + 'StartJobWithParams' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs:start', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '237091', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '196584', + 'abilityTreeNodes' => ['FEATUREscFIKID5'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'."\n"], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'."\n"], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['title' => '作业实例启动参数。', 'description' => '作业实例启动参数。', 'required' => false, '$ref' => '#/components/schemas/JobStartParameters'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', + 'title' => '响应数据结构。', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'description' => '当success为true,返回满足条件的作业列表;当success为false,该值为空。', - 'type' => 'array', - 'items' => [ - 'description' => '本数据结构代表获取的Session集群。', - '$ref' => '#/components/schemas/SessionCluster', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'."\n"], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'."\n"], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表已部署作业生成的实例详情。', '$ref' => '#/components/schemas/Job'], + 'accessDeniedDetail' => ['type' => 'string', 'description' => ''], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '启动作业实例', + 'summary' => '启动一个作业实例。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartJobWithParams'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": [\\n {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4Gi\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"oss\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n ]\\n}","type":"json"}]', - 'title' => '获取Session集群列表', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StartJobWithParams', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\\\n\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"failure\\": {\\n \\"message\\": \\"Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.\\",\\n \\"reason\\": \\"KubernetesDeploymentNotProgressing\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"healthScore\\": 0,\\n \\"riskLevel\\": \\"\\"\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"null\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\",\\n \\"table.exec.state.ttl\\": \\"128000s\\"\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\",\\n \\"modifiedAt\\": \\"1714058800\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","type":"json"}]', ], 'StartSessionCluster' => [ - 'summary' => '启动Session集群', 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}:start', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'abilityTreeCode' => '237099', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'sessionClusterName', 'in' => 'path', - 'schema' => [ - 'description' => 'Session集群名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-session', - ], + 'schema' => ['description' => 'Session集群名称。', 'type' => 'string', 'required' => true, 'example' => 'test-session'], ], ], 'responses' => [ @@ -12588,107 +7932,75 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '启动Session集群', - ], - 'StopSessionCluster' => [ - 'summary' => '停止Session集群', - 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}:stop', - 'methods' => [ - 'post', + 'summary' => '启动Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartSessionCluster'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StartSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'StartSqlExecution' => [ + 'summary' => '该接口用于执行sql数据查询脚本任务。', + 'path' => '/api/v2/namespaces/{namespace}/sql-execution', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', - 'abilityTreeCode' => '237100', - 'abilityTreeNodes' => [ - 'FEATUREscBWKRDZ', - ], + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREscXPYFHF'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bda1c4a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => false, 'example' => 'default-namespace'], ], [ - 'name' => 'sessionClusterName', - 'in' => 'path', - 'schema' => [ - 'description' => 'Session集群名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-session', - ], + 'name' => 'body', + 'in' => 'body', + 'style' => 'json', + 'schema' => ['description' => '请求体,包含要执行的 SQL 内容及描述信息等。', 'required' => false, '$ref' => '#/components/schemas/StartSqlExecutionBody'], ], ], 'responses' => [ @@ -12698,116 +8010,57 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '成功时返回的 SQL 脚本完整信息。当 success = true 时有效。', 'example' => '如返回示例所示', '$ref' => '#/components/schemas/StartSqlExecutionResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '执行SQL数据查询脚本', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', - 'title' => '停止Session集群', + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"newlyCreated\\": true,\\n \\"sqlExecutionId\\": \\"\\",\\n \\"success\\": true\\n }\\n}","type":"json"}]', ], - 'CreateDeploymentTarget' => [ - 'summary' => '创建部署目标', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'StopApplyScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}:stop', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '235197', - 'abilityTreeNodes' => [ - 'FEATUREscRC0N9T', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '235225', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentTargetName', - 'in' => 'query', - 'schema' => [ - 'description' => '部署目标名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-dt', - ], - ], - [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '本数据结构代表部署目标的资源。', - 'required' => false, - '$ref' => '#/components/schemas/ResourceSpec', - ], + 'name' => 'scheduledPlanId', + 'in' => 'path', + 'schema' => ['description' => '定时计划ID。', 'type' => 'string', 'required' => true, 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****'], ], ], 'responses' => [ @@ -12817,120 +8070,80 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构用来代表创建的部署目标。', - '$ref' => '#/components/schemas/DeploymentTarget', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表定时计划应用信息。', '$ref' => '#/components/schemas/ScheduledPlanAppliedInfo'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '创建部署目标', - ], - 'UpdateDeploymentTarget' => [ - 'summary' => '更新部署目标', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/{deploymentTargetName}', - 'methods' => [ - 'put', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '停止应用定时计划', + 'summary' => '停止应用定时计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopApplyScheduledPlan'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopApplyScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"scheduledPlanName\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"expectedState\\": \\"RUNNING\\",\\n \\"statusState\\": \\"WAITING\\"\\n }\\n}","type":"json"}]', + ], + 'StopJob' => [ + 'path' => '/api/v2/namespaces/{namespace}/jobs/{jobId}:stop', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', - 'abilityTreeCode' => '235200', - 'abilityTreeNodes' => [ - 'FEATUREscR3E3VD', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeCode' => '146949', + 'abilityTreeNodes' => ['FEATUREscFIKID5'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentTargetName', + 'name' => 'jobId', 'in' => 'path', - 'schema' => [ - 'description' => '部署目标名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-dt', - ], + 'schema' => ['title' => '实例ID。', 'description' => '作业实例ID。', 'type' => 'string', 'required' => true, 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '本数据结构代表更新的部署目标资源。', - 'required' => false, - '$ref' => '#/components/schemas/ResourceSpec', - ], + 'schema' => ['title' => '启动实例参数。', 'description' => '停止作业实例参数。', 'required' => true, '$ref' => '#/components/schemas/StopJobRequestBody'], ], ], 'responses' => [ @@ -12940,111 +8153,78 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构用来代表更新的部署目标。', - '$ref' => '#/components/schemas/DeploymentTarget', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '启动生成的实例数据。', 'description' => '- 当success为true,返回被停止实例的数据;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Job'], + 'accessDeniedDetail' => ['type' => 'string'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '更新部署目标', - ], - 'DeleteDeploymentTarget' => [ - 'summary' => '删除部署目标', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/{deploymentTargetName}', - 'methods' => [ - 'delete', + 'title' => '停止作业实例', + 'summary' => '停止一个作业实例。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopJob'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"jobId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\",\\n \\"deploymentName\\": \\"flinktest\\",\\n \\"namespace\\": \\"namespacetest\\",\\n \\"executionMode\\": \\"BATCH\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"startTime\\": 1660190835,\\n \\"endTime\\": 1660277235,\\n \\"engineVersion\\": \\"vvr-4.0.14-flink-1.13\\",\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"status\\": {\\n \\"currentJobStatus\\": \\"RUNNING\\",\\n \\"failure\\": {\\n \\"message\\": \\"Kubernetes deployment resource with name job-8b7db913-5b1f-4ac5-a332-8d50f342**** is not progressing.\\",\\n \\"reason\\": \\"KubernetesDeploymentNotProgressing\\",\\n \\"failedAt\\": 1660120062\\n },\\n \\"running\\": {\\n \\"observedFlinkJobRestarts\\": 4,\\n \\"observedFlinkJobStatus\\": \\"RUNNING\\"\\n },\\n \\"healthScore\\": 0,\\n \\"riskLevel\\": \\"\\"\\n },\\n \\"metric\\": {\\n \\"totalMemoryByte\\": 4096,\\n \\"totalCpu\\": 2\\n },\\n \\"sessionClusterName\\": \\"null\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"restoreStrategy\\": {\\n \\"kind\\": \\"LATEST_STATE\\",\\n \\"allowNonRestoredState\\": true,\\n \\"jobStartTimeInMs\\": 1660293803155,\\n \\"savepointId\\": \\"354dde66-a3ae-463e-967a-0b4107fd****\\"\\n },\\n \\"userFlinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\",\\n \\"table.exec.state.ttl\\": \\"128000s\\"\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\",\\n \\"modifiedAt\\": \\"1714058800\\"\\n },\\n \\"accessDeniedDetail\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"<StopJobResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <jobId>354dde66-a3ae-463e-967a-0b4107fd****</jobId>\\n <deploymentId>354dde66-a3ae-463e-967a-0b4107fd****</deploymentId>\\n <deploymentName>flinktest</deploymentName>\\n <namespace>namespacetest</namespace>\\n <executionMode>BATCH</executionMode>\\n <startTime>1660190835</startTime>\\n <endTime>1660277235</endTime>\\n <engineVersion>vvr-4.0.14-flink-1.13</engineVersion>\\n <status>\\n <currentJobStatus>RUNNING</currentJobStatus>\\n <running>\\n <observedFlinkJobRestarts>4</observedFlinkJobRestarts>\\n <observedFlinkJobStatus>RUNNING</observedFlinkJobStatus>\\n </running>\\n </status>\\n <metric>\\n <totalMemoryByte>4096</totalMemoryByte>\\n <totalCpu>2</totalCpu>\\n </metric>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <batchResourceSetting>\\n <maxSlot>10</maxSlot>\\n <basicResourceSetting>\\n <parallelism>4</parallelism>\\n <jobmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </jobmanagerResourceSettingSpec>\\n <taskmanagerResourceSettingSpec>\\n <cpu>2</cpu>\\n <memory>4Gi</memory>\\n </taskmanagerResourceSettingSpec>\\n </basicResourceSetting>\\n </batchResourceSetting>\\n <restoreStrategy>\\n <kind>LATEST_STATE</kind>\\n <allowNonRestoredState>true</allowNonRestoredState>\\n <jobStartTimeInMs>1660293803155</jobStartTimeInMs>\\n <savepointId>354dde66-a3ae-463e-967a-0b4107fd****</savepointId>\\n </restoreStrategy>\\n </data>\\n</StopJobResponse>","errorExample":""}]', + ], + 'StopSessionCluster' => [ + 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}:stop', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '235201', - 'abilityTreeNodes' => [ - 'FEATUREscR3E3VD', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '237100', + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'deploymentTargetName', + 'name' => 'sessionClusterName', 'in' => 'path', - 'schema' => [ - 'description' => '部署目标名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-dt', - ], + 'schema' => ['description' => 'Session集群名称。', 'type' => 'string', 'required' => true, 'example' => 'test-session'], ], ], 'responses' => [ @@ -13054,132 +8234,77 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '本数据结构用来代表删除的部署目标。', - '$ref' => '#/components/schemas/DeploymentTarget', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '删除部署目标', - ], - 'ListDeploymentTargets' => [ - 'summary' => '获取作业可部署目标的列表,部署目标是session集群或者perjob集群。', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '停止Session集群', + 'summary' => '停止Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopSessionCluster'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', + ], + 'UpdateDeployment' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}', + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'abilityTreeCode' => '146855', - 'abilityTreeNodes' => [ - 'FEATUREscYYH6D4', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '146804', + 'abilityTreeNodes' => ['FEATUREscDX72HD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值1000。', - 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'name' => 'deploymentId', + 'in' => 'path', + 'schema' => ['title' => '作业ID。', 'description' => '作业ID。', 'type' => 'string', 'required' => true, 'example' => '58718c99-3b29-4c5e-93bb-c9fc4ec6****'], ], [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['title' => '需要更新的作业内容。', 'description' => '需要更新的作业内容。', 'required' => true, '$ref' => '#/components/schemas/Deployment'], ], ], 'responses' => [ @@ -13189,153 +8314,166 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,表示所请求页码元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'pageIndex' => [ - 'title' => '页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'data' => [ - 'title' => '当success为true,返回所有满足条件的幕布目标信息;当success为false,该值为空。', - 'description' => '- 当success为true,返回满足查询条件的部署目标列表;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'array', - 'items' => [ - 'title' => '部署目标信息。', - 'description' => '部署目标信息。', - '$ref' => '#/components/schemas/DeploymentTarget', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '固定值200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回更新后的作业内容;当success为false,该值为空。', 'description' => '- 当success为true,返回更新后的作业信息;'."\n" + ."\n" + .'- 当success为false,返回空值。', '$ref' => '#/components/schemas/Deployment'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListDeploymentTargetsResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>10</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>1</totalSize>\\n <data>\\n <name>deployment target</name>\\n <namespace>namespace</namespace>\\n </data>\\n</ListDeploymentTargetsResponse>","errorExample":""}]', - 'title' => '获取部署目标列表', - ], - 'UpdateDeploymentTargetV2' => [ - 'summary' => '更新部署目标', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/support-elastic/{deploymentTargetName}', - 'methods' => [ - 'put', + 'title' => '更新已部署作业', + 'summary' => '更新已部署作业的信息。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeployment'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"name\\": \\"deploymentName\\",\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"description\\": \\"this is a deployment description\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"deploymentHasChanged\\": true,\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"jobSummary\\": {\\n \\"starting\\": 1,\\n \\"running\\": 2,\\n \\"cancelling\\": 0,\\n \\"cancelled\\": 5,\\n \\"finished\\": 4,\\n \\"failed\\": 6\\n },\\n \\"deploymentTarget\\": {\\n \\"mode\\": \\"PER_JOB\\",\\n \\"name\\": \\"default-queue\\\\t\\"\\n },\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n },\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"createdAt\\": \\"1714058507\\\\n\\",\\n \\"modifiedAt\\": \\"1714058843\\",\\n \\"referencedDeploymentDraftId\\": \\"00000000-0000-0000-0000-000000000003\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<UpdateDeploymentResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <deploymentId>00000000-0000-0000-0000-00000000****</deploymentId>\\n <namespace>default-namespace</namespace>\\n <name>deploymentName</name>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <description>this is a deployment description</description>\\n <deploymentHasChanged>true</deploymentHasChanged>\\n <artifact>\\n <jarArtifact>\\n <jarUri>https://oss//bucket//test.jar</jarUri>\\n <entryClass>org.apapche.flink.test</entryClass>\\n </jarArtifact>\\n <kind>JAR</kind>\\n </artifact>\\n <logging>\\n <loggingProfile>oss</loggingProfile>\\n <log4j2ConfigurationTemplate>xml格式文本</log4j2ConfigurationTemplate>\\n <log4jLoggers>\\n <loggerName>StdOutErrConsoleAppender</loggerName>\\n <loggerLevel>ERROR</loggerLevel>\\n </log4jLoggers>\\n <logReservePolicy>\\n <openHistory>true</openHistory>\\n <expirationDays>7</expirationDays>\\n </logReservePolicy>\\n </logging>\\n <jobSummary>\\n <starting>1</starting>\\n <running>1</running>\\n <cancelling>1</cancelling>\\n <cancelled>1</cancelled>\\n <finished>1</finished>\\n <failed>1</failed>\\n </jobSummary>\\n <deploymentTarget>\\n <mode>PER_JOB</mode>\\n <name>vvp-workload</name>\\n </deploymentTarget>\\n <executionMode>STREAMING</executionMode>\\n </data>\\n</UpdateDeploymentResponse>","errorExample":""}]', + ], + 'UpdateDeploymentDraft' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/{deploymentDraftId}', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'update', + 'abilityTreeCode' => '223182', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], - 'produces' => [ - 'application/json', + 'parameters' => [ + [ + 'name' => 'workspace', + 'in' => 'header', + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], + ], + [ + 'name' => 'namespace', + 'in' => 'path', + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'deploymentDraftId', + 'in' => 'path', + 'schema' => ['description' => '作业草稿ID,可通过ListDeploymentDrafts接口获取。', 'type' => 'string', 'required' => true, 'example' => 'c84d73be-40ad-4627-8bdd-fa1eba51b234'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '更新作业草稿信息。', 'required' => true, '$ref' => '#/components/schemas/DeploymentDraft'], + ], ], - 'operationType' => 'write', + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'type' => 'object', + 'properties' => [ + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'True'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '返回作业草稿结果。', '$ref' => '#/components/schemas/DeploymentDraft'], + ], + ], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新作业草稿', + 'summary' => '更新SQL、数据摄入作业草稿。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeploymentDraft'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"deploymentDraftId\\": \\"00000000-0000-0000-0000-00000012****\\",\\n \\"name\\": \\"test-draft\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-00000013****\\",\\n \\"referencedDeploymentId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"executionMode\\": \\"STREAMING\\",\\n \\"artifact\\": {\\n \\"sqlArtifact\\": {\\n \\"sqlScript\\": \\"CREATE TEMPORARY TABLE datagen_source( name VARCHAR ) WITH ( \'connector\' = \'datagen\' ); CREATE TEMPORARY TABLE blackhole_sink( name VARCHAR ) with ( \'connector\' = \'blackhole\' ); INSERT INTO blackhole_sink SELECT name from datagen_source;\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"jarArtifact\\": {\\n \\"jarUri\\": \\"https://oss/bucket/test.jar\\",\\n \\"entryClass\\": \\"org.apapche.flink.test\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.jar\\"\\n ]\\n },\\n \\"pythonArtifact\\": {\\n \\"pythonArtifactUri\\": \\"https://oss/bucket/test.py\\",\\n \\"mainArgs\\": \\"start from main\\",\\n \\"entryModule\\": \\"test.py\\",\\n \\"additionalDependencies\\": [\\n \\"https://oss/bucket/addition.py\\"\\n ],\\n \\"additionalPythonLibraries\\": [\\n \\"https://oss/bucket/additionlib.py\\"\\n ],\\n \\"additionalPythonArchives\\": [\\n \\"https://oss/bucket/additionArchives.zip\\"\\n ]\\n },\\n \\"cdcYamlArtifact\\": {\\n \\"cdcYaml\\": \\"\\",\\n \\"additionalDependencies\\": [\\n \\"\\"\\n ]\\n },\\n \\"kind\\": \\"SQLSCRIPT\\"\\n },\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"localVariables\\": [\\n {\\n \\"name\\": \\"test\\",\\n \\"value\\": \\"datagen\\"\\n }\\n ],\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"lock\\": {\\n \\"id\\": \\"stt-fu1658tbk6mnkk2****\\",\\n \\"workspace\\": \\"a14bd5d90a****\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"holderId\\": \\"18389966****\\",\\n \\"holderName\\": \\"userA\\"\\n },\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', + ], + 'UpdateDeploymentTarget' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/{deploymentTargetName}', + 'methods' => ['put'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', 'abilityTreeCode' => '235200', - 'abilityTreeNodes' => [ - 'FEATUREscRC0N9T', - ], + 'abilityTreeNodes' => ['FEATUREscR3E3VD'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentTargetName', 'in' => 'path', - 'schema' => [ - 'description' => '部署目标名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-dt', - ], + 'schema' => ['description' => '部署目标名称。', 'type' => 'string', 'required' => true, 'example' => 'test-dt'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '部署目标资源。', - 'required' => false, - '$ref' => '#/components/schemas/Resource', - ], + 'schema' => ['description' => '本数据结构代表更新的部署目标资源。', 'required' => false, '$ref' => '#/components/schemas/ResourceSpec'], ], ], 'responses' => [ @@ -13345,125 +8483,80 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '部署目标详情。', - 'example' => '如返回示例所示', - '$ref' => '#/components/schemas/DeploymentTarget', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构用来代表更新的部署目标。', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新部署目标', + 'summary' => '更新部署目标', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeploymentTarget'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '更新部署目标(V2)', - 'description' => '原更新部署目标的接口仅支持创建固定资源或弹性资源的部署目标,新接口支持更新固定资源、弹性资源或者混合模式的部署目标。', ], - 'CreateDeploymentTargetV2' => [ - 'summary' => '创建部署目标', - 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/support-elastic', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'UpdateDeploymentTargetV2' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-targets/support-elastic/{deploymentTargetName}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeCode' => '235197', - 'abilityTreeNodes' => [ - 'FEATUREscRC0N9T', - ], + 'abilityTreeCode' => '235200', + 'abilityTreeNodes' => ['FEATUREscRC0N9T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'deploymentTargetName', - 'in' => 'query', - 'schema' => [ - 'description' => '部署目标名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'test-dt', - ], + 'in' => 'path', + 'schema' => ['description' => '部署目标名称。', 'type' => 'string', 'required' => true, 'example' => 'test-dt'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'description' => '部署目标资源。', - 'required' => false, - '$ref' => '#/components/schemas/Resource', - ], + 'schema' => ['description' => '部署目标资源。', 'required' => false, '$ref' => '#/components/schemas/Resource'], ], ], 'responses' => [ @@ -13473,199 +8566,134 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '部署目标详情。', - 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a151****", "name": "69d001d5-419a-4bfc-9c2e-849cacd3****", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }', - '$ref' => '#/components/schemas/DeploymentTarget', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '部署目标详情。', 'example' => 'As shown in the response example.', '$ref' => '#/components/schemas/DeploymentTarget'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新部署目标(V2)', + 'summary' => '更新部署目标', + 'description' => '原更新部署目标的接口仅支持创建固定资源或弹性资源的部署目标,新接口支持更新固定资源、弹性资源或者混合模式的部署目标。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentTargetV2', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"name\\": \\"deployment target\\",\\n \\"namespace\\": \\"namespace\\",\\n \\"quota\\": {\\n \\"limit\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"used\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n },\\n \\"request\\": {\\n \\"cpu\\": 1,\\n \\"memory\\": \\"4Gi\\"\\n }\\n }\\n }\\n}","type":"json"}]', - 'title' => '创建部署目标(V2版本)', - 'description' => '原创建部署目标的接口仅支持创建固定资源或弹性资源的部署目标,新接口支持创建固定资源、弹性资源或者混合模式的部署目标。', ], - 'CreateMember' => [ - 'summary' => '将一个用户添加到对应项目空间下并授予对应权限。', - 'path' => '/gateway/v2/namespaces/{namespace}/members', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateFolder' => [ + 'path' => '/api/v2/namespaces/{namespace}/folder/{folderId}', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '177220', - 'abilityTreeNodes' => [ - 'FEATUREscWQDSD2', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '223054', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'ca84d539167d4d', - ], + 'schema' => ['description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'f89a0c1ca8****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'u-gs3rgla9-default', - ], + 'schema' => ['description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], + ], + [ + 'name' => 'folderId', + 'in' => 'path', + 'schema' => ['description' => '文件夹ID,可通过GetFolder接口获取。', 'type' => 'string', 'required' => true, 'example' => '13803'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'title' => '成员内容。', - 'description' => '成员账号和权限对应关系。', - 'required' => false, - '$ref' => '#/components/schemas/Member', - ], + 'schema' => ['description' => '文件夹数据结构。', 'required' => true, '$ref' => '#/components/schemas/Folder'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '更新文件夹信息。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'F989CA70-2925-5A94-92B7-20F5762B71C8', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'True', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回创建的成员;当success为false,该值为空。', - 'description' => '- 当success为false,返回空值;'."\n" - ."\n" - .'- 当success为true,返回授权信息。', - '$ref' => '#/components/schemas/Member', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务成功与否。如果非空且不是200,那么表示业务处理失败。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码。'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息。'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '更新文件夹后的信息。', '$ref' => '#/components/schemas/Folder'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新文件夹', + 'summary' => '调用本API可完成对文件夹信息的更新。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFolder'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"F989CA70-2925-5A94-92B7-20F5762B71C8\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', - 'title' => '新增成员授权', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"folderId\\": \\"00000000-0000-0000-0000-0000012312****\\",\\n \\"parentId\\": \\"00000000-0000-0000-0000-0000012390****\\",\\n \\"name\\": \\"test\\",\\n \\"subFolder\\": [\\n {\\n \\"folderId\\": \\"a579aec9-1d5e-3382-9d65-9887ff6cfaff\\",\\n \\"parentId\\": \\"95c0787c-408f-4e1f-88ba-ef0a84a2c2ee\\",\\n \\"name\\": \\"test\\"\\n }\\n ],\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": 1723537978,\\n \\"modifiedAt\\": 1723537978\\n }\\n}","type":"json"}]', ], 'UpdateMember' => [ - 'summary' => '更新特定项目空间下某个或某些用户的权限。', 'path' => '/gateway/v2/namespaces/{namespace}/members', - 'methods' => [ - 'put', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['put'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ @@ -13673,42 +8701,23 @@ 'riskType' => 'none', 'chargeType' => 'free', 'abilityTreeCode' => '177223', - 'abilityTreeNodes' => [ - 'FEATUREscWQDSD2', - ], + 'abilityTreeNodes' => ['FEATUREscWQDSD2'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'title' => '成员信息。', - 'description' => '成员授权信息详情。', - 'required' => false, - '$ref' => '#/components/schemas/Member', - ], + 'schema' => ['title' => '成员信息。', 'description' => '成员授权信息详情。', 'required' => false, '$ref' => '#/components/schemas/Member'], ], ], 'responses' => [ @@ -13718,121 +8727,81 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回创建的成员;当success为false,该值为空。', - 'description' => '当success为true,返回创建的成员;当success为false,该值为空。', - '$ref' => '#/components/schemas/Member', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。 ', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回创建的成员;当success为false,该值为空。', 'description' => '当success为true,返回创建的成员;当success为false,该值为空。', '$ref' => '#/components/schemas/Member'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '更新用户授权信息', - ], - 'DeleteMember' => [ - 'summary' => '删除指定的用户权限信息。', - 'path' => '/gateway/v2/namespaces/{namespace}/members/{member}', - 'methods' => [ - 'delete', + 'summary' => '更新特定项目空间下某个或某些用户的权限。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMember'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', + ], + 'UpdateScheduledPlan' => [ + 'path' => '/api/v2/namespaces/{namespace}/scheduled-plans/{scheduledPlanId}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '177280', - 'abilityTreeNodes' => [ - 'FEATUREscWQDSD2', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '235221', + 'abilityTreeNodes' => ['FEATUREsc6GKYF1'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8c34d', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'member', + 'name' => 'scheduledPlanId', 'in' => 'path', - 'schema' => [ - 'title' => '成员名称。', - 'description' => '成员UID。', - 'type' => 'string', - 'required' => true, - 'example' => 'user:223769', - ], + 'schema' => ['description' => '定时计划ID。', 'type' => 'string', 'required' => true, 'example' => 'f420c2e7-6d3f-4683-81d0-3ea8585*****'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '本数据结构代表更新的定时计划。', 'required' => false, '$ref' => '#/components/schemas/ScheduledPlan'], ], ], 'responses' => [ @@ -13842,116 +8811,77 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表更新的定时计划。', '$ref' => '#/components/schemas/ScheduledPlan'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]', - 'title' => '删除用户权限', - ], - 'GetMember' => [ - 'summary' => '查看用户授权详情。', - 'path' => '/gateway/v2/namespaces/{namespace}/members/{member}', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新定时计划', + 'summary' => '更新定时计划', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateScheduledPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"createdAt\\": \\"1723197248\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifiedAt\\": \\"1723197248\\",\\n \\"scheduledPlanId\\": \\"f3b4ec1e-85dc-4b1d-9726-1d7f4c37****\\",\\n \\"name\\": \\"test-scheduled-plan\\",\\n \\"deploymentId\\": \\"00000000-0000-0000-0000-000000000001\\",\\n \\"updatedByUser\\": true,\\n \\"origin\\": \\"USER_DEFINED\\",\\n \\"periodicSchedulingPolicies\\": [\\n {\\n \\"onlyOnceTriggerTime\\": 1723195800000,\\n \\"onlyOnceTriggerTimeIsExpired\\": true,\\n \\"periodicTriggerTime\\": 1723199340000,\\n \\"periodicSchedulingLevel\\": \\"DAY\\",\\n \\"periodicSchedulingValues\\": [\\n 0\\n ],\\n \\"isFinished\\": true,\\n \\"resourceSetting\\": {\\n \\"flinkConf\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"batchResourceSetting\\": {\\n \\"maxSlot\\": 10,\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n }\\n },\\n \\"streamingResourceSetting\\": {\\n \\"resourceSettingMode\\": \\"EXPERT\\",\\n \\"expertResourceSetting\\": {\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"resourcePlan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\"\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4\\n }\\n }\\n }\\n }\\n ],\\n \\"status\\": \\"FINISHED\\"\\n }\\n}","type":"json"}]', + ], + 'UpdateSessionCluster' => [ + 'path' => '/api/v2/namespaces/{namespace}/sessionclusters/{sessionClusterName}', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '177281', - 'abilityTreeNodes' => [ - 'FEATUREscWQDSD2', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '237096', + 'abilityTreeNodes' => ['FEATUREscBWKRDZ'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => '710d6a64d8c34d'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'member', + 'name' => 'sessionClusterName', 'in' => 'path', - 'schema' => [ - 'title' => '成员名称。', - 'description' => '成员名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'user:223769', - ], + 'schema' => ['description' => 'Session集群名称。', 'type' => 'string', 'required' => true, 'example' => 'test-session'], + ], + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '本数据结构代表更新的Session集群。', 'required' => false, '$ref' => '#/components/schemas/SessionCluster'], ], ], 'responses' => [ @@ -13961,300 +8891,163 @@ 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回成员信息;当success为false,该值为空。', - 'description' => '- 当success为false,返回空值;'."\n" - ."\n" - .'- 当success为true,返回授权信息。', - '$ref' => '#/components/schemas/Member', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => '1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表更新的Session集群。', '$ref' => '#/components/schemas/SessionCluster'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n}","type":"json"}]', - 'title' => '查看成员授权信息', - ], - 'ListMembers' => [ - 'summary' => '查看特定项目下用户UID和授权的对应关系。', - 'path' => '/gateway/v2/namespaces/{namespace}/members', - 'methods' => [ - 'get', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新Session集群', + 'summary' => '更新Session集群', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSessionCluster'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"workspace\\": \\"edcef******b4f\\",\\n \\"namespace\\": \\"default-namespace\\",\\n \\"creator\\": \\"27846363877456****\\",\\n \\"creatorName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"modifier\\": \\"27846363877456****\\",\\n \\"modifierName\\": \\"****@streamcompute.onaliyun.com\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"sessionClusterId\\": \\"1f68a52c-1760-43c6-97fb-afe0674b****\\",\\n \\"name\\": \\"test-sessionCluster\\",\\n \\"deploymentTargetName\\": \\"default-queue\\",\\n \\"engineVersion\\": \\"vvr-6.0.7-flink-1.15\\",\\n \\"labels\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"basicResourceSetting\\": {\\n \\"parallelism\\": 4,\\n \\"jobmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n },\\n \\"taskmanagerResourceSettingSpec\\": {\\n \\"cpu\\": 2,\\n \\"memory\\": \\"4 GiB\\"\\n }\\n },\\n \\"flinkConf\\": {\\n \\"taskmanager.numberOfTaskSlots\\": \\"1\\"\\n },\\n \\"logging\\": {\\n \\"loggingProfile\\": \\"default\\",\\n \\"log4j2ConfigurationTemplate\\": \\"xml格式文本\\",\\n \\"log4jLoggers\\": [\\n {\\n \\"loggerName\\": \\"StdOutErrConsoleAppender\\",\\n \\"loggerLevel\\": \\"ERROR\\"\\n }\\n ],\\n \\"logReservePolicy\\": {\\n \\"openHistory\\": true,\\n \\"expirationDays\\": 7\\n }\\n },\\n \\"status\\": {\\n \\"currentSessionClusterStatus\\": \\"\\",\\n \\"failure\\": {\\n \\"message\\": \\"\\",\\n \\"reason\\": \\"\\",\\n \\"failedAt\\": 0\\n },\\n \\"running\\": {\\n \\"startedAt\\": 0,\\n \\"lastUpdateTime\\": 0,\\n \\"referenceDeploymentIds\\": [\\n \\"\\"\\n ]\\n }\\n }\\n }\\n}","type":"json"}]', + ], + 'UpdateUdfArtifact' => [ + 'path' => '/api/v2/namespaces/{namespace}/udfartifacts/{udfArtifactName}', + 'methods' => ['put'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'read', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeCode' => '177185', - 'abilityTreeNodes' => [ - 'FEATUREscWQDSD2', - ], + 'operationType' => 'update', + 'abilityTreeCode' => '230195', + 'abilityTreeNodes' => ['FEATUREscOYA64T'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', - ], + 'name' => 'udfArtifactName', + 'in' => 'path', + 'schema' => ['description' => '已创建的自定义函数文件名。', 'type' => 'string', 'required' => true, 'example' => 'test-udf'], ], [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'description' => '分页参数,所请求页码的元素数量,默认值为10,最大值100。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['description' => '自定义函数文件详情。', 'required' => true, '$ref' => '#/components/schemas/UdfArtifact'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', + 'description' => '更新自定义函数文件详情。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,所请求页码的元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '50', - ], - 'data' => [ - 'title' => '当success为true,返回所有满足条件的成员信息;当success为false,该值为空。', - 'description' => '- 当success为false,返回空值;'."\n" - ."\n" - .'- 当success为true,返回授权信息。', - 'type' => 'array', - 'items' => [ - 'title' => '成员数据。', - 'description' => '成员数据。', - '$ref' => '#/components/schemas/Member', - ], - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误码;'."\n" + .' '."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '- 当success为false,返回业务错误信息;'."\n" + ."\n" + .'- 当success为true,返回空值。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '自定义函数文件更新结果。', '$ref' => '#/components/schemas/UpdateUdfArtifactResult'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '更新自定义函数文件', + 'summary' => '对已创建的自定义函数文件进行更新。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateUdfArtifact'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageIndex\\": 1,\\n \\"pageSize\\": 10,\\n \\"totalSize\\": 50,\\n \\"data\\": [\\n {\\n \\"member\\": \\"user: 181319557522****\\",\\n \\"role\\": \\"VIEWER\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => '查看项目下成员授权列表', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"updateSuccess\\": true,\\n \\"udfArtifact\\": {\\n \\"namespace\\": \\"default-namespace\\\\n\\",\\n \\"creator\\": \\"userA\\",\\n \\"createdAt\\": 1723532876,\\n \\"modifiedAt\\": 1723537876,\\n \\"name\\": \\"udfCollection.jar\\\\n\\",\\n \\"jarUrl\\": \\"oss://bucket/udfCollection.jar\\\\n\\",\\n \\"dependencyJarUris\\": [\\n \\"oss://bucket/addition/add.jar\\\\n\\"\\n ],\\n \\"artifactType\\": \\"ARTIFACT_TYPE_JAVA\\",\\n \\"udfClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n },\\n \\"message\\": \\"\\",\\n \\"collidingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ],\\n \\"missingClasses\\": [\\n {\\n \\"udfArtifactName\\": \\"udfCollection.jar\\",\\n \\"className\\": \\"myfunctionTest\\",\\n \\"classType\\": \\"UDF_TYPE_TABLE_AGGREGATE\\",\\n \\"functionNames\\": [\\n \\"myfunction\\"\\n ]\\n }\\n ]\\n }\\n}","type":"json"}]', ], 'UpdateVariable' => [ - 'summary' => '修改项目级别的变量。', 'path' => '/api/v2/namespaces/{namespace}/variables/{name}', - 'methods' => [ - 'patch', - ], - 'schemes' => [ - 'https', - ], + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'operationType' => 'readAndWrite', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREscGTCR1G', - ], + 'abilityTreeNodes' => ['FEATUREscGTCR1G'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'name', 'in' => 'path', - 'schema' => [ - 'description' => '变量名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'vvp_ds_0522', - ], + 'schema' => ['description' => '变量名称。', 'type' => 'string', 'required' => true, 'example' => 'vvp_ds_0522'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'title' => '创建变量的数据内容。', - 'description' => '修改后变量全部的数据内容。', - 'required' => true, - '$ref' => '#/components/schemas/Variable', - ], + 'schema' => ['title' => '创建变量的数据内容。', 'description' => '修改后变量全部的数据内容。', 'required' => true, '$ref' => '#/components/schemas/Variable'], ], ], 'responses' => [ @@ -14264,1140 +9057,1405 @@ 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => '1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回创建的变量;当success为false,该值为空。', - 'description' => '修改后的变量结构。', - '$ref' => '#/components/schemas/Variable', - ], - 'accessDeniedDetail' => [ - 'description' => '访问拒绝详细信息,出现在用户无权限操作的场景。', - 'type' => 'string', - 'example' => '“”', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => '1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['title' => '当success为true,返回创建的变量;当success为false,该值为空。', 'description' => '修改后的变量结构。', '$ref' => '#/components/schemas/Variable'], + 'accessDeniedDetail' => ['description' => '访问拒绝详细信息,出现在用户无权限操作的场景。', 'type' => 'string', 'example' => '“”'], ], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"kind\\": \\"Plain\\",\\n \\"name\\": \\"variableName\\",\\n \\"value\\": \\"variableValue\\",\\n \\"description\\": \\"This is a variable description\\"\\n },\\n \\"accessDeniedDetail\\": \\"“”\\"\\n}","type":"json"}]', + 'staticInfo' => ['returnType' => 'synchronous'], 'title' => '修改项目变量', - ], - 'CreateVariable' => [ - 'summary' => '创建变量。', - 'path' => '/api/v2/namespaces/{namespace}/variables', - 'methods' => [ - 'post', + 'summary' => '修改项目级别的变量。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateVariable'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"1EF03B0C-F44F-47AD-BB48-D002D0F7B8C9\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"kind\\": \\"Encrypted\\",\\n \\"name\\": \\"mysqlPassword\\",\\n \\"value\\": \\"myPassword\\",\\n \\"description\\": \\"test\\"\\n },\\n \\"accessDeniedDetail\\": \\"“”\\"\\n}","type":"json"}]', + ], + 'ValidateDeploymentDraftAsync' => [ + 'path' => '/api/v2/namespaces/{namespace}/deployment-drafts/async-validate', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'readAndWrite', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - 'abilityTreeCode' => '147069', - 'abilityTreeNodes' => [ - 'FEATUREscGTCR1G', - ], + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ 'name' => 'body', 'in' => 'body', - 'schema' => [ - 'title' => '创建变量的数据内容。', - 'description' => '创建变量的数据内容。', - 'required' => true, - '$ref' => '#/components/schemas/Variable', - ], + 'style' => 'json', + 'schema' => ['description' => '作业草稿参数对象。', 'required' => false, '$ref' => '#/components/schemas/DraftValidateParams'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'Schema of Response', + 'title' => '响应数据。', + 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCD-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], 'data' => [ - 'title' => '当success为true,返回创建的变量;当success为false,该值为空。', - 'description' => '- 当success为true,返回创建的变量;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/Variable', + 'description' => '响应数据。', + 'type' => 'object', + 'properties' => [ + 'ticketId' => ['title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', 'description' => '异步工单ID,可以使用该ID查询异步操作结果。 ', 'type' => 'string', 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****'], + ], ], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCD-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"kind\\": \\"Plain\\",\\n \\"name\\": \\"variableName\\",\\n \\"value\\": \\"variableValue\\",\\n \\"description\\": \\"This is a variable description\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<CreateVariableResponse>\\n <requestId>CBC799F0-ABCD-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <kind>Plain</kind>\\n <name>variableName</name>\\n <value>variableValue</value>\\n <description>This is a variable description</description>\\n </data>\\n</CreateVariableResponse>","errorExample":""}]', - 'title' => '创建变量', - ], - 'DeleteVariable' => [ - 'summary' => '删除变量。', - 'path' => '/api/v2/namespaces/{namespace}/variables/{name}', - 'methods' => [ - 'delete', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '异步进行作业草稿深度检查', + 'summary' => '异步进行Flink作业草稿深度检查,进行语法检查、资源配置等合法性检验', + 'description' => '作业草稿异步进行深度校验接口,用于对尚未提交部署的作业草稿配置进行全链路合规性与兼容性检查。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ValidateDeploymentDraftAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","type":"json"}]', + ], + 'ValidateSqlStatement' => [ + 'path' => '/api/v2/namespaces/{namespace}/sql-statement/validate', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'application/json', - ], - 'produces' => [ - 'application/json', - ], - 'operationType' => 'write', + 'consumes' => ['application/json'], + 'produces' => ['application/json'], 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', - 'abilityTreeCode' => '147071', - 'abilityTreeNodes' => [ - 'FEATUREscGTCR1G', - ], + 'operationType' => 'none', + 'abilityTreeCode' => '206207', + 'abilityTreeNodes' => ['FEATUREscWKZGIA'], ], 'parameters' => [ [ 'name' => 'workspace', 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', - ], + 'schema' => ['title' => '工作空间ID。', 'description' => '工作空间ID。', 'type' => 'string', 'required' => true, 'example' => 'a14bd5d90a****'], ], [ 'name' => 'namespace', 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', - ], + 'schema' => ['title' => '项目空间名称。', 'description' => '项目空间名称。', 'type' => 'string', 'required' => true, 'example' => 'default-namespace'], ], [ - 'name' => 'name', - 'in' => 'path', - 'schema' => [ - 'title' => '变量名称。', - 'description' => '需要删除的变量名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'variableName', - ], + 'name' => 'body', + 'in' => 'body', + 'schema' => ['title' => 'Deployment内容。', 'description' => '待验证的sql内容。', 'required' => true, '$ref' => '#/components/schemas/SqlStatementWithContext'], ], ], 'responses' => [ 200 => [ 'schema' => [ - 'title' => '响应数据。', + 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', 'description' => '响应数据。', 'type' => 'object', 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], + 'requestId' => ['title' => '请求ID。', 'description' => '请求ID。', 'type' => 'string', 'example' => 'CBC799F0-****-1D30-8A4F-882ED4DD5E02'], + 'success' => ['title' => '表示业务请求是否成功。', 'description' => '表示业务请求是否成功。', 'type' => 'boolean', 'example' => 'true'], + 'httpCode' => ['title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', 'description' => '业务状态码,统一为200。', 'type' => 'integer', 'format' => 'int32', 'example' => '200'], + 'errorCode' => ['title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'errorMessage' => ['title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'description' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', 'type' => 'string', 'example' => '""'], + 'data' => ['description' => '本数据结构代表sql验证结果详情。', '$ref' => '#/components/schemas/SqlStatementValidationResult'], ], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteVariableResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n</DeleteVariableResponse>","errorExample":""}]', - 'title' => '删除变量', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => '验证sql语句', + 'summary' => '校验sql作业代码。', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateSqlStatement'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ValidateSqlStatement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-****-1D30-8A4F-882ED4DD5E02\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"success\\": true,\\n \\"message\\": \\"“”\\",\\n \\"validationResult\\": \\"VALIDATION_RESULT_INVALID\\",\\n \\"errorDetails\\": {\\n \\"lineNumber\\": \\"3\\",\\n \\"columnNumber\\": \\"2\\",\\n \\"endLineNumber\\": \\"5\\",\\n \\"endColumnNumber\\": \\"11\\",\\n \\"message\\": \\"\\\\\\"\\\\\\"\\",\\n \\"invalidflinkConf\\": [\\n \\"{\\\\\\"k:v\\\\\\"}\\"\\n ]\\n }\\n }\\n}","type":"json"}]', ], - 'ListVariables' => [ - 'summary' => '获取变量列表。', - 'path' => '/api/v2/namespaces/{namespace}/variables', - 'methods' => [ - 'get', + ], + 'endpoints' => [ + ['regionId' => 'cn-qingdao', 'regionName' => '华北1(青岛)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-qingdao.aliyuncs.com', 'endpoint' => 'ververica.cn-qingdao.aliyuncs.com', 'vpc' => ''], + ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-shenzhen.aliyuncs.com', 'endpoint' => 'ververica.cn-shenzhen.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-shenzhen.aliyuncs.com'], + ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'ververica.cn-wulanchabu.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-wulanchabu.aliyuncs.com'], + ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-beijing.aliyuncs.com', 'endpoint' => 'ververica.cn-beijing.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-beijing.aliyuncs.com'], + ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.ap-northeast-1.aliyuncs.com', 'endpoint' => 'ververica.ap-northeast-1.aliyuncs.com', 'vpc' => 'ververica-vpc.ap-northeast-1.aliyuncs.com'], + ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-chengdu.aliyuncs.com', 'endpoint' => 'ververica.cn-chengdu.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-chengdu.aliyuncs.com'], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-shanghai.aliyuncs.com', 'endpoint' => 'ververica.cn-shanghai.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-hongkong.aliyuncs.com', 'endpoint' => 'ververica.cn-hongkong.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-hongkong.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.ap-southeast-1.aliyuncs.com', 'endpoint' => 'ververica.ap-southeast-1.aliyuncs.com', 'vpc' => 'ververica-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.ap-southeast-3.aliyuncs.com', 'endpoint' => 'ververica.ap-southeast-3.aliyuncs.com', 'vpc' => 'ververica-vpc.ap-southeast-3.aliyuncs.com'], + ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.ap-southeast-5.aliyuncs.com', 'endpoint' => 'ververica.ap-southeast-5.aliyuncs.com', 'vpc' => 'ververica-vpc.ap-southeast-5.aliyuncs.com'], + ['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'ververica.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-zhangjiakou.aliyuncs.com'], + ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ververica.cn-hangzhou.aliyuncs.com', 'endpoint' => 'ververica.cn-hangzhou.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-hangzhou.aliyuncs.com'], + ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'ververica.us-west-1.aliyuncs.com', 'endpoint' => 'ververica.us-west-1.aliyuncs.com', 'vpc' => 'ververica-vpc.us-west-1.aliyuncs.com'], + ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'ververica.us-east-1.aliyuncs.com', 'endpoint' => 'ververica.us-east-1.aliyuncs.com', 'vpc' => 'ververica-vpc.us-east-1.aliyuncs.com'], + ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'ververica.eu-central-1.aliyuncs.com', 'endpoint' => 'ververica.eu-central-1.aliyuncs.com', 'vpc' => 'ververica-vpc.eu-central-1.aliyuncs.com'], + ['regionId' => 'eu-west-1', 'regionName' => '英国(伦敦)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'ververica.eu-west-1.aliyuncs.com', 'endpoint' => 'ververica.eu-west-1.aliyuncs.com', 'vpc' => 'ververica-vpc.eu-west-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'ververica.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'ververica.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'ververica-vpc.cn-shanghai-finance-1.aliyuncs.com'], + ], + 'errorCodes' => [], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSavepoint'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeploymentDraftLock'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVariable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeployDeploymentDraftAsync'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeploymentDraft'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeploymentTarget'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateMember'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateUdfArtifact'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListCustomConnectors'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListVariables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeploymentDraft'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListEngineVersionMetadata'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteFolder'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeploymentTargets'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAppliedScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApplyScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopApplyScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetFolder'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeployments'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateVariable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'HotUpdateJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMember'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeployment'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJobDiagnosis'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSavepoint'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetGenerateResourcePlanResult'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSavepoints'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployDeploymentDraftResult'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateSqlStatement'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RegisterCustomConnector'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeploymentDraft'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMember'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTables'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListSessionClusters'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListJobs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FlinkApiProxy'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartJobWithParams'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetCatalogs'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetHotUpdateJobResult'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeployment'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StartJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateMember'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSavepoint'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteSqlStatement'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'RegisterUdfFunction'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListScheduledPlanExecutedHistory'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateDeployment'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteDeploymentTarget'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteUdfFunction'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDeployment'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteJob'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GenerateResourcePlanWithFlinkConfAsync'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListMembers'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLineageInfo'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteUdfArtifact'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateUdfArtifact'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeploymentTarget'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetLatestJobStartLog'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateVariable'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListScheduledPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetDatabases'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListDeploymentDrafts'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateFolder'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateDeploymentDraft'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteSessionCluster'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetEvents'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteCustomConnector'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetUdfArtifacts'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateFolder'], + ], + ], + 'ram' => [ + 'productCode' => 'RealtimeCompute', + 'productName' => '实时计算 Flink版', + 'ramCodes' => ['stream', 'fluss'], + 'ramLevel' => '操作级', + 'ramConditions' => [], + 'ramActions' => [ + [ + 'apiName' => 'GetCatalogs', + 'description' => '获取Catalog信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetCatalogs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'ListEngineVersionMetadata', + 'description' => '获取引擎版本列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListEngineVersionMetadata', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListMembers', + 'description' => '查看项目下成员授权列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListMembers', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'ListCustomConnectors', + 'description' => '获取自定义连接器列表', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ListCustomConnectors', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'StartJob', + 'description' => '启动作业实例(废弃)', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StartJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetHotUpdateJobResult', + 'description' => '获取作业动态更新结果', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetHotUpdateJobResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListSavepoints', + 'description' => '获取作业快照及系统检查点列表', 'operationType' => 'list', - 'abilityTreeCode' => '147070', - 'abilityTreeNodes' => [ - 'FEATUREscGTCR1G', + 'ramAction' => [ + 'action' => 'stream:ListSavepoints', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bda1c4a****', + [ + 'apiName' => 'CreateDeploymentDraft', + 'description' => '创建作业草稿', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + ], + [ + 'apiName' => 'CreateSavepoint', + 'description' => '创建快照', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'pageSize', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,所请求页码的元素数量,最大值为100,默认值为10。', - 'description' => '分页参数,表示所请求页码元素数量,最大值为100,最小值为1,默认值为10。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'maximum' => '100', - 'minimum' => '1', - 'example' => '10', - 'default' => '10', + ], + [ + 'apiName' => 'DeleteDeploymentTarget', + 'description' => '删除部署目标', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'pageIndex', - 'in' => 'query', - 'schema' => [ - 'title' => '分页参数,页码索引,表示所请求页码,默认值为1。', - 'description' => '分页参数,页码索引,表示所请求页码,最小值为1,默认值为1。', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'example' => '1', - 'default' => '1', + ], + [ + 'apiName' => 'GetEvents', + 'description' => '获取运行事件', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetEvents', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应数据。', - 'description' => 'Schema of Response', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-ABCF-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'pageSize' => [ - 'title' => '分页参数,所请求页码的元素数量。', - 'description' => '分页参数,表示所请求页码元素数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'pageIndex' => [ - 'title' => '分页参数,页码索引,表示所请求页码。', - 'description' => '分页参数,页码索引,表示所请求页码。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'totalSize' => [ - 'title' => '满足查询条件的所有元素的数量。', - 'description' => '满足查询条件的所有元素的数量。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'data' => [ - 'title' => '当success为true,返回满足查询条件的所有变量;当success为false,该值为空。', - 'description' => '- 当success为true,返回满足查询条件的变量列表;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'array', - 'items' => [ - 'title' => '变量数据。', - 'description' => '变量数据。', - '$ref' => '#/components/schemas/Variable', - ], - ], - ], + [ + 'apiName' => 'GetDeployDeploymentDraftResult', + 'description' => '获取作业草稿部署结果', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetDeployDeploymentDraftResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-ABCF-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"pageSize\\": 10,\\n \\"pageIndex\\": 1,\\n \\"totalSize\\": 1,\\n \\"data\\": [\\n {\\n \\"kind\\": \\"Plain\\",\\n \\"name\\": \\"variableName\\",\\n \\"value\\": \\"variableValue\\",\\n \\"description\\": \\"This is a variable description\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListVariablesResponse>\\n <requestId>CBC799F0-ABCF-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <pageSize>10</pageSize>\\n <pageIndex>1</pageIndex>\\n <totalSize>1</totalSize>\\n <data>\\n <kind>Plain</kind>\\n <name>variableName</name>\\n <value>variableValue</value>\\n <description>This is a variable description</description>\\n </data>\\n</ListVariablesResponse>","errorExample":""}]', - 'title' => '获取变量列表', - ], - 'ListEngineVersionMetadata' => [ - 'summary' => '获取系统支持的引擎版本列表。', - 'path' => '/api/v2/engine-version-meta.json', - 'methods' => [ - 'get', + [ + 'apiName' => 'CreateDeployment', + 'description' => '创建已部署作业', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'CreateMember', + 'description' => '新增成员授权', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'CreateFolder', + 'description' => '创建文件夹', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'UpdateDeploymentDraft', + 'description' => '更新作业草稿', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'DeleteJob', + 'description' => '删除作业实例', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'CreateScheduledPlan', + 'description' => '创建定时计划', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteUdfFunction', + 'description' => '删除自定义函数', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:DeleteUdfFunction', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteMember', + 'description' => '删除用户权限', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListVariables', + 'description' => '获取变量列表', 'operationType' => 'list', - 'abilityTreeCode' => '146861', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', + 'ramAction' => [ + 'action' => 'stream:ListVariables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', + [ + 'apiName' => 'ExecuteSqlStatement', + 'description' => '执行元数据SQL语句', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ExecuteSqlStatement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回系统支持的引擎版本总体信息;当success为false,该值为空。', - 'description' => '- 当success为true,返回系统支持的引擎版本总体信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/EngineVersionMetadataIndex', - ], - ], + [ + 'apiName' => 'ValidateDeploymentDraftAsync', + 'description' => '异步进行作业草稿深度检查', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ValidateDeploymentDraftAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"defaultEngineVersion\\": \\"vvr-6.0.1-flink-1.15\\",\\n \\"engineVersionMetadata\\": [\\n {\\n \\"engineVersion\\": \\"vvr-6.0.0-flink-1.15\\",\\n \\"status\\": \\"STABLE\\",\\n \\"features\\": {\\n \\"useForSqlDeployments\\": true,\\n \\"supportNativeSavepoint\\": true\\n }\\n }\\n ]\\n }\\n}","errorExample":""},{"type":"xml","example":"<ListEngineVersionMetadataResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <defaultEngineVersion>vvr-6.0.1-flink-1.15</defaultEngineVersion>\\n <engineVersionMetadata>\\n <engineVersion>vvr-6.0.0-flink-1.15</engineVersion>\\n <status>STABLE</status>\\n <features>\\n <useForSqlDeployments>true</useForSqlDeployments>\\n <supportNativeSavepoint>true</supportNativeSavepoint>\\n </features>\\n </engineVersionMetadata>\\n </data>\\n</ListEngineVersionMetadataResponse>","errorExample":""}]', - 'title' => '获取引擎版本列表', - ], - 'GenerateResourcePlanWithFlinkConfAsync' => [ - 'summary' => '提交异步生成resource plan工单,返回一个异步工单ID用于查询工单结果。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/{deploymentId}/resource-plan:asyncGenerate', - 'methods' => [ - 'post', + [ + 'apiName' => 'GetSavepoint', + 'description' => '获取快照和系统检查点', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'GetSessionCluster', + 'description' => '获取Session集群', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'UpdateMember', + 'description' => '更新用户授权信息', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetTables', + 'description' => '获取表信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetTables', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'GetGenerateResourcePlanResult', + 'description' => '获取异步生成细粒度资源结果', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetGenerateResourcePlanResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'UpdateFolder', + 'description' => '更新文件夹', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'operationType' => 'readAndWrite', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'DeleteVariable', + 'description' => '删除变量', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteDeployment', + 'description' => '删除已部署作业', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListDeploymentDrafts', + 'description' => '查看作业草稿列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeploymentDrafts', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetDeploymentDraftLock', + 'description' => '获取作业草稿编辑锁', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentDraftLock', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetDeploymentDraft', + 'description' => '获取作业草稿详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteCustomConnector', + 'description' => '删除自定义连接器', 'operationType' => 'none', - 'abilityTreeCode' => '151658', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', + 'ramAction' => [ + 'action' => 'stream:DeleteCustomConnector', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', + [ + 'apiName' => 'GetDatabases', + 'description' => '获取Database信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDatabases', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + ], + [ + 'apiName' => 'UpdateDeploymentTarget', + 'description' => '更新部署目标', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'deploymentId', - 'in' => 'path', - 'schema' => [ - 'title' => 'deploymentId信息,deployment唯一标识。', - 'description' => 'deploymentId,deployment的唯一标识。', - 'type' => 'string', - 'required' => true, - 'example' => '737d0921-c5ac-47fc-9ba9-07a1e0b4****', + ], + [ + 'apiName' => 'ListDeployments', + 'description' => '获取已部署作业列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeployments', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '生成resource plan需要的Flink configuration。', - 'required' => false, - '$ref' => '#/components/schemas/FlinkConf', + ], + [ + 'apiName' => 'RegisterCustomConnector', + 'description' => '注册自定义连接器', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:RegisterCustomConnector', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '- 当success为true,返回异步操作结果信息;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'object', - 'properties' => [ - 'ticketId' => [ - 'title' => '异步工单ID,可以使用该ID查询异步操作结果。 ', - 'description' => '回执ID,用于查询异步操作结果。', - 'type' => 'string', - 'example' => 'b3dcdb25-bf36-457d-92ba-a36077e8****', - ], - ], - ], - ], + [ + 'apiName' => 'StartSessionCluster', + 'description' => '启动Session集群', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StartSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketId\\": \\"b3dcdb25-bf36-457d-92ba-a36077e8****\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GenerateResourcePlanWithFlinkConfAsyncResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <ticketId>b3dcdb25-bf36-457d-92ba-a36077e8****</ticketId>\\n </data>\\n</GenerateResourcePlanWithFlinkConfAsyncResponse>","errorExample":""}]', - 'title' => '异步生成细粒度资源', - ], - 'GetGenerateResourcePlanResult' => [ - 'summary' => '根据异步工单ID获取异步生成细粒度资源结果。', - 'path' => '/api/v2/namespaces/{namespace}/deployments/tickets/{ticketId}/resource-plan:asyncGenerate', - 'methods' => [ - 'get', + [ + 'apiName' => 'FlinkApiProxy', + 'description' => 'Flink Rest API代理', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:FlinkApiProxy', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'DeleteFolder', + 'description' => '删除文件夹', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetDeploymentsByLabel', + 'description' => '通过标签搜索已部署作业', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByLabel', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'UpdateScheduledPlan', + 'description' => '更新定时计划', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'HotUpdateJob', + 'description' => '动态更新作业', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:HotUpdateJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetDeploymentsByIp', + 'description' => '通过IP搜索已部署作业', 'operationType' => 'get', - 'abilityTreeCode' => '147081', - 'abilityTreeNodes' => [ - 'FEATUREscWKZGIA', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByIp', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', + [ + 'apiName' => 'CreateDeploymentTarget', + 'description' => '创建部署目标', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentTarget', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'namespace', - 'in' => 'path', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + ], + [ + 'apiName' => 'GetMember', + 'description' => '查看成员授权信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetMember', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'ticketId', - 'in' => 'path', - 'schema' => [ - 'title' => '异步工单ID,可以通过提交异步操作获取。', - 'description' => '回执ID,调用GenerateResourcePlanWithFlinkConfAsync API获取。', - 'type' => 'string', - 'required' => true, - 'example' => '88a8fc49-e090-430a-85d8-3ee8c79c****', + ], + [ + 'apiName' => 'CreateSessionCluster', + 'description' => '创建Session集群', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应数据。', - 'description' => '响应数据。', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '异步操作结果。', - 'description' => '- 当success为true,返回异步操作结果;'."\n" - ."\n" - .'- 当success为false,返回空值。', - '$ref' => '#/components/schemas/AsyncResourcePlanOperationResult', - ], - ], + [ + 'apiName' => 'GetDeployment', + 'description' => '获取已部署作业', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"ticketStatus\\": \\"FINISHED\\",\\n \\"plan\\": \\"{\\\\\\\\\\\\\\"ssgProfiles\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"cpu\\\\\\\\\\\\\\":1.13,\\\\\\\\\\\\\\"heap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1 gb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"offHeap\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"32 mb\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"managed\\\\\\\\\\\\\\":{},\\\\\\\\\\\\\\"extended\\\\\\\\\\\\\\":{}}],\\\\\\\\\\\\\\"nodes\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecTableSourceScan\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Source: datagen_source[78]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}},{\\\\\\\\\\\\\\"id\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"type\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"StreamExecSink\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"desc\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Sink: blackhole_sink[79]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"profile\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"group\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"default\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"parallelism\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"maxParallelism\\\\\\\\\\\\\\":32768,\\\\\\\\\\\\\\"minParallelism\\\\\\\\\\\\\\":1}}],\\\\\\\\\\\\\\"edges\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"source\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"target\\\\\\\\\\\\\\":2,\\\\\\\\\\\\\\"mode\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"PIPELINED\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"strategy\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"FORWARD\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"vertices\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\\\\\\\\\":[1,2]}}\\",\\n \\"message\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetGenerateResourcePlanResultResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <success>true</success>\\n <httpCode>200</httpCode>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>\\n <ticketStatus>FINISHED</ticketStatus>\\n <plan>{\\\\\\"ssgProfiles\\\\\\":[{\\\\\\"name\\\\\\":\\\\\\"default\\\\\\",\\\\\\"cpu\\\\\\":1.13,\\\\\\"heap\\\\\\":\\\\\\"1 gb\\\\\\",\\\\\\"offHeap\\\\\\":\\\\\\"32 mb\\\\\\",\\\\\\"managed\\\\\\":{},\\\\\\"extended\\\\\\":{}}],\\\\\\"nodes\\\\\\":[{\\\\\\"id\\\\\\":1,\\\\\\"type\\\\\\":\\\\\\"StreamExecTableSourceScan\\\\\\",\\\\\\"desc\\\\\\":\\\\\\"Source: datagen_source[78]\\\\\\",\\\\\\"profile\\\\\\":{\\\\\\"group\\\\\\":\\\\\\"default\\\\\\",\\\\\\"parallelism\\\\\\":1,\\\\\\"maxParallelism\\\\\\":32768,\\\\\\"minParallelism\\\\\\":1}},{\\\\\\"id\\\\\\":2,\\\\\\"type\\\\\\":\\\\\\"StreamExecSink\\\\\\",\\\\\\"desc\\\\\\":\\\\\\"Sink: blackhole_sink[79]\\\\\\",\\\\\\"profile\\\\\\":{\\\\\\"group\\\\\\":\\\\\\"default\\\\\\",\\\\\\"parallelism\\\\\\":1,\\\\\\"maxParallelism\\\\\\":32768,\\\\\\"minParallelism\\\\\\":1}}],\\\\\\"edges\\\\\\":[{\\\\\\"source\\\\\\":1,\\\\\\"target\\\\\\":2,\\\\\\"mode\\\\\\":\\\\\\"PIPELINED\\\\\\",\\\\\\"strategy\\\\\\":\\\\\\"FORWARD\\\\\\"}],\\\\\\"vertices\\\\\\":{\\\\\\"717c7b8afebbfb7137f6f0f99beb2a94\\\\\\":[1,2]}}</plan>\\n <message>\\"\\"</message>\\n </data>\\n</GetGenerateResourcePlanResultResponse>","errorExample":""}]', - 'title' => '获取异步生成细粒度资源结果', - ], - 'FlinkApiProxy' => [ - 'summary' => '您可以使用flink rest api的方式来调用本接口,获取session集群或者运行作业的相关信息。注意本接口仅支持您获取相关信息,无法对session集群和作业进行操作或管理。', - 'path' => '/flink-ui/v2/proxy', - 'methods' => [ - 'get', + [ + 'apiName' => 'StopSessionCluster', + 'description' => '停止Session集群', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'DeleteDeploymentDraft', + 'description' => '删除作业草稿', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteDeploymentDraft', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListJobs', + 'description' => '获取作业实例列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListJobs', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'DeleteUdfArtifact', + 'description' => '删除自定义函数资源', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'ValidateSqlStatement', + 'description' => '验证sql语句', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ValidateSqlStatement', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'CreateVariable', + 'description' => '创建变量', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateDeployment', + 'description' => '更新已部署作业', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeployment', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateSessionCluster', + 'description' => '更新Session集群', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListScheduledPlan', + 'description' => '获取定时计划列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateUdfArtifact', + 'description' => '更新自定义函数文件', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'StartJobWithParams', + 'description' => '启动作业实例', 'operationType' => 'none', - 'abilityTreeCode' => '146918', - 'abilityTreeNodes' => [ - 'FEATUREscO1AVSF', + 'ramAction' => [ + 'action' => 'stream:StartJobWithParams', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => 'a14bd5d90a****', + [ + 'apiName' => 'GetLatestJobStartLog', + 'description' => '获取最新作业实例的启动日志', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetLatestJobStartLog', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'namespace', - 'in' => 'query', - 'schema' => [ - 'title' => '项目空间名称。', - 'description' => '项目空间名称。', - 'type' => 'string', - 'required' => true, - 'example' => 'default-namespace', + ], + [ + 'apiName' => 'GetAppliedScheduledPlan', + 'description' => '获取应用的定时计划', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetAppliedScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'resourceType', - 'in' => 'query', - 'schema' => [ - 'title' => '资源类型,支持以下类型:'."\n" - .'-jobs', - 'description' => '资源类型,支持以下类型:'."\n" - .'<ul>'."\n" - .'<li>'."\n" - .'jobs'."\n" - .'</li>'."\n" - .'<li>'."\n" - .'sessionclusters'."\n" - .'</li>'."\n" - .'</ul>', - 'type' => 'string', - 'required' => true, - 'example' => 'jobs', + ], + [ + 'apiName' => 'ApplyScheduledPlan', + 'description' => '应用定时计划', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:ApplyScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'resourceId', - 'in' => 'query', - 'schema' => [ - 'title' => '资源ID。', - 'description' => '资源类型是jobs,则使用jobid;资源类型是sessionclusters,则使用session名称。', - 'type' => 'string', - 'required' => true, - 'example' => '5a27a3aa-c5b9-4dc1-8c86-be57d2d6****', + ], + [ + 'apiName' => 'CreateDeploymentTargetV2', + 'description' => '创建部署目标(V2版本)', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateDeploymentTargetV2', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'flinkApiPath', - 'in' => 'query', - 'schema' => [ - 'title' => 'flink-ui路径。', - 'description' => 'flink rest api路径。如/jobs/jobid/config可以获取jobid对应作业的配置信息,更多使用可查看[flink社区 rest api文档](https://nightlies.apache.org/flink/flink-docs-release-1.19/zh/docs/ops/rest_api/)。', - 'type' => 'string', - 'required' => true, - 'example' => '/jobs/:4df35f8e54554b23bf7dcd38a151****/config', + ], + [ + 'apiName' => 'GetJobDiagnosis', + 'description' => '获取作业诊断详情', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetJobDiagnosis', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '响应数据。', - 'description' => 'Flink请求的返回值。', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'httpCode' => [ - 'description' => '固定值200。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'success' => [ - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。 ', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'title' => '当success为true,返回代理请求结果;当success为false,该值为空。', - 'description' => '- 当success为true,返回代理请求结果;'."\n" - ."\n" - .'- 当success为false,返回空值。', - 'type' => 'string', - 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a151****", "name": "69d001d5-419a-4bfc-9c2e-849cacd3****", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }', - ], - ], - 'example' => '{ "jobs": [ { "jid": "4df35f8e54554b23bf7dcd38a15135f4", "name": "69d001d5-419a-4bfc-9c2e-849cacd31658", "state": "RUNNING", "start-time": 1659154942068, "end-time": -1, "duration": 188161756, "last-modification": 1659154968305, "tasks": { "total": 2, "created": 0, "scheduled": 0, "deploying": 0, "running": 2, "finished": 0, "canceling": 0, "canceled": 0, "failed": 0, "reconciling": 0, "initializing": 0 } } ] }', + [ + 'apiName' => 'DeleteScheduledPlan', + 'description' => '删除定时计划', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responseDemo' => '[{"type":"json","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"httpCode\\": 200,\\n \\"success\\": true,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": \\"{ \\\\\\"jobs\\\\\\": [ { \\\\\\"jid\\\\\\": \\\\\\"4df35f8e54554b23bf7dcd38a151****\\\\\\", \\\\\\"name\\\\\\": \\\\\\"69d001d5-419a-4bfc-9c2e-849cacd3****\\\\\\", \\\\\\"state\\\\\\": \\\\\\"RUNNING\\\\\\", \\\\\\"start-time\\\\\\": 1659154942068, \\\\\\"end-time\\\\\\": -1, \\\\\\"duration\\\\\\": 188161756, \\\\\\"last-modification\\\\\\": 1659154968305, \\\\\\"tasks\\\\\\": { \\\\\\"total\\\\\\": 2, \\\\\\"created\\\\\\": 0, \\\\\\"scheduled\\\\\\": 0, \\\\\\"deploying\\\\\\": 0, \\\\\\"running\\\\\\": 2, \\\\\\"finished\\\\\\": 0, \\\\\\"canceling\\\\\\": 0, \\\\\\"canceled\\\\\\": 0, \\\\\\"failed\\\\\\": 0, \\\\\\"reconciling\\\\\\": 0, \\\\\\"initializing\\\\\\": 0 } } ] }\\"\\n}","errorExample":""},{"type":"xml","example":"<FlinkApiProxyResponse>\\n <requestId>CBC799F0-AS7S-1D30-8A4F-882ED4DD****</requestId>\\n <httpCode>200</httpCode>\\n <success>true</success>\\n <errorCode>\\"\\"</errorCode>\\n <errorMessage>\\"\\"</errorMessage>\\n <data>{ \\"jobs\\": [ { \\"jid\\": \\"4df35f8e54554b23bf7dcd38a151****\\", \\"name\\": \\"69d001d5-419a-4bfc-9c2e-849cacd3****\\", \\"state\\": \\"RUNNING\\", \\"start-time\\": 1659154942068, \\"end-time\\": -1, \\"duration\\": 188161756, \\"last-modification\\": 1659154968305, \\"tasks\\": { \\"total\\": 2, \\"created\\": 0, \\"scheduled\\": 0, \\"deploying\\": 0, \\"running\\": 2, \\"finished\\": 0, \\"canceling\\": 0, \\"canceled\\": 0, \\"failed\\": 0, \\"reconciling\\": 0, \\"initializing\\": 0 } } ] }</data>\\n</FlinkApiProxyResponse>","errorExample":""}]', - 'title' => 'Flink Rest API代理', - ], - 'GetLineageInfo' => [ - 'summary' => '通过本API可以获取作业和数据的血缘信息。', - 'path' => '/meta/v2/lineage', - 'methods' => [ - 'post', + [ + 'apiName' => 'CreateUdfArtifact', + 'description' => '创建自定义函数文件', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'stream:CreateUdfArtifact', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'https', + [ + 'apiName' => 'DeleteSessionCluster', + 'description' => '删除Session集群', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteSessionCluster', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListDeploymentTargets', + 'description' => '获取部署目标列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListDeploymentTargets', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'consumes' => [ - 'application/json', + [ + 'apiName' => 'DeleteSavepoint', + 'description' => '删除快照', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'stream:DeleteSavepoint', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'produces' => [ - 'application/json', + [ + 'apiName' => 'GetUdfArtifacts', + 'description' => '获取自定义函数资源详情', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetUdfArtifacts', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'DeployDeploymentDraftAsync', + 'description' => '部署作业草稿', 'operationType' => 'none', - 'abilityTreeCode' => '230001', - 'abilityTreeNodes' => [ - 'FEATUREscDYS18E', + 'ramAction' => [ + 'action' => 'stream:DeployDeploymentDraftAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], ], ], - 'parameters' => [ - [ - 'name' => 'workspace', - 'in' => 'header', - 'schema' => [ - 'title' => '工作空间ID。', - 'description' => '工作空间ID。', - 'type' => 'string', - 'required' => true, - 'example' => '710d6a64d8****', + [ + 'apiName' => 'StopJob', + 'description' => '停止作业实例', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], - [ - 'name' => 'body', - 'in' => 'body', - 'schema' => [ - 'description' => '血缘信息参数结构体。', - 'required' => false, - '$ref' => '#/components/schemas/GetLineageInfoParams', + ], + [ + 'apiName' => 'GetJob', + 'description' => '获取作业实例', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetJob', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => '当success为true,返回创建的作业;当success为false,该值为空。', - 'description' => '当success为true,返回项目空间下指定的血缘信息;当success为false,该值为空。', - 'type' => 'object', - 'properties' => [ - 'requestId' => [ - 'title' => '请求ID。', - 'description' => '请求ID。', - 'type' => 'string', - 'example' => 'CBC799F0-AS7S-1D30-8A4F-882ED4DD****', - ], - 'success' => [ - 'title' => '表示业务请求是否成功。', - 'description' => '表示业务请求是否成功。', - 'type' => 'boolean', - 'example' => 'true', - ], - 'httpCode' => [ - 'title' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'description' => '业务状态码,统一为200;使用success表示业务请求是否成功。', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '200', - ], - 'errorCode' => [ - 'title' => '当success为false时,该值不为空,表示业务错误码;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误码;'."\n" - .' '."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'errorMessage' => [ - 'title' => '当success为false时,该值不为空,表示业务错误信息;当success为true时,该值为空。', - 'description' => '- 当success为false,返回业务错误信息;'."\n" - ."\n" - .'- 当success为true,返回空值。', - 'type' => 'string', - 'example' => '""', - ], - 'data' => [ - 'description' => '血缘信息详情。', - '$ref' => '#/components/schemas/LineageInfo', - ], - ], + [ + 'apiName' => 'GetFolder', + 'description' => '获取文件夹信息', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetFolder', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'RegisterUdfFunction', + 'description' => '注册自定义函数', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:RegisterUdfFunction', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'StopApplyScheduledPlan', + 'description' => '停止应用定时计划', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:StopApplyScheduledPlan', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateDeploymentTargetV2', + 'description' => '更新部署目标(V2)', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateDeploymentTargetV2', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetDeploymentsByName', + 'description' => '通过名称搜索已部署作业', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'stream:GetDeploymentsByName', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GenerateResourcePlanWithFlinkConfAsync', + 'description' => '异步生成细粒度资源', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GenerateResourcePlanWithFlinkConfAsync', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'UpdateVariable', + 'description' => '修改项目变量', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'stream:UpdateVariable', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListSessionClusters', + 'description' => '获取Session集群列表', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'stream:ListSessionClusters', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetValidateDeploymentDraftResult', + 'description' => '查询深度检查结果', + 'operationType' => 'none', + 'ramAction' => [ + 'action' => 'stream:GetValidateDeploymentDraftResult', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'RealtimeCompute', 'resourceType' => '全部资源', 'arn' => '*'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"CBC799F0-AS7S-1D30-8A4F-882ED4DD****\\",\\n \\"success\\": true,\\n \\"httpCode\\": 200,\\n \\"errorCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"errorMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"data\\": {\\n \\"nodes\\": [\\n {\\n \\"id\\": \\"\\",\\n \\"catalogName\\": \\"\\",\\n \\"databaseName\\": \\"\\",\\n \\"isTemporary\\": true,\\n \\"connector\\": \\"\\",\\n \\"tables\\": [\\n {\\n \\"id\\": \\"\\",\\n \\"tableName\\": \\"\\",\\n \\"with\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"columns\\": [\\n {\\n \\"id\\": \\"\\",\\n \\"columnName\\": \\"\\",\\n \\"nullable\\": true,\\n \\"description\\": \\"\\",\\n \\"columnType\\": \\"\\",\\n \\"columnNativeType\\": \\"\\",\\n \\"createdAt\\": 0,\\n \\"modifiedAt\\": 0,\\n \\"creator\\": \\"\\",\\n \\"modifier\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"edges\\": {\\n \\"tableLineage\\": [\\n {\\n \\"source\\": \\"\\",\\n \\"destination\\": \\"\\",\\n \\"jobId\\": \\"\\"\\n }\\n ],\\n \\"columnLineage\\": [\\n {\\n \\"source\\": \\"\\",\\n \\"destination\\": \\"\\",\\n \\"jobId\\": \\"\\"\\n }\\n ]\\n },\\n \\"jobInfos\\": [\\n {\\n \\"id\\": \\"\\",\\n \\"properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => '获取血缘信息', - ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-hongkong', - 'endpoint' => 'ververica.cn-hongkong.aliyuncs.com', - ], - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'ververica.cn-hangzhou.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'ververica.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'ververica.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-beijing', - 'endpoint' => 'ververica.cn-beijing.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shenzhen', - 'endpoint' => 'ververica.cn-shenzhen.aliyuncs.com', - ], - [ - 'regionId' => 'cn-zhangjiakou', - 'endpoint' => 'ververica.cn-zhangjiakou.aliyuncs.com', - ], - [ - 'regionId' => 'eu-central-1', - 'endpoint' => 'ververica.eu-central-1.aliyuncs.com', - ], - [ - 'regionId' => 'eu-west-1', - 'endpoint' => 'ververica.eu-west-1.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-5', - 'endpoint' => 'ververica.ap-southeast-5.aliyuncs.com', - ], - [ - 'regionId' => 'ap-southeast-3', - 'endpoint' => 'ververica.ap-southeast-3.aliyuncs.com', - ], - [ - 'regionId' => 'us-west-1', - 'endpoint' => 'ververica.us-west-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'ververica.cn-shanghai-finance-1.aliyuncs.com', - ], - [ - 'regionId' => 'us-east-1', - 'endpoint' => 'ververica.us-east-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-wulanchabu', - 'endpoint' => 'ververica.cn-wulanchabu.aliyuncs.com', - ], - [ - 'regionId' => 'cn-chengdu', - 'endpoint' => 'ververica.cn-chengdu.aliyuncs.com', - ], - [ - 'regionId' => 'ap-northeast-1', - 'endpoint' => 'ververica.ap-northeast-1.aliyuncs.com', ], + 'resourceTypes' => [], ], ]; |
