summaryrefslogtreecommitdiff
path: root/data/zh_cn/eflo-cnp/2023-08-28
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/eflo-cnp/2023-08-28')
-rw-r--r--data/zh_cn/eflo-cnp/2023-08-28/api-docs.php7732
1 files changed, 2430 insertions, 5302 deletions
diff --git a/data/zh_cn/eflo-cnp/2023-08-28/api-docs.php b/data/zh_cn/eflo-cnp/2023-08-28/api-docs.php
index 8fa0c0e..a6d9d48 100644
--- a/data/zh_cn/eflo-cnp/2023-08-28/api-docs.php
+++ b/data/zh_cn/eflo-cnp/2023-08-28/api-docs.php
@@ -1,1278 +1,830 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'eflo-cnp',
- 'version' => '2023-08-28',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'eflo-cnp', 'version' => '2023-08-28'],
'directories' => [
[
- 'id' => 204161,
- 'title' => '资源',
+ 'children' => ['CreateResource', 'ValidateResource', 'GetResource'],
'type' => 'directory',
- 'children' => [
- 'CreateResource',
- 'ValidateResource',
- 'GetResource',
- ],
+ 'title' => '资源',
],
[
- 'id' => 204165,
- 'title' => '模型',
+ 'children' => ['ListWorkloads', 'GetWorkload'],
'type' => 'directory',
- 'children' => [
- 'ListWorkloads',
- 'GetWorkload',
- ],
+ 'title' => '模型',
],
[
- 'id' => 204168,
- 'title' => '实验',
+ 'children' => ['StopExperiment', 'GetExperiment', 'DeleteExperiment', 'ListExperiments', 'GetExperimentResultData', 'CheckServiceLinkedRoleEfloCnpForDeleting'],
'type' => 'directory',
- 'children' => [
- 'StopExperiment',
- 'GetExperiment',
- 'DeleteExperiment',
- 'ListExperiments',
- 'GetExperimentResultData',
- 'CheckServiceLinkedRoleEfloCnpForDeleting',
- ],
+ 'title' => '实验',
],
[
- 'id' => 204174,
- 'title' => '实验模版',
+ 'children' => ['CreateExperimentPlanTemplate', 'UpdateExperimentPlanTemplate', 'GetExperimentPlanTemplate', 'DeleteExperimentPlanTemplate', 'ListExperimentPlanTemplates', 'GetResourcePredictResult'],
'type' => 'directory',
- 'children' => [
- 'CreateExperimentPlanTemplate',
- 'UpdateExperimentPlanTemplate',
- 'GetExperimentPlanTemplate',
- 'DeleteExperimentPlanTemplate',
- 'ListExperimentPlanTemplates',
- 'GetResourcePredictResult',
- ],
+ 'title' => '实验模版',
],
[
- 'id' => 204181,
- 'title' => '实验计划',
+ 'children' => ['CreateExperimentPlan', 'UpdateExperimentPlan', 'GetExperimentPlan', 'DeleteExperimentPlan', 'ListExperimentPlans', 'ChangeResourceGroup', 'UntagResources', 'TagResources', 'ListTagResources'],
'type' => 'directory',
- 'children' => [
- 'CreateExperimentPlan',
- 'UpdateExperimentPlan',
- 'GetExperimentPlan',
- 'DeleteExperimentPlan',
- 'ListExperimentPlans',
- 'ChangeResourceGroup',
- 'UntagResources',
- 'TagResources',
- 'ListTagResources',
- ],
+ 'title' => '实验计划',
],
],
'components' => [
'schemas' => [],
],
'apis' => [
- 'CreateResource' => [
- 'summary' => '添加集群信息。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ChangeResourceGroup' => [
+ 'summary' => '资源转组',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195094',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '213735',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ClusterName',
+ 'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'tre-1',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => false, 'example' => 'ExperimentPlan', 'default' => 'ExperimentPlan'],
],
[
- 'name' => 'ClusterDesc',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'title' => '集群描述',
- 'description' => '集群描述',
- 'type' => 'string',
- 'required' => false,
- 'example' => '集群1',
- ],
+ 'schema' => ['title' => '资源Id', 'description' => '资源Id', 'type' => 'string', 'required' => true, 'example' => '123'],
],
[
- 'name' => 'ClusterId',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'title' => '集群Id',
- 'description' => '集群Id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ehpc-sh-fj71c0ycfw',
- ],
+ 'schema' => ['title' => '地域Id', 'description' => '地域Id', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
],
[
- 'name' => 'MachineTypes',
- 'in' => 'formData',
- 'style' => 'json',
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '目标资源组', 'description' => '目标资源组', 'type' => 'string', 'required' => true, 'example' => 'rg-aek25k3b4pbhc4a'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '规格类型',
- 'description' => '规格类型',
+ 'title' => 'Schema of Response',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => '内存信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '32x 64GB DDR4 4800 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => '类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Private',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => '网络bond的数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => '节点个数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'cpu的信息',
- 'type' => 'string',
- 'required' => true,
- 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => '网络信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\\\n4x 200Gbps Dual Port EIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'gpu的信息',
- 'type' => 'string',
- 'required' => true,
- 'example' => '8x NVIDIA SXM4 80GB A100 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => '磁盘信息',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => '网络模式',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => '规格名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'efg1.nvga1n',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
],
- 'required' => true,
],
],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'MissingParameter.RegionId', 'errorMessage' => 'The RegionId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceId', 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceGroupId', 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'InvalidResourceGroup', 'errorMessage' => 'The specified ResourceGroupId is invalid', 'description' => ''],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => '系统错误'],
+ ['errorCode' => 'ResourceNotFound', 'errorMessage' => ' The specified resource is not found', 'description' => ''],
+ ],
+ 403 => [
+ ['errorCode' => 'NoPermission.ChangeResourceGroup', 'errorMessage' => 'You are not authorized to change resourcegroup', 'description' => ''],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\"\\n}","type":"json"}]',
+ 'title' => '资源转组',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'UserAccessParam',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '用户授权参数',
- 'description' => '用户授权参数',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => '用户id',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => '用户key',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '工作空间ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1245688643',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'endpoint',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => '全部资源', 'arn' => '*'],
],
- 'required' => true,
],
],
],
+ ],
+ 'CheckServiceLinkedRoleEfloCnpForDeleting' => [
+ 'summary' => 'slr权限校验。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '195191',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RoleArn',
+ 'in' => 'query',
+ 'schema' => ['title' => 'API角色', 'description' => 'API角色', 'type' => 'string', 'required' => false, 'example' => 'arn:aws:iam::345678901234:role/eflo-cnp-role'],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['title' => '服务名称', 'description' => '服务名称', 'type' => 'string', 'required' => false, 'example' => 'eflo-cnp'],
+ ],
+ [
+ 'name' => 'SPIRegionId',
+ 'in' => 'query',
+ 'schema' => ['title' => 'SPI的地域', 'description' => 'SPI的地域', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ ],
+ [
+ 'name' => 'DeletionTaskId',
+ 'in' => 'query',
+ 'schema' => ['title' => '删除的任务ID', 'description' => '删除的任务ID', 'type' => 'string', 'required' => false, 'example' => 'task-003'],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => ['title' => '主账号ID', 'description' => '主账号ID', 'type' => 'string', 'required' => false, 'example' => '345678901234'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => '资源对象',
+ 'title' => 'DeleteSlrResultVO',
+ 'description' => 'DeleteSlrResultVO',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'RequestId' => ['description' => '请求id', 'type' => 'string', 'example' => '6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94'],
+ 'Deletable' => ['description' => '是否可以删除。取值:'."\n"
+ .'- `true`: 可删除。'."\n"
+ .'- `false`: 不可删除。', 'type' => 'boolean', 'example' => 'True'],
+ 'Resources' => [
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源',
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => ['description' => '地域。', 'type' => 'string', 'example' => 'cn-beijing'],
+ 'Resources' => [
+ 'description' => '资源列表。',
+ 'type' => 'array',
+ 'items' => ['description' => '资源', 'type' => 'string', 'example' => '1049462126009625'],
+ ],
+ ],
+ ],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '添加集群信息',
- ],
- 'ValidateResource' => [
- 'summary' => '校验集群信息。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94\\",\\n \\"Deletable\\": true,\\n \\"Resources\\": [\\n {\\n \\"Region\\": \\"cn-beijing\\",\\n \\"Resources\\": [\\n \\"1049462126009625\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => '校验服务角色',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckServiceLinkedRoleEfloCnpForDeleting'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:CheckServiceLinkedRoleEfloCnpForDeleting',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateExperimentPlan' => [
+ 'summary' => '创建实验计划。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195095',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '194770',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ClusterId',
+ 'name' => 'TemplateId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源ID',
- 'description' => '资源ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ehpc-sh-ouypm5aucy',
- ],
+ 'schema' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '349623'],
],
[
- 'name' => 'UserAccessParam',
- 'in' => 'formData',
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源ID', 'description' => '资源ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
+ ],
+ [
+ 'name' => 'ExternalParams',
+ 'in' => 'query',
'style' => 'json',
+ 'schema' => ['title' => '额外的参数', 'description' => '额外的参数', 'type' => 'object', 'required' => false, 'example' => '{}'],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源组id', 'description' => '资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzij65sf2rr5i'],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '用户授权参数',
- 'description' => '用户授权参数',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => '用户id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => '用户key',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '工作空间ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'endpoint',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ 'title' => '资源标签',
+ 'description' => '资源标签',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '键', 'description' => '键', 'type' => 'string', 'required' => false, 'example' => 'owner'],
+ 'Value' => ['title' => '值', 'description' => '值', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
+ 'required' => false,
],
'required' => false,
+ 'maxItems' => 21,
],
],
+ [
+ 'name' => 'PlanTemplateName',
+ 'in' => 'query',
+ 'schema' => ['description' => '计划模版名称', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => '资源对象',
+ 'title' => '结果',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'integer', 'format' => 'int64', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '校验集群信息',
- ],
- 'GetResource' => [
- 'summary' => '获取集群信息。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '创建实验计划',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExperimentPlan'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'eflo:CreateExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateExperimentPlanTemplate' => [
+ 'summary' => '创建实验计划模版。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195097',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195306',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ClusterId',
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板ID', 'description' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '4724'],
+ ],
+ [
+ 'name' => 'TemplateName',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板名称', 'description' => 'Template Name', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ [
+ 'name' => 'TemplateDescription',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板介绍', 'description' => 'Template Description', 'type' => 'string', 'required' => false, 'example' => 'The template installs jdk and tomcat on a new ECS instance.'],
+ ],
+ [
+ 'name' => 'PrivacyLevel',
'in' => 'query',
+ 'schema' => ['title' => '隐私级别', 'description' => 'Privacy Level', 'type' => 'string', 'required' => true, 'example' => 'private'],
+ ],
+ [
+ 'name' => 'TemplatePipeline',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '灵骏的集群ID',
- 'description' => '灵骏的集群ID',
- 'type' => 'string',
+ 'title' => '模板流水线',
+ 'description' => 'Template Pipeline',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkloadId' => ['title' => '负载id', 'description' => 'Workload ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '14'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => 'Workload Name', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => 'Usage Scenario, e.g., "baseline"', 'type' => 'string', 'required' => true, 'example' => 'baseline'],
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => 'Configured Environment Parameters',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'CPU allocation count', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'GPU allocation count', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => 'Memory (GB) allocation count', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => 'Shared Memory (GB) allocation count', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => 'Number of nodes', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'CUDA Version', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCL Version', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GPU Driver Version', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorch Version', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ ],
+ 'required' => true,
+ ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => 'Node Order Number', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
+ 'SettingParams' => [
+ 'description' => 'Configured Workload Parameters',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => 'key-value pair'],
+ ],
+ ],
+ 'required' => false,
+ ],
'required' => true,
- 'example' => 'ehpc-bj-uo8f26cpmo',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => '资源对象',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
- 'description' => '数据',
+ 'description' => 'Data',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '集群id',
- 'description' => '集群id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'ClusterId' => [
- 'title' => '集群id',
- 'description' => '集群id',
- 'type' => 'string',
- 'example' => '3123121223',
- ],
- 'ClusterName' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'main_cluster',
- ],
- 'ClusterDesc' => [
- 'title' => '集群描述',
- 'description' => '集群描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'CpuCoreLimit' => [
- 'title' => '已使用cpu',
- 'description' => '已使用cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuLimit' => [
- 'title' => '已使用gpu',
- 'description' => '已使用gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryLimit' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'MaxGpu' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MaxCpuCore' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'MaxMemory' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'UserAccessParam' => [
- 'title' => '用户授权参数',
- 'description' => '用户授权参数',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => '用户id',
- 'type' => 'string',
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => '用户key',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '工作空间ID',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'endpoint',
- 'type' => 'string',
- 'example' => 'test',
- ],
- ],
- ],
- 'MachineType' => [
- 'title' => '规格类型',
- 'description' => '规格类型',
- 'type' => 'object',
- 'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => '内存信息',
- 'type' => 'string',
- 'example' => '32x 64GB DDR4 4800 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => '类型',
- 'type' => 'string',
- 'example' => 'Private',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => '网络bond的数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => '节点个数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'cpu的信息',
- 'type' => 'string',
- 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => '网络信息',
- 'type' => 'string',
- 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\n4x 200Gbps Dual Port EIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'gpu的信息',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => '磁盘信息',
- 'type' => 'string',
- 'example' => '2x 480GB SATA SSD\\n4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => '网络模式',
- 'type' => 'string',
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => '规格名称',
- 'type' => 'string',
- 'example' => 'efg2.p8en',
- ],
- ],
- ],
- 'ResourceNodes' => [
- 'title' => '资源节点列表',
- 'description' => '资源节点列表',
+ 'CreatorUid' => ['title' => '主账号uid', 'description' => 'Primary Account UID', 'type' => 'integer', 'format' => 'int64', 'example' => '12312312312312'],
+ 'TemplateId' => ['title' => '模板ID', 'description' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'example' => '17615126'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => 'Creation Time', 'type' => 'string', 'example' => '2024-11-19T02:01:05Z'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => 'Update Time', 'type' => 'string', 'example' => '2023-10-16T01:58Z'],
+ 'TemplateName' => ['title' => '模板名称', 'description' => 'Template Name', 'type' => 'string', 'example' => 'test'],
+ 'TemplateDescription' => ['title' => '模板描述', 'description' => 'Template Description', 'type' => 'string', 'example' => 'test'],
+ 'PrivacyLevel' => ['title' => '隐私级别', 'description' => 'Privacy Level', 'type' => 'string', 'example' => 'private'],
+ 'TemplatePipelineParam' => [
+ 'title' => '模板流水线',
+ 'description' => 'Template Pipeline',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'lingj19q90jp66nq-mg2pa0p2l2bipnsi-17',
+ 'WorkloadId' => ['title' => '负载id', 'description' => 'Workload ID', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => 'Workload Name', 'type' => 'string', 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => 'Usage Scenario, e.g., "baseline"', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => 'Configured Workload Parameters',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'key-value', 'example' => '{}'],
+ ],
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => 'Configured Environment Parameters',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'CPU Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'GPU Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => 'Memory (GB) Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => 'Shared Memory (GB) Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => 'Number of Nodes', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCL Version', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GPU Driver Version', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorch Version', 'type' => 'string', 'example' => '1.0.0'],
+ ],
],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => 'Pipeline Order', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
+ 'VersionId' => ['title' => '版本号', 'description' => 'Version ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => 'Is Deleted', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'TemplateCode' => ['description' => 'Template Code', 'type' => 'integer', 'format' => 'int64', 'example' => '464086216'],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '25859897-35C8-5015-8365-7A3CE52F4854',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access Denied Detail', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'total', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17615126,\\n \\"CreateTime\\": \\"2024-11-19T02:01:05Z\\",\\n \\"UpdateTime\\": \\"2023-10-16T01:58Z\\",\\n \\"TemplateName\\": \\"test\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\"\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0,\\n \\"TemplateCode\\": 464086216\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '创建实验计划模版',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExperimentPlanTemplate'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'eflo:CreateExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/*'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"ResourceId\\": 189,\\n \\"ClusterId\\": \\"3123121223\\",\\n \\"ClusterName\\": \\"main_cluster\\",\\n \\"ClusterDesc\\": \\"test\\",\\n \\"CpuCoreLimit\\": 90,\\n \\"GpuLimit\\": 8,\\n \\"MemoryLimit\\": 500,\\n \\"MaxGpu\\": 8,\\n \\"MaxCpuCore\\": 90,\\n \\"MaxMemory\\": 500,\\n \\"UserAccessParam\\": {\\n \\"AccessId\\": \\"dev\\",\\n \\"AccessKey\\": \\"test\\",\\n \\"WorkspaceId\\": \\"test\\",\\n \\"Endpoint\\": \\"test\\"\\n },\\n \\"MachineType\\": {\\n \\"MemoryInfo\\": \\"32x 64GB DDR4 4800 Memory\\",\\n \\"Type\\": \\"Private\\",\\n \\"BondNum\\": 5,\\n \\"NodeCount\\": 1,\\n \\"CpuInfo\\": \\"2x Intel Saphhire Rapid 8469C 48C CPU\\",\\n \\"NetworkInfo\\": \\"1x 200Gbps Dual Port BF3 DPU for VPC\\\\\\\\n4x 200Gbps Dual Port EIC\\",\\n \\"GpuInfo\\": \\"8x OAM 810 GPU\\",\\n \\"DiskInfo\\": \\"2x 480GB SATA SSD\\\\\\\\n4x 3.84TB NVMe SSD\\",\\n \\"NetworkMode\\": \\"2\\",\\n \\"Name\\": \\"efg2.p8en\\"\\n },\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"lingj19q90jp66nq-mg2pa0p2l2bipnsi-17\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"25859897-35C8-5015-8365-7A3CE52F4854\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '获取集群信息',
],
- 'ListWorkloads' => [
- 'summary' => '获取模型列表。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateResource' => [
+ 'summary' => '添加集群信息。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '194285',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '195094',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'Scope',
+ 'name' => 'ClusterName',
+ 'in' => 'query',
+ 'schema' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'required' => true, 'example' => 'tre-1'],
+ ],
+ [
+ 'name' => 'ClusterDesc',
'in' => 'query',
+ 'schema' => ['title' => '集群描述', 'description' => '集群描述', 'type' => 'string', 'required' => false, 'example' => '集群1'],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => ['title' => '集群Id', 'description' => '集群Id', 'type' => 'string', 'required' => true, 'example' => 'ehpc-sh-fj71c0ycfw'],
+ ],
+ [
+ 'name' => 'MachineTypes',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '作用域',
- 'description' => '作用域',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'common',
+ 'title' => '规格类型',
+ 'description' => '规格类型',
+ 'type' => 'object',
+ 'properties' => [
+ 'MemoryInfo' => ['title' => '内存信息', 'description' => '内存信息', 'type' => 'string', 'required' => false, 'example' => '32x 64GB DDR4 4800 Memory'],
+ 'Type' => ['title' => '类型', 'description' => '类型', 'type' => 'string', 'required' => false, 'example' => 'Private'],
+ 'BondNum' => ['title' => '网络bond的数量', 'description' => '网络bond的数量', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
+ 'NodeCount' => ['title' => '节点个数', 'description' => '节点个数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'CpuInfo' => ['title' => 'cpu的信息', 'description' => 'cpu的信息', 'type' => 'string', 'required' => true, 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU'],
+ 'NetworkInfo' => ['title' => '网络信息', 'description' => '网络信息', 'type' => 'string', 'required' => false, 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\\\n4x 200Gbps Dual Port EIC'],
+ 'GpuInfo' => ['title' => 'gpu的信息', 'description' => 'gpu的信息', 'type' => 'string', 'required' => true, 'example' => '8x NVIDIA SXM4 80GB A100 GPU'],
+ 'DiskInfo' => ['title' => '磁盘信息', 'description' => '磁盘信息', 'type' => 'string', 'required' => false, 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '网络模式', 'description' => '网络模式', 'type' => 'string', 'required' => false, 'example' => '2'],
+ 'Name' => ['title' => '规格名称', 'description' => '规格名称', 'type' => 'string', 'required' => false, 'example' => 'efg1.nvga1n'],
+ ],
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'UserAccessParam',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '用户授权参数',
+ 'description' => '用户授权参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'required' => true, 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => '用户key', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'required' => true, 'example' => '1245688643'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'endpoint', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ 'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => '结果',
+ 'title' => '资源对象',
+ 'description' => '资源对象',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => '负载描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => '负载簇, AI、GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => '负载使用场景',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => '负载使用的范围标识',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => '训练任务类型',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => '默认cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => '默认gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => '默认内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => '默认共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ParamSettings' => [
- 'title' => '参数设置',
- 'description' => '参数设置',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => '参数名称',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => '参数描述',
- 'type' => 'string',
- 'example' => '迭代数',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => '参数值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => '参数默认值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => '参数正则表达式',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => '参数类型',
- 'type' => 'string',
- 'example' => 'number',
- ],
- ],
- ],
- ],
- 'StaticConfig' => [
- 'title' => '静态配置',
- 'description' => '静态配置',
- 'type' => 'object',
- 'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => '框架',
- 'type' => 'string',
- 'example' => 'PyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => '软件栈',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => '系统',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => '参数量',
- 'type' => 'string',
- 'example' => '7B',
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '4AC08332-436C-57A3-9FBA-26772B1A9901',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'integer', 'format' => 'int64', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"WorkloadDescription\\": \\"test\\",\\n \\"WorkloadType\\": \\"AI\\",\\n \\"Family\\": \\"AI\\",\\n \\"Scene\\": \\"NLP-LLM\\",\\n \\"Scope\\": \\"common\\",\\n \\"JobKind\\": \\"PyTorchJob\\",\\n \\"DefaultCpuPerWorker\\": 90,\\n \\"DefaultGpuPerWorker\\": 8,\\n \\"DefaultMemoryPerWorker\\": 500,\\n \\"DefaultShareMemory\\": 500,\\n \\"ParamSettings\\": [\\n {\\n \\"ParamName\\": \\"ITERATION\\",\\n \\"ParamDesc\\": \\"迭代数\\",\\n \\"ParamValue\\": \\"100\\",\\n \\"DefaultValue\\": \\"100\\",\\n \\"ParamRegex\\": \\"[0-9]+\\",\\n \\"ParamType\\": \\"number\\"\\n }\\n ],\\n \\"StaticConfig\\": {\\n \\"FrameWork\\": \\"PyTorch\\",\\n \\"SoftwareStack\\": \\"python\\",\\n \\"Os\\": \\"linux\\",\\n \\"Parameters\\": \\"7B\\"\\n },\\n \\"VersionId\\": 1\\n }\\n ],\\n \\"RequestId\\": \\"4AC08332-436C-57A3-9FBA-26772B1A9901\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
- 'title' => '获取模型列表',
- ],
- 'GetWorkload' => [
- 'summary' => '获取模型信息。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '添加集群信息',
+ 'changeSet' => [
+ ['createdAt' => '2025-04-15T02:39:59.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => '请求参数发生变更'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResource'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'eflo:CreateResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/*'],
+ ],
+ ],
+ 'additionalActions' => [],
+ ],
+ ],
+ ],
+ 'DeleteExperiment' => [
+ 'summary' => '删除实验。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '194273',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195100',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'WorkloadId',
+ 'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '13',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Resource Group Id', 'type' => 'string', 'required' => false, 'example' => 'rg-sdkfjgnvd24'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => '结果',
+ 'title' => '是否成功',
+ 'description' => '是否成功',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => '负载描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => '负载簇, AI、GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => '负载使用场景',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => '负载使用的范围标识',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => '训练任务类型',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => '默认cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => '默认gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => '默认内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => '默认共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ParamSettings' => [
- 'title' => '参数设置',
- 'description' => '参数设置',
- 'type' => 'array',
- 'items' => [
- 'description' => '参数',
- 'type' => 'object',
- 'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => '参数名称',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => '参数描述',
- 'type' => 'string',
- 'example' => '迭代数',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => '参数值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => '参数默认值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => '参数正则表达式',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => '参数类型',
- 'type' => 'string',
- 'example' => 'number',
- ],
- ],
- ],
- ],
- 'StaticConfig' => [
- 'title' => '静态配置',
- 'description' => '静态配置',
- 'type' => 'object',
- 'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => '框架',
- 'type' => 'string',
- 'example' => 'PyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => '软件栈',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => '系统',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => '参数量',
- 'type' => 'string',
- 'example' => '7B',
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"WorkloadDescription\\": \\"test\\",\\n \\"WorkloadType\\": \\"AI\\",\\n \\"Family\\": \\"AI\\",\\n \\"Scene\\": \\"NLP-LLM\\",\\n \\"Scope\\": \\"common\\",\\n \\"JobKind\\": \\"PyTorchJob\\",\\n \\"DefaultCpuPerWorker\\": 90,\\n \\"DefaultGpuPerWorker\\": 8,\\n \\"DefaultMemoryPerWorker\\": 500,\\n \\"DefaultShareMemory\\": 500,\\n \\"ParamSettings\\": [\\n {\\n \\"ParamName\\": \\"ITERATION\\",\\n \\"ParamDesc\\": \\"迭代数\\",\\n \\"ParamValue\\": \\"100\\",\\n \\"DefaultValue\\": \\"100\\",\\n \\"ParamRegex\\": \\"[0-9]+\\",\\n \\"ParamType\\": \\"number\\"\\n }\\n ],\\n \\"StaticConfig\\": {\\n \\"FrameWork\\": \\"PyTorch\\",\\n \\"SoftwareStack\\": \\"python\\",\\n \\"Os\\": \\"linux\\",\\n \\"Parameters\\": \\"7B\\"\\n },\\n \\"VersionId\\": 1\\n },\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '获取模型信息',
- ],
- 'StopExperiment' => [
- 'summary' => '停止实验。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '删除实验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperiment'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'DeleteExperimentPlan' => [
+ 'summary' => '删除实验计划。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195093',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '262196',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ExperimentId',
+ 'name' => 'PlanId',
'in' => 'query',
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
+ 'title' => '查询结果',
+ 'description' => '查询结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
],
],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '删除实验计划',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperimentPlan'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'ResourceGroupId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'Resource Group Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-kdsflsdfj23m',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
],
],
],
+ ],
+ 'DeleteExperimentPlanTemplate' => [
+ 'summary' => '删除实验计划模版。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '195194',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
+ 'in' => 'query',
+ 'schema' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '346527'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
- 'title' => '是否成功',
- 'description' => '是否成功',
+ 'title' => '结果',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '4D3FD55F-3BCD-5914-9B74-A1F4961327E7'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"4D3FD55F-3BCD-5914-9B74-A1F4961327E7\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '删除实验计划模版',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperimentPlanTemplate'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '停止实验',
],
'GetExperiment' => [
'summary' => '获取实验详情。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1285,32 +837,18 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '195099',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
],
'parameters' => [
[
'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '实验ID',
- 'description' => '实验ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
- ],
+ 'schema' => ['title' => '实验ID', 'description' => '实验ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => 'Resource Group Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-kdsfjascjfm3',
- ],
+ 'schema' => ['description' => 'Resource Group Id', 'type' => 'string', 'required' => false, 'example' => 'rg-kdsfjascjfm3'],
],
],
'responses' => [
@@ -1330,63 +868,19 @@
'description' => '实验任务',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'title' => '任务id',
- 'description' => '任务id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '167420',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'StartTime' => [
- 'title' => '开始时间',
- 'description' => '开始时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'EndTime' => [
- 'title' => '结束时间',
- 'description' => '结束时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:34:08',
- ],
+ 'TaskId' => ['title' => '任务id', 'description' => '任务id', 'type' => 'integer', 'format' => 'int64', 'example' => '167420'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'StartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:34:08'],
'Params' => [
'title' => '实验参数',
'description' => '实验参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '环境参数',
- 'example' => '{}',
- ],
- ],
- 'Scene' => [
- 'title' => '场景',
- 'description' => '场景',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'success',
+ 'additionalProperties' => ['type' => 'string', 'description' => '环境参数', 'example' => '{}'],
],
+ 'Scene' => ['title' => '场景', 'description' => '场景', 'type' => 'string', 'example' => 'baseline'],
+ 'Status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'success'],
],
],
'Workload' => [
@@ -1394,83 +888,18 @@
'description' => '负载信息',
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => '负载描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => '负载簇, AI、GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => '负载使用场景',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => '负载使用的范围标识',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => '训练任务类型',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => '默认cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => '默认gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => '默认内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => '默认共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '负载描述', 'description' => '负载描述', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '负载簇, AI、GPU', 'description' => '负载簇, AI、GPU', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '负载使用场景', 'description' => '负载使用场景', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '负载使用的范围标识', 'description' => '负载使用的范围标识', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '训练任务类型', 'description' => '训练任务类型', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '默认cpu分配数', 'description' => '默认cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '默认gpu分配数', 'description' => '默认gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '默认内存GB分配数', 'description' => '默认内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '默认共享内存GB分配数', 'description' => '默认共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'ParamSettings' => [
'title' => '参数设置',
'description' => '参数设置',
@@ -1478,42 +907,12 @@
'items' => [
'type' => 'object',
'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => '参数名称',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => '参数描述',
- 'type' => 'string',
- 'example' => '迭代数',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => '参数值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => '参数默认值',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => '参数正则表达式',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => '参数类型',
- 'type' => 'string',
- 'example' => 'number',
- ],
+ 'ParamName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '迭代数'],
+ 'ParamValue' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '参数默认值', 'description' => '参数默认值', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '参数正则表达式', 'description' => '参数正则表达式', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'number'],
],
],
],
@@ -1522,39 +921,13 @@
'description' => '静态配置',
'type' => 'object',
'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => '框架',
- 'type' => 'string',
- 'example' => 'pyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => '软件栈',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => '系统',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => '参数量',
- 'type' => 'string',
- 'example' => '7B',
- ],
+ 'FrameWork' => ['title' => '框架', 'description' => '框架', 'type' => 'string', 'example' => 'pyTorch'],
+ 'SoftwareStack' => ['title' => '软件栈', 'description' => '软件栈', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '系统', 'description' => '系统', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '参数量', 'description' => '参数量', 'type' => 'string', 'example' => '7B'],
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
'Resource' => [
@@ -1562,90 +935,23 @@
'description' => '集群信息',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '集群id',
- 'description' => '集群id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'ResourceName' => [
- 'title' => '集群名称',
- 'description' => '集群名称',
- 'type' => 'string',
- 'example' => 'ecs.r8y.4xlarge',
- ],
- 'CpuCoreLimit' => [
- 'title' => '已使用cpu',
- 'description' => '已使用cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuLimit' => [
- 'title' => '已使用gpu',
- 'description' => '已使用gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryLimit' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'MaxGpu' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MaxCpuCore' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'MaxMemory' => [
- 'title' => '已使用内存',
- 'description' => '已使用内存',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
+ 'ResourceId' => ['title' => '集群id', 'description' => '集群id', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'ResourceName' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'example' => 'ecs.r8y.4xlarge'],
+ 'CpuCoreLimit' => ['title' => '已使用cpu', 'description' => '已使用cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuLimit' => ['title' => '已使用gpu', 'description' => '已使用gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryLimit' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'MaxGpu' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MaxCpuCore' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'MaxMemory' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
'UserAccessParam' => [
'title' => '用户授权参数',
'description' => '用户授权参数',
'type' => 'object',
'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => '用户id',
- 'type' => 'string',
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => '用户key',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => '工作空间ID',
- 'type' => 'string',
- 'example' => '123434542498',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'endpoint',
- 'type' => 'string',
- 'example' => 'test',
- ],
+ 'AccessId' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => '用户key', 'type' => 'string', 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'example' => '123434542498'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'endpoint', 'type' => 'string', 'example' => 'test'],
],
],
'MachineType' => [
@@ -1653,68 +959,16 @@
'description' => '规格类型',
'type' => 'object',
'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => '内存信息',
- 'type' => 'string',
- 'example' => '32x 64GB DDR4 3200 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => '类型',
- 'type' => 'string',
- 'example' => 'Public',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => '网络bond的数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => '节点个数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'cpu的信息',
- 'type' => 'string',
- 'example' => '2x Intel Icelake 8369B 32C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => '网络信息',
- 'type' => 'string',
- 'example' => '1x 100Gbps DP NIC for VPC \\n 4x 100Gbps DP RoCE NIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'gpu的信息',
- 'type' => 'string',
- 'example' => '8x NVIDIA SXM4 80GB A100 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => '磁盘信息',
- 'type' => 'string',
- 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => '网络模式',
- 'type' => 'string',
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => '规格名称',
- 'type' => 'string',
- 'example' => 'efg1.nvga1n',
- ],
+ 'MemoryInfo' => ['title' => '内存信息', 'description' => '内存信息', 'type' => 'string', 'example' => '32x 64GB DDR4 3200 Memory'],
+ 'Type' => ['title' => '类型', 'description' => '类型', 'type' => 'string', 'example' => 'Public'],
+ 'BondNum' => ['title' => '网络bond的数量', 'description' => '网络bond的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'NodeCount' => ['title' => '节点个数', 'description' => '节点个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CpuInfo' => ['title' => 'cpu的信息', 'description' => 'cpu的信息', 'type' => 'string', 'example' => '2x Intel Icelake 8369B 32C CPU'],
+ 'NetworkInfo' => ['title' => '网络信息', 'description' => '网络信息', 'type' => 'string', 'example' => '1x 100Gbps DP NIC for VPC \\n 4x 100Gbps DP RoCE NIC'],
+ 'GpuInfo' => ['title' => 'gpu的信息', 'description' => 'gpu的信息', 'type' => 'string', 'example' => '8x NVIDIA SXM4 80GB A100 GPU'],
+ 'DiskInfo' => ['title' => '磁盘信息', 'description' => '磁盘信息', 'type' => 'string', 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '网络模式', 'description' => '网络模式', 'type' => 'string', 'example' => '2'],
+ 'Name' => ['title' => '规格名称', 'description' => '规格名称', 'type' => 'string', 'example' => 'efg1.nvga1n'],
],
],
'ResourceNodes' => [
@@ -1724,119 +978,32 @@
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'InputCheck',
- ],
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'InputCheck'],
],
],
],
],
],
- 'ExperimentId' => [
- 'title' => '实验id',
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1726882991828688898',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'ExperimentName' => [
- 'title' => '实验名称',
- 'description' => '实验名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ExperimentType' => [
- 'title' => '实验类型',
- 'description' => '实验类型',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => '资源名称',
- 'type' => 'string',
- 'example' => 'cifnews-guoyuan',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'StartTime' => [
- 'title' => '任务开始时间',
- 'description' => '任务开始时间',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'EndTime' => [
- 'title' => '任务结束时间',
- 'description' => '任务结束时间',
- 'type' => 'string',
- 'example' => '2024-11-29 02:26:35',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'RUNNING',
- ],
+ 'ExperimentId' => ['title' => '实验id', 'description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '1726882991828688898'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-11-29 02:16:35'],
+ 'ExperimentName' => ['title' => '实验名称', 'description' => '实验名称', 'type' => 'string', 'example' => 'test'],
+ 'ExperimentType' => ['title' => '实验类型', 'description' => '实验类型', 'type' => 'string', 'example' => 'AI'],
+ 'ResourceName' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'example' => 'cifnews-guoyuan'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'StartTime' => ['title' => '任务开始时间', 'description' => '任务开始时间', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'EndTime' => ['title' => '任务结束时间', 'description' => '任务结束时间', 'type' => 'string', 'example' => '2024-11-29 02:26:35'],
+ 'Status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'RUNNING'],
'Results' => [
'title' => '任务结果',
'description' => '任务结果',
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'title' => '参数名称',
- 'description' => '参数名称',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1748274952976261121',
- ],
- 'Duration' => [
- 'title' => '时间',
- 'description' => '时间',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '764',
- ],
- 'SecondsPerIteration' => [
- 'title' => '每次迭代的秒数',
- 'description' => '每次迭代的秒数',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '1000',
- ],
- 'SamplesPerSecond' => [
- 'title' => '每秒采样数',
- 'description' => '每秒采样数',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '10',
- ],
- 'Mfu' => [
- 'description' => 'MFU',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '54.2',
- ],
+ 'ExperimentId' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'integer', 'format' => 'int64', 'example' => '1748274952976261121'],
+ 'Duration' => ['title' => '时间', 'description' => '时间', 'type' => 'number', 'format' => 'double', 'example' => '764'],
+ 'SecondsPerIteration' => ['title' => '每次迭代的秒数', 'description' => '每次迭代的秒数', 'type' => 'number', 'format' => 'double', 'example' => '1000'],
+ 'SamplesPerSecond' => ['title' => '每秒采样数', 'description' => '每秒采样数', 'type' => 'number', 'format' => 'double', 'example' => '10'],
+ 'Mfu' => ['description' => 'MFU', 'type' => 'number', 'format' => 'double', 'example' => '54.2'],
'WarningWorker' => [
'title' => '警告worker',
'description' => '警告worker',
@@ -1844,71 +1011,17 @@
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '9',
- ],
- 'Hostname' => [
- 'description' => '服务地址',
- 'type' => 'string',
- 'example' => 'whza008403',
- ],
- 'PodName' => [
- 'description' => 'Pod名称。',
- 'type' => 'string',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU名称',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => '是否有报警',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => '报警信息',
- 'type' => 'string',
- 'example' => '存在慢节点',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => '是否有错误',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => '错误信息',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '14',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '15',
- ],
+ 'ExperimentId' => ['description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '9'],
+ 'Hostname' => ['description' => '服务地址', 'type' => 'string', 'example' => 'whza008403'],
+ 'PodName' => ['description' => 'Pod名称。', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'WarningFlag' => ['title' => '是否有报警', 'description' => '是否有报警', 'type' => 'boolean', 'example' => 'true'],
+ 'WarningMsg' => ['title' => '报警信息', 'description' => '报警信息', 'type' => 'string', 'example' => '存在慢节点'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'description' => '是否有错误', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrorMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => '错误信息'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'description' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '14'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '15'],
],
],
],
@@ -1918,71 +1031,17 @@
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '97',
- ],
- 'Hostname' => [
- 'description' => '服务地址',
- 'type' => 'string',
- 'example' => '60.188.98.209',
- ],
- 'PodName' => [
- 'description' => 'Pod名称。',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU名称',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => '是否有报警',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => '报警信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => '是否有错误',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => 'Connection reset',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '12',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '23',
- ],
+ 'ExperimentId' => ['description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '97'],
+ 'Hostname' => ['description' => '服务地址', 'type' => 'string', 'example' => '60.188.98.209'],
+ 'PodName' => ['description' => 'Pod名称。', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'WarningFlag' => ['title' => '是否有报警', 'description' => '是否有报警', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '报警信息', 'description' => '报警信息', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'description' => '是否有错误', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrorMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => 'Connection reset'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'description' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '12'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '23'],
],
],
],
@@ -1992,24 +1051,9 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Iteration' => [
- 'description' => '迭代',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'Upper' => [
- 'description' => 'UPPER',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '56',
- ],
- 'Lower' => [
- 'description' => 'LOWER',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '14',
- ],
+ 'Iteration' => ['description' => '迭代', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'Upper' => ['description' => 'UPPER', 'type' => 'number', 'format' => 'double', 'example' => '56'],
+ 'Lower' => ['description' => 'LOWER', 'type' => 'number', 'format' => 'double', 'example' => '14'],
],
],
],
@@ -2019,71 +1063,17 @@
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => '实验ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '48',
- ],
- 'Hostname' => [
- 'description' => '节点主机名称。',
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1',
- ],
- 'PodName' => [
- 'description' => 'Pod名称。',
- 'type' => 'string',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU名称',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => '是否有报警',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => '报警信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => '是否有错误',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '16',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '28',
- ],
+ 'ExperimentId' => ['description' => '实验ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '48'],
+ 'Hostname' => ['description' => '节点主机名称。', 'type' => 'string', 'example' => 'p-jt-waf-app1'],
+ 'PodName' => ['description' => 'Pod名称。', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'WarningFlag' => ['title' => '是否有报警', 'description' => '是否有报警', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '报警信息', 'description' => '报警信息', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'description' => '是否有错误', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'description' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '16'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '28'],
],
],
],
@@ -2095,71 +1085,17 @@
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '54',
- 'description' => '实验id',
- ],
- 'Hostname' => [
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1'."\n",
- 'description' => '主机ip',
- ],
- 'PodName' => [
- 'type' => 'string',
- 'description' => 'Pod名称',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'description' => 'GPU数量',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'type' => 'string',
- 'description' => 'GPU名称',
- 'example' => '8x OAM 810 GPU'."\n",
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'type' => 'boolean',
- 'description' => '是否warning',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'type' => 'string',
- 'description' => '警告内容',
- 'example' => '无',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'type' => 'boolean',
- 'description' => '是否errror',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'type' => 'string',
- 'example' => '无',
- 'description' => '错误内容',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '45',
- 'description' => 'TFLOPS',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'description' => '吞吐量',
- 'example' => '23',
- ],
+ 'ExperimentId' => ['type' => 'integer', 'format' => 'int64', 'example' => '54', 'description' => '实验id'],
+ 'Hostname' => ['type' => 'string', 'example' => 'p-jt-waf-app1'."\n", 'description' => '主机ip'],
+ 'PodName' => ['type' => 'string', 'description' => 'Pod名称', 'example' => 'fluxserv-6fc89b45cf-w8wq6'],
+ 'GpuNum' => ['type' => 'integer', 'format' => 'int32', 'description' => 'GPU数量', 'example' => '8'],
+ 'GpuName' => ['type' => 'string', 'description' => 'GPU名称', 'example' => '8x OAM 810 GPU'."\n"],
+ 'WarningFlag' => ['title' => '是否有报警', 'type' => 'boolean', 'description' => '是否warning', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '报警信息', 'type' => 'string', 'description' => '警告内容', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'type' => 'boolean', 'description' => '是否errror', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '错误信息', 'type' => 'string', 'example' => '无', 'description' => '错误内容'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '45', 'description' => 'TFLOPS'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'type' => 'number', 'format' => 'double', 'description' => '吞吐量', 'example' => '23'],
],
],
'description' => '结果对象',
@@ -2171,86 +1107,28 @@
'title' => '运行的负载参数',
'description' => '运行的负载参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
],
'GetParams' => [
'title' => '解析的负载参数',
'description' => '解析的负载参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
],
'EnvParams' => [
'title' => '运行的环境参数',
'description' => '运行的环境参数',
'type' => 'object',
'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
'ResourceNodes' => [
'title' => '指定的节点',
'description' => '指定的节点',
@@ -2258,54 +1136,13 @@
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => '总的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => '总的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => '总的memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => '当前请求的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => '当前请求的memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'p-jt-waf-app1'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => '总的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => '总的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => '总的memory', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => '当前请求的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => '当前请求的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => '当前请求的memory', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
],
],
],
@@ -2313,670 +1150,352 @@
'title' => '额外的参数',
'description' => '额外的参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
],
],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"Task\\": {\\n \\"TaskId\\": 167420,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"StartTime\\": 0,\\n \\"EndTime\\": 0,\\n \\"Params\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"Scene\\": \\"baseline\\",\\n \\"Status\\": \\"success\\"\\n },\\n \\"Workload\\": {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"WorkloadDescription\\": \\"test\\",\\n \\"WorkloadType\\": \\"AI\\",\\n \\"Family\\": \\"AI\\",\\n \\"Scene\\": \\"NLP-LLM\\",\\n \\"Scope\\": \\"common\\",\\n \\"JobKind\\": \\"PyTorchJob\\",\\n \\"DefaultCpuPerWorker\\": 90,\\n \\"DefaultGpuPerWorker\\": 8,\\n \\"DefaultMemoryPerWorker\\": 500,\\n \\"DefaultShareMemory\\": 500,\\n \\"ParamSettings\\": [\\n {\\n \\"ParamName\\": \\"ITERATION\\",\\n \\"ParamDesc\\": \\"迭代数\\",\\n \\"ParamValue\\": \\"100\\",\\n \\"DefaultValue\\": \\"100\\",\\n \\"ParamRegex\\": \\"[0-9]+\\",\\n \\"ParamType\\": \\"number\\"\\n }\\n ],\\n \\"StaticConfig\\": {\\n \\"FrameWork\\": \\"pyTorch\\",\\n \\"SoftwareStack\\": \\"python\\",\\n \\"Os\\": \\"linux\\",\\n \\"Parameters\\": \\"7B\\"\\n },\\n \\"VersionId\\": 1\\n },\\n \\"Resource\\": {\\n \\"ResourceId\\": 189,\\n \\"ResourceName\\": \\"ecs.r8y.4xlarge\\",\\n \\"CpuCoreLimit\\": 90,\\n \\"GpuLimit\\": 8,\\n \\"MemoryLimit\\": 500,\\n \\"MaxGpu\\": 8,\\n \\"MaxCpuCore\\": 90,\\n \\"MaxMemory\\": 500,\\n \\"UserAccessParam\\": {\\n \\"AccessId\\": \\"dev\\",\\n \\"AccessKey\\": \\"test\\",\\n \\"WorkspaceId\\": \\"123434542498\\",\\n \\"Endpoint\\": \\"test\\"\\n },\\n \\"MachineType\\": {\\n \\"MemoryInfo\\": \\"32x 64GB DDR4 3200 Memory\\",\\n \\"Type\\": \\"Public\\",\\n \\"BondNum\\": 5,\\n \\"NodeCount\\": 1,\\n \\"CpuInfo\\": \\"2x Intel Icelake 8369B 32C CPU\\",\\n \\"NetworkInfo\\": \\"1x 100Gbps DP NIC for VPC \\\\\\\\n 4x 100Gbps DP RoCE NIC\\",\\n \\"GpuInfo\\": \\"8x NVIDIA SXM4 80GB A100 GPU\\",\\n \\"DiskInfo\\": \\"2x 480GB SATA SSD \\\\\\\\n 4x 3.84TB NVMe SSD\\",\\n \\"NetworkMode\\": \\"2\\",\\n \\"Name\\": \\"efg1.nvga1n\\"\\n },\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"InputCheck\\"\\n }\\n ]\\n },\\n \\"ExperimentId\\": 1726882991828689000,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"ExperimentName\\": \\"test\\",\\n \\"ExperimentType\\": \\"AI\\",\\n \\"ResourceName\\": \\"cifnews-guoyuan\\",\\n \\"WorkloadName\\": \\"test\\",\\n \\"StartTime\\": \\"2024-11-29 02:16:35\\",\\n \\"EndTime\\": \\"2024-11-29 02:26:35\\",\\n \\"Status\\": \\"RUNNING\\",\\n \\"Results\\": {\\n \\"ExperimentId\\": 1748274952976261000,\\n \\"Duration\\": 764,\\n \\"SecondsPerIteration\\": 1000,\\n \\"SamplesPerSecond\\": 10,\\n \\"Mfu\\": 54.2,\\n \\"WarningWorker\\": [\\n {\\n \\"ExperimentId\\": 9,\\n \\"Hostname\\": \\"whza008403\\",\\n \\"PodName\\": \\"fluxserv-6fc89b45cf-w8wq6\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": true,\\n \\"WarningMsg\\": \\"存在慢节点\\",\\n \\"ErrorFlag\\": true,\\n \\"ErrorMsg\\": \\"错误信息\\",\\n \\"Tflops\\": 14,\\n \\"SamplesPerSecond\\": 15\\n }\\n ],\\n \\"ErrorWorker\\": [\\n {\\n \\"ExperimentId\\": 97,\\n \\"Hostname\\": \\"60.188.98.209\\",\\n \\"PodName\\": \\"hzs-forge-sdxl-online-7ff4d86444-pc95h\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": true,\\n \\"ErrorMsg\\": \\"Connection reset\\",\\n \\"Tflops\\": 12,\\n \\"SamplesPerSecond\\": 23\\n }\\n ],\\n \\"WarningBoundList\\": [\\n {\\n \\"Iteration\\": 10,\\n \\"Upper\\": 56,\\n \\"Lower\\": 14\\n }\\n ],\\n \\"TaskIndividualResultList\\": [\\n {\\n \\"ExperimentId\\": 48,\\n \\"Hostname\\": \\"p-jt-waf-app1\\",\\n \\"PodName\\": \\"fluxserv-6fc89b45cf-w8wq6\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 16,\\n \\"SamplesPerSecond\\": 28\\n }\\n ],\\n \\"TaskIndividualResultMap\\": {\\n \\"key\\": [\\n {\\n \\"ExperimentId\\": 54,\\n \\"Hostname\\": \\"p-jt-waf-app1\\\\n\\",\\n \\"PodName\\": \\"fluxserv-6fc89b45cf-w8wq6\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\\\n\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 45,\\n \\"SamplesPerSecond\\": 23\\n }\\n ]\\n }\\n },\\n \\"SetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"GetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"p-jt-waf-app1\\",\\n \\"TotalCPU\\": 90,\\n \\"TotalGPU\\": 8,\\n \\"TotalMemory\\": 500,\\n \\"RequestCPU\\": 90,\\n \\"RequestGPU\\": 8,\\n \\"RequestMemory\\": 500\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n }\\n },\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
'title' => '获取实验详情',
- ],
- 'DeleteExperiment' => [
- 'summary' => '删除实验。',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperiment'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetExperimentPlan' => [
+ 'summary' => '获取实验计划详情。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195100',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '194769',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
],
'parameters' => [
[
- 'name' => 'ExperimentId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
- ],
- ],
- [
- 'name' => 'ResourceGroupId',
+ 'name' => 'PlanId',
'in' => 'query',
- 'schema' => [
- 'description' => 'Resource Group Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-sdkfjgnvd24',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '是否成功',
- 'description' => '是否成功',
+ 'title' => '查询结果',
+ 'description' => '查询结果',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => '数据',
- 'type' => 'boolean',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'type' => 'object',
+ 'properties' => [
+ 'PlanId' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ 'TemplateId' => ['title' => '关联的测试计划模板ID', 'description' => '关联的测试计划模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '2162'],
+ 'TemplateName' => ['title' => '关联的测试计划模板名称', 'description' => '关联的测试计划模板名称', 'type' => 'string', 'example' => 'MM'],
+ 'ResourceId' => ['title' => '关联的资源ID', 'description' => '关联的资源ID', 'type' => 'integer', 'format' => 'int64', 'example' => '260860230684'],
+ 'PlanPipeline' => [
+ 'title' => '测试计划pipeline',
+ 'description' => '测试计划pipeline',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '14'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'ResourceId' => ['title' => '资源id', 'description' => '资源id', 'type' => 'integer', 'format' => 'int64', 'example' => '36'],
+ 'ResourceName' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'example' => 'GPU'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => '使用场景,例如"baseline"', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => '配置的负载参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
+ ],
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => '配置的环境参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => '指定的节点',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'ods_galaxy_gateway_tickets'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => '总的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => '总的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => '总的memory', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => '当前请求的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => '当前请求的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => '当前请求的memory', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ ],
+ ],
+ ],
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => '额外的参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
+ ],
+ ],
+ ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => '节点序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ ],
+ 'ResourceGroupId' => ['title' => '资源组id', 'description' => '资源组id', 'type' => 'string', 'example' => 'rg-acfmvmpzi7lmxhq'],
+ 'Tags' => [
+ 'description' => '标签',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'appName'],
+ 'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => 'test'],
+ ],
+ ],
+ ],
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '6DBAC169-93D1-5DCD-8109-30FB623B3197'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '删除实验',
- ],
- 'ListExperiments' => [
- 'summary' => '获取实验列表。',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"PlanId\\": 189,\\n \\"CreateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"UpdateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"TemplateId\\": 2162,\\n \\"TemplateName\\": \\"MM\\",\\n \\"ResourceId\\": 260860230684,\\n \\"PlanPipeline\\": [\\n {\\n \\"WorkloadId\\": 14,\\n \\"WorkloadName\\": \\"test\\",\\n \\"ResourceId\\": 36,\\n \\"ResourceName\\": \\"GPU\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"ods_galaxy_gateway_tickets\\",\\n \\"TotalCPU\\": 90,\\n \\"TotalGPU\\": 8,\\n \\"TotalMemory\\": 500,\\n \\"RequestCPU\\": 90,\\n \\"RequestGPU\\": 8,\\n \\"RequestMemory\\": 500\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"ResourceGroupId\\": \\"rg-acfmvmpzi7lmxhq\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"appName\\",\\n \\"TagValue\\": \\"test\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"6DBAC169-93D1-5DCD-8109-30FB623B3197\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '获取实验计划详情',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => '请求参数发生变更'],
+ ['createdAt' => '2025-03-19T02:42:56.000Z', 'description' => '错误码发生变更'],
+ ['createdAt' => '2025-02-21T07:57:21.000Z', 'description' => '错误码发生变更、响应参数发生变更'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentPlan'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetExperimentPlanTemplate' => [
+ 'summary' => '查询测试计划模板详情',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195098',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '262199',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'PlanId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '189',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'title' => '次序',
- 'description' => '次序',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'ResourceGroupId',
+ 'name' => 'TemplateId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源组id',
- 'description' => '资源组id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-uo8f26cpmo',
- ],
+ 'schema' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '315797'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '实验对象列表',
- 'description' => '实验对象列表',
+ 'title' => '结果',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => '数据',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'title' => '实验id',
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1684537476910997506',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'ExperimentName' => [
- 'title' => '实验名称',
- 'description' => '实验名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ExperimentType' => [
- 'title' => '实验类型',
- 'description' => '实验类型',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => '资源名称',
- 'type' => 'string',
- 'example' => 'ecs.r8y.4xlarge',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'StartTime' => [
- 'title' => '任务开始时间',
- 'description' => '任务开始时间',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'EndTime' => [
- 'title' => '任务结束时间',
- 'description' => '任务结束时间',
- 'type' => 'string',
- 'example' => '2024-10-22 10:28:10',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => '状态',
- 'type' => 'string',
- 'example' => 'RUNNING',
- ],
- 'Results' => [
- 'title' => '任务结果',
- 'description' => '任务结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatorUid' => ['title' => '主账号uid', 'description' => '主账号uid', 'type' => 'integer', 'format' => 'int64', 'example' => '12312312312312'],
+ 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '17615126'],
+ 'TemplateCode' => ['title' => '模板Code', 'description' => '模板Code', 'type' => 'integer', 'format' => 'int64', 'example' => '464086216'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'TemplateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '模板1'],
+ 'TemplateDescription' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'test'],
+ 'PrivacyLevel' => ['title' => '隐私级别', 'description' => '隐私级别', 'type' => 'string', 'example' => 'private'],
+ 'TemplatePipelineParam' => [
+ 'title' => '模板流水线',
+ 'description' => '模板流水线',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '模板流水线',
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'title' => '参数名称',
- 'description' => '参数名称',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '440',
- ],
- 'Duration' => [
- 'title' => '时间',
- 'description' => '时间',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '20',
- ],
- 'SecondsPerIteration' => [
- 'title' => '每次迭代的秒数',
- 'description' => '每次迭代的秒数',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '89',
- ],
- 'SamplesPerSecond' => [
- 'title' => '每秒采样数',
- 'description' => '每秒采样数',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '10',
- ],
- 'Mfu' => [
- 'description' => 'MFU',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '34',
- ],
- 'WarningWorker' => [
- 'title' => '警告worker',
- 'description' => '警告worker',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '113',
- ],
- 'Hostname' => [
- 'description' => '主机ip',
- 'type' => 'string',
- 'example' => '101.66.165.102',
- ],
- 'PodName' => [
- 'description' => 'Pod名称',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuName' => [
- 'description' => 'GPU名称',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => '是否有报警',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => '报警信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => '是否有错误',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '43',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '53',
- ],
- ],
- ],
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => '使用场景,例如"baseline"', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => '配置的负载参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '配置的负载参数', 'example' => 'batch_size'],
],
- 'ErrorWorker' => [
- 'description' => '错误节点',
- 'type' => 'array',
- 'items' => [
- 'description' => '错误节点',
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => '实验id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '176',
- ],
- 'Hostname' => [
- 'description' => '主机ip',
- 'type' => 'string',
- 'example' => 'etcd_cluster_c0n2',
- ],
- 'PodName' => [
- 'description' => 'Pod名称',
- 'type' => 'string',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU名称',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => '是否有报警',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => '报警信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => '是否有错误',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => '错误信息',
- 'type' => 'string',
- 'example' => '无',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '42',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '65',
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => '配置的环境参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => '指定的节点',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '节点',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'exclusive_coud'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => '总的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => '总的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => '总的memory', 'type' => 'integer', 'format' => 'int64', 'example' => '2048'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => '当前请求的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => '当前请求的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => '当前请求的memory', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
+ ],
],
],
- ],
- ],
- ],
- ],
- 'SetParams' => [
- 'title' => '运行的负载参数',
- 'description' => '运行的负载参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
- ],
- 'GetParams' => [
- 'title' => '解析的负载参数',
- 'description' => '解析的负载参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '参数',
- 'example' => '{}',
- ],
- ],
- 'EnvParams' => [
- 'title' => '运行的环境参数',
- 'description' => '运行的环境参数',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => '指定的节点',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'lingj1xxnjt1k4nv-mg18v52pydyuumae-0',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => '总的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => '总的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => '总的memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => '当前请求的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => '当前请求的memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => '额外的参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '额外的参数', 'example' => '{}'],
],
],
],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => '额外的参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '参数',
- 'example' => '{}',
- ],
- ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => '节点序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17615126,\\n \\"TemplateCode\\": 464086216,\\n \\"CreateTime\\": \\"2024-11-29 02:16:35\\",\\n \\"UpdateTime\\": \\"2024-10-22 10:18:10\\",\\n \\"TemplateName\\": \\"模板1\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"batch_size\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"exclusive_coud\\",\\n \\"TotalCPU\\": 100,\\n \\"TotalGPU\\": 100,\\n \\"TotalMemory\\": 2048,\\n \\"RequestCPU\\": 10,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 1024\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '获取实验计划模版',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentPlanTemplate'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"ExperimentId\\": 1684537476910997500,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"ExperimentName\\": \\"test\\",\\n \\"ExperimentType\\": \\"AI\\",\\n \\"ResourceName\\": \\"ecs.r8y.4xlarge\\",\\n \\"WorkloadName\\": \\"test\\",\\n \\"StartTime\\": \\"2024-10-22 10:18:10\\",\\n \\"EndTime\\": \\"2024-10-22 10:28:10\\",\\n \\"Status\\": \\"RUNNING\\",\\n \\"Results\\": {\\n \\"ExperimentId\\": 440,\\n \\"Duration\\": 20,\\n \\"SecondsPerIteration\\": 89,\\n \\"SamplesPerSecond\\": 10,\\n \\"Mfu\\": 34,\\n \\"WarningWorker\\": [\\n {\\n \\"ExperimentId\\": 113,\\n \\"Hostname\\": \\"101.66.165.102\\",\\n \\"PodName\\": \\"hzs-forge-sdxl-online-7ff4d86444-pc95h\\",\\n \\"GpuNum\\": 90,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 43,\\n \\"SamplesPerSecond\\": 53\\n }\\n ],\\n \\"ErrorWorker\\": [\\n {\\n \\"ExperimentId\\": 176,\\n \\"Hostname\\": \\"etcd_cluster_c0n2\\",\\n \\"PodName\\": \\"fluxserv-6fc89b45cf-w8wq6\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 42,\\n \\"SamplesPerSecond\\": 65\\n }\\n ]\\n },\\n \\"SetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"GetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"lingj1xxnjt1k4nv-mg18v52pydyuumae-0\\",\\n \\"TotalCPU\\": 90,\\n \\"TotalGPU\\": 8,\\n \\"TotalMemory\\": 500,\\n \\"RequestCPU\\": 90,\\n \\"RequestGPU\\": 8,\\n \\"RequestMemory\\": 500\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n }\\n }\\n ],\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '获取实验列表',
],
'GetExperimentResultData' => [
'summary' => '获取实验结果数据。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2989,54 +1508,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '194764',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
],
'parameters' => [
[
'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
],
[
'name' => 'Hostname',
'in' => 'query',
- 'schema' => [
- 'title' => '主机名',
- 'description' => '主机名',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'iZj6ccwd7zwfms7hzaz2riZ',
- ],
+ 'schema' => ['title' => '主机名', 'description' => '主机名', 'type' => 'string', 'required' => false, 'example' => 'iZj6ccwd7zwfms7hzaz2riZ'],
],
[
'name' => 'WorkloadType',
'in' => 'query',
- 'schema' => [
- 'title' => '负载类型',
- 'description' => '负载类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'AI',
- ],
+ 'schema' => ['title' => '负载类型', 'description' => '负载类型', 'type' => 'string', 'required' => false, 'example' => 'AI'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => 'Resource Group Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-sfjgskdfj3k4',
- ],
+ 'schema' => ['description' => 'Resource Group Id', 'type' => 'string', 'required' => false, 'example' => 'rg-sfjgskdfj3k4'],
],
],
'responses' => [
@@ -3054,21 +1547,9 @@
'description' => '结果',
'type' => 'object',
'properties' => [
- 'Hostname' => [
- 'description' => '主机ip',
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1',
- ],
- 'PodName' => [
- 'description' => 'Pod名称',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'GPU数量',
- 'type' => 'string',
- 'example' => '8',
- ],
+ 'Hostname' => ['description' => '主机ip', 'type' => 'string', 'example' => 'p-jt-waf-app1'],
+ 'PodName' => ['description' => 'Pod名称', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'string', 'example' => '8'],
'MetricsInfos' => [
'title' => '指标信息列表',
'description' => '指标信息列表',
@@ -3076,1131 +1557,265 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'description' => '操作时间戳',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1715393860',
- ],
- 'Iteration' => [
- 'title' => 'iteration',
- 'description' => 'iteration',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'Tflops' => [
- 'description' => 'TFLOPS',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '43',
- ],
- 'Value' => [
- 'title' => '指标值',
- 'description' => '指标值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '126',
- ],
- 'Gpu_num' => [
- 'title' => 'gpu',
- 'description' => 'gpu',
- 'type' => 'string',
- 'example' => '8',
- ],
+ 'Timestamp' => ['description' => '操作时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1715393860'],
+ 'Iteration' => ['title' => 'iteration', 'description' => 'iteration', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'Tflops' => ['description' => 'TFLOPS', 'type' => 'number', 'format' => 'double', 'example' => '43'],
+ 'Value' => ['title' => '指标值', 'description' => '指标值', 'type' => 'number', 'format' => 'double', 'example' => '126'],
+ 'Gpu_num' => ['title' => 'gpu', 'description' => 'gpu', 'type' => 'string', 'example' => '8'],
],
],
],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'C1D34EC2-AB13-56F4-8322-F15AE563EA04',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'C1D34EC2-AB13-56F4-8322-F15AE563EA04'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"Hostname\\": \\"p-jt-waf-app1\\",\\n \\"PodName\\": \\"hzs-forge-sdxl-online-7ff4d86444-pc95h\\",\\n \\"GpuNum\\": \\"8\\",\\n \\"MetricsInfos\\": [\\n {\\n \\"Timestamp\\": 1715393860,\\n \\"Iteration\\": 100,\\n \\"Tflops\\": 43,\\n \\"Value\\": 126,\\n \\"Gpu_num\\": \\"8\\"\\n }\\n ]\\n }\\n ],\\n \\"RequestId\\": \\"C1D34EC2-AB13-56F4-8322-F15AE563EA04\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
'title' => '获取实验结果数据',
- ],
- 'CheckServiceLinkedRoleEfloCnpForDeleting' => [
- 'summary' => 'slr权限校验。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '195191',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentResultData'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'RoleArn',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'API角色',
- 'description' => 'API角色',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'arn:aws:iam::345678901234:role/eflo-cnp-role',
- ],
- ],
- [
- 'name' => 'ServiceName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '服务名称',
- 'description' => '服务名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eflo-cnp',
- ],
- ],
- [
- 'name' => 'SPIRegionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'SPI的地域',
- 'description' => 'SPI的地域',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- ],
- [
- 'name' => 'DeletionTaskId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '删除的任务ID',
- 'description' => '删除的任务ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'task-003',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'AccountId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '主账号ID',
- 'description' => '主账号ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '345678901234',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'DeleteSlrResultVO',
- 'description' => 'DeleteSlrResultVO',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94',
- ],
- 'Deletable' => [
- 'description' => '是否可以删除。取值:'."\n"
- .'- `true`: 可删除。'."\n"
- .'- `false`: 不可删除。',
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Resources' => [
- 'description' => '资源列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源',
- 'type' => 'object',
- 'properties' => [
- 'Region' => [
- 'description' => '地域。',
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'Resources' => [
- 'description' => '资源列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源',
- 'type' => 'string',
- 'example' => '1049462126009625',
- ],
- ],
- ],
- ],
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentResultData',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94\\",\\n \\"Deletable\\": true,\\n \\"Resources\\": [\\n {\\n \\"Region\\": \\"cn-beijing\\",\\n \\"Resources\\": [\\n \\"1049462126009625\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
- 'title' => '校验服务角色',
],
- 'CreateExperimentPlanTemplate' => [
- 'summary' => '创建实验计划模版。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetResource' => [
+ 'summary' => '获取集群信息。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195306',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195097',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '4724',
- ],
- ],
- [
- 'name' => 'TemplateName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板名称',
- 'description' => 'Template Name',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- ],
- [
- 'name' => 'TemplateDescription',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板介绍',
- 'description' => 'Template Description',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'The template installs jdk and tomcat on a new ECS instance.',
- ],
- ],
- [
- 'name' => 'PrivacyLevel',
+ 'name' => 'ClusterId',
'in' => 'query',
- 'schema' => [
- 'title' => '隐私级别',
- 'description' => 'Privacy Level',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'private',
- ],
- ],
- [
- 'name' => 'TemplatePipeline',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '模板流水线',
- 'description' => 'Template Pipeline',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '14',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload Name',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => 'Usage Scenario, e.g., "baseline"',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'baseline',
- ],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => 'Configured Environment Parameters',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'CPU allocation count',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'GPU allocation count',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => 'Memory (GB) allocation count',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Shared Memory (GB) allocation count',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'CUDA Version',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCL Version',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GPU Driver Version',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorch Version',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- ],
- 'required' => true,
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Node Order Number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
- 'SettingParams' => [
- 'description' => 'Configured Workload Parameters',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'key-value pair',
- ],
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
+ 'schema' => ['title' => '灵骏的集群ID', 'description' => '灵骏的集群ID', 'type' => 'string', 'required' => true, 'example' => 'ehpc-bj-uo8f26cpmo'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '资源对象',
+ 'description' => '资源对象',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
- 'description' => 'Data',
+ 'description' => '数据',
'type' => 'object',
'properties' => [
- 'CreatorUid' => [
- 'title' => '主账号uid',
- 'description' => 'Primary Account UID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12312312312312',
- ],
- 'TemplateId' => [
- 'title' => '模板ID',
- 'description' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '17615126',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation Time',
- 'type' => 'string',
- 'example' => '2024-11-19T02:01:05Z',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update Time',
- 'type' => 'string',
- 'example' => '2023-10-16T01:58Z',
- ],
- 'TemplateName' => [
- 'title' => '模板名称',
- 'description' => 'Template Name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'TemplateDescription' => [
- 'title' => '模板描述',
- 'description' => 'Template Description',
- 'type' => 'string',
- 'example' => 'test',
+ 'ResourceId' => ['title' => '集群id', 'description' => '集群id', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'ClusterId' => ['title' => '集群id', 'description' => '集群id', 'type' => 'string', 'example' => '3123121223'],
+ 'ClusterName' => ['title' => '集群名称', 'description' => '集群名称', 'type' => 'string', 'example' => 'main_cluster'],
+ 'ClusterDesc' => ['title' => '集群描述', 'description' => '集群描述', 'type' => 'string', 'example' => 'test'],
+ 'CpuCoreLimit' => ['title' => '已使用cpu', 'description' => '已使用cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuLimit' => ['title' => '已使用gpu', 'description' => '已使用gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryLimit' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'MaxGpu' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MaxCpuCore' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'MaxMemory' => ['title' => '已使用内存', 'description' => '已使用内存', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'UserAccessParam' => [
+ 'title' => '用户授权参数',
+ 'description' => '用户授权参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => '用户key', 'type' => 'string', 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'example' => 'test'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'endpoint', 'type' => 'string', 'example' => 'test'],
+ ],
],
- 'PrivacyLevel' => [
- 'title' => '隐私级别',
- 'description' => 'Privacy Level',
- 'type' => 'string',
- 'example' => 'private',
+ 'MachineType' => [
+ 'title' => '规格类型',
+ 'description' => '规格类型',
+ 'type' => 'object',
+ 'properties' => [
+ 'MemoryInfo' => ['title' => '内存信息', 'description' => '内存信息', 'type' => 'string', 'example' => '32x 64GB DDR4 4800 Memory'],
+ 'Type' => ['title' => '类型', 'description' => '类型', 'type' => 'string', 'example' => 'Private'],
+ 'BondNum' => ['title' => '网络bond的数量', 'description' => '网络bond的数量', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'NodeCount' => ['title' => '节点个数', 'description' => '节点个数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CpuInfo' => ['title' => 'cpu的信息', 'description' => 'cpu的信息', 'type' => 'string', 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU'],
+ 'NetworkInfo' => ['title' => '网络信息', 'description' => '网络信息', 'type' => 'string', 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\n4x 200Gbps Dual Port EIC'],
+ 'GpuInfo' => ['title' => 'gpu的信息', 'description' => 'gpu的信息', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'DiskInfo' => ['title' => '磁盘信息', 'description' => '磁盘信息', 'type' => 'string', 'example' => '2x 480GB SATA SSD\\n4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '网络模式', 'description' => '网络模式', 'type' => 'string', 'example' => '2'],
+ 'Name' => ['title' => '规格名称', 'description' => '规格名称', 'type' => 'string', 'example' => 'efg2.p8en'],
+ ],
],
- 'TemplatePipelineParam' => [
- 'title' => '模板流水线',
- 'description' => 'Template Pipeline',
+ 'ResourceNodes' => [
+ 'title' => '资源节点列表',
+ 'description' => '资源节点列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload Name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => 'Usage Scenario, e.g., "baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => 'Configured Workload Parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'key-value',
- 'example' => '{}',
- ],
- ],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => 'Configured Environment Parameters',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'CPU Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'GPU Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => 'Memory (GB) Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Shared Memory (GB) Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Number of Nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCL Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GPU Driver Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorch Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- ],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Pipeline Order',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'lingj19q90jp66nq-mg2pa0p2l2bipnsi-17'],
],
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => 'Is Deleted',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'TemplateCode' => [
- 'description' => 'Template Code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '464086216',
- ],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access Denied Detail',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '25859897-35C8-5015-8365-7A3CE52F4854'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17615126,\\n \\"CreateTime\\": \\"2024-11-19T02:01:05Z\\",\\n \\"UpdateTime\\": \\"2023-10-16T01:58Z\\",\\n \\"TemplateName\\": \\"test\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\"\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0,\\n \\"TemplateCode\\": 464086216\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '创建实验计划模版',
- ],
- 'UpdateExperimentPlanTemplate' => [
- 'summary' => '更新测试计划模板',
- 'methods' => [
- 'post',
- 'get',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"ResourceId\\": 189,\\n \\"ClusterId\\": \\"3123121223\\",\\n \\"ClusterName\\": \\"main_cluster\\",\\n \\"ClusterDesc\\": \\"test\\",\\n \\"CpuCoreLimit\\": 90,\\n \\"GpuLimit\\": 8,\\n \\"MemoryLimit\\": 500,\\n \\"MaxGpu\\": 8,\\n \\"MaxCpuCore\\": 90,\\n \\"MaxMemory\\": 500,\\n \\"UserAccessParam\\": {\\n \\"AccessId\\": \\"dev\\",\\n \\"AccessKey\\": \\"test\\",\\n \\"WorkspaceId\\": \\"test\\",\\n \\"Endpoint\\": \\"test\\"\\n },\\n \\"MachineType\\": {\\n \\"MemoryInfo\\": \\"32x 64GB DDR4 4800 Memory\\",\\n \\"Type\\": \\"Private\\",\\n \\"BondNum\\": 5,\\n \\"NodeCount\\": 1,\\n \\"CpuInfo\\": \\"2x Intel Saphhire Rapid 8469C 48C CPU\\",\\n \\"NetworkInfo\\": \\"1x 200Gbps Dual Port BF3 DPU for VPC\\\\\\\\n4x 200Gbps Dual Port EIC\\",\\n \\"GpuInfo\\": \\"8x OAM 810 GPU\\",\\n \\"DiskInfo\\": \\"2x 480GB SATA SSD\\\\\\\\n4x 3.84TB NVMe SSD\\",\\n \\"NetworkMode\\": \\"2\\",\\n \\"Name\\": \\"efg2.p8en\\"\\n },\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"lingj19q90jp66nq-mg2pa0p2l2bipnsi-17\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"25859897-35C8-5015-8365-7A3CE52F4854\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '获取集群信息',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResource'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'GetResourcePredictResult' => [
+ 'summary' => '获取集群评测结果。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '262197',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195200',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'TemplateId',
'in' => 'query',
- 'schema' => [
- 'title' => '模板code',
- 'description' => '模板code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '349623',
- ],
+ 'schema' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '315797'],
],
[
- 'name' => 'TemplatePipeline',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '模板流水线',
- 'description' => '模板流水线',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Template Pipeline',
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '14',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => '使用场景,例如"baseline"',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => '配置的负载参数',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Configured Workload Parameters',
- 'example' => 'batch_size',
- ],
- ],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => '配置的环境参数',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1.0.0',
- ],
- ],
- 'required' => true,
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => '节点序号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '1',
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源ID', 'description' => '资源ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '36'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => '结果',
+ 'title' => '查询结果',
+ 'description' => '查询结果',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'object',
- 'properties' => [
- 'CreatorUid' => [
- 'title' => '主账号uid',
- 'description' => '主账号uid',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12312312312312',
- ],
- 'TemplateId' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '17815441',
- ],
- 'TemplateCode' => [
- 'title' => '模板Code',
- 'description' => '模板Code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '472840184',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- 'TemplateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'TemplateDescription' => [
- 'title' => '模板描述',
- 'description' => '模板描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'PrivacyLevel' => [
- 'title' => '隐私级别',
- 'description' => '隐私级别',
- 'type' => 'string',
- 'example' => 'private',
- ],
- 'TemplatePipelineParam' => [
- 'title' => '模板流水线',
- 'description' => '模板流水线',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Template Pipeline',
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => '使用场景,例如"baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => '配置的负载参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Configured Workload Parameters',
- 'example' => 'batch_size',
- ],
- ],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => '配置的环境参数',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => '指定的节点',
- 'type' => 'array',
- 'items' => [
- 'description' => '节点',
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'honeypot',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => '总的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => '总的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => '总的memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => '当前请求的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => '当前请求的memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => '额外的参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '额外的参数',
- 'example' => '{}',
- ],
- ],
- ],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => '节点序号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => '是否删除',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17815441,\\n \\"TemplateCode\\": 472840184,\\n \\"CreateTime\\": \\"2024-10-22 10:18:10\\",\\n \\"UpdateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"TemplateName\\": \\"test\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"batch_size\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"honeypot\\",\\n \\"TotalCPU\\": 100,\\n \\"TotalGPU\\": 100,\\n \\"TotalMemory\\": 100,\\n \\"RequestCPU\\": 10,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 10\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '修改实验计划模版',
- ],
- 'GetExperimentPlanTemplate' => [
- 'summary' => '查询测试计划模板详情',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 2,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => '获取集群评测结果',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourcePredictResult'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetResourcePredictResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetWorkload' => [
+ 'summary' => '获取模型信息。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '262199',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '194273',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'TemplateId',
+ 'name' => 'WorkloadId',
'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '315797',
- ],
+ 'schema' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '13'],
],
],
'responses' => [
@@ -4215,379 +1830,87 @@
'description' => '数据',
'type' => 'object',
'properties' => [
- 'CreatorUid' => [
- 'title' => '主账号uid',
- 'description' => '主账号uid',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '12312312312312',
- ],
- 'TemplateId' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '17615126',
- ],
- 'TemplateCode' => [
- 'title' => '模板Code',
- 'description' => '模板Code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '464086216',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'TemplateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'example' => '模板1',
- ],
- 'TemplateDescription' => [
- 'title' => '模板描述',
- 'description' => '模板描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'PrivacyLevel' => [
- 'title' => '隐私级别',
- 'description' => '隐私级别',
- 'type' => 'string',
- 'example' => 'private',
- ],
- 'TemplatePipelineParam' => [
- 'title' => '模板流水线',
- 'description' => '模板流水线',
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '负载描述', 'description' => '负载描述', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '负载簇, AI、GPU', 'description' => '负载簇, AI、GPU', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '负载使用场景', 'description' => '负载使用场景', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '负载使用的范围标识', 'description' => '负载使用的范围标识', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '训练任务类型', 'description' => '训练任务类型', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '默认cpu分配数', 'description' => '默认cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '默认gpu分配数', 'description' => '默认gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '默认内存GB分配数', 'description' => '默认内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '默认共享内存GB分配数', 'description' => '默认共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ParamSettings' => [
+ 'title' => '参数设置',
+ 'description' => '参数设置',
'type' => 'array',
'items' => [
- 'description' => '模板流水线',
+ 'description' => '参数',
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => '使用场景,例如"baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => '配置的负载参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '配置的负载参数',
- 'example' => 'batch_size',
- ],
- ],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => '配置的环境参数',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => '指定的节点',
- 'type' => 'array',
- 'items' => [
- 'description' => '节点',
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'exclusive_coud',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => '总的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => '总的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => '总的memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2048',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => '当前请求的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => '当前请求的memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1024',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => '额外的参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '额外的参数',
- 'example' => '{}',
- ],
- ],
- ],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => '节点序号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'ParamName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '迭代数'],
+ 'ParamValue' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '参数默认值', 'description' => '参数默认值', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '参数正则表达式', 'description' => '参数正则表达式', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'number'],
],
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => '是否删除',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
+ 'StaticConfig' => [
+ 'title' => '静态配置',
+ 'description' => '静态配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'FrameWork' => ['title' => '框架', 'description' => '框架', 'type' => 'string', 'example' => 'PyTorch'],
+ 'SoftwareStack' => ['title' => '软件栈', 'description' => '软件栈', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '系统', 'description' => '系统', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '参数量', 'description' => '参数量', 'type' => 'string', 'example' => '7B'],
+ ],
],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17615126,\\n \\"TemplateCode\\": 464086216,\\n \\"CreateTime\\": \\"2024-11-29 02:16:35\\",\\n \\"UpdateTime\\": \\"2024-10-22 10:18:10\\",\\n \\"TemplateName\\": \\"模板1\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"batch_size\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"exclusive_coud\\",\\n \\"TotalCPU\\": 100,\\n \\"TotalGPU\\": 100,\\n \\"TotalMemory\\": 2048,\\n \\"RequestCPU\\": 10,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 1024\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '获取实验计划模版',
- ],
- 'DeleteExperimentPlanTemplate' => [
- 'summary' => '删除实验计划模版。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '195194',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"WorkloadDescription\\": \\"test\\",\\n \\"WorkloadType\\": \\"AI\\",\\n \\"Family\\": \\"AI\\",\\n \\"Scene\\": \\"NLP-LLM\\",\\n \\"Scope\\": \\"common\\",\\n \\"JobKind\\": \\"PyTorchJob\\",\\n \\"DefaultCpuPerWorker\\": 90,\\n \\"DefaultGpuPerWorker\\": 8,\\n \\"DefaultMemoryPerWorker\\": 500,\\n \\"DefaultShareMemory\\": 500,\\n \\"ParamSettings\\": [\\n {\\n \\"ParamName\\": \\"ITERATION\\",\\n \\"ParamDesc\\": \\"迭代数\\",\\n \\"ParamValue\\": \\"100\\",\\n \\"DefaultValue\\": \\"100\\",\\n \\"ParamRegex\\": \\"[0-9]+\\",\\n \\"ParamType\\": \\"number\\"\\n }\\n ],\\n \\"StaticConfig\\": {\\n \\"FrameWork\\": \\"PyTorch\\",\\n \\"SoftwareStack\\": \\"python\\",\\n \\"Os\\": \\"linux\\",\\n \\"Parameters\\": \\"7B\\"\\n },\\n \\"VersionId\\": 1\\n },\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '获取模型信息',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetWorkload'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '346527',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '结果',
- 'description' => '结果',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'boolean',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '4D3FD55F-3BCD-5914-9B74-A1F4961327E7',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetWorkload',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/{#WorkloadId}'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"4D3FD55F-3BCD-5914-9B74-A1F4961327E7\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '删除实验计划模版',
],
'ListExperimentPlanTemplates' => [
'summary' => '获取实验计划模版列表。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4600,23 +1923,14 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '194771',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'PrivacyLevel',
'in' => 'query',
- 'schema' => [
- 'title' => '模板的共享级别,默认私有,public、private',
- 'description' => '模板的共享级别,默认私有,public、private',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'private',
- 'default' => 'private',
- ],
+ 'schema' => ['title' => '模板的共享级别,默认私有,public、private', 'description' => '模板的共享级别,默认私有,public、private', 'type' => 'string', 'required' => false, 'example' => 'private', 'default' => 'private'],
],
],
'responses' => [
@@ -4633,50 +1947,13 @@
'items' => [
'type' => 'object',
'properties' => [
- 'CreatorUid' => [
- 'title' => '主账号uid',
- 'description' => '主账号uid',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '178154411231232',
- ],
- 'TemplateId' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '17815441',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'TemplateName' => [
- 'title' => '模板名称',
- 'description' => '模板名称',
- 'type' => 'string',
- 'example' => '模版名称',
- ],
- 'TemplateDescription' => [
- 'title' => '模板描述',
- 'description' => '模板描述',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'PrivacyLevel' => [
- 'title' => '隐私级别',
- 'description' => '隐私级别',
- 'type' => 'string',
- 'example' => 'private',
- ],
+ 'CreatorUid' => ['title' => '主账号uid', 'description' => '主账号uid', 'type' => 'integer', 'format' => 'int64', 'example' => '178154411231232'],
+ 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '17815441'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'TemplateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => '模版名称'],
+ 'TemplateDescription' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'test'],
+ 'PrivacyLevel' => ['title' => '隐私级别', 'description' => '隐私级别', 'type' => 'string', 'example' => 'private'],
'TemplatePipelineParam' => [
'title' => '模板流水线',
'description' => '模板流水线',
@@ -4684,159 +1961,72 @@
'items' => [
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => '使用场景,例如"baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => '使用场景,例如"baseline"', 'type' => 'string', 'example' => 'baseline'],
'SettingParams' => [
'title' => '配置的负载参数',
'description' => '配置的负载参数',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
],
'EnvParams' => [
'title' => '配置的环境参数',
'description' => '配置的环境参数',
'type' => 'object',
'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'description' => 'cuda版本',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'description' => 'NCCL版本',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'description' => 'GPU驱动版本号。',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'description' => 'PyTorch版本',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['description' => 'cuda版本', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['description' => 'NCCL版本', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['description' => 'GPU驱动版本号。', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['description' => 'PyTorch版本', 'type' => 'string', 'example' => '1.0.0'],
],
],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => '节点序号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => '节点序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => '版本号',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => '是否删除',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'TemplateCode' => [
- 'description' => '模板Code。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '237202524',
- ],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'TemplateCode' => ['description' => '模板Code。', 'type' => 'integer', 'format' => 'int64', 'example' => '237202524'],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'AAE4AFED-7AE6-52FA-80B6-448E63760552',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'AAE4AFED-7AE6-52FA-80B6-448E63760552'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"CreatorUid\\": 178154411231232,\\n \\"TemplateId\\": 17815441,\\n \\"CreateTime\\": \\"2024-11-29 02:16:35\\",\\n \\"UpdateTime\\": \\"2024-11-29 02:16:35\\",\\n \\"TemplateName\\": \\"模版名称\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\"\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0,\\n \\"TemplateCode\\": 237202524\\n }\\n ],\\n \\"RequestId\\": \\"AAE4AFED-7AE6-52FA-80B6-448E63760552\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
'title' => '获取实验计划模版列表',
- ],
- 'GetResourcePredictResult' => [
- 'summary' => '获取集群评测结果。',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlanTemplates'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperimentPlanTemplates',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListExperimentPlans' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4845,331 +2035,183 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '195200',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '194768',
+ 'abilityTreeNodes' => ['FEATUREbcclusterTOL3OM'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'TemplateId',
- 'in' => 'query',
+ 'name' => 'ResourceName',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '315797',
+ 'title' => '资源',
+ 'description' => '资源',
+ 'type' => 'array',
+ 'items' => ['description' => '资源名称', 'type' => 'string', 'required' => false, 'example' => 'cls-pim0anlrtm3ef4vstou001'],
+ 'required' => false,
],
],
[
- 'name' => 'ResourceId',
- 'in' => 'query',
+ 'name' => 'PlanTaskStatus',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '资源ID',
- 'description' => '资源ID',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'title' => '执行状态',
+ 'description' => '执行状态',
+ 'type' => 'array',
+ 'items' => ['description' => '状态', 'type' => 'string', 'required' => false, 'example' => 'RUNNING'],
'required' => false,
- 'example' => '36',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '查询结果',
- 'description' => '查询结果',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
],
],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 2,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
- 'title' => '获取集群评测结果',
- ],
- 'CreateExperimentPlan' => [
- 'summary' => '创建实验计划。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'CreatTimeOrder',
+ 'in' => 'query',
+ 'schema' => ['title' => '创建时间排序规则', 'description' => '创建时间排序规则', 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
- ],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '194770',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ [
+ 'name' => 'StartTimeOrder',
+ 'in' => 'query',
+ 'schema' => ['title' => '开始时间排序规则', 'description' => '开始时间排序规则', 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'TemplateId',
+ 'name' => 'EndTimeOrder',
'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '349623',
- ],
+ 'schema' => ['title' => '结束时间排序规则', 'description' => '结束时间排序规则', 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'Page',
'in' => 'query',
- 'schema' => [
- 'title' => '资源ID',
- 'description' => '资源ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '页数', 'description' => '页数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'default' => '0'],
],
[
- 'name' => 'ExternalParams',
+ 'name' => 'Size',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '额外的参数',
- 'description' => '额外的参数',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{}',
- ],
+ 'schema' => ['title' => '条数', 'description' => '条数', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100', 'default' => '10'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源组id',
- 'description' => '资源组id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzij65sf2rr5i',
- ],
+ 'schema' => ['title' => '资源组id', 'description' => '资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzij65sf2rr5i'],
],
[
'name' => 'Tag',
'in' => 'query',
- 'style' => 'repeatList',
+ 'style' => 'json',
'schema' => [
- 'title' => '资源标签',
- 'description' => '资源标签',
+ 'description' => '标签组',
'type' => 'array',
'items' => [
+ 'description' => '标签信息。'."\n"
+ ."\n"
+ .'一次最多支持输入20个标签信息。',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => '键',
- 'description' => '键',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
- 'Value' => [
- 'title' => '值',
- 'description' => '值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'tag1'],
+ 'Value' => ['description' => '标签值。', 'type' => 'string', 'required' => false, 'example' => '172'],
],
'required' => false,
],
'required' => false,
- 'maxItems' => 21,
],
],
[
- 'name' => 'PlanTemplateName',
+ 'name' => 'TemplateId',
'in' => 'query',
- 'schema' => [
- 'description' => '计划模版名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '96'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['description' => '资源ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '189'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => '结果',
+ 'title' => '查询结果',
+ 'description' => '查询结果',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => '数据',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '查询结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PlanId' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'TemplateId' => ['title' => '关联的测试计划模板ID', 'description' => '关联的测试计划模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '6'],
+ 'TemplateName' => ['title' => '关联的测试计划模板名称', 'description' => '关联的测试计划模板名称', 'type' => 'string', 'example' => 'test'],
+ 'ResourceName' => ['title' => '关联的资源名称', 'description' => '关联的资源名称', 'type' => 'string', 'example' => 'q_ecs_xpec_postpay_c'],
+ 'PlanTaskStatus' => [
+ 'title' => '测试计划执行状态',
+ 'description' => '测试计划执行状态',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'integer', 'format' => 'int32', 'example' => '1', 'description' => '状态'],
+ ],
+ 'StartTime' => ['title' => '开始时间', 'description' => '开始时间', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'EndTime' => ['title' => '结束时间', 'description' => '结束时间', 'type' => 'string', 'example' => '2024-07-08 10:22:42'],
+ 'ResourceGroupId' => ['title' => '资源组id', 'description' => '资源组id', 'type' => 'string', 'example' => 'rg-aek5behqmwbfhuy'],
+ 'Tags' => [
+ 'description' => '标签组',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['description' => '标签键。', 'type' => 'string', 'example' => 'owner'],
+ 'TagValue' => ['description' => '标签值。', 'type' => 'string', 'example' => 'test'],
+ ],
+ ],
+ ],
+ 'ResourceId' => ['description' => '资源ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ ],
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'AccessDeniedDetail' => ['description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '创建实验计划',
- ],
- 'UpdateExperimentPlan' => [
- 'summary' => '更新实验计划',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
+ 'title' => '获取实验计划列表',
+ 'summary' => '获取实验计划列表。',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => '请求参数发生变更、响应参数发生变更'],
+ ['createdAt' => '2025-02-21T07:57:21.000Z', 'description' => '响应参数发生变更'],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '262195',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlans'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'PlanId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '实验计划id',
- 'description' => '实验计划id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
- ],
- [
- 'name' => 'PlanTemplateName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '实验计划名称',
- 'description' => '实验计划名称',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '结果',
- 'description' => '结果',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperimentPlans',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '修改实验计划',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"PlanId\\": 189,\\n \\"CreateTime\\": \\"2024-07-08 10:12:42\\",\\n \\"UpdateTime\\": \\"2024-07-08 10:12:42\\",\\n \\"TemplateId\\": 6,\\n \\"TemplateName\\": \\"test\\",\\n \\"ResourceName\\": \\"q_ecs_xpec_postpay_c\\",\\n \\"PlanTaskStatus\\": {\\n \\"key\\": 1\\n },\\n \\"StartTime\\": \\"2024-07-08 10:12:42\\",\\n \\"EndTime\\": \\"2024-07-08 10:22:42\\",\\n \\"ResourceGroupId\\": \\"rg-aek5behqmwbfhuy\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"owner\\",\\n \\"TagValue\\": \\"test\\"\\n }\\n ],\\n \\"ResourceId\\": 189\\n }\\n ],\\n \\"RequestId\\": \\"FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685\\",\\n \\"TotalCount\\": 0,\\n \\"AccessDeniedDetail\\": \\"{}\\"\\n}","type":"json"}]',
],
- 'GetExperimentPlan' => [
- 'summary' => '获取实验计划详情。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListExperiments' => [
+ 'summary' => '获取实验列表。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5178,430 +2220,195 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '194769',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195098',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'PlanId',
'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '189'],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['title' => '次序', 'description' => '次序', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源组id', 'description' => '资源组id', 'type' => 'string', 'required' => false, 'example' => 'rg-uo8f26cpmo'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '查询结果',
- 'description' => '查询结果',
+ 'title' => '实验对象列表',
+ 'description' => '实验对象列表',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => '数据',
- 'type' => 'object',
- 'properties' => [
- 'PlanId' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- 'TemplateId' => [
- 'title' => '关联的测试计划模板ID',
- 'description' => '关联的测试计划模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2162',
- ],
- 'TemplateName' => [
- 'title' => '关联的测试计划模板名称',
- 'description' => '关联的测试计划模板名称',
- 'type' => 'string',
- 'example' => 'MM',
- ],
- 'ResourceId' => [
- 'title' => '关联的资源ID',
- 'description' => '关联的资源ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '260860230684',
- ],
- 'PlanPipeline' => [
- 'title' => '测试计划pipeline',
- 'description' => '测试计划pipeline',
- 'type' => 'array',
- 'items' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['title' => '实验id', 'description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '1684537476910997506'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-10-22 10:18:10'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-10-22 10:18:10'],
+ 'ExperimentName' => ['title' => '实验名称', 'description' => '实验名称', 'type' => 'string', 'example' => 'test'],
+ 'ExperimentType' => ['title' => '实验类型', 'description' => '实验类型', 'type' => 'string', 'example' => 'AI'],
+ 'ResourceName' => ['title' => '资源名称', 'description' => '资源名称', 'type' => 'string', 'example' => 'ecs.r8y.4xlarge'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'StartTime' => ['title' => '任务开始时间', 'description' => '任务开始时间', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'EndTime' => ['title' => '任务结束时间', 'description' => '任务结束时间', 'type' => 'string', 'example' => '2024-10-22 10:28:10'],
+ 'Status' => ['title' => '状态', 'description' => '状态', 'type' => 'string', 'example' => 'RUNNING'],
+ 'Results' => [
+ 'title' => '任务结果',
+ 'description' => '任务结果',
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => '负载id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '14',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => '负载名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ResourceId' => [
- 'title' => '资源id',
- 'description' => '资源id',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '36',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => '资源名称',
- 'type' => 'string',
- 'example' => 'GPU',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => '使用场景,例如"baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => '配置的负载参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
+ 'ExperimentId' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'integer', 'format' => 'int64', 'example' => '440'],
+ 'Duration' => ['title' => '时间', 'description' => '时间', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'SecondsPerIteration' => ['title' => '每次迭代的秒数', 'description' => '每次迭代的秒数', 'type' => 'number', 'format' => 'double', 'example' => '89'],
+ 'SamplesPerSecond' => ['title' => '每秒采样数', 'description' => '每秒采样数', 'type' => 'number', 'format' => 'double', 'example' => '10'],
+ 'Mfu' => ['description' => 'MFU', 'type' => 'number', 'format' => 'double', 'example' => '34'],
+ 'WarningWorker' => [
+ 'title' => '警告worker',
+ 'description' => '警告worker',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '113'],
+ 'Hostname' => ['description' => '主机ip', 'type' => 'string', 'example' => '101.66.165.102'],
+ 'PodName' => ['description' => 'Pod名称', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'WarningFlag' => ['title' => '是否有报警', 'description' => '是否有报警', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '报警信息', 'description' => '报警信息', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'description' => '是否有错误', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'description' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '43'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '53'],
+ ],
],
],
- 'EnvParams' => [
- 'title' => '配置的环境参数',
- 'description' => '配置的环境参数',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'cpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'gpu分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => '内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => '共享内存GB分配数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => '节点数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'cudaVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'title' => 'NCCLVersion',
- 'description' => 'NCCLVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'title' => 'GpuDriverVersion',
- 'description' => 'GpuDriverVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'title' => 'PyTorchVersion',
- 'description' => 'PyTorchVersion',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => '指定的节点',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => '节点名称',
- 'type' => 'string',
- 'example' => 'ods_galaxy_gateway_tickets',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => '总的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => '总的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => '总的memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => '当前请求的gpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => '当前请求的memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => '额外的参数',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => '参数',
- ],
+ 'ErrorWorker' => [
+ 'description' => '错误节点',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '错误节点',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '176'],
+ 'Hostname' => ['description' => '主机ip', 'type' => 'string', 'example' => 'etcd_cluster_c0n2'],
+ 'PodName' => ['description' => 'Pod名称', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6'],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'WarningFlag' => ['title' => '是否有报警', 'description' => '是否有报警', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '报警信息', 'description' => '报警信息', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '是否有错误', 'description' => '是否有错误', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '错误信息', 'description' => '错误信息', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => 'TFLOPS值', 'description' => 'TFLOPS值', 'type' => 'number', 'format' => 'double', 'example' => '42'],
+ 'SamplesPerSecond' => ['title' => '吞吐量', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '65'],
],
],
],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => '节点序号',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
],
],
- ],
- 'ResourceGroupId' => [
- 'title' => '资源组id',
- 'description' => '资源组id',
- 'type' => 'string',
- 'example' => 'rg-acfmvmpzi7lmxhq',
- ],
- 'Tags' => [
- 'description' => '标签',
- 'type' => 'array',
- 'items' => [
- 'description' => '标签信息。',
+ 'SetParams' => [
+ 'title' => '运行的负载参数',
+ 'description' => '运行的负载参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => '参数'],
+ ],
+ 'GetParams' => [
+ 'title' => '解析的负载参数',
+ 'description' => '解析的负载参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '参数', 'example' => '{}'],
+ ],
+ 'EnvParams' => [
+ 'title' => '运行的环境参数',
+ 'description' => '运行的环境参数',
'type' => 'object',
'properties' => [
- 'TagKey' => [
- 'description' => '标签键。',
- 'type' => 'string',
- 'example' => 'appName',
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => '指定的节点',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'lingj1xxnjt1k4nv-mg18v52pydyuumae-0'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => '总的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => '总的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => '总的memory', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => '当前请求的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => '当前请求的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => '当前请求的memory', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ ],
+ ],
],
- 'TagValue' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'example' => 'test',
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => '额外的参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '参数', 'example' => '{}'],
],
],
],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '6DBAC169-93D1-5DCD-8109-30FB623B3197',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"PlanId\\": 189,\\n \\"CreateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"UpdateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"TemplateId\\": 2162,\\n \\"TemplateName\\": \\"MM\\",\\n \\"ResourceId\\": 260860230684,\\n \\"PlanPipeline\\": [\\n {\\n \\"WorkloadId\\": 14,\\n \\"WorkloadName\\": \\"test\\",\\n \\"ResourceId\\": 36,\\n \\"ResourceName\\": \\"GPU\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"ods_galaxy_gateway_tickets\\",\\n \\"TotalCPU\\": 90,\\n \\"TotalGPU\\": 8,\\n \\"TotalMemory\\": 500,\\n \\"RequestCPU\\": 90,\\n \\"RequestGPU\\": 8,\\n \\"RequestMemory\\": 500\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"ResourceGroupId\\": \\"rg-acfmvmpzi7lmxhq\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"appName\\",\\n \\"TagValue\\": \\"test\\"\\n }\\n ]\\n },\\n \\"RequestId\\": \\"6DBAC169-93D1-5DCD-8109-30FB623B3197\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '获取实验计划详情',
- ],
- 'DeleteExperimentPlan' => [
- 'summary' => '删除实验计划。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '262196',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"ExperimentId\\": 1684537476910997500,\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"ExperimentName\\": \\"test\\",\\n \\"ExperimentType\\": \\"AI\\",\\n \\"ResourceName\\": \\"ecs.r8y.4xlarge\\",\\n \\"WorkloadName\\": \\"test\\",\\n \\"StartTime\\": \\"2024-10-22 10:18:10\\",\\n \\"EndTime\\": \\"2024-10-22 10:28:10\\",\\n \\"Status\\": \\"RUNNING\\",\\n \\"Results\\": {\\n \\"ExperimentId\\": 440,\\n \\"Duration\\": 20,\\n \\"SecondsPerIteration\\": 89,\\n \\"SamplesPerSecond\\": 10,\\n \\"Mfu\\": 34,\\n \\"WarningWorker\\": [\\n {\\n \\"ExperimentId\\": 113,\\n \\"Hostname\\": \\"101.66.165.102\\",\\n \\"PodName\\": \\"hzs-forge-sdxl-online-7ff4d86444-pc95h\\",\\n \\"GpuNum\\": 90,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 43,\\n \\"SamplesPerSecond\\": 53\\n }\\n ],\\n \\"ErrorWorker\\": [\\n {\\n \\"ExperimentId\\": 176,\\n \\"Hostname\\": \\"etcd_cluster_c0n2\\",\\n \\"PodName\\": \\"fluxserv-6fc89b45cf-w8wq6\\",\\n \\"GpuNum\\": 8,\\n \\"GpuName\\": \\"8x OAM 810 GPU\\",\\n \\"WarningFlag\\": false,\\n \\"WarningMsg\\": \\"无\\",\\n \\"ErrorFlag\\": false,\\n \\"ErrorMsg\\": \\"无\\",\\n \\"Tflops\\": 42,\\n \\"SamplesPerSecond\\": 65\\n }\\n ]\\n },\\n \\"SetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"GetParams\\": {\\n \\"key\\": \\"{}\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"lingj1xxnjt1k4nv-mg18v52pydyuumae-0\\",\\n \\"TotalCPU\\": 90,\\n \\"TotalGPU\\": 8,\\n \\"TotalMemory\\": 500,\\n \\"RequestCPU\\": 90,\\n \\"RequestGPU\\": 8,\\n \\"RequestMemory\\": 500\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n }\\n }\\n ],\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '获取实验列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperiments'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'PlanId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '查询结果',
- 'description' => '查询结果',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperiments',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/*'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '删除实验计划',
],
- 'ListExperimentPlans' => [
- 'summary' => '获取实验计划列表。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTagResources' => [
+ 'summary' => '查询资源标签',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -5613,176 +2420,151 @@
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '194768',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterTOL3OM',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '260247',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'ResourceName',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源',
- 'description' => '资源',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源名称',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cls-pim0anlrtm3ef4vstou001',
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PlanTaskStatus',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '执行状态',
- 'description' => '执行状态',
- 'type' => 'array',
- 'items' => [
- 'description' => '状态',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RUNNING',
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'CreatTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '创建时间排序规则',
- 'description' => '创建时间排序规则',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'StartTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '开始时间排序规则',
- 'description' => '开始时间排序规则',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'EndTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '结束时间排序规则',
- 'description' => '结束时间排序规则',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'Page',
- 'in' => 'query',
- 'schema' => [
- 'title' => '页数',
- 'description' => '页数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'default' => '0',
- ],
- ],
- [
- 'name' => 'Size',
+ 'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'title' => '条数',
- 'description' => '条数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- 'default' => '10',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
],
[
- 'name' => 'ResourceGroupId',
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '资源组id',
- 'description' => '资源组id',
- 'type' => 'string',
+ 'description' => '资源Id',
+ 'type' => 'array',
+ 'items' => ['description' => '资源Id', 'type' => 'string', 'required' => false, 'example' => '189'],
'required' => false,
- 'example' => 'rg-aekzij65sf2rr5i',
+ 'maxItems' => 51,
],
],
[
'name' => 'Tag',
'in' => 'query',
- 'style' => 'json',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => '标签组',
+ 'description' => '要查询的标签列表。N的取值范围1~20。',
'type' => 'array',
'items' => [
- 'description' => '标签信息。'."\n"
+ 'description' => '资源的标签。'."\n"
."\n"
- .'一次最多支持输入20个标签信息。',
+ .'最多支持绑定20个标签。',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => '标签键。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'tag1',
- ],
- 'Value' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '172',
- ],
+ 'Key' => ['description' => '标签键,n 的取值范围为 [1, 20]。', 'type' => 'string', 'required' => false, 'example' => 'owner'],
+ 'Value' => ['description' => '指标值', 'type' => 'string', 'required' => false, 'example' => 'syg'],
],
'required' => false,
],
'required' => false,
+ 'maxItems' => 21,
],
],
[
- 'name' => 'TemplateId',
+ 'name' => 'NextToken',
'in' => 'query',
+ 'schema' => ['title' => '下一个查询开始Token', 'description' => '下一个查询开始Token', 'type' => 'string', 'required' => false, 'example' => 'F0lqbr2JpLDppro1RahGKViWtqXr3L28cePimcRn'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '96',
+ 'title' => 'CnpListTagResponse<TagResourceVO>',
+ 'description' => 'CnpListTagResponse<TagResourceVO>',
+ 'type' => 'object',
+ 'properties' => [
+ 'NextToken' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => '下一个查询开始Token,NextToken为空说明没有下一个', 'type' => 'string', 'example' => 'uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF'],
+ 'TagResources' => [
+ 'title' => '资源列表列表',
+ 'description' => '资源列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '数组长度最大为20。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['title' => '标签键', 'description' => '标签键', 'type' => 'string', 'example' => 'owner'],
+ 'TagValue' => ['title' => '标签值', 'description' => '标签值', 'type' => 'string', 'example' => 'syg'],
+ 'ResourceId' => ['title' => '资源ID', 'description' => '资源ID', 'type' => 'string', 'example' => '189'],
+ 'ResourceType' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'example' => 'ExperimentPlan'],
+ ],
+ ],
+ ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'MissingParameter.ResourceIdOrTag', 'errorMessage' => 'Either ResourceId or Tag must be specified.', 'description' => ''],
+ ['errorCode' => 'InvalidNextToken', 'errorMessage' => 'The NextToken is invalid.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded. The maximum is 50.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceIds', 'errorMessage' => 'You must specify ResourceIds.', 'description' => ''],
+ ['errorCode' => 'Duplicate.ResourceId', 'errorMessage' => 'The request contains duplicated ResourceId.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of Tags is exceeded. The maximum is 20.', 'description' => ''],
+ ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The Tag.N.Key contains a duplicated key.', 'description' => ''],
+ ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The ResourceId does not exist.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagKey', 'errorMessage' => 'The specified Tag.n.Key is invalid.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagValue', 'errorMessage' => 'The specified Tag.n.Value is invalid.', 'description' => ''],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF\\",\\n \\"TagResources\\": [\\n {\\n \\"TagKey\\": \\"owner\\",\\n \\"TagValue\\": \\"syg\\",\\n \\"ResourceId\\": \\"189\\",\\n \\"ResourceType\\": \\"ExperimentPlan\\"\\n }\\n ],\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '查询资源标签',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
+ ],
],
],
+ ],
+ ],
+ 'ListWorkloads' => [
+ 'summary' => '获取模型列表。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'ResourceId',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '194285',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Scope',
'in' => 'query',
- 'schema' => [
- 'description' => '资源ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '作用域', 'description' => '作用域', 'type' => 'string', 'required' => false, 'example' => 'common'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '查询结果',
- 'description' => '查询结果',
+ 'title' => '结果',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
'Data' => [
@@ -5790,140 +2572,84 @@
'description' => '数据',
'type' => 'array',
'items' => [
- 'description' => '查询结果。',
'type' => 'object',
'properties' => [
- 'PlanId' => [
- 'title' => '计划ID',
- 'description' => '计划ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => '创建时间',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => '更新时间',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'TemplateId' => [
- 'title' => '关联的测试计划模板ID',
- 'description' => '关联的测试计划模板ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '6',
- ],
- 'TemplateName' => [
- 'title' => '关联的测试计划模板名称',
- 'description' => '关联的测试计划模板名称',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ResourceName' => [
- 'title' => '关联的资源名称',
- 'description' => '关联的资源名称',
- 'type' => 'string',
- 'example' => 'q_ecs_xpec_postpay_c',
- ],
- 'PlanTaskStatus' => [
- 'title' => '测试计划执行状态',
- 'description' => '测试计划执行状态',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- 'description' => '状态',
- ],
- ],
- 'StartTime' => [
- 'title' => '开始时间',
- 'description' => '开始时间',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'EndTime' => [
- 'title' => '结束时间',
- 'description' => '结束时间',
- 'type' => 'string',
- 'example' => '2024-07-08 10:22:42',
- ],
- 'ResourceGroupId' => [
- 'title' => '资源组id',
- 'description' => '资源组id',
- 'type' => 'string',
- 'example' => 'rg-aek5behqmwbfhuy',
- ],
- 'Tags' => [
- 'description' => '标签组',
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '负载描述', 'description' => '负载描述', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '负载簇, AI、GPU', 'description' => '负载簇, AI、GPU', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '负载使用场景', 'description' => '负载使用场景', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '负载使用的范围标识', 'description' => '负载使用的范围标识', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '训练任务类型', 'description' => '训练任务类型', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '默认cpu分配数', 'description' => '默认cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '默认gpu分配数', 'description' => '默认gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '默认内存GB分配数', 'description' => '默认内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '默认共享内存GB分配数', 'description' => '默认共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ParamSettings' => [
+ 'title' => '参数设置',
+ 'description' => '参数设置',
'type' => 'array',
'items' => [
- 'description' => '标签',
'type' => 'object',
'properties' => [
- 'TagKey' => [
- 'description' => '标签键。',
- 'type' => 'string',
- 'example' => 'owner',
- ],
- 'TagValue' => [
- 'description' => '标签值。',
- 'type' => 'string',
- 'example' => 'test',
- ],
+ 'ParamName' => ['title' => '参数名称', 'description' => '参数名称', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '参数描述', 'description' => '参数描述', 'type' => 'string', 'example' => '迭代数'],
+ 'ParamValue' => ['title' => '参数值', 'description' => '参数值', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '参数默认值', 'description' => '参数默认值', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '参数正则表达式', 'description' => '参数正则表达式', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '参数类型', 'description' => '参数类型', 'type' => 'string', 'example' => 'number'],
],
],
],
- 'ResourceId' => [
- 'description' => '资源ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
+ 'StaticConfig' => [
+ 'title' => '静态配置',
+ 'description' => '静态配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'FrameWork' => ['title' => '框架', 'description' => '框架', 'type' => 'string', 'example' => 'PyTorch'],
+ 'SoftwareStack' => ['title' => '软件栈', 'description' => '软件栈', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '系统', 'description' => '系统', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '参数量', 'description' => '参数量', 'type' => 'string', 'example' => '7B'],
+ ],
],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'AccessDeniedDetail' => [
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '4AC08332-436C-57A3-9FBA-26772B1A9901'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"PlanId\\": 189,\\n \\"CreateTime\\": \\"2024-07-08 10:12:42\\",\\n \\"UpdateTime\\": \\"2024-07-08 10:12:42\\",\\n \\"TemplateId\\": 6,\\n \\"TemplateName\\": \\"test\\",\\n \\"ResourceName\\": \\"q_ecs_xpec_postpay_c\\",\\n \\"PlanTaskStatus\\": {\\n \\"key\\": 1\\n },\\n \\"StartTime\\": \\"2024-07-08 10:12:42\\",\\n \\"EndTime\\": \\"2024-07-08 10:22:42\\",\\n \\"ResourceGroupId\\": \\"rg-aek5behqmwbfhuy\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"owner\\",\\n \\"TagValue\\": \\"test\\"\\n }\\n ],\\n \\"ResourceId\\": 189\\n }\\n ],\\n \\"RequestId\\": \\"FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685\\",\\n \\"TotalCount\\": 0,\\n \\"AccessDeniedDetail\\": \\"{}\\"\\n}","type":"json"}]',
- 'title' => '获取实验计划列表',
- ],
- 'ChangeResourceGroup' => [
- 'summary' => '资源转组',
- 'methods' => [
- 'post',
- 'get',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"WorkloadDescription\\": \\"test\\",\\n \\"WorkloadType\\": \\"AI\\",\\n \\"Family\\": \\"AI\\",\\n \\"Scene\\": \\"NLP-LLM\\",\\n \\"Scope\\": \\"common\\",\\n \\"JobKind\\": \\"PyTorchJob\\",\\n \\"DefaultCpuPerWorker\\": 90,\\n \\"DefaultGpuPerWorker\\": 8,\\n \\"DefaultMemoryPerWorker\\": 500,\\n \\"DefaultShareMemory\\": 500,\\n \\"ParamSettings\\": [\\n {\\n \\"ParamName\\": \\"ITERATION\\",\\n \\"ParamDesc\\": \\"迭代数\\",\\n \\"ParamValue\\": \\"100\\",\\n \\"DefaultValue\\": \\"100\\",\\n \\"ParamRegex\\": \\"[0-9]+\\",\\n \\"ParamType\\": \\"number\\"\\n }\\n ],\\n \\"StaticConfig\\": {\\n \\"FrameWork\\": \\"PyTorch\\",\\n \\"SoftwareStack\\": \\"python\\",\\n \\"Os\\": \\"linux\\",\\n \\"Parameters\\": \\"7B\\"\\n },\\n \\"VersionId\\": 1\\n }\\n ],\\n \\"RequestId\\": \\"4AC08332-436C-57A3-9FBA-26772B1A9901\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => '获取模型列表',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListWorkloads'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListWorkloads',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'StopExperiment' => [
+ 'summary' => '停止实验。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5935,124 +2661,163 @@
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '213735',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195093',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ExperimentPlan',
- 'default' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => '计划ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'ResourceGroupId',
'in' => 'query',
+ 'schema' => ['description' => 'Resource Group Id', 'type' => 'string', 'required' => false, 'example' => 'rg-kdsflsdfj23m'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '资源Id',
- 'description' => '资源Id',
- 'type' => 'string',
- 'required' => true,
- 'example' => '123',
+ 'title' => '是否成功',
+ 'description' => '是否成功',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
],
],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => '数据不存在'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '停止实验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopExperiment'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'RegionId',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:StopExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'TagResources' => [
+ 'summary' => '资源打用户标签',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260245',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
+ ],
+ [
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '地域Id',
- 'description' => '地域Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
+ 'description' => '资源Id',
+ 'type' => 'array',
+ 'items' => ['description' => '资源Id', 'type' => 'string', 'required' => false, 'example' => '189'],
+ 'required' => true,
+ 'maxItems' => 51,
],
],
[
- 'name' => 'ResourceGroupId',
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '目标资源组',
- 'description' => '目标资源组',
- 'type' => 'string',
+ 'description' => '标签列表,最多20个。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => '标签键。', 'type' => 'string', 'required' => false, 'example' => 'owner', 'maxLength' => 128],
+ 'Value' => ['description' => '指标值', 'type' => 'string', 'required' => false, 'example' => 'syg', 'maxLength' => 256],
+ ],
+ 'required' => false,
+ ],
'required' => true,
- 'example' => 'rg-aek25k3b4pbhc4a',
+ 'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => '结果',
+ 'title' => 'CnpResult<String>',
+ 'description' => 'CnpResult<String>',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'string', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'MissingParameter.RegionId',
- 'errorMessage' => 'The RegionId parameters that are required for processing this request are missing',
- ],
- [
- 'errorCode' => 'MissingParameter.ResourceId',
- 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing',
- ],
- [
- 'errorCode' => 'MissingParameter.ResourceGroupId',
- 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing',
- ],
- [
- 'errorCode' => 'InvalidResourceGroup',
- 'errorMessage' => 'The specified ResourceGroupId is invalid',
- ],
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred while processing your request',
- ],
- [
- 'errorCode' => 'ResourceNotFound',
- 'errorMessage' => ' The specified resource is not found',
- ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[]\\",\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '资源打用户标签',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
],
- 403 => [
- [
- 'errorCode' => 'NoPermission.ChangeResourceGroup',
- 'errorMessage' => 'You are not authorized to change resourcegroup',
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\"\\n}","type":"json"}]',
- 'title' => '资源转组',
],
'UntagResources' => [
'summary' => '资源去除用户标签',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -6065,22 +2830,14 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '260246',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => '资源类型', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
],
[
'name' => 'ResourceId',
@@ -6089,12 +2846,7 @@
'schema' => [
'description' => '资源Id',
'type' => 'array',
- 'items' => [
- 'description' => '资源Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
- ],
+ 'items' => ['description' => '资源Id', 'type' => 'string', 'required' => false, 'example' => '189'],
'required' => true,
'maxItems' => 51,
],
@@ -6106,12 +2858,7 @@
'schema' => [
'description' => '标签键组,最多20个子项',
'type' => 'array',
- 'items' => [
- 'description' => '标签键列表,n 的取值范围为 1, 20。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
+ 'items' => ['description' => '标签键列表,n 的取值范围为 1, 20。', 'type' => 'string', 'required' => false, 'example' => 'owner'],
'required' => true,
'maxItems' => 100,
],
@@ -6119,13 +2866,7 @@
[
'name' => 'All',
'in' => 'query',
- 'schema' => [
- 'title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false',
- 'description' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false', 'description' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -6135,172 +2876,294 @@
'description' => 'CnpResult<String>',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => '数据',
- 'type' => 'string',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '25859897-35C8-5015-8365-7A3CE52F4854',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'string', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '25859897-35C8-5015-8365-7A3CE52F4854'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[]\\",\\n \\"RequestId\\": \\"25859897-35C8-5015-8365-7A3CE52F4854\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
'title' => '资源去除用户标签',
- ],
- 'TagResources' => [
- 'summary' => '资源打用户标签',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'UpdateExperimentPlan' => [
+ 'summary' => '更新实验计划',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '260245',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeCode' => '262195',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'PlanId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '实验计划id', 'description' => '实验计划id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'PlanTemplateName',
'in' => 'query',
- 'style' => 'repeatList',
+ 'schema' => ['title' => '实验计划名称', 'description' => '实验计划名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '资源Id',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
+ 'title' => '结果',
+ 'description' => '结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
- 'required' => true,
- 'maxItems' => 51,
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '修改实验计划',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateExperimentPlan'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'Tag',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UpdateExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'UpdateExperimentPlanTemplate' => [
+ 'summary' => '更新测试计划模板',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '262197',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TemplateId',
'in' => 'query',
- 'style' => 'repeatList',
+ 'schema' => ['title' => '模板code', 'description' => '模板code', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '349623'],
+ ],
+ [
+ 'name' => 'TemplatePipeline',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'description' => '标签列表,最多20个。',
+ 'title' => '模板流水线',
+ 'description' => '模板流水线',
'type' => 'array',
'items' => [
- 'description' => '标签列表。',
+ 'description' => 'Template Pipeline',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => '标签键。',
- 'type' => 'string',
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '14'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => '使用场景,例如"baseline"', 'type' => 'string', 'required' => true, 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => '配置的负载参数',
+ 'type' => 'object',
'required' => false,
- 'example' => 'owner',
- 'maxLength' => 128,
+ 'additionalProperties' => ['type' => 'string', 'description' => 'Configured Workload Parameters', 'example' => 'batch_size'],
],
- 'Value' => [
- 'description' => '指标值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'syg',
- 'maxLength' => 256,
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => '配置的环境参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'required' => false, 'example' => '1.0.0'],
+ ],
+ 'required' => true,
],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => '节点序号', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
],
'required' => false,
],
'required' => true,
- 'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'CnpResult<String>',
- 'description' => 'CnpResult<String>',
+ 'title' => '结果',
+ 'description' => '结果',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => '数据',
- 'type' => 'string',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatorUid' => ['title' => '主账号uid', 'description' => '主账号uid', 'type' => 'integer', 'format' => 'int64', 'example' => '12312312312312'],
+ 'TemplateId' => ['title' => '模板ID', 'description' => '模板ID', 'type' => 'integer', 'format' => 'int64', 'example' => '17815441'],
+ 'TemplateCode' => ['title' => '模板Code', 'description' => '模板Code', 'type' => 'integer', 'format' => 'int64', 'example' => '472840184'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => '更新时间', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ 'TemplateName' => ['title' => '模板名称', 'description' => '模板名称', 'type' => 'string', 'example' => 'test'],
+ 'TemplateDescription' => ['title' => '模板描述', 'description' => '模板描述', 'type' => 'string', 'example' => 'test'],
+ 'PrivacyLevel' => ['title' => '隐私级别', 'description' => '隐私级别', 'type' => 'string', 'example' => 'private'],
+ 'TemplatePipelineParam' => [
+ 'title' => '模板流水线',
+ 'description' => '模板流水线',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Template Pipeline',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkloadId' => ['title' => '负载id', 'description' => '负载id', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => '负载名称', 'type' => 'string', 'example' => 'test'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => '使用场景,例如"baseline"', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => '配置的负载参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'Configured Workload Parameters', 'example' => 'batch_size'],
+ ],
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => '配置的环境参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'cpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'gpu分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => '内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => '共享内存GB分配数', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => '节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => '指定的节点',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '节点',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => '节点名称', 'type' => 'string', 'example' => 'honeypot'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => '总的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => '总的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => '总的memory', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => '当前请求的cpu', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => '当前请求的gpu', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => '当前请求的memory', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ ],
+ ],
+ ],
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => '额外的参数',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => '额外的参数', 'example' => '{}'],
+ ],
+ ],
+ ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => '节点序号', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ ],
+ ],
+ 'VersionId' => ['title' => '版本号', 'description' => '版本号', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => '是否删除', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => '无权限信息', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": \\"[]\\",\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '资源打用户标签',
- ],
- 'ListTagResources' => [
- 'summary' => '查询资源标签',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": {\\n \\"CreatorUid\\": 12312312312312,\\n \\"TemplateId\\": 17815441,\\n \\"TemplateCode\\": 472840184,\\n \\"CreateTime\\": \\"2024-10-22 10:18:10\\",\\n \\"UpdateTime\\": \\"2024-07-07 02:08:54\\",\\n \\"TemplateName\\": \\"test\\",\\n \\"TemplateDescription\\": \\"test\\",\\n \\"PrivacyLevel\\": \\"private\\",\\n \\"TemplatePipelineParam\\": [\\n {\\n \\"WorkloadId\\": 13,\\n \\"WorkloadName\\": \\"test\\",\\n \\"Scene\\": \\"baseline\\",\\n \\"SettingParams\\": {\\n \\"key\\": \\"batch_size\\"\\n },\\n \\"EnvParams\\": {\\n \\"CpuPerWorker\\": 90,\\n \\"GpuPerWorker\\": 8,\\n \\"MemoryPerWorker\\": 500,\\n \\"ShareMemory\\": 500,\\n \\"WorkerNum\\": 1,\\n \\"CudaVersion\\": \\"1.0.0\\",\\n \\"NCCLVersion\\": \\"1.0.0\\",\\n \\"GpuDriverVersion\\": \\"1.0.0\\",\\n \\"PyTorchVersion\\": \\"1.0.0\\",\\n \\"ResourceNodes\\": [\\n {\\n \\"NodeName\\": \\"honeypot\\",\\n \\"TotalCPU\\": 100,\\n \\"TotalGPU\\": 100,\\n \\"TotalMemory\\": 100,\\n \\"RequestCPU\\": 10,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 10\\n }\\n ],\\n \\"ExtendParam\\": {\\n \\"key\\": \\"{}\\"\\n }\\n },\\n \\"PipelineOrder\\": 1\\n }\\n ],\\n \\"VersionId\\": 1,\\n \\"IsDelete\\": 0\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '修改实验计划模版',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateExperimentPlanTemplate'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UpdateExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ValidateResource' => [
+ 'summary' => '校验集群信息。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6309,215 +3172,480 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '260247',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeCode' => '195095',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'ClusterId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '资源ID', 'description' => '资源ID', 'type' => 'string', 'required' => true, 'example' => 'ehpc-sh-ouypm5aucy'],
],
[
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'style' => 'repeatList',
+ 'name' => 'UserAccessParam',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'description' => '资源Id',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
+ 'title' => '用户授权参数',
+ 'description' => '用户授权参数',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'required' => false, 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => '用户key', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => '工作空间ID', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'endpoint', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
- 'maxItems' => 51,
],
],
- [
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'repeatList',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '要查询的标签列表。N的取值范围1~20。',
- 'type' => 'array',
- 'items' => [
- 'description' => '资源的标签。'."\n"
- ."\n"
- .'最多支持绑定20个标签。',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '标签键,n 的取值范围为 [1, 20]。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
- 'Value' => [
- 'description' => '指标值',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'syg',
- ],
- ],
- 'required' => false,
+ 'title' => '资源对象',
+ 'description' => '资源对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => '数据', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => '请求id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => '查询总数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
- 'required' => false,
- 'maxItems' => 21,
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => '校验集群信息',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateResource'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'NextToken',
- 'in' => 'query',
- 'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => '下一个查询开始Token',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F0lqbr2JpLDppro1RahGKViWtqXr3L28cePimcRn',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:ValidateResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
+ ],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'CnpListTagResponse<TagResourceVO>',
- 'description' => 'CnpListTagResponse<TagResourceVO>',
- 'type' => 'object',
- 'properties' => [
- 'NextToken' => [
- 'title' => '下一个查询开始Token,NextToken为空说明没有下一个',
- 'description' => '下一个查询开始Token,NextToken为空说明没有下一个',
- 'type' => 'string',
- 'example' => 'uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF',
- ],
- 'TagResources' => [
- 'title' => '资源列表列表',
- 'description' => '资源列表',
- 'type' => 'array',
- 'items' => [
- 'description' => '数组长度最大为20。',
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => '标签键',
- 'type' => 'string',
- 'example' => 'owner',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => '标签值',
- 'type' => 'string',
- 'example' => 'syg',
- ],
- 'ResourceId' => [
- 'title' => '资源ID',
- 'description' => '资源ID',
- 'type' => 'string',
- 'example' => '189',
- ],
- 'ResourceType' => [
- 'title' => '资源类型',
- 'description' => '资源类型',
- 'type' => 'string',
- 'example' => 'ExperimentPlan',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '请求id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => '无权限信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => '查询总数',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- ],
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-heyuan', 'regionName' => '华南2(河源)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eflo-cnp.cn-heyuan.aliyuncs.com', 'endpoint' => 'eflo-cnp.cn-heyuan.aliyuncs.com', 'vpc' => 'eflo-cnp-vpc.cn-heyuan.aliyuncs.com'],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'eflo-cnp.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'eflo-cnp.cn-wulanchabu.aliyuncs.com', 'vpc' => 'eflo-cnp-vpc.cn-wulanchabu.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => 'A1001', 'message' => 'The user parameter is invalid.', 'http_code' => 200, 'description' => '用户参数错误'],
+ ['code' => 'B1001', 'message' => 'The error is unexpected.', 'http_code' => 200, 'description' => '未知错误'],
+ ['code' => 'C4027', 'message' => 'This resource is unavailable.', 'http_code' => 200, 'description' => '资源不可用'],
+ ['code' => 'MissingResourceId', 'message' => 'ResourceId is mandatory for this action.', 'http_code' => 400, 'description' => '此操作必须使用ResourceId。'],
+ ['code' => 'MissingTag', 'message' => 'Tag is mandatory for this action.', 'http_code' => 400, 'description' => '此操作必须使用标签。'],
+ ['code' => 'NoPermission', 'message' => 'No permissions.', 'http_code' => 403, 'description' => '您没有权限进行该操作,请检查权限!'],
+ ['code' => 'NotFound', 'message' => 'Data not found.', 'http_code' => 200, 'description' => '数据不存在'],
+ ['code' => 'NotFound', 'message' => 'not found.', 'http_code' => 400, 'description' => '数据不存在'],
+ ['code' => 'NOT_FOUND', 'message' => 'This resource was not found.', 'http_code' => 400, 'description' => '找不到的资源'],
+ ['code' => 'SystemError', 'message' => 'A system error occurred while processing your request', 'http_code' => 400, 'description' => '系统错误'],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlanTemplates'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourcePredictResult'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UntagResources'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperiments'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResource'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateExperimentPlanTemplate'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckServiceLinkedRoleEfloCnpForDeleting'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListWorkloads'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperiment'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperimentPlanTemplate'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResource'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateExperimentPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopExperiment'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateResource'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExperimentPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperiment'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetWorkload'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlans'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateExperimentPlanTemplate'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TagResources'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperimentPlan'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentResultData'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentPlanTemplate'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'Eflo',
+ 'productName' => '智能计算灵骏',
+ 'ramCodes' => ['eflo'],
+ 'ramLevel' => '资源级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'UntagResources',
+ 'description' => '资源去除用户标签',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'MissingParameter.ResourceIdOrTag',
- 'errorMessage' => 'Either ResourceId or Tag must be specified.',
+ [
+ 'apiName' => 'StopExperiment',
+ 'description' => '停止实验',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:StopExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetWorkload',
+ 'description' => '获取模型信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetWorkload',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/{#WorkloadId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'TagResources',
+ 'description' => '资源打用户标签',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
],
- [
- 'errorCode' => 'InvalidNextToken',
- 'errorMessage' => 'The NextToken is invalid.',
+ ],
+ ],
+ [
+ 'apiName' => 'ListExperimentPlans',
+ 'description' => '获取实验计划列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperimentPlans',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
],
- [
- 'errorCode' => 'NumberExceed.ResourceIds',
- 'errorMessage' => 'The maximum number of ResourceIds is exceeded. The maximum is 50.',
+ ],
+ ],
+ [
+ 'apiName' => 'GetExperiment',
+ 'description' => '获取实验详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
],
- [
- 'errorCode' => 'MissingParameter.ResourceIds',
- 'errorMessage' => 'You must specify ResourceIds.',
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateExperimentPlanTemplate',
+ 'description' => '修改实验计划模版',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UpdateExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
],
- [
- 'errorCode' => 'Duplicate.ResourceId',
- 'errorMessage' => 'The request contains duplicated ResourceId.',
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteExperimentPlanTemplate',
+ 'description' => '删除实验计划模版',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
],
- [
- 'errorCode' => 'NumberExceed.Tags',
- 'errorMessage' => 'The maximum number of Tags is exceeded. The maximum is 20.',
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourcePredictResult',
+ 'description' => '获取集群评测结果',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetResourcePredictResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
],
- [
- 'errorCode' => 'Duplicate.TagKey',
- 'errorMessage' => 'The Tag.N.Key contains a duplicated key.',
+ ],
+ ],
+ [
+ 'apiName' => 'CreateResource',
+ 'description' => '添加集群信息',
+ 'operationType' => 'create',
+ 'additionalActions' => [],
+ 'ramAction' => [
+ 'action' => 'eflo:CreateResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/*'],
],
- [
- 'errorCode' => 'InvalidResourceId.NotFound',
- 'errorMessage' => 'The ResourceId does not exist.',
+ ],
+ ],
+ [
+ 'apiName' => 'GetExperimentPlan',
+ 'description' => '获取实验计划详情',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
],
- [
- 'errorCode' => 'InvalidParameter.TagKey',
- 'errorMessage' => 'The specified Tag.n.Key is invalid.',
+ ],
+ ],
+ [
+ 'apiName' => 'GetExperimentResultData',
+ 'description' => '获取实验结果数据',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentResultData',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
],
- [
- 'errorCode' => 'InvalidParameter.TagValue',
- 'errorMessage' => 'The specified Tag.n.Value is invalid.',
+ ],
+ ],
+ [
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => '资源转组',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateExperimentPlanTemplate',
+ 'description' => '创建实验计划模版',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'eflo:CreateExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CheckServiceLinkedRoleEfloCnpForDeleting',
+ 'description' => '校验服务角色',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:CheckServiceLinkedRoleEfloCnpForDeleting',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetExperimentPlanTemplate',
+ 'description' => '获取实验计划模版',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetExperimentPlanTemplate',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateExperimentPlan',
+ 'description' => '修改实验计划',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UpdateExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListWorkloads',
+ 'description' => '获取模型列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListWorkloads',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteExperimentPlan',
+ 'description' => '删除实验计划',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResource',
+ 'description' => '获取集群信息',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'eflo:GetResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteExperiment',
+ 'description' => '删除实验',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'eflo:DeleteExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListExperimentPlanTemplates',
+ 'description' => '获取实验计划模版列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperimentPlanTemplates',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListExperiments',
+ 'description' => '获取实验列表',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperiments',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ValidateResource',
+ 'description' => '校验集群信息',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:ValidateResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagResources',
+ 'description' => '查询资源标签',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateExperimentPlan',
+ 'description' => '创建实验计划',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'eflo:CreateExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF\\",\\n \\"TagResources\\": [\\n {\\n \\"TagKey\\": \\"owner\\",\\n \\"TagValue\\": \\"syg\\",\\n \\"ResourceId\\": \\"189\\",\\n \\"ResourceType\\": \\"ExperimentPlan\\"\\n }\\n ],\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => '查询资源标签',
- ],
- ],
- 'endpoints' => [
- [
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'eflo-cnp.cn-wulanchabu.aliyuncs.com',
],
- [
- 'regionId' => 'cn-heyuan',
- 'endpoint' => 'eflo-cnp.cn-heyuan.aliyuncs.com',
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ['validationType' => 'always', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ['validationType' => 'always', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/{#WorkloadId}'],
+ ['validationType' => 'always', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
+ ['validationType' => 'always', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/{#ExperimentPlanTemplateId}'],
+ ['validationType' => 'always', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/*'],
+ ['validationType' => 'always', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplantemplate/*'],
+ ['validationType' => 'always', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/*'],
+ ['validationType' => 'always', 'resourceType' => 'Workload', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:workload/*'],
+ ['validationType' => 'always', 'resourceType' => 'ExperimentPlanTemplate', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
+ ['validationType' => 'always', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
],
],
];