summaryrefslogtreecommitdiff
path: root/data/en_us/eflo-cnp
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/eflo-cnp')
-rw-r--r--data/en_us/eflo-cnp/2023-08-28/api-docs.php8040
1 files changed, 2648 insertions, 5392 deletions
diff --git a/data/en_us/eflo-cnp/2023-08-28/api-docs.php b/data/en_us/eflo-cnp/2023-08-28/api-docs.php
index 7c6733e..1b677a9 100644
--- a/data/en_us/eflo-cnp/2023-08-28/api-docs.php
+++ b/data/en_us/eflo-cnp/2023-08-28/api-docs.php
@@ -1,457 +1,424 @@
<?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' => 'Resource',
- 'type' => 'directory',
- 'children' => [
- 'CreateResource',
- 'ValidateResource',
- 'GetResource',
- ],
- ],
- [
- 'id' => 204165,
- 'title' => 'Workload',
+ 'children' => ['CheckServiceLinkedRoleEfloCnpForDeleting'],
'type' => 'directory',
- 'children' => [
- 'ListWorkloads',
- 'GetWorkload',
- ],
- ],
- [
- 'id' => 204168,
'title' => 'Experiment',
- 'type' => 'directory',
- 'children' => [
- 'StopExperiment',
- 'GetExperiment',
- 'DeleteExperiment',
- 'ListExperiments',
- 'GetExperimentResultData',
- 'CheckServiceLinkedRoleEfloCnpForDeleting',
- ],
],
[
- 'id' => 204174,
- 'title' => 'Experimental Template',
- 'type' => 'directory',
'children' => [
- 'CreateExperimentPlanTemplate',
- 'UpdateExperimentPlanTemplate',
- 'GetExperimentPlanTemplate',
- 'DeleteExperimentPlanTemplate',
- 'ListExperimentPlanTemplates',
- 'GetResourcePredictResult',
+ 'ChangeResourceGroup', 'CreateExperimentPlan', 'CreateExperimentPlanTemplate', 'CreateResource', 'DeleteExperiment', 'DeleteExperimentPlan', 'DeleteExperimentPlanTemplate', 'GetExperiment', 'GetExperimentPlan', 'GetExperimentPlanTemplate', 'GetExperimentResultData', 'GetResource', 'GetResourcePredictResult', 'GetWorkload', 'ListExperimentPlanTemplates', 'ListExperimentPlans', 'ListExperiments', 'ListTagResources', 'ListWorkloads', 'StopExperiment',
+ 'TagResources', 'UntagResources', 'UpdateExperimentPlan', 'UpdateExperimentPlanTemplate', 'ValidateResource',
],
- ],
- [
- 'id' => 204181,
- 'title' => 'Experiment Plan',
+ 'title' => 'Others',
'type' => 'directory',
- 'children' => [
- 'CreateExperimentPlan',
- 'UpdateExperimentPlan',
- 'GetExperimentPlan',
- 'DeleteExperimentPlan',
- 'ListExperimentPlans',
- 'ChangeResourceGroup',
- 'UntagResources',
- 'TagResources',
- 'ListTagResources',
- ],
],
],
'components' => [
'schemas' => [],
],
'apis' => [
- 'CreateResource' => [
- 'summary' => 'Create Evaluation Resource',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ChangeResourceGroup' => [
+ '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' => 'Cluster Name',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'tre-1-ppu',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => 'The resource type.'."\n", 'type' => 'string', 'required' => false, 'example' => 'ExperimentPlan', 'default' => 'ExperimentPlan'],
],
[
- 'name' => 'ClusterDesc',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'title' => '集群描述',
- 'description' => 'Cluster Description',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ppu集群',
- ],
+ 'schema' => ['title' => '资源Id', 'description' => 'The resource id.', 'type' => 'string', 'required' => true, 'example' => '123'],
],
[
- 'name' => 'ClusterId',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'title' => '集群Id',
- 'description' => 'Cluster ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ehpc-sh-fj71c0ycfw',
- ],
+ 'schema' => ['title' => '地域Id', 'description' => 'Region Id', 'type' => 'string', 'required' => false, 'example' => 'cn-shanghai'],
],
[
- 'name' => 'MachineTypes',
- 'in' => 'formData',
- 'style' => 'json',
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '目标资源组', 'description' => 'The resource group id.', 'type' => 'string', 'required' => true, 'example' => 'rg-aek25k3b4pbhc4a'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '规格类型',
- 'description' => 'Machine Types',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => 'Memory Information',
- 'type' => 'string',
- 'required' => false,
- 'example' => '32x 64GB DDR4 4800 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => 'Type',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Private',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => 'Number of Network Bonds',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => 'Number of Nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'CPU Information',
- 'type' => 'string',
- 'required' => true,
- 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => 'Network Information',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\\\n4x 200Gbps Dual Port EIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'GPU Information',
- 'type' => 'string',
- 'required' => true,
- 'example' => '8x NVIDIA SXM4 80GB A100 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => 'Disk Information',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => 'Network Mode',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => 'Specification Name',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'efg1.nvga1n',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request 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' => 'Change resource group',
+ 'summary' => 'Change resource group',
+ 'translator' => 'machine',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ChangeResourceGroup'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'UserAccessParam',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '用户授权参数',
- 'description' => 'User Access Parameters',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => 'User ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => 'User Key',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => 'Workspace 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' => 'All Resource', 'arn' => '*'],
],
- 'required' => true,
],
],
],
+ ],
+ 'CheckServiceLinkedRoleEfloCnpForDeleting' => [
+ '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' => '', 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role.'."\n"
+ ."\n"
+ .'The trusted entity of the RAM role is an Alibaba Cloud account. For more information, see [Create a RAM role for a trusted Alibaba Cloud account](~~93691~~) or [CreateRole](~~28710~~).'."\n"
+ ."\n"
+ .'Format: `acs:ram::<account_id>:role/<role_name>`.'."\n"
+ ."\n"
+ .'You can view the ARN in the RAM console or by calling operations. The following items describe the validity periods of storage addresses:'."\n"
+ ."\n"
+ .'* For more information about how to view the ARN in the RAM console, see [How do I find the ARN of the RAM role?](~~39744~~)'."\n"
+ .'* For more information about how to view the ARN by calling operations, see [ListRoles](~~28713~~) or [GetRole](~~28711~~).'."\n", 'type' => 'string', 'required' => false, 'example' => 'arn:aws:iam::345678901234:role/eflo-cnp-role'],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The Service Name.', 'type' => 'string', 'required' => false, 'example' => 'eflo-cnp'],
+ ],
+ [
+ 'name' => 'SPIRegionId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The ID of the region.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
+ ],
+ [
+ 'name' => 'DeletionTaskId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The ID of the deletion task.'."\n", 'type' => 'string', 'required' => false, 'example' => 'task-003'],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The ID of the cloud account.'."\n", 'type' => 'string', 'required' => false, 'example' => '345678901234'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => 'Resource Object',
+ 'title' => 'DeleteSlrResultVO',
+ 'description' => 'DeleteSlrResultVO',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total Count',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94', 'title' => ''],
+ 'Deletable' => ['description' => 'Indicates whether the SLR can be deleted. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The SLR can be deleted.'."\n"
+ .'* `false`: The SLR cannot be deleted.'."\n", 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'Resources' => [
+ 'description' => 'The resources.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the resource.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => ['description' => 'The region.'."\n", 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''],
+ 'Resources' => [
+ 'description' => 'The resources.'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The resource name.', 'type' => 'string', 'example' => '1049462126009625', 'title' => ''],
+ 'title' => '',
+ ],
+ ],
+ 'title' => '',
+ ],
+ 'title' => '',
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Add Cluster Information',
- 'translator' => 'machine',
- ],
- 'ValidateResource' => [
- 'summary' => 'Resource Connectivity Test',
- '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' => 'Check Service Role',
+ 'summary' => 'Check slr service role',
+ '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' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateExperimentPlan' => [
+ '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' => 'Resource ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ehpc-sh-ouypm5aucy',
- ],
+ 'schema' => ['title' => '模板ID', 'description' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '349623'],
],
[
- 'name' => 'UserAccessParam',
- 'in' => 'formData',
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源ID', 'description' => 'Resource ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
+ ],
+ [
+ 'name' => 'ExternalParams',
+ 'in' => 'query',
'style' => 'json',
+ 'schema' => ['title' => '额外的参数', 'description' => 'Additional parameters', 'type' => 'object', 'required' => false, 'example' => '{}'],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源组id', 'description' => 'Resource group ID', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzij65sf2rr5i'],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '用户授权参数',
- 'description' => 'User Authorization Parameters',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => 'User ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => 'User Key',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => 'Workspace ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'Endpoint',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ 'title' => '资源标签',
+ 'description' => 'Resource tags',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '键', 'description' => 'Key', 'type' => 'string', 'required' => false, 'example' => 'owner'],
+ 'Value' => ['title' => '值', 'description' => 'Value', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
+ 'required' => false,
+ 'description' => '',
+ 'title' => '',
],
'required' => false,
+ 'maxItems' => 21,
],
],
+ [
+ 'name' => 'PlanTemplateName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => 'Plan Template Name', 'example' => 'test', 'title' => ''],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => 'Resource Object',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request Id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'integer', 'format' => 'int64', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total count', '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' => 'Validate Cluster Information',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Create Experiment Plan',
+ 'summary' => 'Create Experiment Plan',
'translator' => 'machine',
- ],
- 'GetResource' => [
- 'summary' => 'Get Resource Information',
- 'methods' => [
- 'post',
+ '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' => [
+ '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' => 'The cluster ID of Lingjun',
- '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' => [
+ 'title' => '配置的负载参数',
+ 'description' => 'Configured Workload Parameters',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => 'key-value pair', 'title' => ''],
+ ],
+ ],
+ 'required' => false,
+ 'description' => '',
+ 'title' => '',
+ ],
'required' => true,
- 'example' => 'ehpc-bj-uo8f26cpmo',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '资源对象',
- 'description' => 'Resource object',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
'Data' => [
@@ -459,826 +426,423 @@
'description' => 'Data',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '集群id',
- 'description' => 'Cluster ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'ClusterId' => [
- 'title' => '集群id',
- 'description' => 'Cluster ID',
- 'type' => 'string',
- 'example' => '3123121223',
- ],
- 'ClusterName' => [
- 'title' => '集群名称',
- 'description' => 'Cluster name',
- 'type' => 'string',
- 'example' => 'main_cluster',
- ],
- 'ClusterDesc' => [
- 'title' => '集群描述',
- 'description' => 'Cluster description',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'CpuCoreLimit' => [
- 'title' => '已使用cpu',
- 'description' => 'Used CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuLimit' => [
- 'title' => '已使用gpu',
- 'description' => 'Used GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryLimit' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'MaxGpu' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MaxCpuCore' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'MaxMemory' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'UserAccessParam' => [
- 'title' => '用户授权参数',
- 'description' => 'User authorization parameters',
- 'type' => 'object',
- 'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => 'User ID',
- 'type' => 'string',
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => 'User key',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => 'Workspace ID',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'Endpoint',
- 'type' => 'string',
- 'example' => 'test',
- ],
- ],
- ],
- 'MachineType' => [
- 'title' => '规格类型',
- 'description' => 'Machine type',
- 'type' => 'object',
- 'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => 'Memory information',
- 'type' => 'string',
- 'example' => '32x 64GB DDR4 4800 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => 'Type',
- 'type' => 'string',
- 'example' => 'Private',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => 'Number of network bonds',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'CPU information',
- 'type' => 'string',
- 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => 'Network information',
- 'type' => 'string',
- 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\n4x 200Gbps Dual Port EIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'GPU information',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => 'Disk information',
- 'type' => 'string',
- 'example' => '2x 480GB SATA SSD\\n4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => 'Network mode',
- 'type' => 'string',
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => 'Specification name',
- 'type' => 'string',
- 'example' => 'efg2.p8en',
- ],
- ],
- ],
- 'ResourceNodes' => [
- 'title' => '资源节点列表',
- 'description' => 'List of resource nodes',
+ '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' => 'Node name',
- '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' => '{}', 'title' => ''],
],
+ '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'],
],
+ 'description' => 'Template pipeline',
+ 'title' => '',
],
],
+ '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', 'example' => '1', 'format' => 'int64', 'title' => ''],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '25859897-35C8-5015-8365-7A3CE52F4854',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total count of the query',
- '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\\": 1\\n },\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Create Experiment Plan Template',
+ 'summary' => 'Create/Update Test Plan Template',
+ 'translator' => 'machine',
+ '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' => 'Get Cluster Information',
- 'translator' => 'machine',
],
- 'ListWorkloads' => [
- 'summary' => 'Get Workload List',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateResource' => [
+ 'summary' => 'Adds information about a cluster.',
+ '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' => 'The name of the cluster.', 'type' => 'string', 'required' => true, 'example' => 'tre-1'],
+ ],
+ [
+ 'name' => 'ClusterDesc',
+ 'in' => 'query',
+ 'schema' => ['title' => '集群描述', 'description' => 'The description of the cluster.', 'type' => 'string', 'required' => false, 'example' => '集群1'],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'query',
+ 'schema' => ['title' => '集群Id', 'description' => 'The ID of the cluster.', 'type' => 'string', 'required' => true, 'example' => 'ehpc-sh-fj71c0ycfw'],
+ ],
+ [
+ 'name' => 'MachineTypes',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '作用域',
- 'description' => 'Scope',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'common',
+ 'title' => '规格类型',
+ 'description' => 'The machine types.',
+ 'type' => 'object',
+ 'properties' => [
+ 'MemoryInfo' => ['title' => '内存信息', 'description' => 'The memory information.', 'type' => 'string', 'required' => false, 'example' => '32x 64GB DDR4 4800 Memory'],
+ 'Type' => ['title' => '类型', 'description' => 'The type.', 'type' => 'string', 'required' => false, 'example' => 'Private'],
+ 'BondNum' => ['title' => '网络bond的数量', 'description' => 'The number of network bonds.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '5'],
+ 'NodeCount' => ['title' => '节点个数', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
+ 'CpuInfo' => ['title' => 'cpu的信息', 'description' => 'The CPU information.', 'type' => 'string', 'required' => true, 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU'],
+ 'NetworkInfo' => ['title' => '网络信息', 'description' => 'The network information.', 'type' => 'string', 'required' => false, 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\\\n4x 200Gbps Dual Port EIC'],
+ 'GpuInfo' => ['title' => 'gpu的信息', 'description' => 'The GPU information.', 'type' => 'string', 'required' => true, 'example' => '8x NVIDIA SXM4 80GB A100 GPU'],
+ 'DiskInfo' => ['title' => '磁盘信息', 'description' => 'The disk information.', 'type' => 'string', 'required' => false, 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '网络模式', 'description' => 'The network mode.', 'type' => 'string', 'required' => false, 'example' => '2'],
+ 'Name' => ['title' => '规格名称', 'description' => 'The instance type name.', 'type' => 'string', 'required' => false, 'example' => 'efg1.nvga1n'],
+ ],
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'UserAccessParam',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '用户授权参数',
+ 'description' => 'The user authorization parameters.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => 'The user ID.', 'type' => 'string', 'required' => true, 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => 'The user key.', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => 'The workspace ID.', 'type' => 'string', 'required' => true, 'example' => '1245688643'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'The endpoint.', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ 'required' => true,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '资源对象',
+ 'description' => 'The resource object.',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- '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',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => 'Workload Description',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => 'Workload Type',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => 'Workload Cluster, AI, GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => 'Workload Usage Scenario',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => 'Scope Identifier for Workload Usage',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => 'Training Job Type',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => 'Default CPU Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => 'Default GPU Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => 'Default Memory (GB) Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => 'Default Shared Memory (GB) Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ParamSettings' => [
- 'title' => '参数设置',
- 'description' => 'Parameter Settings',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => 'Parameter Name',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => 'Parameter Description',
- 'type' => 'string',
- 'example' => 'number',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => 'Parameter Value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => 'Default Parameter Value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => 'Parameter Regular Expression',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => 'Parameter type',
- 'type' => 'string',
- 'example' => 'number',
- ],
- ],
- ],
- ],
- 'StaticConfig' => [
- 'title' => '静态配置',
- 'description' => 'Static Configuration',
- 'type' => 'object',
- 'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => 'Framework',
- 'type' => 'string',
- 'example' => 'PyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => 'Software Stack',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => 'Operating System',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => 'Number of Parameters',
- 'type' => 'string',
- 'example' => '7B',
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '4AC08332-436C-57A3-9FBA-26772B1A9901',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access Denied Information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'The data returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'The request ID.', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'The total number of entries.', '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' => 'Get Model List',
- 'translator' => 'machine',
- ],
- 'GetWorkload' => [
- 'summary' => 'Retrieve workload information by ID',
- 'methods' => [
- 'post',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Add Cluster Information',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResource'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ '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' => [
+ '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' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '13',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => 'Plan 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', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '是否成功',
+ 'description' => 'Whether the operation was successful',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'object',
- 'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload Name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => 'Workload Description',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => 'Workload Type',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => 'Workload Cluster, e.g., AI, GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => 'Workload Usage Scenario',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => 'Scope Identifier for Workload Usage',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => 'Training Job Type',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => 'Default CPU Allocation per Worker',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => 'Default GPU Allocation per Worker',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => 'Default Memory (GB) Allocation per Worker',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => 'Default Shared Memory (GB) Allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ParamSettings' => [
- 'title' => '参数设置',
- 'description' => 'Parameter Settings',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Parameter',
- 'type' => 'object',
- 'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => 'Parameter Name',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => 'Parameter Description',
- 'type' => 'string',
- 'example' => 'number',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => 'Parameter Value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => 'Default Parameter Value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => 'Parameter Regular Expression',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => 'Parameter type',
- 'type' => 'string',
- 'example' => 'number',
- ],
- ],
- ],
- ],
- 'StaticConfig' => [
- 'title' => '静态配置',
- 'description' => 'Static Configuration',
- 'type' => 'object',
- 'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => 'Framework',
- 'type' => 'string',
- 'example' => 'PyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => 'Software Stack',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => 'Operating System',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => 'Parameter Volume',
- 'type' => 'string',
- 'example' => '7B',
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access Denied Information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'boolean', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total count of queries', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
- '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' => 'Get Model Information',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Delete Experiment',
+ 'summary' => 'Delete Experiment',
'translator' => 'machine',
- ],
- 'StopExperiment' => [
- 'summary' => 'Stop Experiment',
- 'methods' => [
- 'post',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T05:11:14.000Z', 'description' => 'Error codes changed, Request parameters changed'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteExperiment'],
+ ],
+ ],
+ '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' => [
+ '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' => 'Plan ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '计划ID',
- 'description' => 'Plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
+ 'title' => '查询结果',
+ 'description' => 'Query Result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => 'Data.', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access Denied Information.', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total Count.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
],
],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Delete Experiment Plan',
+ 'summary' => 'Delete Experiment Plan',
+ 'translator' => 'machine',
+ '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' => [
+ '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' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '346527'],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
- 'title' => '是否成功',
- 'description' => 'Whether the operation was successful',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total number of queries',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'boolean', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '4D3FD55F-3BCD-5914-9B74-A1F4961327E7'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total Count', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Stop Experiment',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"4D3FD55F-3BCD-5914-9B74-A1F4961327E7\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Delete Experiment Plan Template',
+ 'summary' => 'Delete Test Plan Template',
'translator' => 'machine',
+ 'changeSet' => [
+ ['createdAt' => '2025-04-15T02:39:59.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-27T05:11:14.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-19T02:42:56.000Z', 'description' => 'Error codes changed'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => 'Request parameters changed'],
+ ],
+ '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}'],
+ ],
+ ],
+ ],
+ ],
],
'GetExperiment' => [
- 'summary' => 'Get Experiment Details',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'summary' => 'Retrieves the details of an experiment.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1291,1701 +855,729 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '195099',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
],
'parameters' => [
[
'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '实验ID',
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
- ],
+ 'schema' => ['title' => '', 'description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => 'Resource Group Id',
- 'example' => 'rg-sdsmfg23',
- ],
+ 'schema' => ['description' => 'Resource Group Id', 'type' => 'string', 'required' => false, 'example' => 'rg-kdsfjascjfm3', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '实验对象',
- 'description' => 'Experiment object',
+ 'title' => '',
+ 'description' => 'The experiment object.',
'type' => 'object',
'properties' => [
'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
+ 'title' => '',
+ 'description' => 'The data.',
'type' => 'object',
'properties' => [
'Task' => [
- 'title' => '实验任务',
- 'description' => 'Experiment task',
+ 'title' => '',
+ 'description' => 'The experiment task.',
'type' => 'object',
'properties' => [
- 'TaskId' => [
- 'title' => '任务id',
- 'description' => 'Task ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '167420',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'StartTime' => [
- 'title' => '开始时间',
- 'description' => 'Start time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:24:08',
- ],
- 'EndTime' => [
- 'title' => '结束时间',
- 'description' => 'End time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-03-05 18:34:08',
- ],
+ 'TaskId' => ['title' => '', 'description' => 'The task ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '167420'],
+ 'CreateTime' => ['title' => '', 'description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'UpdateTime' => ['title' => '', 'description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'StartTime' => ['title' => '', 'description' => 'The start time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:24:08'],
+ 'EndTime' => ['title' => '', 'description' => 'The end time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-03-05 18:34:08'],
'Params' => [
- 'title' => '实验参数',
- 'description' => 'Experiment parameters',
+ 'title' => '',
+ 'description' => 'The experiment parameters.',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Environment parameters',
- 'example' => '{}',
- ],
- ],
- 'Scene' => [
- 'title' => '场景',
- 'description' => 'Scene',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => 'Status',
- 'type' => 'string',
- 'example' => 'success',
+ 'additionalProperties' => ['description' => '环境参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
+ 'Scene' => ['title' => '', 'description' => 'The scenario.', 'type' => 'string', 'example' => 'baseline'],
+ 'Status' => ['title' => '', 'description' => 'The status.', 'type' => 'string', 'example' => 'success'],
],
+ 'example' => '',
],
'Workload' => [
- 'title' => '负载信息',
- 'description' => 'Workload information',
+ 'title' => '',
+ 'description' => 'The workload information.',
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '13',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadDescription' => [
- 'title' => '负载描述',
- 'description' => 'Workload description',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkloadType' => [
- 'title' => '负载名称',
- 'description' => 'Workload name',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Family' => [
- 'title' => '负载簇, AI、GPU',
- 'description' => 'Workload cluster, AI, GPU',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'Scene' => [
- 'title' => '负载使用场景',
- 'description' => 'Workload usage scenario',
- 'type' => 'string',
- 'example' => 'NLP-LLM',
- ],
- 'Scope' => [
- 'title' => '负载使用的范围标识',
- 'description' => 'Scope',
- 'type' => 'string',
- 'example' => 'common',
- ],
- 'JobKind' => [
- 'title' => '训练任务类型',
- 'description' => 'JobKind',
- 'type' => 'string',
- 'example' => 'PyTorchJob',
- ],
- 'DefaultCpuPerWorker' => [
- 'title' => '默认cpu分配数',
- 'description' => 'Default CPU allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'DefaultGpuPerWorker' => [
- 'title' => '默认gpu分配数',
- 'description' => 'Default GPU allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'DefaultMemoryPerWorker' => [
- 'title' => '默认内存GB分配数',
- 'description' => 'Default memory (GB) allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'DefaultShareMemory' => [
- 'title' => '默认共享内存GB分配数',
- 'description' => 'Default shared memory (GB) allocation',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'WorkloadId' => ['title' => '', 'description' => 'The workload ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '', 'description' => 'The workload description.', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '', 'description' => 'The workload family, such as AI or GPU.', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '', 'description' => 'The scenarios in which the workload is used.', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '', 'description' => 'The scope identifier of the workload.', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '', 'description' => 'The training job type.', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '', 'description' => 'The default number of CPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '', 'description' => 'The default number of GPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '', 'description' => 'The default amount of memory allocated per worker, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '', 'description' => 'The default amount of shared memory allocated, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
'ParamSettings' => [
- 'title' => '参数设置',
- 'description' => 'Parameter settings',
+ 'title' => '',
+ 'description' => 'The parameter settings.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'ParamName' => [
- 'title' => '参数名称',
- 'description' => 'Parameter name',
- 'type' => 'string',
- 'example' => 'ITERATION',
- ],
- 'ParamDesc' => [
- 'title' => '参数描述',
- 'description' => 'Parameter description',
- 'type' => 'string',
- 'example' => 'number',
- ],
- 'ParamValue' => [
- 'title' => '参数值',
- 'description' => 'Parameter value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'DefaultValue' => [
- 'title' => '参数默认值',
- 'description' => 'Default parameter value',
- 'type' => 'string',
- 'example' => '100',
- ],
- 'ParamRegex' => [
- 'title' => '参数正则表达式',
- 'description' => 'Parameter regular expression',
- 'type' => 'string',
- 'example' => '[0-9]+',
- ],
- 'ParamType' => [
- 'title' => '参数类型',
- 'description' => 'Parameter type',
- 'type' => 'string',
- 'example' => 'number',
- ],
+ 'ParamName' => ['title' => '', 'description' => 'The parameter name.', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '', 'description' => 'The parameter description.', 'type' => 'string', 'example' => '迭代数'],
+ 'ParamValue' => ['title' => '', 'description' => 'The parameter value.', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '', 'description' => 'The default value of the parameter.', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '', 'description' => 'The regular expression for the parameter.', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '', 'description' => 'The parameter type.', 'type' => 'string', 'example' => 'number'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
'StaticConfig' => [
- 'title' => '静态配置',
- 'description' => 'Static configuration',
+ 'title' => '',
+ 'description' => 'The static configuration.',
'type' => 'object',
'properties' => [
- 'FrameWork' => [
- 'title' => '框架',
- 'description' => 'Framework',
- 'type' => 'string',
- 'example' => 'pyTorch',
- ],
- 'SoftwareStack' => [
- 'title' => '软件栈',
- 'description' => 'Software stack',
- 'type' => 'string',
- 'example' => 'python',
- ],
- 'Os' => [
- 'title' => '系统',
- 'description' => 'Operating system',
- 'type' => 'string',
- 'example' => 'linux',
- ],
- 'Parameters' => [
- 'title' => '参数量',
- 'description' => 'Number of parameters',
- 'type' => 'string',
- 'example' => '7B',
- ],
+ 'FrameWork' => ['title' => '', 'description' => 'The framework.', 'type' => 'string', 'example' => 'pyTorch'],
+ 'SoftwareStack' => ['title' => '', 'description' => 'The software stack.', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '', 'description' => 'The operating system.', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '', 'description' => 'The number of parameters.', 'type' => 'string', 'example' => '7B'],
],
+ 'example' => '',
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'VersionId' => ['title' => '', 'description' => 'The version number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
+ 'example' => '',
],
'Resource' => [
- 'title' => '集群信息',
- 'description' => 'cluster info',
+ 'title' => '',
+ 'description' => 'The cluster information.',
'type' => 'object',
'properties' => [
- 'ResourceId' => [
- 'title' => '集群id',
- 'description' => 'Cluster ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'ResourceName' => [
- 'title' => '集群名称',
- 'description' => 'Cluster name',
- 'type' => 'string',
- 'example' => 'ecs.r8y.4xlarge',
- ],
- 'CpuCoreLimit' => [
- 'title' => '已使用cpu',
- 'description' => 'Used CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuLimit' => [
- 'title' => '已使用gpu',
- 'description' => 'Used GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryLimit' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'MaxGpu' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MaxCpuCore' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'MaxMemory' => [
- 'title' => '已使用内存',
- 'description' => 'Used memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
+ 'ResourceId' => ['title' => '', 'description' => 'The cluster ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'ResourceName' => ['title' => '', 'description' => 'The cluster name.', 'type' => 'string', 'example' => 'ecs.r8y.4xlarge'],
+ 'CpuCoreLimit' => ['title' => '', 'description' => 'The number of CPUs used.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuLimit' => ['title' => '', 'description' => 'The number of GPUs used.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryLimit' => ['title' => '', 'description' => 'The amount of memory used.', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'MaxGpu' => ['title' => '', 'description' => 'The amount of memory used.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MaxCpuCore' => ['title' => '', 'description' => 'The amount of memory used.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'MaxMemory' => ['title' => '', 'description' => 'The amount of memory used.', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
'UserAccessParam' => [
- 'title' => '用户授权参数',
- 'description' => 'User authorization parameters',
+ 'title' => '',
+ 'description' => 'The user authorization parameters.',
'type' => 'object',
'properties' => [
- 'AccessId' => [
- 'title' => '用户id',
- 'description' => 'User ID',
- 'type' => 'string',
- 'example' => 'dev',
- ],
- 'AccessKey' => [
- 'title' => '用户key',
- 'description' => 'User key',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'WorkspaceId' => [
- 'title' => '工作空间ID',
- 'description' => 'Workspace ID',
- 'type' => 'string',
- 'example' => '123434542498',
- ],
- 'Endpoint' => [
- 'title' => 'endpoint',
- 'description' => 'Endpoint',
- 'type' => 'string',
- 'example' => 'test',
- ],
+ 'AccessId' => ['title' => '', 'description' => 'The user ID.', 'type' => 'string', 'example' => 'dev'],
+ 'AccessKey' => ['title' => '', 'description' => 'The user key.', 'type' => 'string', 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'example' => '123434542498'],
+ 'Endpoint' => ['title' => '', 'description' => 'endpoint', 'type' => 'string', 'example' => 'test'],
],
+ 'example' => '',
],
'MachineType' => [
- 'title' => '规格类型',
- 'description' => 'Instance type',
+ 'title' => '',
+ 'description' => 'The instance type.',
'type' => 'object',
'properties' => [
- 'MemoryInfo' => [
- 'title' => '内存信息',
- 'description' => 'Memory information',
- 'type' => 'string',
- 'example' => '32x 64GB DDR4 3200 Memory',
- ],
- 'Type' => [
- 'title' => '类型',
- 'description' => 'Type',
- 'type' => 'string',
- 'example' => 'Public',
- ],
- 'BondNum' => [
- 'title' => '网络bond的数量',
- 'description' => 'Number of network bonds',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '5',
- ],
- 'NodeCount' => [
- 'title' => '节点个数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CpuInfo' => [
- 'title' => 'cpu的信息',
- 'description' => 'CPU information',
- 'type' => 'string',
- 'example' => '2x Intel Icelake 8369B 32C CPU',
- ],
- 'NetworkInfo' => [
- 'title' => '网络信息',
- 'description' => 'Network information',
- 'type' => 'string',
- 'example' => '1x 100Gbps DP NIC for VPC \\n 4x 100Gbps DP RoCE NIC',
- ],
- 'GpuInfo' => [
- 'title' => 'gpu的信息',
- 'description' => 'GPU information',
- 'type' => 'string',
- 'example' => '8x NVIDIA SXM4 80GB A100 GPU',
- ],
- 'DiskInfo' => [
- 'title' => '磁盘信息',
- 'description' => 'Disk information',
- 'type' => 'string',
- 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD',
- ],
- 'NetworkMode' => [
- 'title' => '网络模式',
- 'description' => 'Network mode',
- 'type' => 'string',
- 'example' => '2',
- ],
- 'Name' => [
- 'title' => '规格名称',
- 'description' => 'Specification name',
- 'type' => 'string',
- 'example' => 'efg1.nvga1n',
- ],
- ],
+ 'MemoryInfo' => ['title' => '', 'description' => 'The memory information.', 'type' => 'string', 'example' => '32x 64GB DDR4 3200 Memory'],
+ 'Type' => ['title' => '', 'description' => 'The type.', 'type' => 'string', 'example' => 'Public'],
+ 'BondNum' => ['title' => '', 'description' => 'The number of network bonds.', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'NodeCount' => ['title' => '', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CpuInfo' => ['title' => '', 'description' => 'The CPU information.', 'type' => 'string', 'example' => '2x Intel Icelake 8369B 32C CPU'],
+ 'NetworkInfo' => ['title' => '', 'description' => 'The network information.', 'type' => 'string', 'example' => '1x 100Gbps DP NIC for VPC \\n 4x 100Gbps DP RoCE NIC'],
+ 'GpuInfo' => ['title' => '', 'description' => 'The GPU information.', 'type' => 'string', 'example' => '8x NVIDIA SXM4 80GB A100 GPU'],
+ 'DiskInfo' => ['title' => '', 'description' => 'The disk information.', 'type' => 'string', 'example' => '2x 480GB SATA SSD \\n 4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '', 'description' => 'The network mode.', 'type' => 'string', 'example' => '2'],
+ 'Name' => ['title' => '', 'description' => 'The instance type name.', 'type' => 'string', 'example' => 'efg1.nvga1n'],
+ ],
+ 'example' => '',
],
'ResourceNodes' => [
- 'title' => '资源节点列表',
- 'description' => 'Resource node list',
+ 'title' => '',
+ 'description' => 'The list of resource nodes.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node name',
- 'type' => 'string',
- 'example' => 'InputCheck',
- ],
+ 'NodeName' => ['title' => '', 'description' => 'The node name.', 'type' => 'string', 'example' => 'InputCheck'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'ExperimentId' => [
- 'title' => '实验id',
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1726882991828688898',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'ExperimentName' => [
- 'title' => '实验名称',
- 'description' => 'Experiment name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ExperimentType' => [
- 'title' => '实验类型',
- 'description' => 'Experiment type',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => 'Resource name',
- 'type' => 'string',
- 'example' => 'cifnews-guoyuan',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'StartTime' => [
- 'title' => '任务开始时间',
- 'description' => 'Task start time',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'EndTime' => [
- 'title' => '任务结束时间',
- 'description' => 'Task end time',
- 'type' => 'string',
- 'example' => '2024-11-29 02:26:35',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => 'Status',
- 'type' => 'string',
- 'example' => 'RUNNING',
- ],
+ 'ExperimentId' => ['title' => '', 'description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1726882991828688898'],
+ 'CreateTime' => ['title' => '', 'description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '', 'description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-11-29 02:16:35'],
+ 'ExperimentName' => ['title' => '', 'description' => 'The experiment name.', 'type' => 'string', 'example' => 'test'],
+ 'ExperimentType' => ['title' => '', 'description' => 'The experiment type.', 'type' => 'string', 'example' => 'AI'],
+ 'ResourceName' => ['title' => '', 'description' => 'The resource name.', 'type' => 'string', 'example' => 'cifnews-guoyuan'],
+ 'WorkloadName' => ['title' => '', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'test'],
+ 'StartTime' => ['title' => '', 'description' => 'The task start time.', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'EndTime' => ['title' => '', 'description' => 'The task end time.', 'type' => 'string', 'example' => '2024-11-29 02:26:35'],
+ 'Status' => ['title' => '', 'description' => 'The status.', 'type' => 'string', 'example' => 'RUNNING'],
'Results' => [
- 'title' => '任务结果',
- 'description' => 'Task results',
+ 'title' => '',
+ 'description' => 'The task results.',
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'title' => '参数名称',
- 'description' => 'Parameter name',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1748274952976261121',
- ],
- 'Duration' => [
- 'title' => '时间',
- 'description' => 'Duration',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '764',
- ],
- 'SecondsPerIteration' => [
- 'title' => '每次迭代的秒数',
- 'description' => 'Seconds per iteration',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '1000',
- ],
- 'SamplesPerSecond' => [
- 'title' => '每秒采样数',
- 'description' => 'Samples Per Second',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '10',
- ],
- 'Mfu' => [
- 'description' => 'MFU',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '54.2',
- ],
+ 'ExperimentId' => ['title' => '', 'description' => 'The parameter name.', 'type' => 'integer', 'format' => 'int64', 'example' => '1748274952976261121'],
+ 'Duration' => ['title' => '', 'description' => 'The duration.', 'type' => 'number', 'format' => 'double', 'example' => '764'],
+ 'SecondsPerIteration' => ['title' => '', 'description' => 'The number of seconds per iteration.', 'type' => 'number', 'format' => 'double', 'example' => '1000'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The number of samples per second.', 'type' => 'number', 'format' => 'double', 'example' => '10'],
+ 'Mfu' => ['description' => 'MFU', 'type' => 'number', 'format' => 'double', 'example' => '54.2', 'title' => ''],
'WarningWorker' => [
- 'title' => '警告worker',
- 'description' => 'Warning worker',
+ 'title' => '',
+ 'description' => 'The warning workers.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '9',
- ],
- 'Hostname' => [
- 'description' => 'Service address',
- 'type' => 'string',
- 'example' => 'whza008403',
- ],
- 'PodName' => [
- 'description' => 'Pod name.',
- 'type' => 'string',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'description' => 'Number of GPUs',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU name',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => 'Whether there is an alarm',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => 'Alarm message',
- 'type' => 'string',
- 'example' => 'warging message',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => 'Whether there is an error',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => 'Error message',
- 'type' => 'string',
- 'example' => 'error message',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS value',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '14',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => 'Throughput',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '15',
- ],
+ 'ExperimentId' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '9', 'title' => ''],
+ 'Hostname' => ['description' => 'The hostname.', 'type' => 'string', 'example' => 'whza008403', 'title' => ''],
+ 'PodName' => ['description' => 'The pod name.', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6', 'title' => ''],
+ 'GpuNum' => ['description' => 'The number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'GpuName' => ['description' => 'The GPU name.', 'type' => 'string', 'example' => '8x OAM 810 GPU', 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => 'Indicates whether an alert exists.', 'type' => 'boolean', 'example' => 'true'],
+ 'WarningMsg' => ['title' => '', 'description' => 'The alert message.', 'type' => 'string', 'example' => '存在慢节点'],
+ 'ErrorFlag' => ['title' => '', 'description' => 'Indicates whether an error exists.', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrorMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '错误信息'],
+ 'Tflops' => ['title' => '', 'description' => 'The TFLOPS value.', 'type' => 'number', 'format' => 'double', 'example' => '14'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The throughput.', 'type' => 'number', 'format' => 'double', 'example' => '15'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
'ErrorWorker' => [
- 'description' => 'Error node',
+ 'description' => 'The error nodes.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '97',
- ],
- 'Hostname' => [
- 'description' => 'Service address',
- 'type' => 'string',
- 'example' => '60.188.98.209',
- ],
- 'PodName' => [
- 'description' => 'Pod name.',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'Number of GPUs',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU name',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => 'Whether there is a warning',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => 'Warning message',
- 'type' => 'string',
- 'example' => 'warning message',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => 'error flag',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => 'error message',
- 'type' => 'string',
- 'example' => 'Connection reset',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '12',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => 'Samples Per Second',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '23',
- ],
+ 'ExperimentId' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '97', 'title' => ''],
+ 'Hostname' => ['description' => 'The hostname.', 'type' => 'string', 'example' => '60.188.98.209', 'title' => ''],
+ 'PodName' => ['description' => 'The pod name.', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h', 'title' => ''],
+ 'GpuNum' => ['description' => 'The number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'GpuName' => ['description' => 'The GPU name.', 'type' => 'string', 'example' => '8x OAM 810 GPU', 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => 'Indicates whether an alert exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '', 'description' => 'The alert message.', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '', 'description' => 'Indicates whether an error exists.', 'type' => 'boolean', 'example' => 'true'],
+ 'ErrorMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => 'Connection reset'],
+ 'Tflops' => ['title' => '', 'description' => 'The TFLOPS value.', 'type' => 'number', 'format' => 'double', 'example' => '12'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The throughput.', 'type' => 'number', 'format' => 'double', 'example' => '23'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
'WarningBoundList' => [
- 'description' => 'Warning bound list',
+ 'description' => 'The warning nodes.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'Iteration' => [
- 'description' => 'Iteration',
- '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' => 'The iteration.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'Upper' => ['description' => 'UPPER', 'type' => 'number', 'format' => 'double', 'example' => '56', 'title' => ''],
+ 'Lower' => ['description' => 'LOWER', 'type' => 'number', 'format' => 'double', 'example' => '14', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
'TaskIndividualResultList' => [
- 'description' => 'Task individual result list',
+ 'description' => 'The invalid task results.',
'type' => 'array',
'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' => 'Number of GPUs',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU name',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => 'Whether there is a warning',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => 'Warning message',
- 'type' => 'string',
- 'example' => 'warning message',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => 'Whether there is an error',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => 'Error message',
- 'type' => 'string',
- 'example' => 'error message',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS value',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '16',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => 'Throughput',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '28',
- ],
+ 'ExperimentId' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '48', 'title' => ''],
+ 'Hostname' => ['description' => 'The hostname of the node.', 'type' => 'string', 'example' => 'p-jt-waf-app1', 'title' => ''],
+ 'PodName' => ['description' => 'The pod name.', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6', 'title' => ''],
+ 'GpuNum' => ['description' => 'The number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'GpuName' => ['description' => 'The GPU name.', 'type' => 'string', 'example' => '8x OAM 810 GPU', 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => 'Indicates whether an alert exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '', 'description' => 'The alert message.', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '', 'description' => 'Indicates whether an error exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => '', 'description' => 'The TFLOPS value.', 'type' => 'number', 'format' => 'double', 'example' => '16'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The throughput.', 'type' => 'number', 'format' => 'double', 'example' => '28'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
'TaskIndividualResultMap' => [
- 'description' => 'Invalid task results',
+ 'description' => 'The invalid task results.',
'type' => 'object',
'additionalProperties' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '54',
- 'description' => 'Experiment ID',
- ],
- 'Hostname' => [
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1'."\n",
- 'description' => 'Host IP',
- ],
- 'PodName' => [
- 'type' => 'string',
- 'description' => 'Pod name',
- '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' => 'Whether there is a warning',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'type' => 'string',
- 'description' => 'Warning message',
- 'example' => 'warning message',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'type' => 'boolean',
- 'description' => 'Whether there is an error',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'type' => 'string',
- 'example' => 'error message',
- 'description' => 'Error message',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '45',
- 'description' => 'TFLOPS value',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'type' => 'number',
- 'format' => 'double',
- 'description' => 'Throughput',
- 'example' => '23',
- ],
- ],
+ 'ExperimentId' => ['description' => '实验id', 'type' => 'integer', 'format' => 'int64', 'example' => '54', 'title' => ''],
+ 'Hostname' => ['description' => '主机ip', 'type' => 'string', 'example' => 'p-jt-waf-app1'."\n", 'title' => ''],
+ 'PodName' => ['description' => 'Pod名称', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6', 'title' => ''],
+ 'GpuNum' => ['description' => 'GPU数量', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'GpuName' => ['description' => 'GPU名称', 'type' => 'string', 'example' => '8x OAM 810 GPU'."\n", 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => '是否warning', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '', 'description' => '警告内容', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '', 'description' => '是否errror', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '', 'description' => '错误内容', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => '', 'description' => 'TFLOPS', 'type' => 'number', 'format' => 'double', 'example' => '45'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => '吞吐量', 'type' => 'number', 'format' => 'double', 'example' => '23'],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
- 'description' => 'Result object',
+ 'description' => '结果对象',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
'SetParams' => [
- 'title' => '运行的负载参数',
- 'description' => 'Running workload parameters',
+ 'title' => '',
+ 'description' => 'The workload parameters used for running.',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'Parameter',
- ],
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
'GetParams' => [
- 'title' => '解析的负载参数',
- 'description' => 'Parsed workload parameters',
+ 'title' => '',
+ 'description' => 'The parsed workload parameters.',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'Parameter',
- ],
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
'EnvParams' => [
- 'title' => '运行的环境参数',
- 'description' => 'Running environment parameters',
+ 'title' => '',
+ 'description' => 'The runtime environment parameters.',
'type' => 'object',
'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'CPU allocation number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'GPU allocation number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => 'Memory Per Worker',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Share Memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Worker number',
- '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',
- ],
+ 'CpuPerWorker' => ['title' => '', 'description' => 'The number of CPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => '', 'description' => 'The number of GPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '', 'description' => 'The amount of memory allocated per worker, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '', 'description' => 'The amount of shared memory allocated, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => '', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => '', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => '', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => '', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => 'Specified nodes',
+ 'title' => '',
+ 'description' => 'The specified nodes.',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node name',
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => 'Total CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => 'Total GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => 'Total memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => 'Requested CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => 'Requested GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => 'Requested memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'NodeName' => ['title' => '', 'description' => 'The node name.', 'type' => 'string', 'example' => 'p-jt-waf-app1'],
+ 'TotalCPU' => ['title' => '', 'description' => 'The total number of CPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '', 'description' => 'The total number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '', 'description' => 'The total amount of memory.', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '', 'description' => 'The number of CPUs currently requested.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '', 'description' => 'The number of GPUs currently requested.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '', 'description' => 'The amount of memory currently requested.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => 'Additional parameters',
+ 'title' => '',
+ 'description' => 'The additional parameters.',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'params',
- ],
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'RequestId',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied detail',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '', 'description' => 'The access denied details.', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '', 'description' => 'The total count.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
'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' => 'Get Experiment Details',
- 'translator' => 'machine',
- ],
- 'DeleteExperiment' => [
- 'summary' => 'Delete Experiment',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Get experiment details',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperiment'],
+ ],
+ ],
+ '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' => 'Retrieves the details of an experiment plan.',
+ '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' => 'Plan 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' => 'The ID of the plan.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '是否成功',
- 'description' => 'Whether the operation was successful',
+ 'title' => '查询结果',
+ 'description' => 'The query result.',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
- 'description' => 'Data',
- 'type' => 'boolean',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total count of queries',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'description' => 'The data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PlanId' => ['title' => '计划ID', 'description' => 'The ID of the plan.', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => 'The time when the plan was created.', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => 'The time when the plan was last updated.', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ 'TemplateId' => ['title' => '关联的测试计划模板ID', 'description' => 'The ID of the associated test plan template.', 'type' => 'integer', 'format' => 'int64', 'example' => '2162'],
+ 'TemplateName' => ['title' => '关联的测试计划模板名称', 'description' => 'The name of the associated test plan template.', 'type' => 'string', 'example' => 'MM'],
+ 'ResourceId' => ['title' => '关联的资源ID', 'description' => 'The ID of the associated resource.', 'type' => 'integer', 'format' => 'int64', 'example' => '260860230684'],
+ 'PlanPipeline' => [
+ 'title' => '测试计划pipeline',
+ 'description' => 'The test plan pipeline.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkloadId' => ['title' => '负载id', 'description' => 'The workload ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '14'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'test'],
+ 'ResourceId' => ['title' => '资源id', 'description' => 'The resource ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '36'],
+ 'ResourceName' => ['title' => '资源名称', 'description' => 'The resource name.', 'type' => 'string', 'example' => 'GPU'],
+ 'Scene' => ['title' => '使用场景,例如"baseline"', 'description' => 'The scenario. For example, "baseline".', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => 'The configured workload parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'The parameter.', 'title' => '', 'example' => '{}'],
+ ],
+ 'EnvParams' => [
+ 'title' => '配置的环境参数',
+ 'description' => 'The configured environment parameters.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => 'cpu分配数', 'description' => 'The number of CPUs to allocate.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => 'gpu分配数', 'description' => 'The number of GPUs to allocate.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '内存GB分配数', 'description' => 'The amount of memory to allocate, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => 'The amount of shared memory to allocate, in GB.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => 'cudaVersion', 'description' => 'The CUDA version.', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => 'NCCLVersion', 'description' => 'The NCCL version.', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => 'GpuDriverVersion', 'description' => 'The GPU driver version.', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => 'PyTorchVersion', 'description' => 'The PyTorch version.', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => 'The specified nodes.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => 'The node name.', 'type' => 'string', 'example' => 'ods_galaxy_gateway_tickets'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => 'The total number of CPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => 'The total number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => 'The total amount of memory.', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => 'The number of CPUs in the current request.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => 'The number of GPUs in the current request.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => 'The amount of memory in the current request.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ ],
+ 'description' => '',
+ 'title' => '',
+ ],
+ ],
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => 'The extra parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'The parameter.', 'title' => '', 'example' => '{}'],
+ ],
+ ],
+ ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => 'The ordinal number of the node.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ 'description' => '',
+ 'title' => '',
+ ],
+ ],
+ 'ResourceGroupId' => ['title' => '资源组id', 'description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-acfmvmpzi7lmxhq'],
+ 'Tags' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['type' => 'string', 'description' => 'The tag key.', 'title' => '', 'example' => 'appName'],
+ 'TagValue' => ['type' => 'string', 'description' => 'The tag value.', 'title' => '', 'example' => 'test'],
+ ],
+ 'description' => 'The tag information.',
+ 'title' => '',
+ ],
+ 'description' => 'The tags.',
+ 'title' => '',
+ ],
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => 'The request ID.', 'type' => 'string', 'example' => '6DBAC169-93D1-5DCD-8109-30FB623B3197'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'The information about the access denial.', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'The total number of queries.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Delete Experiment',
- 'translator' => 'machine',
- ],
- 'ListExperiments' => [
- 'summary' => 'Query the experiment list based on the plan ID',
- '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' => 'Get Experiment Plan Details',
+ 'changeSet' => [],
+ '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' => 'Queries the details of a test plan template.',
+ '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' => 'Plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '189',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'title' => '次序',
- 'description' => 'Order',
- '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' => '', 'description' => 'The template ID.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '315797'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '实验对象列表',
- 'description' => 'List of experiment objects',
+ 'title' => '',
+ 'description' => 'The result.',
'type' => 'object',
'properties' => [
'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'title' => '实验id',
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1684537476910997506',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update time',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'ExperimentName' => [
- 'title' => '实验名称',
- 'description' => 'Experiment name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ExperimentType' => [
- 'title' => '实验类型',
- 'description' => 'Experiment type',
- 'type' => 'string',
- 'example' => 'AI',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => 'Resource name',
- 'type' => 'string',
- 'example' => 'ecs.r8y.4xlarge',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'StartTime' => [
- 'title' => '任务开始时间',
- 'description' => 'Task start time',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'EndTime' => [
- 'title' => '任务结束时间',
- 'description' => 'Task end time',
- 'type' => 'string',
- 'example' => '2024-10-22 10:28:10',
- ],
- 'Status' => [
- 'title' => '状态',
- 'description' => 'Status',
- 'type' => 'string',
- 'example' => 'RUNNING',
- ],
- 'Results' => [
- 'title' => '任务结果',
- 'description' => 'Task results',
+ 'title' => '',
+ 'description' => 'The data.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CreatorUid' => ['title' => '', 'description' => 'The UID of the primary account.', 'type' => 'integer', 'format' => 'int64', 'example' => '12312312312312'],
+ 'TemplateId' => ['title' => '', 'description' => 'The template ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '17615126'],
+ 'TemplateCode' => ['title' => '', 'description' => 'The template code.', 'type' => 'integer', 'format' => 'int64', 'example' => '464086216'],
+ 'CreateTime' => ['title' => '', 'description' => 'The creation time.', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '', 'description' => 'The update time.', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'TemplateName' => ['title' => '', 'description' => 'The template name.', 'type' => 'string', 'example' => '模板1'],
+ 'TemplateDescription' => ['title' => '', 'description' => 'The template description.', 'type' => 'string', 'example' => 'test'],
+ 'PrivacyLevel' => ['title' => '', 'description' => 'The privacy level.', 'type' => 'string', 'example' => 'private'],
+ 'TemplatePipelineParam' => [
+ 'title' => '',
+ 'description' => 'The template pipeline.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The template pipeline.',
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'title' => '参数名称',
- 'description' => 'Parameter name',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '440',
- ],
- 'Duration' => [
- 'title' => '时间',
- 'description' => 'Duration',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '20',
- ],
- 'SecondsPerIteration' => [
- 'title' => '每次迭代的秒数',
- 'description' => 'Seconds per iteration',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '89',
- ],
- 'SamplesPerSecond' => [
- 'title' => '每秒采样数',
- 'description' => 'Samples per second',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '10',
- ],
- 'Mfu' => [
- 'description' => 'MFU',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '34',
- ],
- 'WarningWorker' => [
- 'title' => '警告worker',
- 'description' => 'Warning worker',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '113',
- ],
- 'Hostname' => [
- 'description' => 'Host IP',
- 'type' => 'string',
- 'example' => '101.66.165.102',
- ],
- 'PodName' => [
- 'description' => 'Pod name',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'Number of GPUs',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuName' => [
- 'description' => 'GPU name',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => 'Whether there is an alarm',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => 'Alarm message',
- 'type' => 'string',
- 'example' => 'warning msg',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => 'Whether there is an error',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => 'Error message',
- 'type' => 'string',
- 'example' => 'error msg',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS value',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '43',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => 'Throughput',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '53',
- ],
- ],
- ],
+ 'WorkloadId' => ['title' => '', 'description' => 'The workload ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'test'],
+ 'Scene' => ['title' => '', 'description' => 'The scenarios, such as "baseline".', 'type' => 'string', 'example' => 'baseline'],
+ 'SettingParams' => [
+ 'title' => '',
+ 'description' => 'The configured workload parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The configured workload parameters.', 'type' => 'string', 'example' => 'batch_size', 'title' => ''],
+ 'example' => '',
],
- 'ErrorWorker' => [
- 'description' => 'Error nodes',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Error nodes',
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '176',
- ],
- 'Hostname' => [
- 'description' => 'Host IP',
- 'type' => 'string',
- 'example' => 'etcd_cluster_c0n2',
- ],
- 'PodName' => [
- 'description' => 'Pod name',
- 'type' => 'string',
- 'example' => 'fluxserv-6fc89b45cf-w8wq6',
- ],
- 'GpuNum' => [
- 'description' => 'Number of GPUs',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'GpuName' => [
- 'description' => 'GPU name',
- 'type' => 'string',
- 'example' => '8x OAM 810 GPU',
- ],
- 'WarningFlag' => [
- 'title' => '是否有报警',
- 'description' => 'Whether there is an alarm',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'WarningMsg' => [
- 'title' => '报警信息',
- 'description' => 'Alarm information',
- 'type' => 'string',
- 'example' => 'warning msg',
- ],
- 'ErrorFlag' => [
- 'title' => '是否有错误',
- 'description' => 'Whether there is an error',
- 'type' => 'boolean',
- 'example' => 'false',
- ],
- 'ErrorMsg' => [
- 'title' => '错误信息',
- 'description' => 'Error information',
- 'type' => 'string',
- 'example' => 'error msg',
- ],
- 'Tflops' => [
- 'title' => 'TFLOPS值',
- 'description' => 'TFLOPS value',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '42',
- ],
- 'SamplesPerSecond' => [
- 'title' => '吞吐量',
- 'description' => 'Throughput',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '65',
+ 'EnvParams' => [
+ 'title' => '',
+ 'description' => 'The configured environment parameters.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CpuPerWorker' => ['title' => '', 'description' => 'The number of CPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => '', 'description' => 'The number of GPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '', 'description' => 'The amount of memory (GB) allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '', 'description' => 'The amount of shared memory (GB) allocated.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => '', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => '', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => '', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => '', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '',
+ 'description' => 'The specified nodes.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The node.',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '', 'description' => 'The node name.', 'type' => 'string', 'example' => 'exclusive_coud'],
+ 'TotalCPU' => ['title' => '', 'description' => 'The total CPU of the node.', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalGPU' => ['title' => '', 'description' => 'The total GPU of the node.', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalMemory' => ['title' => '', 'description' => 'The total memory of the node.', 'type' => 'integer', 'format' => 'int64', 'example' => '2048'],
+ 'RequestCPU' => ['title' => '', 'description' => 'The currently requested CPU.', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestGPU' => ['title' => '', 'description' => 'The currently requested GPU.', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestMemory' => ['title' => '', 'description' => 'The currently requested memory.', 'type' => 'integer', 'format' => 'int32', 'example' => '1024'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
- ],
- ],
- ],
- ],
- 'SetParams' => [
- 'title' => '运行的负载参数',
- 'description' => 'Load parameters in operation',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'Parameter',
- ],
- ],
- 'GetParams' => [
- 'title' => '解析的负载参数',
- 'description' => 'Parsed load parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Parameter',
- 'example' => '{}',
- ],
- ],
- 'EnvParams' => [
- 'title' => '运行的环境参数',
- 'description' => 'Environment parameters in operation',
- 'type' => 'object',
- 'properties' => [
- 'CpuPerWorker' => [
- 'title' => 'cpu分配数',
- 'description' => 'Number of CPUs allocated',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'GpuPerWorker' => [
- 'title' => 'gpu分配数',
- 'description' => 'Number of GPUs allocated',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'MemoryPerWorker' => [
- 'title' => '内存GB分配数',
- 'description' => 'Amount of memory (GB) allocated',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Amount of shared memory (GB) allocated',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'CUDA version',
- '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',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => 'Specified nodes',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node name',
- 'type' => 'string',
- 'example' => 'lingj1xxnjt1k4nv-mg18v52pydyuumae-0',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => 'Total CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => 'Total GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => 'Total memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => 'Requested CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => 'Requested GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => 'Requested memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
+ 'ExtendParam' => [
+ 'title' => '',
+ 'description' => 'The extended parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The extended parameters.', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => 'Additional parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Parameter',
- 'example' => '{}',
- ],
- ],
+ 'PipelineOrder' => ['title' => '', 'description' => 'The order of the node in the pipeline.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
+ 'VersionId' => ['title' => '', 'description' => 'The version number.', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '', 'description' => 'Indicates whether the template is deleted.', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
],
+ 'example' => '',
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '', 'description' => 'The access denied detail.', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '', 'description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
+ 'example' => '',
],
],
],
- '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' => 'Get Experiment List',
- 'translator' => 'machine',
- ],
- 'GetExperimentResultData' => [
- 'summary' => 'Fetch Experiment Result Data',
- 'methods' => [
- 'post',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ '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' => 'Get experiment plan template',
+ '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}'],
+ ],
+ ],
+ ],
],
+ ],
+ 'GetExperimentResultData' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2998,54 +1590,28 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '194764',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
],
'parameters' => [
[
'name' => 'ExperimentId',
'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => 'Experiment ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '234',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => 'Experiment ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '234'],
],
[
'name' => 'Hostname',
'in' => 'query',
- 'schema' => [
- 'title' => '主机名',
- 'description' => 'Hostname',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'iZj6ccwd7zwfms7hzaz2riZ',
- ],
+ 'schema' => ['title' => '主机名', 'description' => 'Hostname', 'type' => 'string', 'required' => false, 'example' => 'iZj6ccwd7zwfms7hzaz2riZ'],
],
[
'name' => 'WorkloadType',
'in' => 'query',
- 'schema' => [
- 'title' => '负载类型',
- 'description' => 'Workload Type',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'AI',
- ],
+ 'schema' => ['title' => '负载类型', 'description' => 'Workload Type', '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', 'title' => ''],
],
],
'responses' => [
@@ -3063,21 +1629,9 @@
'description' => 'Results',
'type' => 'object',
'properties' => [
- 'Hostname' => [
- 'description' => 'Host IP',
- 'type' => 'string',
- 'example' => 'p-jt-waf-app1',
- ],
- 'PodName' => [
- 'description' => 'Pod Name',
- 'type' => 'string',
- 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h',
- ],
- 'GpuNum' => [
- 'description' => 'Number of GPUs',
- 'type' => 'string',
- 'example' => '8',
- ],
+ 'Hostname' => ['description' => 'Host IP', 'type' => 'string', 'example' => 'p-jt-waf-app1', 'title' => ''],
+ 'PodName' => ['description' => 'Pod Name', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h', 'title' => ''],
+ 'GpuNum' => ['description' => 'Number of GPUs', 'type' => 'string', 'example' => '8', 'title' => ''],
'MetricsInfos' => [
'title' => '指标信息列表',
'description' => 'List of Metrics Information',
@@ -3085,433 +1639,86 @@
'items' => [
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'description' => 'Operation Timestamp',
- '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' => 'Metric Value',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '126',
- ],
- 'Gpu_num' => [
- 'title' => 'gpu',
- 'description' => 'GPU',
- 'type' => 'string',
- 'example' => '8',
- ],
+ 'Timestamp' => ['description' => 'Operation Timestamp', 'type' => 'integer', 'format' => 'int64', 'example' => '1715393860', 'title' => ''],
+ 'Iteration' => ['title' => 'iteration', 'description' => 'Iteration', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'Tflops' => ['description' => 'TFLOPS', 'type' => 'number', 'format' => 'double', 'example' => '43', 'title' => ''],
+ 'Value' => ['title' => '指标值', 'description' => 'Metric Value', 'type' => 'number', 'format' => 'double', 'example' => '126'],
+ 'Gpu_num' => ['title' => 'gpu', 'description' => 'GPU', 'type' => 'string', 'example' => '8'],
],
+ 'description' => '',
+ 'title' => '',
],
],
],
+ 'title' => '',
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => 'C1D34EC2-AB13-56F4-8322-F15AE563EA04',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access Denied Details',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total Count of Queries',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => 'C1D34EC2-AB13-56F4-8322-F15AE563EA04'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access Denied Details', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total Count of Queries', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
'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' => 'Fetch Experiment Result Data',
+ 'summary' => 'Fetch Experiment Result Data',
'translator' => 'machine',
- ],
- 'CheckServiceLinkedRoleEfloCnpForDeleting' => [
- 'summary' => 'Check slr service role',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetExperimentResultData'],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '195191',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
- [
- 'name' => 'RoleArn',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'API角色',
- 'description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role.'."\n"
- ."\n"
- .'The trusted entity of the RAM role is an Alibaba Cloud account. For more information, see [Create a RAM role for a trusted Alibaba Cloud account](~~93691~~) or [CreateRole](~~28710~~).'."\n"
- ."\n"
- .'Format: `acs:ram::<account_id>:role/<role_name>`.'."\n"
- ."\n"
- .'You can view the ARN in the RAM console or by calling operations. The following items describe the validity periods of storage addresses:'."\n"
- ."\n"
- .'* For more information about how to view the ARN in the RAM console, see [How do I find the ARN of the RAM role?](~~39744~~)'."\n"
- .'* For more information about how to view the ARN by calling operations, see [ListRoles](~~28713~~) or [GetRole](~~28711~~).'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'arn:aws:iam::345678901234:role/eflo-cnp-role',
- ],
- ],
- [
- 'name' => 'ServiceName',
- 'in' => 'query',
- 'schema' => [
- 'title' => '服务名称',
- 'description' => 'The Service Name.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eflo-cnp',
- ],
- ],
- [
- 'name' => 'SPIRegionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'SPI的地域',
- 'description' => 'The ID of the region.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
- ],
+ 'ramActions' => [
[
- 'name' => 'DeletionTaskId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '删除的任务ID',
- 'description' => 'The ID of the deletion task.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'task-003',
- ],
- ],
- [
- 'name' => 'AccountId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '主账号ID',
- 'description' => 'The ID of the cloud account.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '345678901234',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'DeleteSlrResultVO',
- 'description' => 'DeleteSlrResultVO',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '6C212C4A-2CB3-56E6-BA2F-1CE2B03C5C94',
- ],
- 'Deletable' => [
- 'description' => 'Indicates whether the SLR can be deleted. Valid values:'."\n"
- ."\n"
- .'* `true`: The SLR can be deleted.'."\n"
- .'* `false`: The SLR cannot be deleted.'."\n",
- 'type' => 'boolean',
- 'example' => 'True',
- ],
- 'Resources' => [
- 'description' => 'The resources.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The details of the resource.',
- 'type' => 'object',
- 'properties' => [
- 'Region' => [
- 'description' => 'The region.'."\n",
- 'type' => 'string',
- 'example' => 'cn-beijing',
- ],
- 'Resources' => [
- 'description' => 'The resources.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The resource name.',
- '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' => 'Check Service Role',
],
- 'CreateExperimentPlanTemplate' => [
- 'summary' => 'Create/Update Test Plan Template',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetResource' => [
+ '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' => [
- 'title' => '配置的负载参数',
- 'description' => 'Configured Workload Parameters',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'key-value pair',
- ],
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
+ 'schema' => ['title' => '灵骏的集群ID', 'description' => 'The cluster ID of Lingjun', 'type' => 'string', 'required' => true, 'example' => 'ehpc-bj-uo8f26cpmo'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '资源对象',
+ 'description' => 'Resource object',
'type' => 'object',
'properties' => [
'Data' => [
@@ -3519,712 +1726,190 @@
'description' => 'Data',
'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' => 'Cluster ID', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'ClusterId' => ['title' => '集群id', 'description' => 'Cluster ID', 'type' => 'string', 'example' => '3123121223'],
+ 'ClusterName' => ['title' => '集群名称', 'description' => 'Cluster name', 'type' => 'string', 'example' => 'main_cluster'],
+ 'ClusterDesc' => ['title' => '集群描述', 'description' => 'Cluster description', 'type' => 'string', 'example' => 'test'],
+ 'CpuCoreLimit' => ['title' => '已使用cpu', 'description' => 'Used CPU', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuLimit' => ['title' => '已使用gpu', 'description' => 'Used GPU', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryLimit' => ['title' => '已使用内存', 'description' => 'Used memory', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'MaxGpu' => ['title' => '已使用内存', 'description' => 'Used memory', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MaxCpuCore' => ['title' => '已使用内存', 'description' => 'Used memory', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'MaxMemory' => ['title' => '已使用内存', 'description' => 'Used memory', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'UserAccessParam' => [
+ 'title' => '用户授权参数',
+ 'description' => 'User authorization parameters',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => 'User ID', 'type' => 'string', 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => 'User key', 'type' => 'string', 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => 'Workspace 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' => 'Machine type',
+ 'type' => 'object',
+ 'properties' => [
+ 'MemoryInfo' => ['title' => '内存信息', 'description' => 'Memory information', 'type' => 'string', 'example' => '32x 64GB DDR4 4800 Memory'],
+ 'Type' => ['title' => '类型', 'description' => 'Type', 'type' => 'string', 'example' => 'Private'],
+ 'BondNum' => ['title' => '网络bond的数量', 'description' => 'Number of network bonds', 'type' => 'integer', 'format' => 'int32', 'example' => '5'],
+ 'NodeCount' => ['title' => '节点个数', 'description' => 'Number of nodes', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CpuInfo' => ['title' => 'cpu的信息', 'description' => 'CPU information', 'type' => 'string', 'example' => '2x Intel Saphhire Rapid 8469C 48C CPU'],
+ 'NetworkInfo' => ['title' => '网络信息', 'description' => 'Network information', 'type' => 'string', 'example' => '1x 200Gbps Dual Port BF3 DPU for VPC\\n4x 200Gbps Dual Port EIC'],
+ 'GpuInfo' => ['title' => 'gpu的信息', 'description' => 'GPU information', 'type' => 'string', 'example' => '8x OAM 810 GPU'],
+ 'DiskInfo' => ['title' => '磁盘信息', 'description' => 'Disk information', 'type' => 'string', 'example' => '2x 480GB SATA SSD\\n4x 3.84TB NVMe SSD'],
+ 'NetworkMode' => ['title' => '网络模式', 'description' => 'Network mode', 'type' => 'string', 'example' => '2'],
+ 'Name' => ['title' => '规格名称', 'description' => 'Specification name', 'type' => 'string', 'example' => 'efg2.p8en'],
+ ],
],
- 'TemplatePipelineParam' => [
- 'title' => '模板流水线',
- 'description' => 'Template Pipeline',
+ 'ResourceNodes' => [
+ 'title' => '资源节点列表',
+ 'description' => 'List of resource nodes',
'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' => 'Node name', 'type' => 'string', 'example' => 'lingj19q90jp66nq-mg2pa0p2l2bipnsi-17'],
],
- 'description' => 'Template pipeline',
+ 'description' => '',
+ 'title' => '',
],
],
- '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',
- 'example' => '1',
- 'format' => 'int64',
- ],
],
],
- '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' => 'Request ID', 'type' => 'string', 'example' => '25859897-35C8-5015-8365-7A3CE52F4854'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total count of the query', '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' => 'Create Experiment Plan Template',
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
+ ],
+ ],
+ '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' => 'Get Cluster Information',
+ 'summary' => 'Get Resource Information',
'translator' => 'machine',
- ],
- 'UpdateExperimentPlanTemplate' => [
- 'summary' => 'Update Test Plan Template',
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResource'],
+ ],
],
- 'schemes' => [
- 'https',
+ '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' => [
+ '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' => 'Template code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '349623',
- ],
+ 'schema' => ['title' => '模板ID', 'description' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '315797'],
],
[
- 'name' => 'TemplatePipeline',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '模板流水线',
- 'description' => 'Template pipeline',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Template Pipeline',
- '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',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => 'Configured workload parameters',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Configured Workload Parameters',
- 'example' => 'batch_size',
- ],
- ],
- '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',
- ],
- ],
- 'required' => false,
- ],
- 'required' => true,
- ],
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['title' => '资源ID', 'description' => 'Resource ID', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '36'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '查询结果',
+ 'description' => 'Query result',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- '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' => '17815441',
- ],
- 'TemplateCode' => [
- 'title' => '模板Code',
- 'description' => 'Template code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '472840184',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Create Time',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update Time',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- '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' => [
- 'description' => 'Template Pipeline',
- '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' => 'Configured Workload Parameters',
- 'example' => 'batch_size',
- ],
- ],
- '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' => 'CUDA Version',
- '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',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => 'Specified Nodes',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Node',
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node Name',
- 'type' => 'string',
- 'example' => 'honeypot',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => 'Total CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => 'Total GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => 'Total Memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '100',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => 'Requested CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => 'Requested GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => 'Requested Memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => 'Extend Param',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Additional parameters',
- 'example' => '{}',
- ],
- ],
- ],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Node sequence number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- ],
- ],
- ],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => 'Whether it is deleted',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'total', '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' => 'Modify Experiment Plan Template',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 2,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 1\\n}","type":"json"}]',
+ 'title' => 'Get Cluster Evaluation Results',
+ 'summary' => 'Query the resource prediction results of the test plan template',
'translator' => 'machine',
- ],
- 'GetExperimentPlanTemplate' => [
- 'summary' => 'Query Test Plan Template Details',
- 'methods' => [
- 'post',
+ 'changeSet' => [
+ ['createdAt' => '2025-04-15T02:39:59.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourcePredictResult'],
+ ],
],
+ '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' => [
+ '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' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '315797',
- ],
+ 'schema' => ['title' => '负载id', 'description' => 'Workload ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '13'],
],
],
'responses' => [
@@ -4239,381 +1924,91 @@
'description' => 'Data',
'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',
- ],
- 'TemplateCode' => [
- 'title' => '模板Code',
- 'description' => 'Template Code',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '464086216',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation Time',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update Time',
- 'type' => 'string',
- 'example' => '2024-10-22 10:18:10',
- ],
- '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',
+ 'WorkloadId' => ['title' => '负载id', 'description' => 'Workload ID', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => 'Workload Name', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '负载描述', 'description' => 'Workload Description', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '负载名称', 'description' => 'Workload Type', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '负载簇, AI、GPU', 'description' => 'Workload Cluster, e.g., AI, GPU', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '负载使用场景', 'description' => 'Workload Usage Scenario', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '负载使用的范围标识', 'description' => 'Scope Identifier for Workload Usage', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '训练任务类型', 'description' => 'Training Job Type', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '默认cpu分配数', 'description' => 'Default CPU Allocation per Worker', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '默认gpu分配数', 'description' => 'Default GPU Allocation per Worker', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '默认内存GB分配数', 'description' => 'Default Memory (GB) Allocation per Worker', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '默认共享内存GB分配数', 'description' => 'Default Shared Memory (GB) Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ParamSettings' => [
+ 'title' => '参数设置',
+ 'description' => 'Parameter Settings',
'type' => 'array',
'items' => [
- 'description' => 'Template Pipeline',
+ 'description' => 'Parameter',
'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' => 'Configured workload parameters',
- 'example' => 'batch_size',
- ],
- ],
- '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' => 'Allocated memory in GB',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Shared memory in GB',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'title' => 'cudaVersion',
- 'description' => 'CUDA version',
- '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',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => 'Specified nodes',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Node',
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node name',
- 'type' => 'string',
- 'example' => 'exclusive_coud',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => 'Total CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => 'Total GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => 'Total memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2048',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => '当前请求的cpu',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => 'Requested GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => 'Requested memory',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1024',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => 'Additional parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => 'Additional parameters',
- 'example' => '{}',
- ],
- ],
- ],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Node sequence number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'ParamName' => ['title' => '参数名称', 'description' => 'Parameter Name', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '参数描述', 'description' => 'Parameter Description', 'type' => 'string', 'example' => 'number'],
+ 'ParamValue' => ['title' => '参数值', 'description' => 'Parameter Value', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '参数默认值', 'description' => 'Default Parameter Value', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '参数正则表达式', 'description' => 'Parameter Regular Expression', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '参数类型', 'description' => 'Parameter type', 'type' => 'string', 'example' => 'number'],
],
+ 'title' => '',
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => 'Whether deleted',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
+ 'StaticConfig' => [
+ 'title' => '静态配置',
+ 'description' => 'Static Configuration',
+ 'type' => 'object',
+ 'properties' => [
+ 'FrameWork' => ['title' => '框架', 'description' => 'Framework', 'type' => 'string', 'example' => 'PyTorch'],
+ 'SoftwareStack' => ['title' => '软件栈', 'description' => 'Software Stack', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '系统', 'description' => 'Operating System', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '参数量', 'description' => 'Parameter Volume', 'type' => 'string', 'example' => '7B'],
+ ],
],
+ 'VersionId' => ['title' => '版本号', 'description' => 'Version ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access Denied Information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'total', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
],
],
- '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' => 'Get Experiment Plan Template',
+ '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\\": \\"number\\",\\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' => 'Get Model Information',
+ 'summary' => 'Retrieve workload information by ID',
'translator' => 'machine',
- ],
- 'DeleteExperimentPlanTemplate' => [
- 'summary' => 'Delete Test Plan Template',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => 'Error codes changed'],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '195194',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetWorkload'],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '346527',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'boolean',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '4D3FD55F-3BCD-5914-9B74-A1F4961327E7',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total Count',
- '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' => 'Delete Experiment Plan Template',
- 'translator' => 'machine',
],
'ListExperimentPlanTemplates' => [
- 'summary' => 'Query Test Plan Template List',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4626,23 +2021,14 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '194771',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'PrivacyLevel',
'in' => 'query',
- 'schema' => [
- 'title' => '模板的共享级别,默认私有,public、private',
- 'description' => 'The sharing level of the template, default is private, options are public and private.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'private',
- 'default' => 'private',
- ],
+ 'schema' => ['title' => '模板的共享级别,默认私有,public、private', 'description' => 'The sharing level of the template, default is private, options are public and private.', 'type' => 'string', 'required' => false, 'example' => 'private', 'default' => 'private'],
],
],
'responses' => [
@@ -4659,50 +2045,13 @@
'items' => [
'type' => 'object',
'properties' => [
- 'CreatorUid' => [
- 'title' => '主账号uid',
- 'description' => 'Primary account UID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '178154411231232',
- ],
- 'TemplateId' => [
- 'title' => '模板ID',
- 'description' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '17815441',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation time',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update time',
- 'type' => 'string',
- 'example' => '2024-11-29 02:16:35',
- ],
- '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',
- ],
+ 'CreatorUid' => ['title' => '主账号uid', 'description' => 'Primary account UID', 'type' => 'integer', 'format' => 'int64', 'example' => '178154411231232'],
+ 'TemplateId' => ['title' => '模板ID', 'description' => 'Template ID', 'type' => 'integer', 'format' => 'int64', 'example' => '17815441'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => 'Creation time', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => 'Update time', 'type' => 'string', 'example' => '2024-11-29 02:16:35'],
+ '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',
@@ -4710,160 +2059,83 @@
'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',
- ],
+ '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',
- 'example' => '{}',
- 'description' => 'Parameters',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{}', 'description' => 'Parameters', 'title' => ''],
],
'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' => 'Allocated memory in GB',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'ShareMemory' => [
- 'title' => '共享内存GB分配数',
- 'description' => 'Allocated shared memory in GB',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- 'WorkerNum' => [
- 'title' => '节点数',
- 'description' => 'Number of nodes',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CudaVersion' => [
- 'description' => 'Cuda Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'NCCLVersion' => [
- 'description' => 'NCCL Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'GpuDriverVersion' => [
- 'description' => 'The version of the GPU driver.'."\n",
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
- 'PyTorchVersion' => [
- 'description' => 'PyTorch Version',
- 'type' => 'string',
- 'example' => '1.0.0',
- ],
+ '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' => 'Allocated memory in GB', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '共享内存GB分配数', 'description' => 'Allocated shared memory in GB', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '节点数', 'description' => 'Number of nodes', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['description' => 'Cuda Version', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'NCCLVersion' => ['description' => 'NCCL Version', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'GpuDriverVersion' => ['description' => 'The version of the GPU driver.'."\n", 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
+ 'PyTorchVersion' => ['description' => 'PyTorch Version', 'type' => 'string', 'example' => '1.0.0', 'title' => ''],
],
],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Node sequence number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => 'Node sequence number', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
+ 'description' => '',
+ 'title' => '',
],
],
- 'VersionId' => [
- 'title' => '版本号',
- 'description' => 'Version ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'IsDelete' => [
- 'title' => '是否删除',
- 'description' => 'Whether it is deleted',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'TemplateCode' => [
- 'description' => 'The template code.'."\n",
- 'type' => 'integer',
- 'example' => '475315534',
- 'format' => 'int64',
- ],
+ 'VersionId' => ['title' => '版本号', 'description' => 'Version ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => 'Whether it is deleted', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'TemplateCode' => ['description' => 'The template code.'."\n", 'type' => 'integer', 'example' => '475315534', 'format' => 'int64', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => 'AAE4AFED-7AE6-52FA-80B6-448E63760552',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => 'AAE4AFED-7AE6-52FA-80B6-448E63760552'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', '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"}]',
+ '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\\": \\"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\\": 475315534\\n }\\n ],\\n \\"RequestId\\": \\"AAE4AFED-7AE6-52FA-80B6-448E63760552\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
'title' => 'Get Experiment Plan Template List',
+ 'summary' => 'Query Test Plan Template List',
'translator' => 'machine',
- ],
- 'GetResourcePredictResult' => [
- 'summary' => 'Query the resource prediction results of the test plan template',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2025-04-15T02:40:00.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-27T05:11:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-17T06:49:04.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlanTemplates'],
+ ],
+ ],
+ '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' => [],
@@ -4872,768 +2144,539 @@
'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' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '315797',
+ 'title' => '资源',
+ 'description' => 'The resources.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The name of the resource.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'cls-pim0anlrtm3ef4vstou001'],
+ 'required' => false,
],
],
[
- 'name' => 'ResourceId',
- 'in' => 'query',
+ 'name' => 'PlanTaskStatus',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'title' => '资源ID',
- 'description' => 'Resource ID',
- 'type' => 'integer',
- 'format' => 'int64',
+ 'title' => '执行状态',
+ 'description' => 'The execution status.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The status.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'RUNNING'],
'required' => false,
- 'example' => '36',
],
],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '查询结果',
- 'description' => 'Query result',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'total',
- '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' => 'Get Cluster Evaluation Results',
- 'translator' => 'machine',
- ],
- 'CreateExperimentPlan' => [
- 'summary' => 'Create Experiment Plan',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'CreatTimeOrder',
+ 'in' => 'query',
+ 'schema' => ['title' => '创建时间排序规则', 'description' => 'The sort order for the creation time.', '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' => 'The sort order for the start time.', 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
- 'tenantRelevance' => 'publicInformation',
- ],
- 'parameters' => [
[
- 'name' => 'TemplateId',
+ 'name' => 'EndTimeOrder',
'in' => 'query',
- 'schema' => [
- 'title' => '模板ID',
- 'description' => 'Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '349623',
- ],
+ 'schema' => ['title' => '结束时间排序规则', 'description' => 'The sort order for the end time.', 'type' => 'string', 'required' => false, 'example' => 'desc'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'Page',
'in' => 'query',
- 'schema' => [
- 'title' => '资源ID',
- 'description' => 'Resource ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '页数', 'description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '0', 'example' => '1'],
],
[
- 'name' => 'ExternalParams',
+ 'name' => 'Size',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '额外的参数',
- 'description' => 'Additional parameters',
- 'type' => 'object',
- 'required' => false,
- 'example' => '{}',
- ],
+ 'schema' => ['title' => '条数', 'description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'default' => '10', 'example' => '100'],
],
[
'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源组id',
- 'description' => 'Resource group ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzij65sf2rr5i',
- ],
+ 'schema' => ['title' => '资源组id', 'description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rg-aekzij65sf2rr5i'],
],
[
'name' => 'Tag',
'in' => 'query',
- 'style' => 'repeatList',
+ 'style' => 'json',
'schema' => [
- 'title' => '资源标签',
- 'description' => 'Resource tags',
+ 'description' => 'The tags.',
'type' => 'array',
'items' => [
+ 'description' => 'The tag.'."\n"
+ ."\n"
+ .'You can specify up to 20 tags.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => '键',
- 'description' => 'Key',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
- 'Value' => [
- 'title' => '值',
- 'description' => 'Value',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'Key' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'tag1'],
+ 'Value' => ['description' => 'The tag value.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => '172'],
],
'required' => false,
+ 'title' => '',
],
'required' => false,
- 'maxItems' => 21,
+ 'title' => '',
],
],
[
- 'name' => 'PlanTemplateName',
+ 'name' => 'TemplateId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'description' => 'Plan Template Name',
- 'example' => 'test',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => 'The template ID.', 'title' => '', 'example' => '96'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => 'The resource ID.', 'title' => '', 'example' => '189'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
+ 'title' => '查询结果',
+ 'description' => 'The query result.',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
- 'description' => 'Data',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total count',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'description' => 'The data.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The query result.',
+ 'type' => 'object',
+ 'properties' => [
+ 'PlanId' => ['title' => '计划ID', 'description' => 'The ID of the plan.', 'type' => 'integer', 'format' => 'int64', 'example' => '189'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => 'The time when the plan was created.', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => 'The time when the plan was last updated.', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'TemplateId' => ['title' => '关联的测试计划模板ID', 'description' => 'The ID of the associated experiment plan template.', 'type' => 'integer', 'format' => 'int64', 'example' => '6'],
+ 'TemplateName' => ['title' => '关联的测试计划模板名称', 'description' => 'The name of the associated experiment plan template.', 'type' => 'string', 'example' => 'test'],
+ 'ResourceName' => ['title' => '关联的资源名称', 'description' => 'The name of the associated resource.', 'type' => 'string', 'example' => 'q_ecs_xpec_postpay_c'],
+ 'PlanTaskStatus' => [
+ 'title' => '测试计划执行状态',
+ 'description' => 'The execution status of the experiment plan.',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'integer', 'format' => 'int32', 'description' => 'The status.', 'title' => '', 'example' => '1'],
+ ],
+ 'StartTime' => ['title' => '开始时间', 'description' => 'The start time.', 'type' => 'string', 'example' => '2024-07-08 10:12:42'],
+ 'EndTime' => ['title' => '结束时间', 'description' => 'The end time.', 'type' => 'string', 'example' => '2024-07-08 10:22:42'],
+ 'ResourceGroupId' => ['title' => '资源组id', 'description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-aek5behqmwbfhuy'],
+ 'Tags' => [
+ 'description' => 'The tags.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tag.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['description' => 'The tag key.', 'type' => 'string', 'title' => '', 'example' => 'owner'],
+ 'TagValue' => ['description' => 'The tag value.', 'type' => 'string', 'title' => '', 'example' => 'test'],
+ ],
+ 'title' => '',
+ ],
+ 'title' => '',
+ ],
+ 'ResourceId' => ['type' => 'integer', 'format' => 'int64', 'description' => 'The resource ID.', 'title' => '', 'example' => '189'],
+ ],
+ 'title' => '',
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'AccessDeniedDetail' => ['description' => 'The details about the access denial.', 'type' => 'string', 'title' => '无权限信息', 'example' => '{}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": 0,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Create Experiment Plan',
- 'translator' => 'machine',
- ],
- 'UpdateExperimentPlan' => [
- 'summary' => 'Update Experiment Plan',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
+ 'title' => 'Get Experiment Plan List',
+ 'summary' => 'Lists experiment plans.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperimentPlans'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ '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\\": [\\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"}]',
+ ],
+ 'ListExperiments' => [
+ 'summary' => 'Retrieves a list of experiments.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '262195',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeCode' => '195098',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'PlanId',
'in' => 'query',
- 'schema' => [
- 'title' => '实验计划id',
- 'description' => 'Experiment plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '', 'description' => 'The plan ID.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '189'],
],
[
- 'name' => 'PlanTemplateName',
+ 'name' => 'Order',
'in' => 'query',
- 'schema' => [
- 'title' => '实验计划名称',
- 'description' => 'Experiment plan name',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['title' => '', 'description' => 'The order.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => '结果',
- 'description' => 'Result',
- 'type' => 'object',
- 'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- ],
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Modify Experiment Plan',
- 'translator' => 'machine',
- ],
- 'GetExperimentPlan' => [
- 'summary' => 'Get Experiment Plan Details',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
- ],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '194769',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'PlanId',
+ 'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'title' => '计划ID',
- 'description' => 'Plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
- ],
+ 'schema' => ['title' => '', 'description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-uo8f26cpmo'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '查询结果',
- 'description' => 'Query result',
+ 'title' => '',
+ 'description' => 'The list of experiment objects.',
'type' => 'object',
'properties' => [
'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'object',
- 'properties' => [
- 'PlanId' => [
- 'title' => '计划ID',
- 'description' => 'Plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation time',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update time',
- 'type' => 'string',
- 'example' => '2024-07-07 02:08:54',
- ],
- 'TemplateId' => [
- 'title' => '关联的测试计划模板ID',
- 'description' => 'Associated test plan template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2162',
- ],
- 'TemplateName' => [
- 'title' => '关联的测试计划模板名称',
- 'description' => 'Associated test plan template name',
- 'type' => 'string',
- 'example' => 'MM',
- ],
- 'ResourceId' => [
- 'title' => '关联的资源ID',
- 'description' => 'Associated resource ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '260860230684',
- ],
- 'PlanPipeline' => [
- 'title' => '测试计划pipeline',
- 'description' => 'Test plan pipeline',
- 'type' => 'array',
- 'items' => [
+ 'title' => '',
+ 'description' => 'The data.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['title' => '', 'description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1684537476910997506'],
+ 'CreateTime' => ['title' => '', 'description' => 'The time when the experiment was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-10-22 10:18:10'],
+ 'UpdateTime' => ['title' => '', 'description' => 'The time when the experiment was last updated.', 'type' => 'integer', 'format' => 'int64', 'example' => '2024-10-22 10:18:10'],
+ 'ExperimentName' => ['title' => '', 'description' => 'The experiment name.', 'type' => 'string', 'example' => 'test'],
+ 'ExperimentType' => ['title' => '', 'description' => 'The experiment type.', 'type' => 'string', 'example' => 'AI'],
+ 'ResourceName' => ['title' => '', 'description' => 'The resource name.', 'type' => 'string', 'example' => 'ecs.r8y.4xlarge'],
+ 'WorkloadName' => ['title' => '', 'description' => 'The workload name.', 'type' => 'string', 'example' => 'test'],
+ 'StartTime' => ['title' => '', 'description' => 'The time when the task started.', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'EndTime' => ['title' => '', 'description' => 'The time when the task ended.', 'type' => 'string', 'example' => '2024-10-22 10:28:10'],
+ 'Status' => ['title' => '', 'description' => 'The status.', 'type' => 'string', 'example' => 'RUNNING'],
+ 'Results' => [
+ 'title' => '',
+ 'description' => 'The task result.',
'type' => 'object',
'properties' => [
- 'WorkloadId' => [
- 'title' => '负载id',
- 'description' => 'Workload ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '14',
- ],
- 'WorkloadName' => [
- 'title' => '负载名称',
- 'description' => 'Workload name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ResourceId' => [
- 'title' => '资源id',
- 'description' => 'Resource ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '36',
- ],
- 'ResourceName' => [
- 'title' => '资源名称',
- 'description' => 'Resource name',
- 'type' => 'string',
- 'example' => 'PPU',
- ],
- 'Scene' => [
- 'title' => '使用场景,例如"baseline"',
- 'description' => 'Usage scenario, e.g., "baseline"',
- 'type' => 'string',
- 'example' => 'baseline',
- ],
- 'SettingParams' => [
- 'title' => '配置的负载参数',
- 'description' => 'Configured workload parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'Parameters',
+ 'ExperimentId' => ['title' => '', 'description' => 'The parameter name.', 'type' => 'integer', 'format' => 'int64', 'example' => '440'],
+ 'Duration' => ['title' => '', 'description' => 'The duration.', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'SecondsPerIteration' => ['title' => '', 'description' => 'The number of seconds per iteration.', 'type' => 'number', 'format' => 'double', 'example' => '89'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The number of samples per second.', 'type' => 'number', 'format' => 'double', 'example' => '10'],
+ 'Mfu' => ['description' => 'MFU', 'type' => 'number', 'format' => 'double', 'example' => '34', 'title' => ''],
+ 'WarningWorker' => [
+ 'title' => '',
+ 'description' => 'The warning worker.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '113', 'title' => ''],
+ 'Hostname' => ['description' => 'The host IP address.', 'type' => 'string', 'example' => '101.66.165.102', 'title' => ''],
+ 'PodName' => ['description' => 'The pod name.', 'type' => 'string', 'example' => 'hzs-forge-sdxl-online-7ff4d86444-pc95h', 'title' => ''],
+ 'GpuNum' => ['description' => 'The number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '90', 'title' => ''],
+ 'GpuName' => ['description' => 'The GPU name.', 'type' => 'string', 'example' => '8x OAM 810 GPU', 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => 'Indicates whether a warning exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '', 'description' => 'The warning message.', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '', 'description' => 'Indicates whether an error exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => '', 'description' => 'The TFLOPS value.', 'type' => 'number', 'format' => 'double', 'example' => '43'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The throughput.', 'type' => 'number', 'format' => 'double', 'example' => '53'],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ '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' => 'Number of GPUs allocated',
- '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' => 'CUDA version',
- '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',
- ],
- 'ResourceNodes' => [
- 'title' => '指定的节点',
- 'description' => 'Specified nodes',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'NodeName' => [
- 'title' => '节点名称',
- 'description' => 'Node name',
- 'type' => 'string',
- 'example' => 'ods_galaxy_gateway_tickets',
- ],
- 'TotalCPU' => [
- 'title' => '总的cpu',
- 'description' => 'Total CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'TotalGPU' => [
- 'title' => '总的gpu',
- 'description' => 'Total GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'TotalMemory' => [
- 'title' => '总的memory',
- 'description' => 'Total memory',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '500',
- ],
- 'RequestCPU' => [
- 'title' => '当前请求的cpu',
- 'description' => 'Requested CPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '90',
- ],
- 'RequestGPU' => [
- 'title' => '当前请求的gpu',
- 'description' => 'Requested GPU',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'RequestMemory' => [
- 'title' => '当前请求的memory',
- 'description' => 'Memory of the current request',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '500',
- ],
- ],
- ],
- ],
- 'ExtendParam' => [
- 'title' => '额外的参数',
- 'description' => 'Additional parameters',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{}',
- 'description' => 'Parameter',
- ],
- ],
+ 'ErrorWorker' => [
+ 'description' => 'The error worker node.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The error worker node.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => 'The experiment ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '176', 'title' => ''],
+ 'Hostname' => ['description' => 'The host IP address.', 'type' => 'string', 'example' => 'etcd_cluster_c0n2', 'title' => ''],
+ 'PodName' => ['description' => 'The pod name.', 'type' => 'string', 'example' => 'fluxserv-6fc89b45cf-w8wq6', 'title' => ''],
+ 'GpuNum' => ['description' => 'The number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'GpuName' => ['description' => 'The GPU name.', 'type' => 'string', 'example' => '8x OAM 810 GPU', 'title' => ''],
+ 'WarningFlag' => ['title' => '', 'description' => 'Indicates whether a warning exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'WarningMsg' => ['title' => '', 'description' => 'The warning message.', 'type' => 'string', 'example' => '无'],
+ 'ErrorFlag' => ['title' => '', 'description' => 'Indicates whether an error exists.', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMsg' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '无'],
+ 'Tflops' => ['title' => '', 'description' => 'The TFLOPS value.', 'type' => 'number', 'format' => 'double', 'example' => '42'],
+ 'SamplesPerSecond' => ['title' => '', 'description' => 'The throughput.', 'type' => 'number', 'format' => 'double', 'example' => '65'],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- ],
- 'PipelineOrder' => [
- 'title' => '节点序号',
- 'description' => 'Node order number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
- ],
- 'ResourceGroupId' => [
- 'title' => '资源组id',
- 'description' => 'Resource group ID',
- 'type' => 'string',
- 'example' => 'rg-acfmvmpzi7lmxhq',
- ],
- 'Tags' => [
- 'type' => 'array',
- 'items' => [
+ 'SetParams' => [
+ 'title' => '',
+ 'description' => 'The workload parameters that were set for the run.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
+ ],
+ 'GetParams' => [
+ 'title' => '',
+ 'description' => 'The parsed workload parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
+ ],
+ 'EnvParams' => [
+ 'title' => '',
+ 'description' => 'The environment parameters for the run.',
'type' => 'object',
'properties' => [
- 'TagKey' => [
- 'type' => 'string',
- 'description' => 'The tag key.'."\n",
- 'example' => 'acs:testLXP:test-quota40-19',
+ 'CpuPerWorker' => ['title' => '', 'description' => 'The number of CPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'GpuPerWorker' => ['title' => '', 'description' => 'The number of GPUs allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'MemoryPerWorker' => ['title' => '', 'description' => 'The amount of memory in GB allocated per worker.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ShareMemory' => ['title' => '', 'description' => 'The amount of shared memory in GB allocated.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'WorkerNum' => ['title' => '', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CudaVersion' => ['title' => '', 'description' => 'cudaVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'NCCLVersion' => ['title' => '', 'description' => 'NCCLVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'GpuDriverVersion' => ['title' => '', 'description' => 'GpuDriverVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'PyTorchVersion' => ['title' => '', 'description' => 'PyTorchVersion', 'type' => 'string', 'example' => '1.0.0'],
+ 'ResourceNodes' => [
+ 'title' => '',
+ 'description' => 'The specified nodes.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '', 'description' => 'The node name.', 'type' => 'string', 'example' => 'lingj1xxnjt1k4nv-mg18v52pydyuumae-0'],
+ 'TotalCPU' => ['title' => '', 'description' => 'The total number of CPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'TotalGPU' => ['title' => '', 'description' => 'The total number of GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'TotalMemory' => ['title' => '', 'description' => 'The total memory.', 'type' => 'integer', 'format' => 'int64', 'example' => '500'],
+ 'RequestCPU' => ['title' => '', 'description' => 'The number of CPUs requested by the current task.', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'RequestGPU' => ['title' => '', 'description' => 'The number of GPUs requested by the current task.', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'RequestMemory' => ['title' => '', 'description' => 'The amount of memory requested by the current task.', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'example' => '',
],
- 'TagValue' => [
- 'type' => 'string',
- 'description' => 'The tag value.'."\n",
- 'example' => '000088aabb0019e4',
+ 'ExtendParam' => [
+ 'title' => '',
+ 'description' => 'The additional parameters.',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => '参数', 'type' => 'string', 'example' => '{}', 'title' => ''],
+ 'example' => '',
],
],
- 'description' => 'The tag.'."\n",
+ 'example' => '',
],
- 'description' => 'The tag.'."\n",
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'example' => '',
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '6DBAC169-93D1-5DCD-8109-30FB623B3197',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total count of the query',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '', 'description' => 'The access denied details.', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '', 'description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
+ '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' => 'Retrieve experiment list',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListExperiments'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListExperiments',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/*'],
+ ],
],
],
],
- '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' => 'Get Experiment Plan Details',
- 'translator' => 'machine',
],
- 'DeleteExperimentPlan' => [
- 'summary' => 'Delete Experiment Plan',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'ListTagResources' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '262196',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '260247',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'PlanId',
+ 'name' => 'ResourceType',
'in' => 'query',
+ 'schema' => ['title' => '资源类型', 'description' => 'Resource type', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '计划ID',
- 'description' => 'Plan ID.',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '189',
+ 'description' => 'ResourceId',
+ 'type' => 'array',
+ 'items' => ['description' => 'ResourceId', 'type' => 'string', 'required' => false, 'example' => '189', 'title' => ''],
+ 'required' => false,
+ 'maxItems' => 51,
+ 'title' => '',
],
],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The list of tags to be queried. The value range for N is 1~20.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Tags of the resource.'."\n"
+ ."\n"
+ .'Supports up to 20 tags at most.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'Tag key, with n in the range [1, 20].', 'type' => 'string', 'required' => false, 'example' => 'owner', 'title' => ''],
+ 'Value' => ['description' => 'Tag value', 'type' => 'string', 'required' => false, 'example' => 'syg', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ 'title' => '',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => ['title' => '下一个查询开始Token', 'description' => 'Next token for the next query', 'type' => 'string', 'required' => false, 'example' => 'F0lqbr2JpLDppro1RahGKViWtqXr3L28cePimcRn'],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '查询结果',
- 'description' => 'Query Result.',
+ 'title' => 'CnpListTagResponse<TagResourceVO>',
+ 'description' => 'CnpListTagResponse<TagResourceVO>',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data.',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID.',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access Denied Information.',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total Count.',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ 'NextToken' => ['title' => '下一个查询开始Token,NextToken为空说明没有下一个', 'description' => 'Next token for the next query. An empty NextToken indicates there are no more results.', 'type' => 'string', 'example' => 'uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF'],
+ 'TagResources' => [
+ 'title' => '资源列表列表',
+ 'description' => 'List of resources',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The maximum length of the array is 20.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['title' => '标签键', 'description' => 'Tag key', 'type' => 'string', 'example' => 'owner'],
+ 'TagValue' => ['title' => '标签值', 'description' => 'Tag value', 'type' => 'string', 'example' => 'syg'],
+ 'ResourceId' => ['title' => '资源ID', 'description' => 'ResourceId', 'type' => 'string', 'example' => '189'],
+ 'ResourceType' => ['title' => '资源类型', 'description' => 'Resource type', 'type' => 'string', 'example' => 'ExperimentPlan'],
+ ],
+ 'title' => '',
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
'errorCodes' => [
400 => [
- [
- 'errorCode' => 'NotFound',
- 'errorMessage' => 'not found.',
- ],
+ ['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 \\"Data\\": true,\\n \\"RequestId\\": \\"E67E2E4C-2B47-5C55-AA17-1D771E070AEF\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'Delete Experiment Plan',
+ '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' => 'Query Resource Tags',
+ 'summary' => 'Query Resource Tags',
'translator' => 'machine',
- ],
- 'ListExperimentPlans' => [
- 'summary' => 'Query Experiment Plan List',
- 'methods' => [
- 'post',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagResources'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'eflo:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'ListWorkloads' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5643,176 +2686,22 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '194768',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterTOL3OM',
- ],
+ 'abilityTreeCode' => '194285',
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ResourceName',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '资源',
- 'description' => 'Resource',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Resource Name',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cls-pim0anlrtm3ef4vstou001',
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PlanTaskStatus',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'title' => '执行状态',
- 'description' => 'Execution Status',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Status',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RUNNING',
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'CreatTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '创建时间排序规则',
- 'description' => 'Creation Time Sorting Rule',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'StartTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '开始时间排序规则',
- 'description' => 'Start Time Sorting Rule',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'EndTimeOrder',
- 'in' => 'query',
- 'schema' => [
- 'title' => '结束时间排序规则',
- 'description' => 'End Time Sorting Rule',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'Page',
- 'in' => 'query',
- 'schema' => [
- 'title' => '页数',
- 'description' => 'Page Number',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- 'default' => '0',
- ],
- ],
- [
- 'name' => 'Size',
- 'in' => 'query',
- 'schema' => [
- 'title' => '条数',
- 'description' => 'Number of Items',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- 'default' => '10',
- ],
- ],
- [
- 'name' => 'ResourceGroupId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '资源组id',
- 'description' => 'Resource Group ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aekzij65sf2rr5i',
- ],
- ],
- [
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => 'The tags.'."\n",
- 'type' => 'array',
- 'items' => [
- 'description' => 'The tags.',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'The tag key.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
- 'Value' => [
- 'description' => 'Tag value',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TemplateId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'description' => 'Template Id',
- 'example' => '96',
- ],
- ],
- [
- 'name' => 'ResourceId',
+ 'name' => 'Scope',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'description' => 'Resource ID',
- 'example' => '189',
- ],
+ 'schema' => ['title' => '作用域', 'description' => 'Scope', 'type' => 'string', 'required' => false, 'example' => 'common'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => '查询结果',
- 'description' => 'Query Result',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
'Data' => [
@@ -5820,142 +2709,89 @@
'description' => 'Data',
'type' => 'array',
'items' => [
- 'description' => 'Data',
'type' => 'object',
'properties' => [
- 'PlanId' => [
- 'title' => '计划ID',
- 'description' => 'Plan ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '189',
- ],
- 'CreateTime' => [
- 'title' => '创建时间',
- 'description' => 'Creation Time',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'UpdateTime' => [
- 'title' => '更新时间',
- 'description' => 'Update Time',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'TemplateId' => [
- 'title' => '关联的测试计划模板ID',
- 'description' => 'Associated Test Plan Template ID',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '6',
- ],
- 'TemplateName' => [
- 'title' => '关联的测试计划模板名称',
- 'description' => 'Associated Test Plan Template Name',
- 'type' => 'string',
- 'example' => 'test',
- ],
- 'ResourceName' => [
- 'title' => '关联的资源名称',
- 'description' => 'Associated Resource Name',
- 'type' => 'string',
- 'example' => 'q_ecs_xpec_postpay_c',
- ],
- 'PlanTaskStatus' => [
- 'title' => '测试计划执行状态',
- 'description' => 'Test Plan Execution Status',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- 'description' => 'Status',
- ],
- ],
- 'StartTime' => [
- 'title' => '开始时间',
- 'description' => 'Start Time',
- 'type' => 'string',
- 'example' => '2024-07-08 10:12:42',
- ],
- 'EndTime' => [
- 'title' => '结束时间',
- 'description' => 'End Time',
- 'type' => 'string',
- 'example' => '2024-07-08 10:22:42',
- ],
- 'ResourceGroupId' => [
- 'title' => '资源组id',
- 'description' => 'Resource Group ID',
- 'type' => 'string',
- 'example' => 'rg-aek5behqmwbfhuy',
- ],
- 'Tags' => [
- 'description' => 'The tag.'."\n",
+ 'WorkloadId' => ['title' => '负载id', 'description' => 'Workload ID', 'type' => 'integer', 'format' => 'int64', 'example' => '13'],
+ 'WorkloadName' => ['title' => '负载名称', 'description' => 'Workload Name', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadDescription' => ['title' => '负载描述', 'description' => 'Workload Description', 'type' => 'string', 'example' => 'test'],
+ 'WorkloadType' => ['title' => '负载名称', 'description' => 'Workload Type', 'type' => 'string', 'example' => 'AI'],
+ 'Family' => ['title' => '负载簇, AI、GPU', 'description' => 'Workload Cluster, AI, GPU', 'type' => 'string', 'example' => 'AI'],
+ 'Scene' => ['title' => '负载使用场景', 'description' => 'Workload Usage Scenario', 'type' => 'string', 'example' => 'NLP-LLM'],
+ 'Scope' => ['title' => '负载使用的范围标识', 'description' => 'Scope Identifier for Workload Usage', 'type' => 'string', 'example' => 'common'],
+ 'JobKind' => ['title' => '训练任务类型', 'description' => 'Training Job Type', 'type' => 'string', 'example' => 'PyTorchJob'],
+ 'DefaultCpuPerWorker' => ['title' => '默认cpu分配数', 'description' => 'Default CPU Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '90'],
+ 'DefaultGpuPerWorker' => ['title' => '默认gpu分配数', 'description' => 'Default GPU Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '8'],
+ 'DefaultMemoryPerWorker' => ['title' => '默认内存GB分配数', 'description' => 'Default Memory (GB) Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'DefaultShareMemory' => ['title' => '默认共享内存GB分配数', 'description' => 'Default Shared Memory (GB) Allocation', 'type' => 'integer', 'format' => 'int32', 'example' => '500'],
+ 'ParamSettings' => [
+ 'title' => '参数设置',
+ 'description' => 'Parameter Settings',
'type' => 'array',
'items' => [
- 'description' => 'The tag.'."\n",
'type' => 'object',
'properties' => [
- 'TagKey' => [
- 'description' => 'The tag key.'."\n",
- 'type' => 'string',
- 'example' => 'owner',
- ],
- 'TagValue' => [
- 'description' => 'The tag value.'."\n",
- 'type' => 'string',
- 'example' => 'test',
- ],
+ 'ParamName' => ['title' => '参数名称', 'description' => 'Parameter Name', 'type' => 'string', 'example' => 'ITERATION'],
+ 'ParamDesc' => ['title' => '参数描述', 'description' => 'Parameter Description', 'type' => 'string', 'example' => 'number'],
+ 'ParamValue' => ['title' => '参数值', 'description' => 'Parameter Value', 'type' => 'string', 'example' => '100'],
+ 'DefaultValue' => ['title' => '参数默认值', 'description' => 'Default Parameter Value', 'type' => 'string', 'example' => '100'],
+ 'ParamRegex' => ['title' => '参数正则表达式', 'description' => 'Parameter Regular Expression', 'type' => 'string', 'example' => '[0-9]+'],
+ 'ParamType' => ['title' => '参数类型', 'description' => 'Parameter type', 'type' => 'string', 'example' => 'number'],
],
+ 'description' => '',
+ 'title' => '',
],
],
- 'ResourceId' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'description' => 'The resource ID.'."\n",
- 'example' => '189',
+ 'StaticConfig' => [
+ 'title' => '静态配置',
+ 'description' => 'Static Configuration',
+ 'type' => 'object',
+ 'properties' => [
+ 'FrameWork' => ['title' => '框架', 'description' => 'Framework', 'type' => 'string', 'example' => 'PyTorch'],
+ 'SoftwareStack' => ['title' => '软件栈', 'description' => 'Software Stack', 'type' => 'string', 'example' => 'python'],
+ 'Os' => ['title' => '系统', 'description' => 'Operating System', 'type' => 'string', 'example' => 'linux'],
+ 'Parameters' => ['title' => '参数量', 'description' => 'Number of Parameters', 'type' => 'string', 'example' => '7B'],
+ ],
],
+ 'VersionId' => ['title' => '版本号', 'description' => 'Version ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
],
+ 'description' => '',
+ 'title' => '',
],
],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => 'FA9F1DE7-103B-5C18-AE9E-EB2BFF11C685',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'AccessDeniedDetail' => [
- 'description' => 'Access Denied Detail',
- 'type' => 'string',
- 'example' => '{}',
- 'title' => '无权限信息',
- ],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '4AC08332-436C-57A3-9FBA-26772B1A9901'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access Denied Information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'total', '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' => 'Get Experiment Plan List',
+ '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\\": \\"number\\",\\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' => 'Get Model List',
+ 'summary' => 'Get Workload List',
'translator' => 'machine',
- ],
- 'ChangeResourceGroup' => [
- 'summary' => 'Change resource group',
- 'methods' => [
- 'post',
- 'get',
+ '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' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -5967,125 +2803,168 @@
'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' => 'The resource type.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ExperimentPlan',
- 'default' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '计划ID', 'description' => 'Plan 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', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '资源Id',
- 'description' => 'The resource id.',
- 'type' => 'string',
- 'required' => true,
- 'example' => '123',
+ 'title' => '是否成功',
+ 'description' => 'Whether the operation was successful',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total number of queries', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'NotFound', 'errorMessage' => 'not found.', 'description' => 'Data does not exist'],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Stop Experiment',
+ 'summary' => 'Stop Experiment',
+ 'translator' => 'machine',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopExperiment'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:StopExperiment',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Experiment', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experiment/{#ExperimentId}'],
+ ],
],
],
+ ],
+ ],
+ 'TagResources' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'RegionId',
+ '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' => 'Resource type', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '地域Id',
- 'description' => 'Region Id',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-shanghai',
+ 'description' => 'ResourceId',
+ 'type' => 'array',
+ 'items' => ['description' => 'ResourceId', 'type' => 'string', 'required' => false, 'example' => '189', 'title' => ''],
+ 'required' => true,
+ 'maxItems' => 51,
+ 'title' => '',
],
],
[
- 'name' => 'ResourceGroupId',
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'title' => '目标资源组',
- 'description' => 'The resource group id.',
- 'type' => 'string',
+ 'description' => 'List of tags, up to 20.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'List of tags.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'Tag key.', 'type' => 'string', 'required' => false, 'example' => 'owner', 'maxLength' => 128, 'title' => ''],
+ 'Value' => ['description' => 'Tag value', 'type' => 'string', 'required' => false, 'example' => 'syg', 'maxLength' => 256, 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ ],
'required' => true,
- 'example' => 'rg-aek25k3b4pbhc4a',
+ 'maxItems' => 21,
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'title' => 'CnpResult<String>',
+ 'description' => 'CnpResult<String>',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Request Id',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'string', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied details', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', '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' => 'Tag Resources with User Labels',
+ 'summary' => 'Tag Resources with User Labels',
+ 'translator' => 'machine',
+ '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' => 'Change resource group',
- 'translator' => 'machine',
],
'UntagResources' => [
- 'summary' => 'Remove User Tags from Resources',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -6098,22 +2977,14 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '260246',
- 'abilityTreeNodes' => [
- 'FEATUREbcclusterFASAIP',
- ],
+ 'abilityTreeNodes' => ['FEATUREbcclusterFASAIP'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'Resource type',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '资源类型', 'description' => 'Resource type', 'type' => 'string', 'required' => true, 'example' => 'ExperimentPlan'],
],
[
'name' => 'ResourceId',
@@ -6122,14 +2993,10 @@
'schema' => [
'description' => 'Resource ID',
'type' => 'array',
- 'items' => [
- 'description' => 'Resource ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
- ],
+ 'items' => ['description' => 'Resource ID', 'type' => 'string', 'required' => false, 'example' => '189', 'title' => ''],
'required' => true,
'maxItems' => 51,
+ 'title' => '',
],
],
[
@@ -6139,26 +3006,16 @@
'schema' => [
'description' => 'Tag key group, up to 20 items',
'type' => 'array',
- 'items' => [
- 'description' => 'List of tag keys, n ranges from 1 to 20.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
+ 'items' => ['description' => 'List of tag keys, n ranges from 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'owner', 'title' => ''],
'required' => true,
'maxItems' => 100,
+ 'title' => '',
],
],
[
'name' => 'All',
'in' => 'query',
- 'schema' => [
- 'title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false',
- 'description' => 'Whether to delete all, only effective when TagKey.N is empty. Allowed values: true, false, True, False. Default is false.',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['title' => '是否全部删除,只针对TagKey.N为空时有效。 取值范围: true false True False 默认是 false', 'description' => 'Whether to delete all, only effective when TagKey.N is empty. Allowed values: true, false, True, False. Default is false.', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
@@ -6168,174 +3025,302 @@
'description' => 'CnpResult<String>',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'title' => '数据',
- 'description' => 'Data',
- 'type' => 'string',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '25859897-35C8-5015-8365-7A3CE52F4854',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'string', 'example' => '[]'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '25859897-35C8-5015-8365-7A3CE52F4854'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', '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' => 'Remove User Tags from Resources',
+ 'summary' => 'Remove User Tags from Resources',
'translator' => 'machine',
- ],
- 'TagResources' => [
- 'summary' => 'Tag Resources with User Labels',
- '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' => [
+ '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' => 'Resource type',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
+ 'schema' => ['title' => '实验计划id', 'description' => 'Experiment plan ID', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '189'],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'PlanTemplateName',
'in' => 'query',
- 'style' => 'repeatList',
+ 'schema' => ['title' => '实验计划名称', 'description' => 'Experiment plan name', 'type' => 'string', 'required' => true, 'example' => 'test'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'ResourceId',
- 'type' => 'array',
- 'items' => [
- 'description' => 'ResourceId',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
+ 'title' => '结果',
+ 'description' => 'Result',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"AccessDeniedDetail\\": \\"{}\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Modify Experiment Plan',
+ 'summary' => 'Update Experiment Plan',
+ 'translator' => 'machine',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-27T05:11:14.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateExperimentPlan'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:UpdateExperimentPlan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'ExperimentPlan', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:experimentplan/{#ExperimentPlanId}'],
],
- 'required' => true,
- 'maxItems' => 51,
],
],
+ ],
+ ],
+ 'UpdateExperimentPlanTemplate' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'Tag',
+ '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' => 'Template code', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '349623'],
+ ],
+ [
+ 'name' => 'TemplatePipeline',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'description' => 'List of tags, up to 20.',
+ 'title' => '模板流水线',
+ 'description' => 'Template pipeline',
'type' => 'array',
'items' => [
- 'description' => 'List of tags.',
+ 'description' => 'Template Pipeline',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => 'Tag key.',
- 'type' => 'string',
+ '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'],
+ 'SettingParams' => [
+ 'title' => '配置的负载参数',
+ 'description' => 'Configured workload parameters',
+ 'type' => 'object',
'required' => false,
- 'example' => 'owner',
- 'maxLength' => 128,
+ 'additionalProperties' => ['type' => 'string', 'description' => 'Configured Workload Parameters', 'example' => 'batch_size', 'title' => ''],
],
- 'Value' => [
- 'description' => 'Tag value',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'syg',
- 'maxLength' => 256,
+ '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'],
],
'required' => false,
+ 'title' => '',
],
'required' => true,
- 'maxItems' => 21,
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'CnpResult<String>',
- 'description' => 'CnpResult<String>',
+ 'title' => '结果',
+ 'description' => 'Result',
'type' => 'object',
'properties' => [
'Data' => [
'title' => '数据',
'description' => 'Data',
- 'type' => 'string',
- 'example' => '[]',
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => 'E67E2E4C-2B47-5C55-AA17-1D771E070AEF',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied details',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
+ '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' => '17815441'],
+ 'TemplateCode' => ['title' => '模板Code', 'description' => 'Template code', 'type' => 'integer', 'format' => 'int64', 'example' => '472840184'],
+ 'CreateTime' => ['title' => '创建时间', 'description' => 'Create Time', 'type' => 'string', 'example' => '2024-10-22 10:18:10'],
+ 'UpdateTime' => ['title' => '更新时间', 'description' => 'Update Time', 'type' => 'string', 'example' => '2024-07-07 02:08:54'],
+ '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' => [
+ 'description' => 'Template Pipeline',
+ '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' => 'Configured Workload Parameters', 'example' => 'batch_size', 'title' => ''],
+ ],
+ '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' => 'CUDA Version', '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'],
+ 'ResourceNodes' => [
+ 'title' => '指定的节点',
+ 'description' => 'Specified Nodes',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Node',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'description' => 'Node Name', 'type' => 'string', 'example' => 'honeypot'],
+ 'TotalCPU' => ['title' => '总的cpu', 'description' => 'Total CPU', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalGPU' => ['title' => '总的gpu', 'description' => 'Total GPU', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'TotalMemory' => ['title' => '总的memory', 'description' => 'Total Memory', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
+ 'RequestCPU' => ['title' => '当前请求的cpu', 'description' => 'Requested CPU', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestGPU' => ['title' => '当前请求的gpu', 'description' => 'Requested GPU', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'RequestMemory' => ['title' => '当前请求的memory', 'description' => 'Requested Memory', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ ],
+ 'title' => '',
+ ],
+ ],
+ 'ExtendParam' => [
+ 'title' => '额外的参数',
+ 'description' => 'Extend Param',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'description' => 'Additional parameters', 'example' => '{}', 'title' => ''],
+ ],
+ ],
+ ],
+ 'PipelineOrder' => ['title' => '节点序号', 'description' => 'Node sequence number', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
+ 'title' => '',
+ ],
+ ],
+ 'VersionId' => ['title' => '版本号', 'description' => 'Version ID', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'IsDelete' => ['title' => '是否删除', 'description' => 'Whether it is deleted', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ ],
],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request ID', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'AccessDeniedDetail' => ['title' => '无权限信息', 'description' => 'Access denied information', 'type' => 'string', 'example' => '{}'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', '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' => 'Tag Resources with User Labels',
+ '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' => 'Modify Experiment Plan Template',
+ 'summary' => 'Update Test Plan Template',
'translator' => 'machine',
- ],
- 'ListTagResources' => [
- 'summary' => 'Query Resource Tags',
- 'methods' => [
- 'post',
+ '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' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6344,216 +3329,487 @@
'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',
- 'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'Resource type',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ExperimentPlan',
- ],
- ],
- [
- 'name' => 'ResourceId',
+ 'name' => 'ClusterId',
'in' => 'query',
- 'style' => 'repeatList',
- 'schema' => [
- 'description' => 'ResourceId',
- 'type' => 'array',
- 'items' => [
- 'description' => 'ResourceId',
- 'type' => 'string',
- 'required' => false,
- 'example' => '189',
- ],
- 'required' => false,
- 'maxItems' => 51,
- ],
+ 'schema' => ['title' => '资源ID', 'description' => 'Resource ID', 'type' => 'string', 'required' => true, 'example' => 'ehpc-sh-ouypm5aucy'],
],
[
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'repeatList',
+ 'name' => 'UserAccessParam',
+ 'in' => 'formData',
+ 'style' => 'json',
'schema' => [
- 'description' => 'The list of tags to be queried. The value range for N is 1~20.',
- 'type' => 'array',
- 'items' => [
- 'description' => 'Tags of the resource.'."\n"
- ."\n"
- .'Supports up to 20 tags at most.',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => 'Tag key, with n in the range [1, 20].',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'owner',
- ],
- 'Value' => [
- 'description' => 'Tag value',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'syg',
- ],
- ],
- 'required' => false,
+ 'title' => '用户授权参数',
+ 'description' => 'User Authorization Parameters',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessId' => ['title' => '用户id', 'description' => 'User ID', 'type' => 'string', 'required' => false, 'example' => 'dev'],
+ 'AccessKey' => ['title' => '用户key', 'description' => 'User Key', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'WorkspaceId' => ['title' => '工作空间ID', 'description' => 'Workspace ID', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'Endpoint' => ['title' => 'endpoint', 'description' => 'Endpoint', 'type' => 'string', 'required' => false, 'example' => 'test'],
],
'required' => false,
- 'maxItems' => 21,
- ],
- ],
- [
- 'name' => 'NextToken',
- 'in' => 'query',
- 'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => 'Next token for the next query',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F0lqbr2JpLDppro1RahGKViWtqXr3L28cePimcRn',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'CnpListTagResponse<TagResourceVO>',
- 'description' => 'CnpListTagResponse<TagResourceVO>',
+ 'title' => '资源对象',
+ 'description' => 'Resource Object',
'type' => 'object',
'properties' => [
- 'NextToken' => [
- 'title' => '下一个查询开始Token,NextToken为空说明没有下一个',
- 'description' => 'Next token for the next query. An empty NextToken indicates there are no more results.',
- 'type' => 'string',
- 'example' => 'uPZbmbpgxp2/6vNWNPoase3Eqy+gL9pdDBH7KGZXMuZ9GxmBbMJcTP/dlrNqRaWF',
- ],
- 'TagResources' => [
- 'title' => '资源列表列表',
- 'description' => 'List of resources',
- 'type' => 'array',
- 'items' => [
- 'description' => 'The maximum length of the array is 20.',
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => 'Tag key',
- 'type' => 'string',
- 'example' => 'owner',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => 'Tag value',
- 'type' => 'string',
- 'example' => 'syg',
- ],
- 'ResourceId' => [
- 'title' => '资源ID',
- 'description' => 'ResourceId',
- 'type' => 'string',
- 'example' => '189',
- ],
- 'ResourceType' => [
- 'title' => '资源类型',
- 'description' => 'Resource type',
- 'type' => 'string',
- 'example' => 'ExperimentPlan',
- ],
- ],
- ],
- ],
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => 'Request ID',
- 'type' => 'string',
- 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB',
- ],
- 'AccessDeniedDetail' => [
- 'title' => '无权限信息',
- 'description' => 'Access denied information',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'TotalCount' => [
- 'title' => '查询总数',
- 'description' => 'Total',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
+ 'Data' => ['title' => '数据', 'description' => 'Data', 'type' => 'boolean', 'example' => 'true'],
+ 'RequestId' => ['title' => '请求id', 'description' => 'Request Id', 'type' => 'string', 'example' => '5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB'],
+ 'TotalCount' => ['title' => '查询总数', 'description' => 'Total', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'MissingParameter.ResourceIdOrTag',
- 'errorMessage' => 'Either ResourceId or Tag must be specified.',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Data\\": true,\\n \\"RequestId\\": \\"5514CB39-B7C0-5B89-8534-2DE1E0F2B7AB\\",\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'title' => 'Validate Cluster Information',
+ 'summary' => 'Resource Connectivity Test',
+ 'translator' => 'machine',
+ 'changeSet' => [
+ ['createdAt' => '2025-04-15T02:39:59.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-28T10:32:30.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-27T05:11:14.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-01-22T11:38:26.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ValidateResource'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'eflo:ValidateResource',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Eflo', 'resourceType' => 'Resource', 'arn' => 'acs:eflo:{#regionId}:{#accountId}:resource/{#ClusterId}'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', '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' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', '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' => 'User parameter error'],
+ ['code' => 'B1001', 'message' => 'The error is unexpected.', 'http_code' => 200, 'description' => 'Unknown error'],
+ ['code' => 'C4027', 'message' => 'This resource is unavailable.', 'http_code' => 200, 'description' => 'Resource Unavailable'],
+ ['code' => 'MissingResourceId', 'message' => 'ResourceId is mandatory for this action.', 'http_code' => 400, 'description' => 'This operation must use ResourceId.'],
+ ['code' => 'MissingTag', 'message' => 'Tag is mandatory for this action.', 'http_code' => 400, 'description' => 'This operation must use a label.'],
+ ['code' => 'NoPermission', 'message' => 'No permissions.', 'http_code' => 403, 'description' => 'You are not authorized to perform this operation. Please obtain the permissions.'],
+ ['code' => 'NotFound', 'message' => 'Data not found.', 'http_code' => 200, 'description' => 'Data does not exist'],
+ ['code' => 'NotFound', 'message' => 'not found.', 'http_code' => 400, 'description' => 'Data does not exist'],
+ ['code' => 'NOT_FOUND', 'message' => 'This resource was not found.', 'http_code' => 400, 'description' => 'This resource was not found'],
+ ['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' => 'Intelligent Computing LINGJUN',
+ 'ramCodes' => ['eflo'],
+ 'ramLevel' => 'RESOURCE',
+ '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}'],
+ ],
+ ],
+ ],
+ [
+ '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}'],
+ ],
+ ],
+ ],
+ [
+ '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' => 'InvalidNextToken',
- 'errorMessage' => 'The NextToken is invalid.',
+ ],
+ ],
+ [
+ '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' => 'NumberExceed.ResourceIds',
- 'errorMessage' => 'The maximum number of ResourceIds is exceeded. The maximum is 50.',
+ ],
+ ],
+ [
+ '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' => 'MissingParameter.ResourceIds',
- 'errorMessage' => 'You must specify ResourceIds.',
+ ],
+ ],
+ [
+ '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' => 'Duplicate.ResourceId',
- 'errorMessage' => 'The request contains duplicated ResourceId.',
+ ],
+ ],
+ [
+ '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}'],
+ ],
+ ],
+ ],
+ [
+ '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' => 'NumberExceed.Tags',
- 'errorMessage' => 'The maximum number of Tags is exceeded. The maximum is 20.',
+ ],
+ ],
+ [
+ '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}'],
+ ],
+ ],
+ ],
+ [
+ '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' => 'Duplicate.TagKey',
- 'errorMessage' => 'The Tag.N.Key contains a duplicated key.',
+ ],
+ ],
+ [
+ '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}'],
],
- [
- 'errorCode' => 'InvalidResourceId.NotFound',
- 'errorMessage' => 'The ResourceId does not exist.',
+ ],
+ ],
+ [
+ '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/*'],
],
- [
- 'errorCode' => 'InvalidParameter.TagKey',
- 'errorMessage' => 'The specified Tag.n.Key is invalid.',
+ ],
+ ],
+ [
+ '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/*'],
],
- [
- 'errorCode' => 'InvalidParameter.TagValue',
- 'errorMessage' => 'The specified Tag.n.Value is invalid.',
+ ],
+ ],
+ [
+ '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' => 'Query Resource Tags',
- 'translator' => 'machine',
- ],
- ],
- '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}'],
],
],
];