summaryrefslogtreecommitdiff
path: root/data/en_us/paistudio/2022-01-12/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/en_us/paistudio/2022-01-12/api-docs.php
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/en_us/paistudio/2022-01-12/api-docs.php')
-rw-r--r--data/en_us/paistudio/2022-01-12/api-docs.php14790
1 files changed, 6542 insertions, 8248 deletions
diff --git a/data/en_us/paistudio/2022-01-12/api-docs.php b/data/en_us/paistudio/2022-01-12/api-docs.php
index ef34bca..0905ed0 100644
--- a/data/en_us/paistudio/2022-01-12/api-docs.php
+++ b/data/en_us/paistudio/2022-01-12/api-docs.php
@@ -1,6062 +1,4297 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'PaiStudio',
- 'version' => '2022-01-12',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'PaiStudio', 'version' => '2022-01-12'],
'directories' => [
[
- 'id' => 384361,
- 'title' => null,
+ 'children' => ['GetResourceGroupTotal', 'GetResourceGroupRequest', 'DeleteResourceGroupMachineGroup', 'GetNodeMetrics', 'ListResourceGroupMachineGroups', 'GetUserViewMetrics', 'GetResourceGroupMachineGroup'],
'type' => 'directory',
- 'children' => [
- 'UpdateResourceGroup',
- 'GetResourceGroupTotal',
- 'ListResourceGroups',
- 'GetResourceGroupRequest',
- 'DeleteResourceGroupMachineGroup',
- 'GetNodeMetrics',
- 'ListResourceGroupMachineGroups',
- 'GetUserViewMetrics',
- 'GetResourceGroupMachineGroup',
- 'GetResourceGroup',
- 'DeleteMachineGroup',
- 'CreateResourceGroup',
- 'DeleteResourceGroup',
- 'GetMachineGroup',
- ],
+ 'title' => 'Resource group',
],
[
- 'id' => 384376,
- 'title' => null,
+ 'children' => ['CreateAlgorithm', 'CreateAlgorithmVersion', 'DeleteAlgorithm', 'DeleteAlgorithmVersion', 'GetAlgorithm', 'GetAlgorithmVersion', 'ListAlgorithms', 'ListAlgorithmVersions', 'UpdateAlgorithm', 'UpdateAlgorithmVersion'],
'type' => 'directory',
- 'children' => [
- 'CreateAlgorithm',
- 'CreateAlgorithmVersion',
- 'DeleteAlgorithm',
- 'DeleteAlgorithmVersion',
- 'GetAlgorithm',
- 'GetAlgorithmVersion',
- 'ListAlgorithms',
- 'ListAlgorithmVersions',
- 'UpdateAlgorithm',
- 'UpdateAlgorithmVersion',
- ],
- ],
- [
- 'id' => 384387,
- 'title' => null,
- 'type' => 'directory',
- 'children' => [
- 'CreateTrainingJob',
- 'CreateInstanceWebTerminal',
- 'CheckInstanceWebTerminal',
- 'DeleteTrainingJob',
- 'DeleteTrainingJobLabels',
- 'GetToken',
- 'GetTrainingJob',
- 'GetTrainingJobErrorInfo',
- 'GetTrainingJobLatestMetrics',
- 'ListTrainingJobs',
- 'ListTrainingJobEvents',
- 'ListTrainingJobInstanceEvents',
- 'ListTrainingJobInstanceMetrics',
- 'ListTrainingJobLogs',
- 'ListTrainingJobMetrics',
- 'ListTrainingJobOutputModels',
- 'StopTrainingJob',
- 'UpdateTrainingJobLabels',
- ],
+ 'title' => 'Training algorithm',
],
[
- 'id' => 384406,
- 'title' => null,
+ 'children' => ['CreateTrainingJob', 'CreateInstanceWebTerminal', 'CheckInstanceWebTerminal', 'DeleteTrainingJob', 'DeleteTrainingJobLabels', 'GetTrainingJob', 'GetTrainingJobErrorInfo', 'GetTrainingJobLatestMetrics', 'ListTrainingJobs', 'ListTrainingJobEvents', 'ListTrainingJobInstanceEvents', 'ListTrainingJobInstanceMetrics', 'ListTrainingJobLogs', 'ListTrainingJobMetrics', 'ListTrainingJobOutputModels', 'StopTrainingJob', 'UpdateTrainingJobLabels'],
'type' => 'directory',
- 'children' => [
- 'CreateQuota',
- 'ListQuotas',
- 'GetQuota',
- 'UpdateQuota',
- 'ScaleQuota',
- 'DeleteQuota',
- 'ListQuotaWorkloads',
- ],
+ 'title' => 'Training job',
],
[
- 'id' => 384414,
- 'title' => null,
+ 'children' => ['ScaleQuota', 'ListQuotaWorkloads', 'ListQuotaActiveUserUsages'],
'type' => 'directory',
- 'children' => [
- 'ListTagResources',
- 'TagResources',
- 'UntagResources',
- ],
+ 'title' => 'Resource quota',
],
[
- 'id' => 384418,
- 'title' => null,
+ 'children' => ['GetSpotPriceHistory', 'ListNodeTypes', 'OperateNode', 'CreateQuota', 'CreateResourceGroup', 'DeleteMachineGroup', 'DeleteQuota', 'DeleteResourceGroup', 'GetMachineGroup', 'GetQuota', 'GetResourceGroup', 'GetToken', 'ListNodes', 'ListQuotas', 'ListResourceGroups', 'ListTagResources', 'TagResources', 'UntagResources', 'UpdateQuota', 'UpdateResourceGroup'],
'type' => 'directory',
- 'children' => [
- 'ListNodes',
- 'GetSpotPriceHistory',
- 'OperateNode',
- ],
+ 'title' => 'Others',
],
],
'components' => [
'schemas' => [
'ACS' => [
- 'title' => 'ACS Quota Related Configuration',
- 'description' => '',
- 'visibility' => 'public',
+ 'description' => 'ACS-related configuration.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'ACSQuotaId' => [
- 'title' => 'ACS Identifier',
- 'description' => 'ACS Identifier',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'rq-3kbt2gtimmyw7fgfgothocvh',
- 'backendName' => 'ACSQuotaId',
- ],
+ 'ACSQuotaId' => ['description' => 'ACS resource ID.', 'title' => '', 'type' => 'string', 'example' => 'rq-3kbt2gtimmyw7fgfgothocvh'],
'AssociatedProducts' => [
- 'title' => 'Products that can use ACS Quota',
- 'description' => '',
- 'visibility' => 'public',
+ 'description' => 'Product codes that can use the ACS Quota.'."\n"
+ ."\n"
+ .'Constraints: '."\n"
+ .'You can select multiple sub-products, but some sub-products are mutually exclusive. The following combinations can be selected simultaneously: '."\n"
+ .'- PAI-DLC, PAI-DSW '."\n"
+ .'- PAI-EAS',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'PAI-DLC',
- 'extendType' => 'true',
- ],
- 'backendName' => 'AssociatedProducts',
+ 'items' => ['description' => 'Product code of the product that uses ACS resources.', 'type' => 'string', 'example' => 'PAI-DLC', 'title' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
+ ],
+ 'Action' => [
+ 'title' => '任务操作配置',
+ 'description' => '操作配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'ActionType' => ['title' => '操作类型', 'type' => 'string'],
+ ],
],
'AlgorithmSpec' => [
- 'title' => 'Defines how the training job of the algorithm run.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The algorithm definition.',
+ 'title' => '',
'type' => 'object',
'properties' => [
'OutputChannels' => [
- 'title' => 'The outputs of the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The list of output channels for the algorithm.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Channel',
- ],
- 'backendName' => 'OutputChannels',
- 'itemName' => 'OutputChannels',
+ 'items' => ['description' => 'An output channel for the algorithm.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/Channel'],
+ 'example' => '',
],
'HyperParameters' => [
- 'title' => 'The hype parameter used by the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The list of hyperparameter definitions.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/HyperParameterDefinition',
- ],
- 'backendName' => 'HyperParameters',
- 'itemName' => 'HyperParameters',
+ 'items' => ['description' => 'Hyperparameter definition. ', '$ref' => '#/components/schemas/HyperParameterDefinition', 'title' => '', 'example' => ''],
+ 'example' => '',
],
'JobType' => [
- 'title' => 'Job type of the training job while running the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'title' => '',
+ 'description' => 'The job type.',
'type' => 'string',
- 'required' => true,
'example' => 'TFJob',
- 'backendName' => 'JobType',
- 'enum' => [
- 'TFJob',
- 'PyTorchJob',
- 'XGBoostJob',
- 'ElasticBatchJob',
- ],
+ 'required' => true,
+ 'enum' => ['TFJob', 'PyTorchJob', 'XGBoostJob', 'ElasticBatchJob'],
],
'Command' => [
- 'title' => 'The command used for submit the job.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The list of commands to run the training task.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'python train.py',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'A command to run the training task.', 'type' => 'string', 'title' => '', 'example' => 'python train.py'],
'required' => true,
- 'backendName' => 'Command',
- 'itemName' => 'Command',
+ 'example' => '',
],
'MetricDefinitions' => [
- 'title' => 'The output metrics of the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The list of metric definitions for the training task.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/MetricDefinition',
- ],
- 'backendName' => 'MetricDefinitions',
- 'itemName' => 'MetricDefinitions',
+ 'items' => ['description' => 'A metric definition for the training task.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/MetricDefinition'],
+ 'example' => '',
],
'InputChannels' => [
- 'title' => 'The input for the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The list of input channels for the algorithm.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Channel',
- ],
+ 'items' => ['description' => 'Algorithm input channel. ', '$ref' => '#/components/schemas/Channel', 'title' => '', 'example' => ''],
'required' => false,
- 'backendName' => 'InputChannels',
- 'itemName' => 'InputChannels',
- ],
- 'SupportsDistributedTraining' => [
- 'title' => 'Indicates whether the algorithm support distributed training.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'SupportsDistributedTraining',
- ],
- 'Image' => [
- 'title' => 'The docker image used by the job of this algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0',
- 'backendName' => 'Image',
+ 'example' => '',
],
+ 'SupportsDistributedTraining' => ['title' => '', 'description' => 'Indicates whether distributed training is supported.', 'type' => 'boolean', 'example' => 'true'],
+ 'Image' => ['title' => '', 'description' => 'The training runtime image.', 'type' => 'string', 'example' => 'registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0', 'required' => true],
'SupportedInstanceTypes' => [
- 'title' => 'A list of ECS instances that the algorithm can use to submit training job.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'deprecated' => false,
+ 'description' => 'The list of supported elastic computing instance types for training.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'ecs.g6.2xlarge',
- 'extendType' => 'true',
- ],
- 'deprecated' => true,
- 'backendName' => 'SupportedInstanceTypes',
+ 'items' => ['description' => 'A supported elastic computing instance type for training.', 'type' => 'string', 'title' => '', 'example' => 'ecs.g6.2xlarge'],
+ 'example' => '',
],
'ComputeResource' => [
- 'title' => 'Compute resource',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The compute resource definition.',
+ 'title' => '',
'type' => 'object',
'properties' => [
'Policy' => [
- 'title' => 'Policy',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Computing resource configuration policy for the algorithm. ',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'Version' => [
- 'title' => 'Policy Version',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'V1',
- 'backendName' => 'Version',
- ],
- 'Value' => [
- 'title' => 'Policy Value',
- 'description' => 'Policy Value',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '0',
- 'backendName' => 'Value',
- ],
+ 'Version' => ['description' => 'Policy version. ', 'title' => '', 'type' => 'string', 'required' => true, 'example' => 'V1'],
+ 'Value' => ['description' => 'Policy content, serialized from a JSON array. ', 'title' => '', 'type' => 'string', 'required' => true, 'example' => '[{\\"MinTotalCount\\":1,\\"MaxTotalCount\\":4,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Count\\":1},\\"worker\\":{\\"Percentage\\":100}}},{\\"MinTotalCount\\":5,\\"MaxTotalCount\\":10,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Percentage\\":20},\\"worker\\":{\\"Percentage\\":80}}},{\\"MinTotalCount\\":11,\\"RolePolicies\\":{\\"chief\\":{\\"Count\\":1},\\"ps\\":{\\"Percentage\\":40},\\"worker\\":{\\"Percentage\\":60}}}]'],
],
'required' => true,
- 'backendName' => 'Policy',
+ 'example' => '',
],
],
- 'backendName' => 'ComputeResource',
- ],
- 'CodeDir' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'backendName' => 'CodeDir',
- '$ref' => '#/components/schemas/Location',
+ 'example' => '',
],
+ 'CodeDir' => ['description' => 'The custom code configuration.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/Location'],
'Customization' => [
- 'title' => 'Customization',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The custom configuration.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'CodeDir' => [
- 'title' => 'CodeDir',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'CodeDir',
- ],
+ 'CodeDir' => ['description' => 'Indicates whether custom-mounted code is used. ', 'title' => '', 'type' => 'boolean', 'example' => 'true'],
],
- 'backendName' => 'Customization',
+ 'example' => '',
],
'ResourceRequirements' => [
- 'title' => 'Resource requirements.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The resource requirements.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/ConditionExpression',
- ],
- 'backendName' => 'ResourceRequirements',
+ 'items' => ['description' => 'Resource requirement expression. ', '$ref' => '#/components/schemas/ConditionExpression', 'title' => '', 'example' => ''],
+ 'example' => '',
],
'ProgressDefinitions' => [
- 'title' => 'ProgressDefinitions',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'You can use this feature to monitor the training progress.',
+ 'title' => '',
'type' => 'object',
'properties' => [
'OverallProgress' => [
- 'title' => 'OverallProgress',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Monitors training progress.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'Description' => [
- 'title' => 'Description',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'training progress',
- 'backendName' => 'Description',
- ],
- 'Regex' => [
- 'title' => 'Regex',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '^[0-9]+([.][0-9]+){0,1}$',
- 'backendName' => 'Regex',
- ],
+ 'Description' => ['title' => '', 'description' => 'The description of the monitoring definition.', 'type' => 'string', 'example' => 'training progress'],
+ 'Regex' => ['title' => '', 'description' => 'The regular expression for monitoring.', 'type' => 'string', 'example' => '^[0-9]+([.][0-9]+){0,1}$'],
],
- 'backendName' => 'OverallProgress',
+ 'example' => '',
],
'RemainingTime' => [
- 'title' => 'RemainingTime',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The definition for monitoring the remaining training time.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'Description' => [
- 'title' => 'Description',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'training remaining time',
- 'backendName' => 'Description',
- ],
- 'Regex' => [
- 'title' => 'Regex',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '^[0-9]+([.][0-9]+){0,1}$',
- 'backendName' => 'Regex',
- ],
+ 'Description' => ['title' => '', 'description' => 'The description of the monitoring definition.', 'type' => 'string', 'example' => 'training remaining time'],
+ 'Regex' => ['title' => '', 'description' => 'The regular expression for monitoring.', 'type' => 'string', 'example' => '^[0-9]+([.][0-9]+){0,1}$'],
],
- 'backendName' => 'RemainingTime',
+ 'example' => '',
],
],
- 'backendName' => 'ProgressDefinitions',
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'Channel' => [
- 'title' => 'A named input/output for the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'AllocatedHyperNodeDetail' => [
'type' => 'object',
'properties' => [
- 'Description' => [
- 'title' => 'A brief description for the channel.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
+ 'HyperNodeName' => ['title' => '', 'description' => 'The name of the hyper node.', 'type' => 'string', 'example' => ''],
+ 'AllocatedNodeNum' => ['title' => '', 'description' => 'The number of allocated nodes in the hyper node.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'TotalNodeNum' => ['title' => '', 'description' => 'The total number of nodes in the hyper node.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'EmptyNodeNum' => ['title' => '', 'description' => 'The number of idle nodes in the hyper node.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ ],
+ 'description' => 'Describes the resource allocation status of a hyper node.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'AssignNodeSpec' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EnableAssignNode' => ['type' => 'boolean'],
+ 'NodeNames' => ['type' => 'string'],
+ 'AntiAffinityNodeNames' => ['type' => 'string'],
+ ],
+ ],
+ 'BindingPolicy' => [
+ 'title' => '',
+ 'description' => 'The policy for binding nodes.',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeSpecCount' => ['title' => '', 'description' => 'The number of nodes to be selected by the scheduler.', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
+ 'IncludeNodes' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The node ID to include.', 'type' => 'string', 'example' => 'lrnabc', 'title' => ''],
+ 'description' => 'A list of node IDs to include in the scheduling.',
'example' => '',
- 'backendName' => 'Description',
],
- 'Required' => [
- 'title' => 'Indicates whethe the channels is required.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'Required',
+ 'ExcludeNodes' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The node ID to exclude.', 'type' => 'string', 'example' => 'lrndef', 'title' => ''],
+ 'description' => 'A list of node IDs to exclude from scheduling.',
+ 'example' => '',
],
- 'Properties' => [
- 'title' => 'The properties of channel.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'object',
- 'example' => '{}',
- 'backendName' => 'Properties',
+ ],
+ 'example' => '',
+ ],
+ 'CacheInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'MountPoint' => ['type' => 'string'],
+ 'Port' => ['type' => 'string'],
+ ],
+ ],
+ 'CacheService' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CacheServiceId' => ['description' => 'The unique identifier of the CacheService.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'QuotaId' => ['description' => 'The ID of the resource quota associated with the CacheService.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'UserVpc' => ['description' => 'The configuration of the user\'s VPC where the CacheService is deployed.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/UserVpc'],
+ 'CacheInfos' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'An object containing details for a single cache instance.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/CacheInfo'],
+ 'description' => 'Information about each cache node in the service.',
+ 'title' => '',
+ 'example' => '',
],
- 'Name' => [
- 'title' => 'The name of channel.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Model',
- 'backendName' => 'Name',
+ 'SupportedClientQuotaIds' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'A supported client quota ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'A list of quota IDs for clients that can connect to this CacheService.',
+ 'title' => '',
+ 'example' => '',
],
+ 'TenantId' => ['description' => 'The ID of the tenant that owns the CacheService.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'UserId' => ['description' => 'The ID of the user associated with the CacheService.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'CreatedBy' => ['description' => 'The user or entity that created the resource.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'GmtCreated' => ['description' => 'The time (in UTC, ISO 8601 format) when the CacheService was created.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'Status' => ['description' => 'The current status of the CacheService. For example: `Creating`, `Available`, or `Deleting`.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'SupportRDMA' => ['description' => 'Indicates whether the CacheService supports RDMA.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'NetworkType' => ['description' => 'The network type of the CacheService. For example, `VPC`.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'ClusterId' => ['description' => 'The ID of the PAI cluster where the CacheService is deployed.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'IsSharded' => ['description' => 'Indicates whether the CacheService is sharded across multiple nodes.', 'type' => 'boolean', 'title' => '', 'example' => ''],
+ ],
+ 'description' => 'Represents a PAI CacheService instance, including its configuration and status.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'CapacityLock' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'id' => ['type' => 'string'],
+ 'gmtCreated' => ['type' => 'string'],
+ 'gmtModified' => ['type' => 'string'],
+ 'lockProvider' => ['type' => 'string'],
+ 'privatePoolId' => ['type' => 'string'],
+ 'tenantId' => ['type' => 'string'],
+ 'instanceType' => ['type' => 'string'],
+ 'zoneId' => ['type' => 'string'],
+ 'paymentType' => ['type' => 'string'],
+ 'status' => ['type' => 'string'],
+ 'lastSyncTime' => ['type' => 'string'],
+ 'lastReconcileAttemptTime' => ['type' => 'string'],
+ 'crsReservationId' => ['type' => 'string'],
+ 'expireTime' => ['type' => 'string'],
+ 'operator' => ['type' => 'string'],
+ 'description' => ['type' => 'string'],
+ 'requestedCount' => ['type' => 'integer', 'format' => 'int32'],
+ 'lockedCount' => ['type' => 'integer', 'format' => 'int32'],
+ 'usedCount' => ['type' => 'integer', 'format' => 'int32'],
+ 'availableCount' => ['type' => 'integer', 'format' => 'int32'],
+ ],
+ ],
+ 'Channel' => [
+ 'description' => 'Defines an input/output channel.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Description' => ['description' => 'Channel description. ', 'title' => '', 'type' => 'string', 'example' => '模型输出。'],
+ 'Required' => ['description' => 'Indicates whether the channel must be configured. ', 'title' => '', 'type' => 'boolean', 'example' => 'true'],
+ 'Properties' => ['description' => 'Storage configuration of the channel. ', 'title' => '', 'type' => 'object', 'example' => '{}'],
+ 'Name' => ['description' => 'Channel name. ', 'title' => '', 'type' => 'string', 'required' => true, 'example' => 'Model'],
'SupportedChannelTypes' => [
- 'title' => 'Supported Channel Types',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'List of storage classes supported by the channel. ',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'oss',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'Storage class. ', 'type' => 'string', 'example' => 'oss', 'title' => ''],
'required' => false,
- 'backendName' => 'SupportedChannelTypes',
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'ConditionExpression' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'Public',
+ 'ClusterSpec' => [
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => 'The key of the conditional expression.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'SupportedMachineTypes',
- 'backendName' => 'Key',
+ 'ClusterType' => ['type' => 'string'],
+ 'Image' => ['type' => 'string'],
+ 'DataSources' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/DataSource'],
],
- 'Operator' => [
- 'title' => 'The operator of the conditional expression',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'in',
- 'backendName' => 'Operator',
+ ],
+ ],
+ 'ComponentSpec' => [
+ 'title' => 'Defines how the training job of the algorithm run.',
+ 'type' => 'object',
+ 'properties' => [
+ 'OutputChannels' => [
+ 'title' => 'The outputs of the algorithm.',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Channel'],
+ ],
+ 'HyperParameters' => [
+ 'title' => 'The hype parameter used by the algorithm.',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/HyperParameterDefinition'],
+ ],
+ 'JobType' => ['title' => 'Job type of the training job while running the algorithm.', 'type' => 'string', 'required' => true],
+ 'Command' => ['title' => 'The command used for submit the job.', 'type' => 'string', 'required' => true],
+ 'MetricDefinitions' => [
+ 'title' => 'The output metrics of the algorithm.',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/MetricDefinition'],
+ ],
+ 'InputChannels' => [
+ 'title' => 'The input for the algorithm.',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Channel'],
+ 'required' => false,
+ ],
+ 'Image' => ['title' => 'The docker image used by the job of this algorithm.', 'type' => 'string', 'required' => true],
+ 'CodeDir' => ['$ref' => '#/components/schemas/Location'],
+ 'ResourceRequirements' => [
+ 'title' => 'Resource requirements.',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/ConditionExpression'],
],
+ ],
+ ],
+ 'ConditionExpression' => [
+ 'description' => 'Resource requirement configuration.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The type of required resource.', 'title' => '', 'type' => 'string', 'required' => true, 'example' => 'SupportedMachineTypes'],
+ 'Operator' => ['description' => 'The criterion for evaluation.', 'title' => '', 'type' => 'string', 'required' => true, 'example' => 'in'],
'Values' => [
- 'title' => 'The values of the conditional expression.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'List of resource values.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'ecs.gn5-c4g1.xlarge',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'Resource value.', 'type' => 'string', 'example' => 'ecs.gn5-c4g1.xlarge', 'title' => ''],
'required' => true,
- 'backendName' => 'Values',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
+ ],
+ 'DataSource' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DataSourceId' => ['type' => 'string'],
+ 'MountPath' => ['type' => 'string'],
+ 'Uri' => ['type' => 'string'],
+ ],
+ ],
+ 'EcsSpec' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceType' => ['type' => 'string', 'backendName' => 'InstanceType', 'description' => '', 'title' => '', 'example' => ''],
+ 'Cpu' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'Cpu', 'description' => '', 'title' => '', 'example' => ''],
+ 'Gpu' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'Gpu', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuType' => ['type' => 'string', 'backendName' => 'GpuType', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuTypeAlias' => ['type' => 'string', 'backendName' => 'GpuTypeAlias', 'description' => '', 'title' => '', 'example' => ''],
+ 'Memory' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'Memory', 'description' => '', 'title' => '', 'example' => ''],
+ 'SupportRDMA' => ['type' => 'boolean', 'backendName' => 'SupportRDMA', 'description' => '', 'title' => '', 'example' => ''],
+ 'EriQuantity' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'EriQuantity', 'description' => '', 'title' => '', 'example' => ''],
+ 'SupportSetNetworkCardIndex' => ['type' => 'boolean', 'backendName' => 'SupportSetNetworkCardIndex', 'description' => '', 'title' => '', 'example' => ''],
+ 'AcceleratorType' => ['type' => 'string', 'backendName' => 'AcceleratorType', 'description' => '', 'title' => '', 'example' => ''],
+ 'PlannedCpu' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'PlannedCpu', 'description' => '', 'title' => '', 'example' => ''],
+ 'PlannedMemory' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'PlannedMemory', 'description' => '', 'title' => '', 'example' => ''],
+ 'ResourceType' => ['type' => 'string', 'backendName' => 'ResourceType', 'description' => '', 'title' => '', 'example' => ''],
+ 'EcsImageId' => ['type' => 'string', 'backendName' => 'EcsImageId', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuGUSpec' => ['type' => 'string', 'backendName' => 'GpuGUSpec', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuMemory' => ['type' => 'integer', 'format' => 'int32', 'backendName' => 'GpuMemory', 'description' => '', 'title' => '', 'example' => ''],
+ 'MachineModel' => ['type' => 'string', 'backendName' => 'MachineModel', 'description' => '', 'title' => '', 'example' => ''],
+ 'SupportGPUShare' => ['type' => 'boolean', 'backendName' => 'SupportGPUShare', 'description' => '', 'title' => '', 'example' => ''],
+ 'NetworkMode' => ['type' => 'string', 'backendName' => 'NetworkMode', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'EniCacheConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Enabled' => ['type' => 'boolean'],
+ 'CachePoolSize' => ['type' => 'integer', 'format' => 'int32', 'maximum' => '255'],
+ ],
+ ],
+ 'Event' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ObjectId' => ['description' => 'The object ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'TriggeredBy' => ['description' => 'The user or system that triggered the event.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'TriggerUserId' => ['description' => 'The trigger user ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'EventId' => ['description' => 'The unique ID of the event.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'EventType' => ['description' => 'The event type.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'ObjectType' => ['description' => 'The object type.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'TriggerTenantId' => ['description' => 'The trigger tenant ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'TriggerTime' => ['description' => 'The time the event was triggered, in UTC and ISO 8601 format.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'IsTruncated' => ['description' => 'Indicates if the returned data is incomplete.', 'type' => 'boolean', 'title' => '', 'example' => ''],
+ 'Content' => ['description' => 'The event content.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'Function' => ['description' => 'The function associated with the event.', 'type' => 'string', 'title' => '', 'example' => ''],
+ ],
+ 'description' => 'A container for the event details.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Features' => [
+ 'title' => '灰度功能',
+ 'description' => '灰度功能',
+ 'type' => 'object',
+ 'properties' => [
+ 'Quota' => [
+ 'title' => 'Quota功能',
+ 'type' => 'object',
+ 'properties' => [
+ 'IsEnabled' => ['title' => '是否开启', 'type' => 'boolean', 'example' => 'true'],
+ ],
],
],
],
'ForwardInfo' => [
- 'title' => 'User VPC Forward Info',
+ 'title' => '',
'description' => 'VPC Forward Info',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'NatGatewayId' => [
- 'title' => 'NAT Gateway ID',
- 'description' => 'NAT Gateway ID',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'nat-7j4mka9wguxj',
- 'backendName' => 'NatGatewayId',
- ],
- 'EipAllocationId' => [
- 'title' => 'EIP Allocation ID',
- 'description' => 'EIP Allocation ID',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'eip-h29r78ieufbih',
- 'backendName' => 'EipAllocationId',
- ],
+ 'NatGatewayId' => ['title' => '', 'description' => 'NAT Gateway ID', 'type' => 'string', 'example' => 'nat-7j4mka9wguxj'],
+ 'EipAllocationId' => ['title' => '', 'description' => 'EIP Allocation ID', 'type' => 'string', 'example' => 'eip-h29r78ieufbih'],
],
+ 'example' => '',
],
'GPUInfo' => [
+ 'description' => 'PAI resource group ECS specification ',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'count' => ['description' => 'Quantity ', 'title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'type' => ['description' => 'Type ', 'title' => '', 'type' => 'string', 'example' => 'T4'],
+ ],
+ 'example' => '',
+ ],
+ 'GPUMetric' => [
'title' => 'A short description of struct',
- 'description' => 'pai resource group ecs spec',
- 'visibility' => 'Public',
+ 'description' => 'GPU指标',
'type' => 'object',
'properties' => [
- 'count' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'count',
- ],
- 'type' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'T4',
- 'backendName' => 'type',
- ],
+ 'Index' => ['title' => 'GPU编号', 'type' => 'integer', 'format' => 'int64'],
+ 'Model' => ['title' => '显卡型号', 'type' => 'string'],
+ 'UsageRate' => ['title' => 'GPU使用率', 'type' => 'number', 'format' => 'float'],
+ 'Status' => ['title' => '卡状态', 'type' => 'integer', 'format' => 'int64', 'example' => '0:异常;1:正常'],
],
],
'HyperParameterDefinition' => [
- 'title' => 'Definition of the input hyper parameter for the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The hyperparameter definition.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'DefaultValue' => [
- 'title' => 'Default value for the parameter.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'DefaultValue',
- ],
- 'Type' => [
- 'title' => 'Type of the parameter.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Integer',
- 'backendName' => 'Type',
- ],
- 'Description' => [
- 'title' => 'Description for the parameter.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '',
- 'backendName' => 'Description',
- ],
- 'Required' => [
- 'title' => 'Indicates whether the parameter is required',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'Required',
- ],
- 'Name' => [
- 'title' => 'Name of the parameter.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'batch_size',
- 'backendName' => 'Name',
- ],
- 'Range' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'backendName' => 'Range',
- '$ref' => '#/components/schemas/HyperParameterRange',
- ],
- 'DisplayName' => [
- 'title' => 'Display name of parameter.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Batch Size',
- 'backendName' => 'DisplayName',
- ],
+ 'DefaultValue' => ['title' => '', 'description' => 'The default value of the hyperparameter.', 'type' => 'string', 'example' => '0'],
+ 'Type' => ['title' => '', 'description' => 'The type of the hyperparameter.', 'type' => 'string', 'example' => 'Integer', 'required' => true],
+ 'Description' => ['title' => '', 'description' => 'The description of the hyperparameter.', 'type' => 'string', 'example' => '参数定义了训练的batch_size。'],
+ 'Required' => ['title' => '', 'description' => 'Specifies whether the parameter is required.', 'type' => 'boolean', 'example' => 'true'],
+ 'Name' => ['title' => '', 'description' => 'The name of the parameter.', 'type' => 'string', 'example' => 'batch_size', 'required' => true],
+ 'Range' => ['description' => 'The value range of the parameter.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/HyperParameterRange'],
+ 'DisplayName' => ['title' => '', 'description' => 'The display name of the parameter.', 'type' => 'string', 'example' => 'Batch Size'],
],
+ 'example' => '',
],
'HyperParameterRange' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Hyperparameter value range.',
+ 'title' => '',
'type' => 'object',
'properties' => [
'Enum' => [
- 'title' => 'Enumerated values for hyperparameters.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Hyperparameter enumeration list.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'extendType' => 'true',
- ],
+ 'items' => ['description' => 'Enumeration value.', 'type' => 'string', 'title' => '', 'example' => '0'],
'required' => false,
- 'backendName' => 'Enum',
- ],
- 'MinLength' => [
- 'title' => 'Minimum length of string.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'MinLength',
- ],
- 'MaxLength' => [
- 'title' => 'Maximum length of string.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '30',
- 'backendName' => 'MaxLength',
- ],
- 'Minimum' => [
- 'title' => 'Minimum value.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'Minimum',
- ],
- 'Maximum' => [
- 'title' => 'Maximum value.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '10',
- 'backendName' => 'Maximum',
- ],
- 'ExclusiveMinimum' => [
- 'title' => 'Whether to exclude minimum values.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'ExclusiveMinimum',
- ],
- 'ExclusiveMaximum' => [
- 'title' => 'Whether to exclude maximum values',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'ExclusiveMaximum',
- ],
- 'Pattern' => [
- 'title' => 'Value Regex Pattern.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '^\\+?[1-9][0-9]*$',
- 'backendName' => 'Pattern',
+ 'example' => '',
],
+ 'MinLength' => ['title' => '', 'description' => 'Minimum length.', 'type' => 'integer', 'example' => '1', 'format' => 'int64'],
+ 'MaxLength' => ['title' => '', 'description' => 'Maximum length.', 'type' => 'integer', 'example' => '30', 'format' => 'int64'],
+ 'Minimum' => ['title' => '', 'description' => 'Minimum value.', 'type' => 'string', 'example' => '0'],
+ 'Maximum' => ['title' => '', 'description' => 'Maximum value.', 'type' => 'string', 'example' => '10'],
+ 'ExclusiveMinimum' => ['title' => '', 'description' => 'Whether the minimum value is exclusive.', 'type' => 'boolean', 'example' => 'true'],
+ 'ExclusiveMaximum' => ['title' => '', 'description' => 'Whether the maximum value is exclusive.', 'type' => 'boolean', 'example' => 'true'],
+ 'Pattern' => ['title' => '', 'description' => 'Regular expression.', 'type' => 'string', 'example' => '^\\+?[1-9][0-9]*$'],
],
+ 'example' => '',
],
'JobSettings' => [
+ 'description' => 'Additional job parameter settings.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'BusinessUserId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '166924',
- 'backendName' => 'BusinessUserId',
- ],
- 'Caller' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'SilkFlow',
- 'backendName' => 'Caller',
- ],
+ 'BusinessUserId' => ['title' => '', 'description' => 'User ID associated with the job.', 'type' => 'string', 'example' => '166924'],
+ 'Caller' => ['title' => '', 'description' => 'Caller.', 'type' => 'string', 'example' => 'SilkFlow'],
'Tags' => [
+ 'description' => 'Custom tags.',
+ 'additionalProperties' => ['description' => 'Custom tags. ', 'type' => 'string', 'title' => '', 'example' => ''],
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
- 'additionalProperties' => [
- 'visibility' => 'Public',
- 'type' => 'string',
- ],
- 'backendName' => 'Tags',
- ],
- 'PipelineId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'pid-123456',
- 'backendName' => 'PipelineId',
- ],
- 'EnableTideResource' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'EnableTideResource',
- ],
- 'EnableErrorMonitoringInAIMaster' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'false',
- 'backendName' => 'EnableErrorMonitoringInAIMaster',
- ],
- 'ErrorMonitoringArgs' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '--enable-log-hang-detection true',
- 'backendName' => 'ErrorMonitoringArgs',
- ],
- 'EnableRDMA' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'EnableRDMA',
- ],
- 'EnableOssAppend' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'EnableOssAppend',
- ],
- 'OversoldType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'AcceptQuotaOverSold',
- 'backendName' => 'OversoldType',
- ],
- 'AdvancedSettings' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'object',
- 'backendName' => 'AdvancedSettings',
- ],
- 'Driver' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '535.54.03',
- 'backendName' => 'Driver',
- ],
- 'EnableSanityCheck' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'EnableSanityCheck',
- ],
- 'SanityCheckArgs' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai',
- 'backendName' => 'SanityCheckArgs',
- ],
- 'JobReservedMinutes' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '30',
- 'backendName' => 'JobReservedMinutes',
+ 'example' => '',
],
+ 'PipelineId' => ['title' => '', 'description' => 'Workflow ID.', 'type' => 'string', 'example' => 'pid-123456'],
+ 'EnableTideResource' => ['title' => '', 'description' => 'Enable the job to use tide resources.', 'type' => 'boolean', 'example' => 'true'],
+ 'EnableErrorMonitoringInAIMaster' => ['title' => '', 'description' => 'Enable job fault tolerance monitoring.', 'type' => 'boolean', 'example' => 'false'],
+ 'ErrorMonitoringArgs' => ['title' => '', 'description' => 'Specify configuration parameters for fault tolerance monitoring, such as whether to enable log hang-based detection.', 'type' => 'string', 'example' => '--enable-log-hang-detection true'],
+ 'EnableRDMA' => ['title' => '', 'description' => 'Enable the job to use RDMA.', 'type' => 'boolean', 'example' => 'true'],
+ 'EnableOssAppend' => ['title' => '', 'description' => 'Enable OSS append writes.', 'type' => 'boolean', 'example' => 'true'],
+ 'OversoldType' => ['title' => '', 'description' => 'Job\'s oversold resource usage method (not accepted, accepted, or only accepted).', 'type' => 'string', 'example' => 'AcceptQuotaOverSold'],
+ 'AdvancedSettings' => ['title' => '', 'description' => 'Additional advanced parameter settings.', 'type' => 'object', 'example' => ''],
+ 'Driver' => ['title' => '', 'description' => 'NVIDIA driver configuration.', 'type' => 'string', 'example' => '535.54.03'],
+ 'EnableSanityCheck' => ['title' => '', 'description' => 'Enable computing power health check for the job.', 'type' => 'boolean', 'example' => 'true'],
+ 'SanityCheckArgs' => ['title' => '', 'description' => 'Configuration parameters for computing power health check.', 'type' => 'string', 'example' => '--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai'],
+ 'JobReservedMinutes' => ['title' => '', 'description' => 'Duration in minutes to retain the job after completion.', 'type' => 'integer', 'example' => '30', 'format' => 'int32'],
'JobReservedPolicy' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Policy for retaining the job after completion.',
'type' => 'string',
'example' => 'Always',
- 'backendName' => 'JobReservedPolicy',
- 'enum' => [
- 'Always',
- 'OnFailure',
- 'OnSucceed',
- ],
+ 'enum' => ['Always', 'OnFailure', 'OnSucceed'],
],
],
- 'parseType' => 'struct',
+ 'example' => '',
],
- 'Label' => [
+ 'JobViewMetric' => [
'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'public',
+ 'description' => 'resource group metric',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => 'Key of label.',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'testAccTag',
- 'backendName' => 'Key',
- ],
- 'Value' => [
- 'title' => 'Value of label.',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'nihao',
- 'backendName' => 'Value',
+ 'ResourceGroupID' => ['title' => '资源组ID', 'type' => 'string', 'example' => 'rg17tmvwiokhzaxg'],
+ 'TotalCPU' => ['title' => '总的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'CPUUsageRate' => ['title' => 'CPU使用率', 'type' => 'string'],
+ 'GPUUsageRate' => ['title' => 'GPU使用率', 'type' => 'string'],
+ 'TotalMemory' => ['title' => '总内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '总的GPU卡数', 'type' => 'integer', 'format' => 'int32'],
+ 'MemoryUsageRate' => ['title' => '内存使用率', 'type' => 'string'],
+ 'RequestCPU' => ['title' => '占用的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestGPU' => ['title' => '占用的GPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestMemory' => ['title' => '占用的内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '网络写入速率', 'type' => 'string'],
+ 'NetworkOutputRate' => ['title' => '网络输出速率', 'type' => 'string'],
+ 'DiskReadRate' => ['title' => '磁盘读取速率', 'type' => 'string'],
+ 'DiskWriteRate' => ['title' => '磁盘写入速率', 'type' => 'string'],
+ 'JobType' => ['title' => '任务类型dlc,dsw /etc', 'type' => 'string'],
+ 'UserId' => ['title' => '用户ID', 'type' => 'string'],
+ 'NodeNames' => [
+ 'title' => '节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
+ 'JobId' => ['title' => '任务ID', 'type' => 'string'],
],
],
+ 'Label' => [
+ 'description' => 'label struct ',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The key of the label. ', 'title' => '', 'type' => 'string', 'example' => 'testAccTag'],
+ 'Value' => ['description' => 'The value of the label. ', 'title' => '', 'type' => 'string', 'example' => 'nihao'],
+ ],
+ 'example' => '',
+ ],
'Location' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Code configuration.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'LocationType' => [
- 'title' => 'Location type, such as OSS,Git.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'OSS',
- 'backendName' => 'LocationType',
- ],
- 'LocationValue' => [
- 'title' => 'Location value.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'object',
- 'example' => 'oss://${bucket_name}.oss-${region}.aliyuncs.com/oss/location/path/',
- 'backendName' => 'LocationValue',
- ],
+ 'LocationType' => ['description' => 'The code location type. Valid values: OSS and NAS.', 'title' => '', 'type' => 'string', 'example' => 'OSS'],
+ 'LocationValue' => ['description' => 'The code path.', 'title' => '', 'type' => 'object', 'example' => 'oss://${bucket_name}.oss-${region}.aliyuncs.com/oss/location/path/'],
],
+ 'example' => '',
],
'MachineGroup' => [
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Machine group information',
'type' => 'object',
'properties' => [
- 'MachineGroupID' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'mg1',
- 'backendName' => 'MachineGroupID',
- ],
- 'ResourceGroupID' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- 'backendName' => 'ResourceGroupID',
- ],
- 'EcsCount' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- 'backendName' => 'EcsCount',
- ],
- 'PaymentDuration' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2',
- 'backendName' => 'PaymentDuration',
- ],
- 'EcsSpec' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'ecs.c6.large',
- 'backendName' => 'EcsSpec',
- ],
- 'GmtCreatedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- 'backendName' => 'GmtCreatedTime',
- ],
- 'GmtExpiredTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-08-22T00:00:00Z'."\n",
- 'backendName' => 'GmtExpiredTime',
- ],
- 'GmtModifiedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- 'backendName' => 'GmtModifiedTime',
- ],
- 'GmtStartedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- 'backendName' => 'GmtStartedTime',
- ],
- 'PaymentType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'PREPAY',
- 'backendName' => 'PaymentType',
- ],
- 'PaymentDurationUnit' => [
- 'title' => 'region ID',
- 'description' => 'region ID',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Monthly',
- 'backendName' => 'PaymentDurationUnit',
- ],
- 'Status' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Success',
- 'backendName' => 'Status',
- ],
- 'ReasonMessage' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '“”',
- 'backendName' => 'ReasonMessage',
- ],
- 'ReasonCode' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '“”',
- 'backendName' => 'ReasonCode',
- ],
- 'CreatorID' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '1612285282502324',
- 'backendName' => 'CreatorID',
- ],
+ 'Status' => ['description' => 'Machine group status ', 'title' => '', 'type' => 'string', 'example' => 'Success'],
+ 'EcsCount' => ['description' => 'Resource count ', 'title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'GmtStartedTime' => ['description' => 'Start At ', 'title' => '', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'ResourceGroupID' => ['description' => 'Resource group ID ', 'title' => '', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2'],
+ 'GmtCreatedTime' => ['description' => 'Creation Time ', 'title' => '', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'CreatorID' => ['description' => 'Machine group creator ID ', 'title' => '', 'type' => 'string', 'example' => '1612285282502324'],
+ 'ReasonMessage' => ['description' => 'Machine group fault message ', 'title' => '', 'type' => 'string', 'example' => '“”'],
+ 'PaymentDurationUnit' => ['description' => 'Region ID ', 'title' => '', 'type' => 'string', 'example' => 'Monthly'],
+ 'EcsSpec' => ['description' => 'ECS specification ', 'title' => '', 'type' => 'string', 'example' => 'ecs.c6.large'],
'SupportedDrivers' => [
+ 'description' => 'List of NVIDIA GPU driver versions supported by the machine group ',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '470.199.02',
- 'extendType' => 'true',
- ],
- 'backendName' => 'SupportedDrivers',
- 'itemName' => 'DriverVersions',
- ],
- 'DefaultDriver' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '470.199.02',
- 'backendName' => 'DefaultDriver',
- ],
- 'OrderInstanceId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '“”',
- 'backendName' => 'OrderInstanceId',
+ 'items' => ['description' => 'Driver version number ', 'type' => 'string', 'example' => '470.199.02', 'title' => ''],
+ 'example' => '',
],
+ 'PaymentDuration' => ['description' => 'Duration ', 'title' => '', 'type' => 'string', 'example' => '2'],
+ 'ReasonCode' => ['description' => 'Machine group error code ', 'title' => '', 'type' => 'string', 'example' => '“”'],
+ 'GmtModifiedTime' => ['description' => 'Update Time ', 'title' => '', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'DiskCapacity' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'GmtExpiredTime' => ['description' => 'Expiration Time ', 'title' => '', 'type' => 'string', 'example' => '2023-08-22T00:00:00Z'."\n"],
+ 'OrderInstanceId' => ['description' => 'Order ID ', 'title' => '', 'type' => 'string', 'example' => '“”'],
+ 'DefaultDriver' => ['description' => 'Default driver supported by the machine group ', 'title' => '', 'type' => 'string', 'example' => '470.199.02'],
+ 'MachineGroupID' => ['description' => 'Machine Group ID ', 'title' => '', 'type' => 'string', 'example' => 'mg1'],
+ 'PaymentType' => ['description' => 'Payment type ', 'title' => '', 'type' => 'string', 'example' => 'PREPAY'],
+ 'DiskPL' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Cpu' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'Gpu' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuMemory' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'GpuType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Memory' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'ResourceType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AllocatableCpu' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'AllocatableMemory' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'SystemReservedCpu' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'SystemReservedMemory' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
'Metric' => [
+ 'description' => 'Metric data for resource groups.',
'title' => '',
- 'description' => 'resource group metric',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'Time' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => 'rg17tmvwiokhzaxg',
- 'backendName' => 'Time',
- ],
- 'Value' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '23000',
- 'backendName' => 'Value',
- ],
+ 'Time' => ['description' => 'The UNIX timestamp.', 'title' => '', 'type' => 'integer', 'format' => 'int64', 'example' => 'rg17tmvwiokh****'],
+ 'Value' => ['description' => 'The metric value.', 'title' => '', 'type' => 'string', 'example' => '23000'],
],
+ 'example' => '',
],
'MetricDefinition' => [
- 'title' => 'Describe the output metric of the algorithm.',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'The definition for collecting training metrics.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'Description' => [
- 'title' => 'A brief description for the metric.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '',
- 'backendName' => 'Description',
- ],
- 'Regex' => [
- 'title' => 'Regex use to match the metrics from job log.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => '.*train:loss=([-+]?[0-9]*\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*',
- 'backendName' => 'Regex',
- ],
- 'Name' => [
- 'title' => 'The name of the metric.',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'loss',
- 'backendName' => 'Name',
- ],
+ 'Description' => ['title' => '', 'description' => 'The description of the metric.', 'type' => 'string', 'example' => '训练损失函数。'],
+ 'Regex' => ['title' => '', 'description' => 'The regular expression to collect metrics from logs.', 'type' => 'string', 'example' => '.*train:loss=([-+]?[0-9]*\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*', 'required' => true],
+ 'Name' => ['title' => '', 'description' => 'The name of the metric.', 'type' => 'string', 'example' => 'loss', 'required' => true],
],
+ 'example' => '',
],
'Node' => [
+ 'description' => 'The details of a resource node.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'CreatorId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '281044699048527748',
- 'backendName' => 'CreatorId',
- ],
- 'NodeName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'lingjxxxx',
- 'backendName' => 'NodeName',
- ],
- 'NodeType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'ecs.c8i.xlarge',
- 'backendName' => 'NodeType',
- ],
- 'AcceleratorType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'CPU',
- 'backendName' => 'AcceleratorType',
- ],
- 'CPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '4',
- 'backendName' => 'CPU',
- ],
- 'Memory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '8',
- 'backendName' => 'Memory',
- ],
- 'GPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'GPU',
- ],
- 'GPUType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'GPUType',
- ],
- 'NodeStatus' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Ready',
- 'backendName' => 'NodeStatus',
- ],
- 'ReasonCode' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'ReasonCode',
- ],
- 'ReasonMessage' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'ReasonMessage',
- ],
- 'OrderStatus' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'Ready',
- 'backendName' => 'OrderStatus',
- ],
- 'ResourceGroupId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- 'backendName' => 'ResourceGroupId',
- ],
- 'ResourceGroupName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'test',
- 'backendName' => 'ResourceGroupName',
- ],
- 'MachineGroupId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'mg1234456',
- 'backendName' => 'MachineGroupId',
- ],
- 'GmtCreateTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- 'backendName' => 'GmtCreateTime',
- ],
- 'GmtModifiedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- 'backendName' => 'GmtModifiedTime',
- ],
- 'GmtExpiredTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2025-06-22T00:00:00Z'."\n",
- 'backendName' => 'GmtExpiredTime',
- ],
- 'IsBound' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'false',
- 'backendName' => 'IsBound',
- ],
+ 'CreatorId' => ['title' => '', 'description' => 'The ID of the user who created the resource node.', 'type' => 'string', 'example' => '281044699048527748'],
+ 'NodeName' => ['title' => '', 'description' => 'The name of the resource node.', 'type' => 'string', 'example' => 'lingjxxxx'],
+ 'NodeType' => ['title' => '', 'description' => 'The instance type of the resource node.', 'type' => 'string', 'example' => 'ecs.c8i.xlarge'],
+ 'AcceleratorType' => ['title' => '', 'description' => 'The accelerator type of the resource node instance, such as CPU or GPU.', 'type' => 'string', 'example' => 'CPU'],
+ 'CPU' => ['title' => '', 'description' => 'The number of CPU cores.', 'type' => 'string', 'example' => '4'],
+ 'Memory' => ['title' => '', 'description' => 'The memory size in GiB.', 'type' => 'string', 'example' => '8'],
+ 'GPU' => ['title' => '', 'description' => 'The number of GPUs.', 'type' => 'string', 'example' => '0'],
+ 'GPUType' => ['title' => '', 'description' => 'The GPU model.', 'type' => 'string', 'example' => '""'],
+ 'GPUMemory' => ['title' => '', 'description' => 'The GPU memory size in GiB.', 'type' => 'string', 'example' => ''],
+ 'NodeStatus' => ['title' => '', 'description' => 'The status of the resource node.', 'type' => 'string', 'example' => 'Ready'],
+ 'ReasonCode' => ['title' => '', 'description' => 'The error code.', 'type' => 'string', 'example' => '""'],
+ 'ReasonMessage' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '""'],
+ 'OrderStatus' => ['title' => '', 'description' => 'The order status of the resource node.', 'type' => 'string', 'example' => 'Ready'],
+ 'ResourceGroupId' => ['title' => '', 'description' => 'The ID of the resource group to which the resource node belongs.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2'],
+ 'ResourceGroupName' => ['title' => '', 'description' => 'The name of the resource group to which the resource node belongs.', 'type' => 'string', 'example' => 'test'],
+ 'MachineGroupId' => ['title' => '', 'description' => 'The ID of the machine group to which the resource node belongs.', 'type' => 'string', 'example' => 'mg1234456'],
+ 'GmtCreateTime' => ['title' => '', 'description' => 'The time when the resource node was created.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'deprecated' => true],
+ 'GmtCreatedTime' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'GmtModifiedTime' => ['title' => '', 'description' => 'The time when the resource node was last modified.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z'],
+ 'GmtExpiredTime' => ['title' => '', 'description' => 'The time when the resource node expires.', 'type' => 'string', 'example' => '2025-06-22T00:00:00Z'."\n"],
+ 'IsBound' => ['title' => '', 'description' => 'Indicates whether the node is bound to a quota.', 'type' => 'boolean', 'example' => 'false'],
'BoundQuotas' => [
+ 'description' => 'The list of quotas that are bound to the node.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/QuotaIdName',
- ],
- 'backendName' => 'BoundQuotas',
- ],
- 'RequestCPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '4',
- 'backendName' => 'RequestCPU',
- ],
- 'RequestMemory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '8',
- 'backendName' => 'RequestMemory',
- ],
- 'RequestGPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'RequestGPU',
- ],
- 'LimitCPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '4',
- 'backendName' => 'LimitCPU',
- ],
- 'LimitMemory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '8',
- 'backendName' => 'LimitMemory',
- ],
- 'LimitGPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '0',
- 'backendName' => 'LimitGPU',
- ],
- 'PodNum' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- 'backendName' => 'PodNum',
+ 'items' => ['description' => 'The details of a quota that is bound to the node.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/QuotaIdName'],
+ 'example' => '',
],
- 'WorkloadNum' => [
+ 'RequestCPU' => ['title' => '', 'description' => 'The number of requested CPU cores.', 'type' => 'string', 'example' => '4'],
+ 'RequestMemory' => ['title' => '', 'description' => 'The requested memory size in GiB.', 'type' => 'string', 'example' => '8'],
+ 'RequestGPU' => ['title' => '', 'description' => 'The number of requested GPUs.', 'type' => 'string', 'example' => '0'],
+ 'LimitCPU' => ['title' => '', 'description' => 'The maximum number of CPU cores.', 'type' => 'string', 'example' => '4'],
+ 'LimitMemory' => ['title' => '', 'description' => 'The maximum memory size in GiB.', 'type' => 'string', 'example' => '8'],
+ 'LimitGPU' => ['title' => '', 'description' => 'The maximum number of GPUs.', 'type' => 'string', 'example' => '0'],
+ 'PodNum' => ['title' => '', 'description' => 'The number of pods on the node.', 'type' => 'integer', 'example' => '2', 'format' => 'int64'],
+ 'WorkloadNum' => ['title' => '', 'description' => 'The number of workloads on the node.', 'type' => 'integer', 'example' => '2', 'format' => 'int64'],
+ 'Users' => [
+ 'description' => 'The user information.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- 'backendName' => 'WorkloadNum',
+ 'type' => 'array',
+ 'items' => ['description' => 'The details of a user who is running workloads on the node.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/UserInfo'],
+ 'example' => '',
],
- 'Users' => [
+ 'HyperZone' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AvailabilityZone' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AllocatableCPU' => ['title' => '', 'description' => 'The number of allocatable CPU cores.', 'type' => 'string', 'example' => ''],
+ 'AllocatableMemory' => ['title' => '', 'description' => 'The amount of allocatable memory in GiB.', 'type' => 'string', 'example' => ''],
+ 'SystemReservedCPU' => ['title' => '', 'description' => 'The number of CPU cores that are reserved for the system.', 'type' => 'string', 'example' => ''],
+ 'SystemReservedMemory' => ['title' => '', 'description' => 'The amount of memory that is reserved for the system in GiB.', 'type' => 'string', 'example' => ''],
+ 'AncestorQuotaWorkloadNum' => ['type' => 'integer', 'description' => '', 'title' => '', 'example' => '', 'format' => 'int64'],
+ 'SelfQuotaWorkloadNum' => ['type' => 'integer', 'description' => '', 'title' => '', 'example' => '', 'format' => 'int64'],
+ 'DescendantQuotaWorkloadNum' => ['type' => 'integer', 'description' => '', 'title' => '', 'example' => '', 'format' => 'int64'],
+ 'DiskPL' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'DiskCapacity' => ['type' => 'integer', 'description' => '', 'title' => '', 'example' => '', 'format' => 'int64'],
+ 'SubNodes' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/UserInfo',
- ],
- 'backendName' => 'Users',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
'NodeCordonParameters' => [
- 'visibility' => 'Public',
+ 'description' => 'Parameter settings for cordoning a node.',
'type' => 'object',
'properties' => [
- 'QuotaId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'QuotaId',
- ],
- 'WorkspaceId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'WorkspaceId',
- ],
- 'Comment' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'Comment',
- ],
+ 'QuotaId' => ['description' => 'Quota ID, used when disabling edge zone scheduling in a workspace ', 'title' => '', 'type' => 'string', 'example' => 'quota1dkoutl3tj1'],
+ 'WorkspaceId' => ['description' => 'Workspace ID, used when disabling edge zone scheduling in a workspace ', 'title' => '', 'type' => 'string', 'example' => '12345'],
+ 'Comment' => ['description' => 'User-configurable reason for disabling scheduling ', 'title' => '', 'type' => 'string', 'example' => 'this is a comment'],
],
+ 'title' => '',
+ 'example' => '',
],
'NodeDrainParameters' => [
- 'visibility' => 'Public',
+ 'description' => 'Parameters for the node drain operation.',
'type' => 'object',
'properties' => [
'PodNames' => [
+ 'description' => 'Delete specified pods ',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'PodNames',
+ 'items' => ['description' => 'Pod name ', 'title' => '', 'type' => 'string', 'example' => 'dlcxxxx-master-0'],
+ 'example' => '',
],
'PodFromSubProducts' => [
+ 'description' => 'Delete pods of the specified job types ',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'PodFromSubProducts',
+ 'items' => ['description' => 'Job Type: dlc/dsw/eas/tensorboard ', 'title' => '', 'type' => 'string', 'example' => 'dlc'],
+ 'example' => '',
+ ],
+ 'Force' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NodeGPUMetric' => [
+ 'title' => '节点GPU指标',
+ 'description' => '节点GPU指标',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeId' => ['title' => '节点ID', 'type' => 'string'],
+ 'NodeType' => ['title' => '节点类型', 'type' => 'string'],
+ 'GPUType' => ['title' => 'GPU类型', 'type' => 'string'],
+ 'GPUCount' => ['title' => 'GPU数量', 'type' => 'integer', 'format' => 'int32'],
+ 'AcceleratorType' => ['title' => '显卡类型', 'type' => 'string'],
+ 'TotalMemory' => ['title' => '总内存', 'type' => 'number', 'format' => 'float'],
+ 'UsedMemory' => ['title' => '已用内存', 'type' => 'number', 'format' => 'float'],
+ 'MemoryUtil' => ['title' => '内存使用率', 'type' => 'number', 'format' => 'float'],
+ 'GPUMetrics' => [
+ 'title' => 'GPU指标',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/GPUMetric'],
],
],
],
'NodeMetric' => [
+ 'description' => 'Resource group node metrics.',
'title' => '',
- 'description' => 'resource group metric',
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'NodeID' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '-i121212node',
- 'backendName' => 'NodeID',
- ],
+ 'NodeID' => ['description' => 'Edge zone ID. ', 'title' => '', 'type' => 'string', 'example' => '-i12****node'],
'Metrics' => [
+ 'description' => 'Performance Metrics. ',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Metric',
- ],
+ 'items' => ['description' => 'Metric information. ', '$ref' => '#/components/schemas/Metric', 'title' => '', 'example' => ''],
'example' => '23000',
- 'backendName' => 'Metrics',
- ],
- 'GPUType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'GU108',
- 'backendName' => 'GPUType',
],
+ 'GPUType' => ['description' => 'The type of GPU. ', 'title' => '', 'type' => 'string', 'example' => 'GU108'],
],
+ 'example' => '',
],
'NodeOperationParameters' => [
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'CordonParameters' => [
- 'visibility' => 'Public',
- 'backendName' => 'CordonParameters',
- '$ref' => '#/components/schemas/NodeCordonParameters',
- ],
- 'UncordonParameters' => [
- 'visibility' => 'Public',
- 'backendName' => 'UncordonParameters',
- '$ref' => '#/components/schemas/NodeUncordonParameters',
- ],
- 'DrainParameters' => [
- 'visibility' => 'Public',
- 'backendName' => 'DrainParameters',
- '$ref' => '#/components/schemas/NodeDrainParameters',
+ 'CordonParameters' => ['description' => 'Node cordon parameter settings', '$ref' => '#/components/schemas/NodeCordonParameters', 'title' => '', 'example' => ''],
+ 'UncordonParameters' => ['description' => 'Node uncordon parameter settings', '$ref' => '#/components/schemas/NodeUncordonParameters', 'title' => '', 'example' => ''],
+ 'DrainParameters' => ['description' => 'Node drain task instance parameter settings', '$ref' => '#/components/schemas/NodeDrainParameters', 'title' => '', 'example' => ''],
+ ],
+ 'description' => 'Node operation parameter settings',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NodeOperationResult' => [
+ 'title' => '节点操作结果',
+ 'description' => '节点操作结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'type' => 'string'],
+ 'Status' => ['title' => '节点操作状态', 'type' => 'string'],
+ 'Message' => ['title' => '节点操作状态信息', 'type' => 'string'],
+ ],
+ ],
+ 'NodePodInfo' => [
+ 'title' => '节点上的Pod信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'PodName' => ['title' => 'Pod名称', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'Phase' => ['title' => 'Pod状态', 'type' => 'string', 'required' => false, 'example' => 'Running'],
+ 'PodNamespace' => ['title' => 'Pod所在namespace', 'type' => 'string', 'required' => false, 'example' => 'test'],
+ 'PodIP' => ['title' => 'Pod ip地址', 'type' => 'string', 'example' => '192.168.2.2'],
+ 'ResourceSpec' => ['$ref' => '#/components/schemas/ResourceAmount'],
+ 'WorkloadType' => ['title' => 'Pod属于子产品', 'type' => 'string', 'example' => 'dlc'],
+ 'WorkloadId' => ['title' => '任务id/服务id', 'type' => 'string', 'example' => 'dlc19de9s6vn3acr'],
+ ],
+ ],
+ 'NodeSnapshot' => [
+ 'title' => '节点快照',
+ 'description' => '节点快照',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['title' => '节点名称', 'type' => 'string'],
+ 'RequestCPU' => ['title' => 'CPU用量', 'type' => 'string'],
+ 'RequestMemory' => ['title' => 'Memory用量', 'type' => 'string'],
+ 'RequestGPU' => ['title' => 'GPU用量', 'type' => 'string'],
+ 'Workloads' => [
+ 'title' => '节点任务快照',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkloadId' => ['title' => '任务ID', 'type' => 'string'],
+ 'WorkloadType' => ['title' => '任务类型', 'type' => 'string'],
+ 'Name' => ['title' => '对应排队单元名称', 'type' => 'string'],
+ ],
+ ],
],
+ 'WorkloadNum' => ['title' => '节点workload数量', 'type' => 'integer', 'format' => 'int32'],
+ 'AncestorQuotaWorkloadNum' => ['title' => '使用祖先Quota的workload数量', 'type' => 'integer', 'format' => 'int32'],
+ 'SelfQuotaWorkloadNum' => ['title' => '使用本Quota的Workload数量', 'type' => 'integer', 'format' => 'int32'],
+ 'DescendantQuotaWorkloadNum' => ['title' => '使用子Quota的workload数量', 'type' => 'integer', 'format' => 'int32'],
],
],
'NodeSpec' => [
+ 'description' => 'Specifications for a single resource.',
'title' => '',
- 'description' => 'NodeSpec',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'Type' => [
+ 'Type' => ['title' => '', 'description' => 'Type of the resource node specification.', 'type' => 'string', 'example' => 'ecs.g6.4xlarge'],
+ 'Count' => ['title' => '', 'description' => 'Number of resource nodes with this specification.', 'type' => 'integer', 'example' => '10', 'format' => 'int64'],
+ 'BindingPolicy' => ['title' => '', 'description' => 'Rule for attaching resource nodes.', 'example' => '', '$ref' => '#/components/schemas/BindingPolicy'],
+ 'HyperType' => ['title' => '', 'description' => 'Type of supernode to use. You cannot specify both a node specification and a supernode type.', 'type' => 'string', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ 'NodeStatistics' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ActualMinResources' => ['title' => '', '$ref' => '#/components/schemas/StatisticsResources', 'description' => '', 'example' => ''],
+ 'SchedulableResources' => ['title' => '', '$ref' => '#/components/schemas/StatisticsResources', 'description' => '', 'example' => ''],
+ 'IdleResources' => ['title' => '', '$ref' => '#/components/schemas/StatisticsResources', 'description' => '', 'example' => ''],
+ 'SystemReservedResources' => ['title' => '', '$ref' => '#/components/schemas/StatisticsResources', 'description' => '', 'example' => ''],
+ 'HyperNodeDetails' => [
'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IdleNum' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'Count' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'ecs.g6.4xlarge',
- 'backendName' => 'Type',
+ 'example' => '',
],
- 'Count' => [
+ 'GPUDetails' => [
'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IdleNum' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'Count' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
'description' => '',
- 'visibility' => 'public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- 'backendName' => 'Count',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NodeType' => [
+ 'title' => '资源节点规格详情',
+ 'description' => '资源节点规格',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeType' => ['title' => '资源节点规格类型', 'type' => 'string', 'example' => 'ecs.g6.4xlarge'],
+ 'AcceleratorType' => ['title' => '资源节点规格加速器类型(CPU/GPU)', 'type' => 'string', 'example' => 'CPU'],
+ 'CPU' => ['title' => 'CPU核数', 'type' => 'string', 'example' => '16'],
+ 'Memory' => ['title' => '内存大小', 'type' => 'string', 'example' => '64Gi'],
+ 'GPU' => ['title' => 'GPU卡数', 'type' => 'string', 'example' => '0'],
+ 'GPUType' => ['title' => 'GPU卡类型', 'type' => 'string'],
+ 'GPUMemory' => ['title' => 'GPU显存', 'type' => 'string', 'example' => '80G'],
+ 'AllocatableCPU' => ['title' => '用户可分配CPU核数', 'type' => 'string'],
+ 'AllocatableMemory' => ['title' => '用户可分配内存大小', 'type' => 'string'],
+ 'SystemReservedCPU' => ['title' => '系统预留CPU核数', 'type' => 'string'],
+ 'SystemReservedMemory' => ['title' => '系统预留内存大小', 'type' => 'string'],
+ ],
+ ],
+ 'NodeTypeStatistic' => [
+ 'title' => '资源节点规格统计信息',
+ 'description' => '资源节点规格统计',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeType' => ['title' => '资源节点规格', 'type' => 'string', 'example' => 'ecs.g6.4xlarge'],
+ 'TotalCount' => ['title' => '该规格的资源节点总数', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'CanBeBoundCount' => ['title' => '该规格可被绑定的资源节点数', 'type' => 'integer', 'format' => 'int32', 'example' => '4'],
+ ],
],
'NodeUncordonParameters' => [
- 'visibility' => 'Public',
'type' => 'object',
'properties' => [
- 'QuotaId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'QuotaId',
- ],
- 'WorkspaceId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'WorkspaceId',
+ 'QuotaId' => ['title' => '', 'description' => 'Quota ID. You can use this ID when you start a workspace or disable scheduling nodes.', 'type' => 'string', 'example' => 'quota1ci8g793pgm'],
+ 'WorkspaceId' => ['title' => '', 'description' => 'The ID of the workspace that contains the node to uncordon.', 'type' => 'string', 'example' => '12345'],
+ ],
+ 'description' => 'Parameter settings for uncordoning a node.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NodeViewMetric' => [
+ 'title' => '资源节点维度实时指标',
+ 'description' => 'resource group metric',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeID' => ['title' => '节点ID', 'type' => 'string', 'example' => '-i121212node'],
+ 'NodeType' => ['title' => '显卡的类型', 'type' => 'string'],
+ 'MachineGroupID' => ['title' => '机器组ID', 'type' => 'string'],
+ 'CreatedTime' => ['title' => '节点导入时间', 'type' => 'string'],
+ 'RequestCPU' => ['title' => '已经使用的CPU', 'type' => 'integer', 'format' => 'int64'],
+ 'RequestMemory' => ['title' => '已经使用的内存', 'type' => 'integer', 'format' => 'int64'],
+ 'RequestGPU' => ['title' => '使用的GPU', 'type' => 'integer', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '网络输入速率', 'type' => 'string'],
+ 'NetworkOutputRate' => ['title' => '网络输出速率', 'type' => 'string'],
+ 'DiskReadRate' => ['title' => '磁盘读取速率', 'type' => 'string'],
+ 'DiskWriteRate' => ['title' => '磁盘写入速率', 'type' => 'string'],
+ 'TotalCPU' => ['title' => '总的CPU', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '总的GPU', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalMemory' => ['title' => '总的内存', 'type' => 'integer', 'format' => 'int64'],
+ 'GPUType' => ['title' => '卡型', 'type' => 'string'],
+ 'UserNumber' => ['title' => '用户总数', 'type' => 'string'],
+ 'UserIDs' => [
+ 'title' => '用户列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
+ 'CPUUsageRate' => ['title' => 'CPU使用率', 'type' => 'string'],
+ 'MemoryUsageRate' => ['title' => '内存使用率', 'type' => 'string'],
+ 'NodeStatus' => ['title' => '节点状态', 'type' => 'string'],
+ 'TotalTasks' => ['title' => '节点任务总数', 'type' => 'integer', 'format' => 'int64'],
+ 'TaskIdMap' => ['title' => '节点任务', 'type' => 'object'],
+ ],
+ ],
+ 'OversoldUsageConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DisabledBy' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Disabled' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Permission' => [
+ 'title' => 'A short description of struct',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceType' => ['title' => 'ResourceType', 'type' => 'string'],
+ 'IsEnabled' => ['title' => 'IsEnabled', 'type' => 'boolean'],
],
],
+ 'QueueInfo' => [
+ 'title' => '任务排队信息',
+ 'description' => '队列信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['title' => '状态', 'type' => 'string', 'example' => 'Enqueued'],
+ 'QuotaId' => ['title' => '任务使用的Quota', 'type' => 'string', 'example' => '“quotamtl37ge7gkvdz”'],
+ 'UserName' => ['title' => '用户名', 'type' => 'string'],
+ 'WorkloadId' => ['title' => '任务ID', 'type' => 'string', 'example' => 'dlcxxxx'],
+ 'Position' => ['title' => '队列位置', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
+ 'GmtEnqueuedTime' => ['title' => '入队时间', 'type' => 'string', 'example' => '“2023-06-22T00:00:00Z”'],
+ 'Priority' => ['title' => '任务优先级', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'GmtCreatedTime' => ['title' => '任务创建时间', 'type' => 'string'],
+ 'WorkloadType' => ['title' => '任务类型', 'type' => 'string', 'example' => 'dlc'],
+ 'WorkspaceId' => ['title' => '任务所在的工作空间', 'type' => 'string', 'example' => '“432524”'],
+ 'Resource' => ['title' => '使用资源情况', '$ref' => '#/components/schemas/ResourceAmount'],
+ 'Code' => ['title' => '错误码', 'type' => 'string', 'example' => 'roleMaximumResource'],
+ 'Reason' => ['title' => '错误消息', 'type' => 'string', 'example' => 'Current GPU Limit is 5, limited by Role PAI.AlgoDeveloper'],
+ 'UseOversoldResource' => ['type' => 'boolean'],
+ 'Name' => ['title' => '底层QueueUnit名称', 'type' => 'string', 'example' => 'test-label-79f5498dd-9qrzs'],
+ 'WorkloadStatus' => ['title' => 'dlc/dsw/eas 具体状态', 'type' => 'string', 'example' => 'PreAllocation'],
+ 'WorkloadName' => ['title' => '任务名称', 'type' => 'string'],
+ 'UserId' => ['title' => '创建者信息', 'type' => 'string'],
+ 'GmtPositionModifiedTime' => ['title' => '排队位置变化时间', 'type' => 'string', 'example' => '"2023-06-22T00:00:00Z"'],
+ 'CodeType' => ['title' => '错误类型', 'type' => 'string', 'example' => 'ConfigRule'],
+ 'GmtDequeuedTime' => ['title' => '出队列时间', 'type' => 'string', 'example' => '"2023-06-22T00:00:00Z"'],
+ 'WorkspaceName' => ['type' => 'string'],
+ 'QueueStrategy' => ['title' => '所在队列的出队策略', 'type' => 'string', 'example' => 'PaiStrategyIntelligent'],
+ ],
+ ],
+ 'QueueMeta' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['title' => '', 'description' => 'The name of the queue entry.', 'type' => 'string', 'example' => ''],
+ 'QuotaId' => ['title' => '', 'description' => 'The ID of the associated quota.', 'type' => 'string', 'example' => ''],
+ 'Position' => ['title' => '', 'description' => 'The position of the entry in the queue.', 'type' => 'string', 'example' => ''],
+ 'GmtEnqueuedTime' => ['title' => '', 'description' => 'The time the entry was added to the queue.', 'type' => 'string', 'example' => ''],
+ 'GmtPositionModifiedTime' => ['title' => '', 'description' => 'The last time the position of the entry was modified.', 'type' => 'string', 'example' => ''],
+ 'GmtDequeuedTime' => ['title' => '', 'description' => 'The time the entry was removed from the queue.', 'type' => 'string', 'example' => ''],
+ 'QueueStrategy' => ['title' => '', 'description' => 'The queuing strategy for the entry.', 'type' => 'string', 'example' => ''],
+ 'Resource' => ['title' => '', 'description' => 'The resources that the queue entry requires.', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'ScheduledResource' => ['title' => '', 'description' => 'The resources scheduled for the entry.', 'type' => 'string', 'example' => ''],
+ 'Status' => ['title' => '', 'description' => 'The current status of the entry.', 'type' => 'string', 'example' => ''],
+ 'UseOversoldResource' => ['title' => '', 'description' => 'Indicates whether the entry can use oversold resources.', 'type' => 'boolean', 'example' => ''],
+ ],
+ 'description' => 'Metadata for a queue entry.',
+ 'title' => '',
+ 'example' => '',
+ ],
'Quota' => [
+ 'description' => 'The details of the quota.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'QuotaId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'quota12345',
- 'backendName' => 'QuotaId',
- ],
- 'QuotaName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'dlc-quota',
- 'backendName' => 'QuotaName',
- ],
- 'ResourceType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'ResourceType',
- ],
- 'ParentQuotaId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'ParentQuotaId',
- ],
+ 'QuotaId' => ['title' => '', 'description' => 'The quota ID.', 'type' => 'string', 'example' => 'quota12345'],
+ 'QuotaName' => ['title' => '', 'description' => 'The quota name.', 'type' => 'string', 'example' => 'dlc-quota'],
+ 'ResourceType' => ['title' => '', 'description' => 'The resource type. Valid values:'."\n"
+ ."\n"
+ .'- `Lingjun`'."\n"
+ ."\n"
+ .'- `ECS` (default)'."\n"
+ ."\n"
+ .'- `ACS`', 'type' => 'string', 'example' => 'ECS'],
+ 'ParentQuotaId' => ['title' => '', 'description' => 'The parent quota ID.', 'type' => 'string', 'example' => '""'],
'ResourceGroupIds' => [
+ 'description' => 'A list of resource group IDs.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'visibility' => 'public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'ResourceGroupIds',
- 'itemName' => 'ResourceGroupIdItem',
- ],
- 'AllocateStrategy' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'AllocateStrategy',
- ],
- 'Min' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'Min',
- '$ref' => '#/components/schemas/ResourceSpec',
- ],
- 'Description' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'Description',
+ 'items' => ['description' => 'The resource group ID.', 'type' => 'string', 'title' => '', 'example' => 'rg69rj0leslw****'],
+ 'example' => '',
],
+ 'AllocateStrategy' => ['title' => '', 'description' => 'The resource allocation strategy. Currently, only `ByNodeSpec` is supported.', 'type' => 'string', 'example' => 'ByNodeSpec'],
+ 'Min' => ['title' => '', 'description' => 'The guaranteed resources.', 'example' => '', '$ref' => '#/components/schemas/ResourceSpec'],
+ 'Description' => ['title' => '', 'description' => 'The quota description.', 'type' => 'string', 'example' => 'this is a test quota'],
'Labels' => [
+ 'description' => 'The quota labels.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/Label',
- ],
- 'backendName' => 'Labels',
- 'itemName' => 'LabelItem',
- ],
- 'CreatorId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'CreatorId',
- ],
- 'LatestOperationId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'LatestOperationId',
- ],
- 'Status' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'Status',
- ],
- 'ReasonCode' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'ReasonCode',
- ],
- 'ReasonMessage' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'ReasonMessage',
- ],
- 'GmtCreatedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'GmtCreatedTime',
- ],
- 'GmtModifiedTime' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'GmtModifiedTime',
- ],
- 'QuotaDetails' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'QuotaDetails',
- '$ref' => '#/components/schemas/QuotaDetails',
- ],
- 'QuotaConfig' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'QuotaConfig',
- '$ref' => '#/components/schemas/QuotaConfig',
+ 'items' => ['description' => 'A key-value pair of the label.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/Label'],
+ 'example' => '',
],
+ 'CreatorId' => ['title' => '', 'description' => 'The ID of the user who created the quota.', 'type' => 'string', 'example' => '1884692****'],
+ 'LatestOperationId' => ['title' => '', 'description' => 'The ID of the most recent operation on the quota.', 'type' => 'string', 'example' => 'operation****'],
+ 'Status' => ['title' => '', 'description' => 'The quota status.', 'type' => 'string', 'example' => 'Ready'],
+ 'ReasonCode' => ['title' => '', 'description' => 'The error code.', 'type' => 'string', 'example' => '“”'],
+ 'ReasonMessage' => ['title' => '', 'description' => 'The error message.', 'type' => 'string', 'example' => '“”'],
+ 'GmtCreatedTime' => ['title' => '', 'description' => 'The time when the quota was created.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'GmtModifiedTime' => ['title' => '', 'description' => 'The time when the quota was last modified.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'QuotaDetails' => ['title' => '', 'description' => 'The quota details.', 'example' => '', '$ref' => '#/components/schemas/QuotaDetails'],
+ 'QuotaConfig' => ['title' => '', 'description' => 'The quota configuration.', 'example' => '', '$ref' => '#/components/schemas/QuotaConfig'],
'Workspaces' => [
+ 'description' => 'The workspaces that are associated with the quota.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/WorkspaceIdName',
- ],
- 'backendName' => 'Workspaces',
- 'itemName' => 'WorkspaceItem',
+ 'items' => ['description' => 'The details of an associated workspace.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/WorkspaceIdName'],
+ 'example' => '',
],
'SubQuotas' => [
+ 'description' => 'A list of sub-quotas.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/QuotaIdName',
- ],
- 'backendName' => 'SubQuotas',
- 'itemName' => 'SubQuotaItem',
+ 'items' => ['description' => 'The ID and name of a sub-quota.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/QuotaIdName'],
+ 'example' => '',
],
- 'QueueStrategy' => [
- 'title' => '',
+ 'QueueStrategy' => ['title' => '', 'description' => 'The queuing strategy. Valid values:'."\n"
+ ."\n"
+ .'- `PaiStrategyIntelligent`: intelligent strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyBalance`: balanced strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyRoundRobin`: round-robin strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyStrictFIFO`: FIFO strategy.', 'type' => 'string', 'example' => 'PaiStrategyIntelligent'],
+ 'Version' => ['description' => 'The version.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'QuotaCluster' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/QuotaCluster'],
+ 'HyperZones' => [
'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'backendName' => 'QueueStrategy',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'GPUType' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
],
+ 'example' => '',
],
- 'QuotaConfig' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
+ 'QuotaCluster' => [
'type' => 'object',
'properties' => [
- 'SupportRDMA' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'boolean',
- 'example' => 'false',
- 'backendName' => 'SupportRDMA',
- ],
- 'ClusterId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'ceeb3724255364664',
- 'backendName' => 'ClusterId',
+ 'ClusterType' => ['type' => 'string'],
+ 'Image' => ['type' => 'string'],
+ 'DataSources' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/DataSource'],
],
- 'UserVpc' => [
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'UserVpc',
- '$ref' => '#/components/schemas/UserVpc',
+ 'Endpoints' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
],
+ 'Status' => ['type' => 'string'],
+ ],
+ ],
+ 'QuotaConfig' => [
+ 'description' => 'The resource quota configurations.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'SupportRDMA' => ['title' => '', 'description' => 'Specifies whether RDMA is supported.', 'type' => 'boolean', 'example' => 'false'],
+ 'ClusterId' => ['title' => '', 'description' => 'The ID of the cluster where the quota resides.', 'type' => 'string', 'example' => 'ceeb3724255364***'],
+ 'UserVpc' => ['description' => 'The user VPC information.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/UserVpc'],
'SupportGPUDrivers' => [
+ 'description' => 'The GPU driver versions supported by the resource quota.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '470.199.02',
- 'extendType' => 'true',
- ],
- 'backendName' => 'SupportGPUDrivers',
+ 'items' => ['description' => 'The GPU driver version.', 'type' => 'string', 'title' => '', 'example' => '470.199.02'],
+ 'example' => '',
],
- 'DefaultGPUDriver' => [
+ 'DefaultGPUDriver' => ['title' => '', 'description' => 'The default GPU driver version for the resource quota.', 'type' => 'string', 'example' => '470.199.02'],
+ 'ACS' => ['title' => '', 'description' => 'The ACS-related configurations.', 'example' => '', '$ref' => '#/components/schemas/ACS'],
+ 'ResourceSpecs' => [
+ 'description' => 'The resource specification templates.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '470.199.02',
- 'backendName' => 'DefaultGPUDriver',
+ 'type' => 'array',
+ 'items' => ['description' => 'A resource specification template.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/WorkspaceSpecs'],
+ 'example' => '',
],
- 'ACS' => [
- 'title' => 'ACS conf',
+ 'EnablePreemptSubquotaWorkloads' => ['title' => '', 'description' => 'Specifies whether workloads in sub-quotas can be preempted.', 'type' => 'boolean', 'example' => 'false', 'deprecated' => false],
+ 'EnableSubQuotaPreemption' => ['title' => '', 'description' => 'Specifies whether resources in sub-quotas can be preempted.', 'type' => 'boolean', 'example' => ''],
+ 'SubQuotaPreemptionConfig' => ['title' => '', 'description' => 'The configuration for the sub-quota preemption task.', 'example' => '', '$ref' => '#/components/schemas/SubQuotaPreemptionConfig'],
+ 'EnableGPUShare' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'OversoldUsageConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/OversoldUsageConfig'],
+ 'SelfQuotaPreemptionConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/SelfQuotaPreemptionConfig'],
+ 'EniCacheConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/EniCacheConfig'],
+ 'SandboxCacheConfig' => ['description' => '', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/SandboxCacheConfig'],
+ 'UseCase' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'EnableSelfQuotaPreemption' => ['title' => '', 'description' => 'Specifies whether guaranteed resources within this quota can be preempted.', 'type' => 'boolean', 'example' => ''],
+ 'ControlPlaneClusterId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'IsEncryptedResource' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ 'WorkloadTypes' => [
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'ACS',
- '$ref' => '#/components/schemas/ACS',
+ 'example' => '',
],
],
+ 'example' => '',
],
'QuotaDetails' => [
+ 'description' => 'Details of the quota.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'DesiredMinQuota' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'DesiredMinQuota',
- '$ref' => '#/components/schemas/ResourceAmount',
+ 'DesiredMinQuota' => ['description' => 'Total MinQuota amount requested by the User ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'ActualMinQuota' => ['description' => 'Total MinQuota amount actually assigned ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'RequestedQuota' => ['description' => 'Quota request amount ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'UsedQuota' => ['description' => 'Quota usage amount ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'AllocatedQuota' => ['description' => 'Total Quota usage information ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'SelfAllocatedQuota' => ['description' => 'Quota usage information at the current level ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'AncestorsAllocatedQuota' => ['description' => 'Quota usage information of ancestors ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'DescendantsAllocatedQuota' => ['description' => 'Quota usage information of descendants ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'SelfSubmittedQuota' => ['$ref' => '#/components/schemas/ResourceAmount', 'description' => '', 'title' => '', 'example' => ''],
+ 'AllocatableQuota' => ['description' => 'Quota amount assignable by the User ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'SystemReservedQuota' => ['description' => 'System-reserved Quota amount ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'NodeStatistics' => ['$ref' => '#/components/schemas/QuotaNodeStatistics', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ 'QuotaIdName' => [
+ 'description' => 'Resource Quota ID & Name ',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaId' => ['description' => 'Resource quota ID ', 'title' => '', 'type' => 'string', 'example' => 'quota12345'],
+ 'QuotaName' => ['description' => 'Resource quota name ', 'title' => '', 'type' => 'string', 'example' => 'dlc-quota'],
+ ],
+ 'example' => '',
+ ],
+ 'QuotaJobViewMetric' => [
+ 'title' => '资源配额作业维度指标',
+ 'description' => 'quota job view metric',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalCPU' => ['title' => '总的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'CPUUsageRate' => ['title' => 'CPU使用率', 'type' => 'string'],
+ 'GPUUsageRate' => ['title' => 'GPU使用率', 'type' => 'string'],
+ 'TotalMemory' => ['title' => '总内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '总的GPU卡数', 'type' => 'integer', 'format' => 'int32'],
+ 'MemoryUsageRate' => ['title' => '内存使用率', 'type' => 'string'],
+ 'RequestCPU' => ['title' => '占用的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestGPU' => ['title' => '占用的GPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestMemory' => ['title' => '占用的内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '网络写入速率', 'type' => 'string'],
+ 'NetworkOutputRate' => ['title' => '网络输出速率', 'type' => 'string'],
+ 'DiskReadRate' => ['title' => '磁盘读取速率', 'type' => 'string'],
+ 'DiskWriteRate' => ['title' => '磁盘写入速率', 'type' => 'string'],
+ 'JobType' => ['title' => '任务类型dlc,dsw /etc', 'type' => 'string'],
+ 'UserId' => ['title' => '用户ID', 'type' => 'string'],
+ 'NodeNames' => [
+ 'title' => '节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
- 'ActualMinQuota' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'ActualMinQuota',
- '$ref' => '#/components/schemas/ResourceAmount',
+ 'JobId' => ['title' => '任务ID', 'type' => 'string'],
+ ],
+ ],
+ 'QuotaMetric' => [
+ 'title' => '资源配额指标',
+ 'description' => 'resource group metric',
+ 'type' => 'object',
+ 'properties' => [
+ 'Metrics' => [
+ 'title' => '性能指标',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Metric'],
+ 'example' => '23000',
],
- 'RequestedQuota' => [
+ 'GPUType' => ['title' => '显卡的类型', 'type' => 'string'],
+ ],
+ ],
+ 'QuotaNodeStatistics' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ActualMinNodeNum' => ['title' => '', 'description' => 'The guaranteed minimum number of nodes available in the quota.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'ActualMinHyperNodeNum' => ['title' => '', 'description' => 'The guaranteed minimum number of hyper nodes available in the quota.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'AllocatedNodeNum' => ['title' => '', 'description' => 'The number of nodes currently allocated from the quota.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'AllocatedHyperNodeNum' => ['title' => '', 'description' => 'The number of hyper nodes currently allocated from the quota.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'EmptyNodeNum' => ['title' => '', 'description' => 'The number of allocated nodes currently idle.', 'type' => 'integer', 'format' => 'int64', 'example' => ''],
+ 'AllocatedHyperNodeDetails' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'RequestedQuota',
- '$ref' => '#/components/schemas/ResourceAmount',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/AllocatedHyperNodeDetail', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => 'The details of an allocated hyper node.',
+ 'example' => '',
],
- 'UsedQuota' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'backendName' => 'UsedQuota',
- '$ref' => '#/components/schemas/ResourceAmount',
+ ],
+ 'description' => 'Provides statistics about node usage within a resource quota.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'QuotaNodeViewMetric' => [
+ 'title' => 'Quota内资源节点维度实时指标',
+ 'description' => 'quota node view metric',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeID' => ['title' => '节点ID', 'type' => 'string', 'example' => '-i121212node'],
+ 'NodeType' => ['title' => '显卡的类型', 'type' => 'string'],
+ 'QuotaId' => ['title' => '资源配额ID', 'type' => 'string'],
+ 'CreatedTime' => ['title' => '节点导入时间', 'type' => 'string'],
+ 'RequestCPU' => ['title' => '已经使用的CPU', 'type' => 'integer', 'format' => 'int64'],
+ 'RequestMemory' => ['title' => '已经使用的内存', 'type' => 'integer', 'format' => 'int64'],
+ 'RequestGPU' => ['title' => '使用的GPU', 'type' => 'integer', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '网络输入速率', 'type' => 'string'],
+ 'NetworkOutputRate' => ['title' => '网络输出速率', 'type' => 'string'],
+ 'DiskReadRate' => ['title' => '磁盘读取速率', 'type' => 'string'],
+ 'DiskWriteRate' => ['title' => '磁盘写入速率', 'type' => 'string'],
+ 'TotalCPU' => ['title' => '总的CPU', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '总的GPU', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalMemory' => ['title' => '总的内存', 'type' => 'integer', 'format' => 'int64'],
+ 'GPUType' => ['title' => '卡型', 'type' => 'string'],
+ 'UserNumber' => ['title' => '用户总数', 'type' => 'string'],
+ 'UserIDs' => [
+ 'title' => '用户列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
+ 'CPUUsageRate' => ['title' => 'CPU使用率', 'type' => 'string'],
+ 'MemoryUsageRate' => ['title' => '内存使用率', 'type' => 'string'],
+ 'NodeStatus' => ['title' => '节点状态', 'type' => 'string'],
+ 'TotalTasks' => ['title' => '节点任务总数', 'type' => 'integer', 'format' => 'int64'],
+ 'TaskIdMap' => ['title' => '节点任务', 'type' => 'object'],
],
],
- 'QuotaIdName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
+ 'QuotaUser' => [
+ 'title' => '资源配额用户',
'type' => 'object',
'properties' => [
- 'QuotaId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'quota12345',
- 'backendName' => 'QuotaId',
+ 'Username' => ['title' => '用户名', 'type' => 'string'],
+ 'UserId' => ['title' => '用户ID', 'type' => 'string'],
+ 'WorkloadCount' => ['title' => '任务负载数量', 'type' => 'integer', 'format' => 'int32'],
+ 'Resources' => [
+ 'title' => '资源',
+ 'type' => 'object',
+ 'properties' => [
+ 'Used' => ['title' => '已使用资源', '$ref' => '#/components/schemas/ResourceAmount'],
+ 'Submitted' => ['title' => '已提交资源', '$ref' => '#/components/schemas/ResourceAmount'],
+ ],
],
- 'QuotaName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'dlc-quota',
- 'backendName' => 'QuotaName',
+ ],
+ ],
+ 'QuotaUserViewMetric' => [
+ 'title' => '资源配额用户维度指标',
+ 'description' => 'quota user view metric',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalCPU' => ['title' => '总的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'CPUUsageRate' => ['title' => 'CPU使用率', 'type' => 'string'],
+ 'GPUUsageRate' => ['title' => 'GPU使用率', 'type' => 'string'],
+ 'TotalMemory' => ['title' => '总内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '总的GPU卡数', 'type' => 'integer', 'format' => 'int32'],
+ 'MemoryUsageRate' => ['title' => '内存使用率', 'type' => 'string'],
+ 'RequestCPU' => ['title' => '占用的CPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestGPU' => ['title' => '占用的GPU核心数', 'type' => 'integer', 'format' => 'int32'],
+ 'RequestMemory' => ['title' => '占用的内存kb', 'type' => 'integer', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '网络写入速率', 'type' => 'string'],
+ 'NetworkOutputRate' => ['title' => '网络输出速率', 'type' => 'string'],
+ 'DiskReadRate' => ['title' => '磁盘读取速率', 'type' => 'string'],
+ 'DiskWriteRate' => ['title' => '磁盘写入速率', 'type' => 'string'],
+ 'JobType' => ['title' => 'JOB类型', 'type' => 'string'],
+ 'UserId' => ['title' => '用户ID', 'type' => 'string'],
+ 'CPUNodeNumber' => ['title' => 'CPU节点的数量', 'type' => 'integer', 'format' => 'int32'],
+ 'GPUNodeNumber' => ['title' => 'GPU节点的数量', 'type' => 'integer', 'format' => 'int32'],
+ 'CpuJobNames' => [
+ 'title' => 'CPU任务',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ ],
+ 'GpuJobNames' => [
+ 'title' => 'GPU任务',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ ],
+ 'NodeNames' => [
+ 'title' => '节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ ],
+ 'CpuNodeNames' => [
+ 'title' => 'CPU节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
+ ],
+ 'GpuNodeNames' => [
+ 'title' => 'GPU节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
],
],
'ResourceAmount' => [
+ 'description' => 'Resource amount ',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'CPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '100',
- 'backendName' => 'CPU',
- ],
- 'Memory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '100Gi',
- 'backendName' => 'Memory',
- ],
- 'GPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '16',
- 'backendName' => 'GPU',
+ 'CPU' => ['description' => 'Total CPU ', 'title' => '', 'type' => 'string', 'example' => '100'],
+ 'Memory' => ['description' => 'Total memory ', 'title' => '', 'type' => 'string', 'example' => '100Gi'],
+ 'GPU' => ['description' => 'Total GPU cards ', 'title' => '', 'type' => 'string', 'example' => '16'],
+ 'GPUType' => ['description' => 'GPU card type ', 'title' => '', 'type' => 'string', 'example' => 'GPU'],
+ ],
+ 'example' => '',
+ ],
+ 'ResourceDiagnosisDetail' => [
+ 'title' => '资源诊断详情',
+ 'description' => '资源诊断详情',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['title' => '诊断状态', 'type' => 'string'],
+ 'ExceedResources' => [
+ 'title' => '超限资源',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'CPU'],
],
- 'GPUType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'GPU',
- 'backendName' => 'GPUType',
+ 'Limit' => ['title' => '资源限额', '$ref' => '#/components/schemas/ResourceAmount'],
+ 'Used' => ['title' => '资源用量', '$ref' => '#/components/schemas/ResourceAmount'],
+ 'WorkloadIds' => [
+ 'title' => '相关Workload Id',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'dlc1234567890'],
],
],
],
'ResourceGroup' => [
+ 'title' => '',
+ 'description' => 'A PAI resource group.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['title' => '', 'description' => 'The name of the PAI resource group.', 'type' => 'string', 'example' => 'RG1'],
+ 'ResourceGroupID' => ['title' => '', 'description' => 'The ID of the PAI resource group.', 'type' => 'string', 'example' => 'rg17tmvwiokh****'],
+ 'WorkspaceID' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'example' => '23000'],
+ 'UserVpc' => ['title' => '', 'description' => 'The VPC configuration.', '$ref' => '#/components/schemas/UserVpc', 'example' => ''],
+ 'GmtCreatedTime' => ['title' => '', 'description' => 'The time the PAI resource group was created.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'GmtModifiedTime' => ['title' => '', 'description' => 'The time the PAI resource group was last modified.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'CreatorID' => ['title' => '', 'description' => 'The user ID of the creator.', 'type' => 'string', 'example' => '161228528250****'],
+ 'NodeCount' => ['title' => '', 'description' => 'The number of nodes.', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
+ 'Version' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Status' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'ResourceType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
+ 'ResourceGroupMetric' => [
'title' => 'A short description of struct',
- 'description' => 'pai resource group',
- 'visibility' => 'Public',
+ 'description' => 'resource group metric',
'type' => 'object',
'properties' => [
- 'Name' => [
- 'title' => 'pai resource group name',
- 'description' => 'pai resource group name',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'RG1',
- 'backendName' => 'Name',
- ],
- 'ResourceGroupID' => [
- 'title' => 'pai resource group id',
- 'description' => 'pai resource group id',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'rg17tmvwiokhzaxg',
- 'backendName' => 'ResourceGroupID',
- ],
- 'WorkspaceID' => [
- 'title' => 'pworkspace id',
- 'description' => 'pworkspace id',
- 'visibility' => 'Public',
- 'type' => 'string',
+ 'ResourceGroupID' => ['title' => '资源组ID', 'type' => 'string', 'example' => 'rg17tmvwiokhzaxg'],
+ 'Metrics' => [
+ 'title' => '性能指标',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Metric'],
'example' => '23000',
- 'backendName' => 'WorkspaceID',
- ],
- 'UserVpc' => [
- 'title' => 'UserVpc',
- 'description' => 'UserVpc',
- 'visibility' => 'Public',
- 'backendName' => 'UserVpc',
- '$ref' => '#/components/schemas/UserVpc',
- ],
- 'GmtCreatedTime' => [
- 'title' => 'pai resource created time',
- 'description' => 'pai resource created time',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- 'backendName' => 'GmtCreatedTime',
- ],
- 'GmtModifiedTime' => [
- 'title' => 'GmtModified',
- 'description' => 'GmtModified',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- 'backendName' => 'GmtModifiedTime',
- ],
- 'CreatorID' => [
- 'title' => 'CreatorID',
- 'description' => 'CreatorID',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '1612285282502324',
- 'backendName' => 'CreatorID',
- ],
- 'NodeCount' => [
- 'title' => 'NodeCount',
- 'description' => 'NodeCount',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '3',
- 'backendName' => 'NodeCount',
],
+ 'GpuType' => ['title' => '显卡的类型', 'type' => 'string'],
+ ],
+ ],
+ 'ResourceInfos' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'UserName' => ['type' => 'string'],
+ 'GpuCardType' => ['type' => 'string'],
+ 'ClusterId' => ['type' => 'string'],
+ 'UserId' => ['type' => 'string'],
+ 'EcsSpec' => ['type' => 'string'],
+ 'RegionId' => ['type' => 'string'],
+ 'MaxQuota' => ['type' => 'integer', 'format' => 'int64'],
+ 'UsedQuota' => ['type' => 'integer', 'format' => 'int64'],
+ 'NetworkPodId' => ['type' => 'string'],
+ 'MachineModel' => ['type' => 'string'],
+ ],
+ ],
+ 'ResourceLimitDetails' => [
+ 'title' => 'A short description of struct',
+ 'description' => '资源限制细节',
+ 'type' => 'object',
+ 'properties' => [
+ 'GCLevel' => ['title' => 'GC 等级', 'type' => 'string'],
+ 'ResourceLimit' => ['title' => '资源限制详情', 'type' => 'object'],
+ 'ShouldIgnoreResourceCheck' => ['title' => '是否忽略资源检查', 'type' => 'boolean'],
],
],
+ 'ResourceOperation' => [
+ 'title' => '',
+ 'description' => '资源变更',
+ 'type' => 'object',
+ 'properties' => [
+ 'OperationId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'ObjectType' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'ObjectId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'OperationType' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'OperationSpecJson' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'OperationDescription' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'CreatorId' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'Status' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'ReasonCode' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'ReasonMessage' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'GmtCreatedTime' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'GmtModifiedTime' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'GmtStartTime' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ 'GmtEndTime' => ['title' => '', 'type' => 'string', 'description' => '', 'example' => ''],
+ ],
+ 'example' => '',
+ ],
'ResourceSpec' => [
+ 'description' => 'The allocation policy. This policy specifies the node specifications, the number of nodes, and the amount of resources.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
'NodeSpecs' => [
+ 'description' => 'The resource node specifications.',
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/NodeSpec',
- ],
- 'backendName' => 'NodeSpecs',
+ 'items' => ['description' => 'The specifications of a single node.', 'title' => '', 'example' => '', '$ref' => '#/components/schemas/NodeSpec'],
+ 'example' => '',
],
],
+ 'example' => '',
],
- 'UserInfo' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
+ 'Rules' => [
+ 'title' => '任务规则配置',
+ 'description' => '规则配置',
'type' => 'object',
'properties' => [
- 'UserId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '161222222222',
- 'backendName' => 'UserId',
- ],
- 'UserName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'test',
- 'backendName' => 'UserName',
- ],
+ 'Scheduling' => ['title' => '任务调度规则配置', '$ref' => '#/components/schemas/SchedulingRule'],
],
],
- 'UserViewMetric' => [
- 'title' => 'A short description of struct',
- 'description' => 'resource group metric',
- 'visibility' => 'Public',
+ 'SandboxCacheConfig' => [
'type' => 'object',
'properties' => [
- 'ResourceGroupId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'rg17tmvwiokhzaxg',
- 'backendName' => 'ResourceGroupID',
- ],
- 'TotalCPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1000',
- 'backendName' => 'TotalCPU',
- ],
- 'CPUUsageRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'CPUUsageRate',
- ],
- 'GPUUsageRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'GPUUsageRate',
- ],
- 'TotalMemory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'backendName' => 'TotalMemory',
- ],
- 'TotalGPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'backendName' => 'TotalGPU',
- ],
- 'MemoryUsageRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'MemoryUsageRate',
- ],
- 'RequestCPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- 'backendName' => 'RequestCPU',
- ],
- 'RequestGPU' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- 'backendName' => 'RequestGPU',
- ],
- 'RequestMemory' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '102400000',
- 'backendName' => 'RequestMemory',
- ],
- 'NetworkInputRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'NetworkInputRate',
+ 'Enabled' => ['type' => 'boolean'],
+ ],
+ ],
+ 'SchedulingRule' => [
+ 'title' => '任务调度配置',
+ 'description' => '任务调度配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'StartAt' => ['title' => '任务开始生效时间', 'type' => 'string'],
+ 'EndAt' => ['title' => '任务停止时间', 'type' => 'string'],
+ 'ExecuteOnce' => ['title' => '是否只执行一次', 'type' => 'boolean', 'required' => false],
+ 'CronTab' => ['title' => 'cron tab,当前只支持 分、时、日、月、周 五个配置,秒级别的配置会被丢弃', 'type' => 'string'],
+ ],
+ ],
+ 'SelfQuotaPreemptionConfig' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'PreemptorPriorities' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'integer', 'format' => 'int32', 'maximum' => '9', 'minimum' => '1'],
],
- 'NetworkOutputRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'NetworkOutputRate',
+ 'PreemptedPriorities' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'integer', 'format' => 'int32', 'maximum' => '9', 'minimum' => '1'],
],
- 'DiskReadRate' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'DiskReadRate',
+ 'PreemptedProducts' => [
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
- 'DiskWriteRate' => [
+ ],
+ ],
+ 'SpotBidPreviewItem' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'name' => ['title' => '', 'description' => 'The name of the spot bid preview.', 'type' => 'string', 'example' => ''],
+ 'jobName' => ['title' => '', 'description' => 'The name of the associated job.', 'type' => 'string', 'example' => ''],
+ 'instanceType' => ['title' => '', 'description' => 'The type of compute instance.', 'type' => 'string', 'example' => ''],
+ 'gcLevel' => ['title' => '', 'description' => 'The GC level for the spot instance.', 'type' => 'string', 'example' => ''],
+ 'replicas' => ['title' => '', 'description' => 'The number of instance replicas.', 'type' => 'integer', 'format' => 'int32', 'example' => ''],
+ 'maxDiscount' => ['title' => '', 'description' => 'The maximum discount percentage from the on-demand price.', 'type' => 'number', 'format' => 'double', 'example' => ''],
+ 'phase' => ['title' => '', 'description' => 'The current phase of the spot bid preview. Valid values are `Pending`, `Active`, and `Failed`.', 'type' => 'string', 'example' => ''],
+ 'message' => ['title' => '', 'description' => 'A message that provides additional details about the current phase.', 'type' => 'string', 'example' => ''],
+ 'clusterId' => ['title' => '', 'description' => 'The ID of the cluster where resources are provisioned.', 'type' => 'string', 'example' => ''],
+ 'allowCrossHpnZone' => ['description' => 'Determines whether instances can be deployed across different High-Performance Network (HPN) zones. Defaults to `false`.', 'type' => 'boolean', 'title' => '', 'example' => ''],
+ 'active' => ['description' => 'Indicates whether the spot bid is active. If set to `false`, the bid is paused.', 'type' => 'boolean', 'title' => '', 'example' => ''],
+ ],
+ 'description' => 'Details of a spot bid preview.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SpotPriceItem' => [
+ 'title' => '抢占式实例价格',
+ 'description' => '抢占式实例价格',
+ 'type' => 'object',
+ 'properties' => [
+ 'ZoneId' => ['title' => '可用区ID', 'type' => 'string', 'example' => 'cn-wulanchabu-a'],
+ 'InstanceType' => ['title' => '抢占式实例类型', 'type' => 'string', 'example' => 'ml.gu8xf.8xlarge-gu108'],
+ 'SpotDiscount' => ['title' => '抢占式实例折扣', 'type' => 'number', 'format' => 'float', 'example' => '0.1'],
+ 'Timestamp' => ['title' => '抢占式实例当前价格时间戳', 'type' => 'string', 'example' => '2024-01-17T06:00:00Z'],
+ ],
+ ],
+ 'SpotStockInternalInfo' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'clusterId' => ['description' => 'The ID of the cluster.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'hpnZone' => ['description' => 'The ID of the high-performance network (HPN) zone.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'totalQuantity' => ['description' => 'The total number of Spot Instances.', 'type' => 'integer', 'title' => '', 'format' => 'int32', 'example' => ''],
+ 'availableQuantity' => ['description' => 'The number of available Spot Instances.', 'type' => 'integer', 'title' => '', 'format' => 'int32', 'example' => ''],
+ ],
+ 'description' => 'Stock information for Spot Instances.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SpotStockItem' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'instanceType' => ['title' => '', 'description' => 'The instance type.', 'type' => 'string', 'example' => ''],
+ 'stockStatus' => ['title' => '', 'description' => 'The stock status of the instance type. Valid values are `Available` and `SoldOut`.', 'type' => 'string', 'example' => ''],
+ 'internalInfo' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'DiskWriteRate',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/SpotStockInternalInfo', 'description' => '', 'title' => '', 'example' => ''],
+ 'description' => 'Internal information about the stock of the spot instance type.',
+ 'example' => '',
],
- 'JobType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'JobType',
+ ],
+ 'description' => 'Information about the stock of a spot instance type.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SpotStockPreview' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceType' => ['title' => '', 'type' => 'string', 'example' => 'ml.gu8xf.8xlarge-gu108', 'description' => ''],
+ 'StockStatus' => ['title' => '', 'type' => 'string', 'example' => 'WithStock', 'description' => ''],
+ 'SpotDiscount' => ['title' => '', 'type' => 'number', 'format' => 'float', 'example' => '0.1', 'description' => ''],
+ 'ClusterId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AvailableQuantity' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'example' => '',
+ ],
+ 'StatisticsDetails' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IdleNum' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'Count' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'StatisticsResources' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeNum' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'HyperNodeNum' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
+ 'CPU' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Memory' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'GPU' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SubQuotaPreemptionConfig' => [
+ 'title' => 'A short description of struct',
+ 'description' => '抢占子Quota配置',
+ 'type' => 'object',
+ 'properties' => [
+ 'PreemptedPriorityUpperBound' => ['title' => '被抢占任务最高优先级', 'type' => 'integer', 'format' => 'int64', 'example' => '9'],
+ 'PreemptedProducts' => [
+ 'title' => '可被抢占的任务类型',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'dlc'],
],
- 'UserId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'backendName' => 'UserId',
+ ],
+ ],
+ 'Task' => [
+ 'title' => '任务详情',
+ 'description' => '任务信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaId' => ['title' => '所属Quota ID', 'type' => 'string'],
+ 'TaskName' => ['title' => '任务名称', 'type' => 'string'],
+ 'TaskId' => ['title' => '任务ID', 'type' => 'string'],
+ 'Description' => ['title' => '任务描述', 'type' => 'string'],
+ 'Rules' => ['title' => '任务执行规则', '$ref' => '#/components/schemas/Rules'],
+ 'Actions' => [
+ 'title' => '任务执行的操作',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/Action'],
],
- 'CPUNodeNumber' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'backendName' => 'CPUNodeNumber',
+ 'UserId' => ['title' => '用户ID', 'type' => 'string'],
+ 'UserName' => ['title' => '用户名', 'type' => 'string'],
+ 'Status' => ['title' => '任务状态', 'type' => 'string'],
+ 'GmtCreatedTime' => ['title' => '任务创建时间', 'type' => 'string'],
+ 'GmtModifiedTime' => ['title' => '任务修改时间', 'type' => 'string'],
+ 'GmtActivatedTime' => ['title' => '任务激活时间', 'type' => 'string'],
+ 'GmtStoppedTime' => ['title' => '任务停止时间', 'type' => 'string'],
+ ],
+ ],
+ 'TaskInstance' => [
+ 'title' => 'Quota 任务实例',
+ 'description' => 'Quota任务实例',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskId' => ['title' => '任务ID', 'type' => 'string'],
+ 'TaskInstanceId' => ['title' => '任务实例ID', 'type' => 'string'],
+ 'UserId' => ['title' => '创建者ID', 'type' => 'string'],
+ 'TenantId' => ['title' => '云账号ID', 'type' => 'string'],
+ 'Status' => ['title' => '任务实例状态', 'type' => 'string'],
+ 'GmtCreatedTime' => ['title' => '实例创建时间', 'type' => 'string'],
+ 'GmtEndTime' => ['title' => '实例结束时间', 'type' => 'string'],
+ ],
+ ],
+ 'TaskInstanceEvent' => [
+ 'title' => 'Quota Task Instance Event',
+ 'description' => 'Quota 任务实例消息',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['title' => '状态', 'type' => 'string'],
+ 'GmtStartTime' => ['title' => '开始运行时间', 'type' => 'string'],
+ 'GmtEndTime' => ['title' => '结束运行时间', 'type' => 'string'],
+ 'WorkloadType' => ['title' => '任务涉及子产品类型', 'type' => 'string'],
+ 'PodName' => ['title' => '任务涉及Pod名称', 'type' => 'string'],
+ 'Message' => ['title' => '消息内容', 'type' => 'string'],
+ ],
+ ],
+ 'TimeRangeFilter' => [
+ 'title' => '时间范围定义,过滤使用',
+ 'description' => '时间范围搜索',
+ 'type' => 'object',
+ 'properties' => [
+ 'StartTime' => ['title' => '开始时间', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'EndTime' => ['title' => '结束时间', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ ],
+ ],
+ 'UnschedulableNodeDetail' => [
+ 'title' => '节点调度失败原因',
+ 'description' => '节点调度失败原因',
+ 'type' => 'object',
+ 'properties' => [
+ 'Nodes' => [
+ 'title' => '节点列表',
+ 'type' => 'array',
+ 'items' => ['type' => 'string', 'example' => 'i-eabcsjiow'],
],
- 'GPUNodeNumber' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'integer',
- 'format' => 'int32',
- 'backendName' => 'GPUNodeNumber',
+ 'Reason' => ['title' => '失败原因', 'type' => 'string'],
+ ],
+ ],
+ 'UserInfo' => [
+ 'description' => 'User information ',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserId' => ['description' => 'User ID ', 'title' => '', 'type' => 'string', 'example' => '161222222222'],
+ 'UserName' => ['description' => 'username ', 'title' => '', 'type' => 'string', 'example' => 'test'],
+ ],
+ 'example' => '',
+ ],
+ 'UserQuotaPermission' => [
+ 'title' => '用户在Quota上的权限',
+ 'description' => '用户在Quota上的权限',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaId' => ['title' => 'Quota ID', 'type' => 'string'],
+ 'Permissions' => [
+ 'title' => '权限',
+ 'type' => 'array',
+ 'items' => ['type' => 'string'],
],
+ ],
+ ],
+ 'UserViewMetric' => [
+ 'description' => 'Resource group metrics data.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceGroupId' => ['title' => '', 'description' => 'Resource group ID.', 'type' => 'string', 'example' => 'rg17tmvwiokh****'],
+ 'TotalCPU' => ['title' => '', 'description' => 'Total number of CPU cores.', 'type' => 'integer', 'example' => '1000', 'format' => 'int32'],
+ 'CPUUsageRate' => ['title' => '', 'description' => 'CPU usage rate.', 'type' => 'string', 'example' => '59'],
+ 'GPUUsageRate' => ['title' => '', 'description' => 'GPU usage rate.', 'type' => 'string', 'example' => '10'],
+ 'TotalMemory' => ['title' => '', 'description' => 'Total memory, in KB.', 'type' => 'integer', 'example' => '10240', 'format' => 'int64'],
+ 'TotalGPU' => ['title' => '', 'description' => 'Total number of GPU cards.', 'type' => 'integer', 'example' => '1', 'format' => 'int32'],
+ 'MemoryUsageRate' => ['title' => '', 'description' => 'Memory usage rate.', 'type' => 'string', 'example' => '20'],
+ 'RequestCPU' => ['title' => '', 'description' => 'Number of CPU cores allocated.', 'type' => 'integer', 'example' => '100', 'format' => 'int32'],
+ 'RequestGPU' => ['title' => '', 'description' => 'Number of GPU cores allocated.', 'type' => 'integer', 'example' => '10', 'format' => 'int32'],
+ 'RequestMemory' => ['title' => '', 'description' => 'Allocated memory, in KB.', 'type' => 'integer', 'example' => '102400000', 'format' => 'int64'],
+ 'NetworkInputRate' => ['title' => '', 'description' => 'The network input rate.', 'type' => 'string', 'example' => '1'],
+ 'NetworkOutputRate' => ['title' => '', 'description' => 'Network output rate.', 'type' => 'string', 'example' => '1'],
+ 'DiskReadRate' => ['title' => '', 'description' => 'Disk read rate.', 'type' => 'string', 'example' => '22'],
+ 'DiskWriteRate' => ['title' => '', 'description' => 'Disk write rate.', 'type' => 'string', 'example' => '22'],
+ 'JobType' => ['title' => '', 'description' => 'Job type.', 'type' => 'string', 'example' => 'PyTorch'],
+ 'UserId' => ['title' => '', 'description' => 'User ID.', 'type' => 'string', 'example' => '16111111****'],
+ 'CPUNodeNumber' => ['title' => '', 'description' => 'Number of CPU nodes.', 'type' => 'integer', 'example' => '2', 'format' => 'int32'],
+ 'GPUNodeNumber' => ['title' => '', 'description' => 'Number of GPU nodes.', 'type' => 'integer', 'example' => '1', 'format' => 'int32'],
'CpuJobNames' => [
+ 'description' => 'CPU jobs.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'CpuJobNames',
+ 'items' => ['description' => 'Job name.', 'type' => 'string', 'title' => '', 'example' => 'dlcxxxxx'],
+ 'example' => '',
],
'GpuJobNames' => [
+ 'description' => 'GPU jobs.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'GpuJobNames',
+ 'items' => ['description' => 'Job name.', 'type' => 'string', 'title' => '', 'example' => 'dlcyyyyy'],
+ 'example' => '',
],
'NodeNames' => [
+ 'description' => 'List of nodes.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'NodeNames',
+ 'items' => ['description' => 'Node name.', 'type' => 'string', 'title' => '', 'example' => 'lrnxxxxxx'],
+ 'example' => '',
],
'CpuNodeNames' => [
+ 'description' => 'List of CPU nodes.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'CpuNodeNames',
+ 'items' => ['description' => 'Node name.', 'type' => 'string', 'title' => '', 'example' => 'ecixxxxxx'],
+ 'example' => '',
],
'GpuNodeNames' => [
+ 'description' => 'List of GPU nodes.',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'extendType' => 'true',
- ],
- 'backendName' => 'GpuNodeNames',
+ 'items' => ['description' => 'Node name.', 'type' => 'string', 'title' => '', 'example' => 'lrnxxxxxxx'],
+ 'example' => '',
],
],
+ 'example' => '',
],
'UserVpc' => [
- 'title' => 'A short description of struct',
+ 'title' => '',
'description' => 'UserVpc',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'VpcId' => [
- 'title' => 'VPC ID',
- 'description' => 'VPC ID',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'vpc-abcdef****',
- 'backendName' => 'VpcId',
- ],
- 'SwitchId' => [
- 'title' => 'VSW ID',
- 'description' => 'VSW ID',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'vs-abcdef****',
- 'backendName' => 'SwitchId',
- ],
- 'SecurityGroupId' => [
- 'title' => 'SecurityGroupID',
- 'description' => 'SecurityGroupID',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'sg-abcdef****',
- 'backendName' => 'SecurityGroupId',
- ],
+ 'VpcId' => ['title' => '', 'description' => 'VPC ID', 'type' => 'string', 'example' => 'vpc-abcdef****'],
+ 'SwitchId' => ['title' => '', 'description' => 'VSW ID', 'type' => 'string', 'example' => 'vs-abcdef****'],
+ 'SecurityGroupId' => ['title' => '', 'description' => 'SecurityGroupID', 'type' => 'string', 'example' => 'sg-abcdef****'],
'ExtendedCIDRs' => [
- 'title' => 'ExtendedCIDRs',
+ 'title' => '',
'description' => 'ExtendedCIDRs',
- 'visibility' => 'public',
'type' => 'array',
- 'items' => [
- 'description' => 'one cidr',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => '"192.168.0.1/24"',
- 'extendType' => 'true',
- ],
- 'backendName' => 'ExtendedCIDRs',
- ],
- 'RoleArn' => [
- 'title' => 'RoleArn',
- 'description' => 'RoleArn',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole',
- 'backendName' => 'RoleArn',
- ],
- 'DefaultRoute' => [
- 'title' => 'DefaultRoute',
- 'description' => 'DefaultRoute',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'eth0',
- 'backendName' => 'DefaultRoute',
+ 'items' => ['description' => 'one cidr', 'type' => 'string', 'example' => '"192.168.0.1/24"', 'title' => ''],
+ 'example' => '',
],
+ 'RoleArn' => ['title' => '', 'description' => 'RoleArn', 'type' => 'string', 'example' => 'acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole'],
+ 'DefaultRoute' => ['title' => '', 'description' => 'DefaultRoute', 'type' => 'string', 'example' => 'eth0'],
+ 'DefaultForwardInfo' => ['title' => '', '$ref' => '#/components/schemas/ForwardInfo', 'description' => '', 'example' => ''],
],
+ 'example' => '',
],
- 'WorkspaceIdName' => [
+ 'WorkloadInfo' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
'type' => 'object',
'properties' => [
- 'WorkspaceId' => [
+ 'WorkloadId' => ['title' => '', 'description' => 'The unique, system-generated ID for the workload.', 'type' => 'string', 'example' => ''],
+ 'WorkloadName' => ['title' => '', 'description' => 'The user-defined name of the workload.', 'type' => 'string', 'example' => ''],
+ 'WorkloadType' => ['title' => '', 'description' => 'The type of the workload.', 'type' => 'string', 'example' => ''],
+ 'WorkspaceId' => ['title' => '', 'description' => 'The ID of the workspace that contains the workload.', 'type' => 'string', 'example' => ''],
+ 'WorkspaceName' => ['title' => '', 'description' => 'The name of the workspace that contains the workload.', 'type' => 'string', 'example' => ''],
+ 'WorkloadCreatedTime' => ['title' => '', 'description' => 'The creation time of the workload, in UTC format.', 'type' => 'string', 'example' => ''],
+ 'WorkloadStatus' => ['title' => '', 'description' => 'The current status of the workload. Possible values include `Pending`, `Running`, `Succeeded`, and `Failed`.', 'type' => 'string', 'example' => ''],
+ 'UserId' => ['title' => '', 'description' => 'The ID of the user who created the workload.', 'type' => 'string', 'example' => ''],
+ 'TenantId' => ['title' => '', 'description' => 'The ID of the tenant that contains the workload.', 'type' => 'string', 'example' => ''],
+ 'UserName' => ['title' => '', 'description' => 'The name of the user who created the workload.', 'type' => 'string', 'example' => ''],
+ 'Priority' => ['title' => '', 'description' => 'The scheduling priority of the workload. A higher value indicates a higher priority.', 'type' => 'integer', 'format' => 'int32', 'example' => ''],
+ 'IsScheduled' => ['title' => '', 'description' => 'Specifies whether the workload is scheduled. Valid values are `true` and `false`.', 'type' => 'string', 'example' => ''],
+ 'QueueMetas' => [
'title' => '',
- 'description' => '',
- 'visibility' => 'public',
- 'type' => 'string',
- 'example' => 'ws123456',
- 'backendName' => 'WorkspaceId',
+ 'type' => 'array',
+ 'items' => ['title' => '', 'description' => 'The metadata for a single queue.', '$ref' => '#/components/schemas/QueueMeta', 'example' => ''],
+ 'description' => 'A list of metadata for the queues associated with the workload.',
+ 'example' => '',
],
],
+ 'description' => 'The configuration and status of a workload.',
+ 'example' => '',
+ ],
+ 'WorkspaceIdName' => [
+ 'description' => 'The workspace ID and name.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'WorkspaceId' => ['title' => '', 'description' => 'The workspace ID.', 'type' => 'string', 'example' => 'ws123***'],
+ 'WorkspaceName' => ['description' => 'The workspace name.', 'type' => 'string', 'title' => '', 'example' => ''],
+ ],
+ 'example' => '',
],
'WorkspaceSpec' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Specification template.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'SpecName' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'spec_test',
- 'backendName' => 'SpecName',
- ],
- 'IsGuaranteedValid' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'IsGuaranteedValid',
- ],
- 'IsOverSoldValid' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'boolean',
- 'example' => 'true',
- 'backendName' => 'IsOverSoldValid',
- ],
- 'Spec' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'backendName' => 'Spec',
- '$ref' => '#/components/schemas/ResourceAmount',
- ],
- 'CodeType' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'CodeType',
- ],
- 'Code' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'Code',
- ],
- 'Reason' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '""',
- 'backendName' => 'Reason',
- ],
+ 'SpecName' => ['description' => 'Template Name ', 'title' => '', 'type' => 'string', 'example' => 'spec_test'],
+ 'IsGuaranteedValid' => ['description' => 'Indicates whether the use of guaranteed resources is valid. ', 'title' => '', 'type' => 'boolean', 'example' => 'true'],
+ 'IsOverSoldValid' => ['description' => 'Indicates whether the use of oversold resources is valid. ', 'title' => '', 'type' => 'boolean', 'example' => 'true'],
+ 'Spec' => ['description' => 'Specification resource information ', 'title' => '', '$ref' => '#/components/schemas/ResourceAmount', 'example' => ''],
+ 'CodeType' => ['description' => 'Type of invalidity reason when using guaranteed resources is invalid ', 'title' => '', 'type' => 'string', 'example' => '""'],
+ 'Code' => ['description' => 'Invalidity reason code when using guaranteed resources is invalid ', 'title' => '', 'type' => 'string', 'example' => '""'],
+ 'Reason' => ['description' => 'Invalidity reason content when using guaranteed resources is invalid ', 'title' => '', 'type' => 'string', 'example' => '""'],
],
+ 'example' => '',
],
'WorkspaceSpecs' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'visibility' => 'Public',
+ 'description' => 'Specification template used for submitting workloads available within the workspace.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'WorkspaceId' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => '122421',
- 'backendName' => 'WorkspaceId',
- ],
- 'Product' => [
- 'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
- 'type' => 'string',
- 'example' => 'DLC',
- 'backendName' => 'Product',
- ],
+ 'WorkspaceId' => ['description' => 'Workspace ID ', 'title' => '', 'type' => 'string', 'example' => '122421'],
+ 'Product' => ['description' => 'Applicable product (DLC, DSW, EAS, ...) ', 'title' => '', 'type' => 'string', 'example' => 'DLC'],
'Specs' => [
+ 'description' => 'List of resource specifications ',
'title' => '',
- 'description' => '',
- 'visibility' => 'Public',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'visibility' => 'Public',
- 'extendType' => 'true',
- '$ref' => '#/components/schemas/WorkspaceSpec',
- ],
- 'backendName' => 'Specs',
+ 'items' => ['description' => 'Template Configuration for workspace specifications.', '$ref' => '#/components/schemas/WorkspaceSpec', 'title' => '', 'example' => ''],
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
'apis' => [
- 'UpdateResourceGroup' => [
- 'summary' => '更新Resource Group',
- 'path' => '/api/v1/resources/{ResourceGroupID}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CheckInstanceWebTerminal' => [
+ 'summary' => 'Checks the connection to the instance container.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals/action/check',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '143268',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '199680',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'traineyfz0m2hsfv', 'title' => ''],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'example' => 'train1oxaqdiluad-master-0', 'title' => ''],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '',
+ 'description' => 'The check configuration.',
'type' => 'object',
'properties' => [
- 'UserVpc' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/UserVpc',
- ],
- 'Unbind' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'prophet',
- ],
- 'Description' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_new_havpn_tf',
- ],
+ 'CheckInfo' => ['description' => 'The check information.', 'type' => 'string', 'required' => false, 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******', 'title' => ''],
],
'required' => false,
- ],
- ],
- [
- 'name' => 'ResourceGroupID',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgf0zhfqn1d4ity2',
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7',
- ],
- 'ResourceGroupID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]',
- 'title' => 'UpdateResourceGroup',
- ],
- 'GetResourceGroupTotal' => [
- 'summary' => 'get resource group total resource by group id',
- 'path' => '/api/v1/resources/data/total',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Validate the link to access the instance container.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'CreateAlgorithm' => [
+ 'summary' => 'Creates an algorithm.',
+ 'path' => '/api/v1/algorithms',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => [],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '145960',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'ResourceGroupID',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
+ 'name' => 'WorkspaceId',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The ID of the workspace.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
+ ],
+ [
+ 'name' => 'AlgorithmDescription',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The description of the algorithm.', 'type' => 'string', 'example' => 'Tongyi Qwen large language model training algorithm.', 'required' => false, 'title' => ''],
+ ],
+ [
+ 'name' => 'AlgorithmName',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The name of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'llm_training', 'title' => ''],
+ ],
+ [
+ 'name' => 'DisplayName',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The display name of the algorithm.', 'type' => 'string', 'example' => 'Large language model training', 'required' => false, 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The data returned.',
'type' => 'object',
'properties' => [
- 'totalCPU' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'totalMemory' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '300',
- ],
- 'totalGPU' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '24',
- ],
- 'totalGPUInfos' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/GPUInfo',
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F'],
+ 'AlgorithmId' => ['description' => 'The ID of the algorithm.', 'type' => 'string', 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCPU\\": 100,\\n \\"totalMemory\\": 300,\\n \\"totalGPU\\": 24,\\n \\"totalGPUInfos\\": [\\n {\\n \\"count\\": 0,\\n \\"type\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'GetResourceGroupTotal',
- ],
- 'ListResourceGroups' => [
- 'summary' => 'list resource group',
- 'path' => '/api/v1/resources',
- 'methods' => [
- 'get',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\"\\n}","type":"json"}]',
+ 'title' => 'Create algorithm',
+ 'changeSet' => [
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:58.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlgorithm'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ ],
+ 'CreateAlgorithmVersion' => [
+ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '124250',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'pai resource group display name',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'title' => '分页数',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '2',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'title' => '页面容量',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'title' => '排序顺序, 枚举值 desc 或者 asc',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'title' => '用于排序的字段名,可选字段名:DisplayName, GmtCreated, GmtModified,RegionID Duration PricingCycle PayType',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DisplayName',
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'resource group的状态',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Creating',
- ],
- ],
- [
- 'name' => 'ShowAll',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- 'default' => 'false',
- ],
- ],
- [
- 'name' => 'ComputingResourceProvider',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ecs',
- ],
- ],
- [
- 'name' => 'ResourceType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Lingjun',
- ],
- ],
- [
- 'name' => 'ResourceGroupIDs',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'name' => 'AlgorithmId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'ID of the training algorithm.', 'type' => 'string', 'required' => false, 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
[
- 'name' => 'HasResource',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- ],
+ 'name' => 'AlgorithmVersion',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Algorithm version.', 'type' => 'string', 'required' => false, 'example' => 'v0.0.1', 'title' => ''],
],
[
- 'name' => 'Versions',
- 'in' => 'query',
- 'schema' => [
- 'title' => '按照版本搜索。',
- 'type' => 'string',
- 'example' => '1.0',
- ],
+ 'name' => 'AlgorithmSpec',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => ['description' => 'Algorithm configuration.', '$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'ResourceGroups' => [
- 'title' => 'pai resource groups',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/ResourceGroup',
- ],
- 'example' => 'RG1',
- ],
- 'TotalCount' => [
- 'title' => 'list到的资源组的数量',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '2',
- ],
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '9CFA2665-1FFE-5929-8468-C14C25890486',
- ],
+ 'AlgorithmId' => ['description' => 'ID of the training algorithm.', 'type' => 'string', 'example' => 'algo-xsldfvu1334', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'Algorithm version.', 'type' => 'string', 'example' => 'v0.0.1', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroups\\": [\\n {\\n \\"Name\\": \\"RG1\\",\\n \\"ResourceGroupID\\": \\"rg17tmvwiokhzaxg\\",\\n \\"WorkspaceID\\": \\"23000\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"CreatorID\\": \\"\\",\\n \\"NodeCount\\": 0,\\n \\"Version\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"9CFA2665-1FFE-5929-8468-C14C25890486\\"\\n}","type":"json"}]',
- 'title' => 'ListResourceGroups',
- ],
- 'GetResourceGroupRequest' => [
- 'summary' => 'get resource group requested resource by resource group id',
- 'path' => '/api/v1/resources/data/request',
- 'methods' => [
- 'get',
+ 'title' => 'Create an algorithm version',
+ 'summary' => 'Creates a version of an algorithm.',
+ 'changeSet' => [
+ ['createdAt' => '2022-04-27T10:50:46.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlgorithmVersion'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ 'CreateInstanceWebTerminal' => [
+ 'summary' => 'You can create a link to access the container of the instance.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => true,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '146159',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'abilityTreeCode' => '199679',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'ResourceGroupID',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'train1nc6686x36b', 'title' => ''],
],
[
- 'name' => 'PodStatus',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- 'default' => 'Running',
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'example' => 'train1nc6686x36b-master-0', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'requestCPU' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'requestMemory' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
- 'requestGPU' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '8',
- ],
- 'requestGPUInfos' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/GPUInfo',
- ],
- ],
+ 'WebTerminalId' => ['description' => 'The ID of the web terminal used to access the instance container.', 'type' => 'string', 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- ],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'title' => 'Create a link to access the instance container',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestCPU\\": 1,\\n \\"requestMemory\\": 2,\\n \\"requestGPU\\": 8,\\n \\"requestGPUInfos\\": [\\n {\\n \\"count\\": 0,\\n \\"type\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'GetResourceGroupRequest',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"WebTerminalId\\": \\"wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'DeleteResourceGroupMachineGroup' => [
- 'summary' => 'delete machine group',
- 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateQuota' => [
+ 'summary' => 'Call the `CreateQuota` operation to create a quota.',
+ 'path' => '/api/v1/quotas',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => true,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '125207',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191129',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'MachineGroupID',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- ],
- ],
- [
- 'name' => 'ResourceGroupID',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaName' => ['title' => '', 'description' => 'The name of the quota.', 'type' => 'string', 'required' => false, 'example' => 'test-quota'],
+ 'ResourceType' => ['title' => '', 'description' => 'The resource type of the quota. Valid values: Lingjun, ECS, and ACS. Default value: ECS.', 'type' => 'string', 'required' => false, 'example' => 'ECS'],
+ 'ParentQuotaId' => ['title' => '', 'description' => 'The ID of the parent quota.'."\n"
+ ."\n"
+ .'- If you do not specify this parameter, a root quota is created. Resources are allocated from a dedicated resource group.'."\n"
+ ."\n"
+ .'- If you specify this parameter, a child quota is created. Resources are allocated from the nodes that are bound to the root quota.', 'type' => 'string', 'required' => false, 'example' => 'quota1ci8g793pgm'],
+ 'ResourceGroupIds' => [
+ 'description' => 'The IDs of the dedicated resource groups. The following constraints apply:'."\n"
+ ."\n"
+ .'- Only a root quota, for which `ParentQuotaId` is empty, can allocate nodes from a resource group.'."\n"
+ ."\n"
+ .'- The VPC configurations of the specified resource groups must be the same.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rgl593id9qqwkmbr', 'title' => ''],
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'AllocateStrategy' => ['title' => '', 'description' => 'The allocation strategy for the quota. Only `ByNodeSpecs` is supported.', 'type' => 'string', 'required' => false, 'example' => 'ByNodeSpecs'],
+ 'Min' => ['description' => 'The minimum resources for the quota. You can define this in one of the following ways:'."\n"
+ ."\n"
+ .'- `ResourceAmount`: Specifies the CPU, memory, and GPU details.'."\n"
+ ."\n"
+ .'- `NodeSpecs`: Specifies the node specification and the number of nodes.'."\n"
+ ."\n"
+ .'Constraints:'."\n"
+ ."\n"
+ .'- If this quota allocates resources from a dedicated resource group, you must use the `NodeSpecs` method.'."\n"
+ ."\n"
+ .'- If this quota allocates resources from a parent quota, both methods are allowed. However, all its child quotas must use the same method.'."\n"
+ ."\n"
+ .'- All GPU specifications within the quota must have the same GPU type.'."\n"
+ ."\n"
+ .'- For quotas with the resource type set to ECS or Lingjun, only the `NodeSpecs` method can be used.', '$ref' => '#/components/schemas/ResourceSpec', 'required' => false, 'title' => '', 'example' => ''],
+ 'Description' => ['title' => '', 'description' => 'The description of the quota.', 'type' => 'string', 'required' => false, 'example' => 'this is a test quota'],
+ 'Labels' => [
+ 'description' => 'The tags for the quota.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The tag.', '$ref' => '#/components/schemas/Label', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'QuotaConfig' => ['description' => 'Constraints for the `QuotaConfig` parameter:'."\n"
+ ."\n"
+ .'- This parameter is ignored if the resource type is ECS or Lingjun.'."\n"
+ ."\n"
+ .'- If the resource type is ACS, the specified VPC and ACS configurations are applied.', '$ref' => '#/components/schemas/QuotaConfig', 'required' => false, 'title' => '', 'example' => ''],
+ 'QueueStrategy' => ['description' => 'The queuing strategy for the quota. Four strategies are supported:'."\n"
+ ."\n"
+ .'- `PaiStrategyIntelligent`: The intelligent strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyBalance`: The balance strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyRoundRobin`: The round-robin strategy.'."\n"
+ ."\n"
+ .'- `PaiStrategyStrictFIFO`: The FIFO strategy.', 'type' => 'string', 'required' => false, 'example' => 'PaiStrategyIntelligent', 'title' => ''],
+ 'ClusterSpec' => ['title' => '', 'description' => 'The native cluster specification for the quota.', '$ref' => '#/components/schemas/ClusterSpec', 'required' => false, 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'description' => 'The response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'MachineGroupID' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579'],
+ 'QuotaId' => ['title' => '', 'description' => 'The quota ID.', 'type' => 'string', 'example' => 'quotad2kd8ljpsno'],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'substitutions' => [
- 'PaiStudio::2022-01-12::DeleteResourceGroupMachineGroup',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create Resource Quota',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-06T13:03:33.000Z', 'description' => 'Request parameters changed'],
],
- 'responseDemo' => null,
- ],
- 'GetNodeMetrics' => [
- 'summary' => 'get resource group node metrics',
- 'path' => '/api/v1/resources/{ResourceGroupID}/nodemetrics/{MetricType}',
- 'methods' => [
- 'get',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:CreateQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"QuotaId\\": \\"quotad2kd8ljpsno\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'CreateResourceGroup' => [
+ 'summary' => 'Use the CreateResourceGroup operation to create a resource group.',
+ 'path' => '/api/v1/resources',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => true,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '151753',
- 'abilityTreeNodes' => [
- 'FEATURElearn8Y18OQ',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '125287',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7', 'FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'ResourceGroupID',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- ],
- [
- 'name' => 'GPUType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'V100',
- ],
- ],
- [
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-07-08T02:23:30.292Z',
- ],
- ],
- [
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-07-10T10:17:06',
- ],
- ],
- [
- 'name' => 'TimeStep',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1h',
- ],
- ],
- [
- 'name' => 'Verbose',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '',
- 'type' => 'boolean',
+ 'description' => 'Request struct.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => 'Resource group name.', 'type' => 'string', 'required' => false, 'example' => 'testResourceGroup', 'title' => ''],
+ 'Description' => ['description' => 'Resource group description.', 'type' => 'string', 'required' => false, 'example' => 'test_api_report', 'title' => ''],
+ 'UserVpc' => ['description' => 'VPC connectivity information for the resource group.', '$ref' => '#/components/schemas/UserVpc', 'required' => false, 'title' => '', 'example' => ''],
+ 'ResourceType' => ['description' => 'Resource type. Valid values:'."\n"
+ ."\n"
+ .'- Ecs: general computing resources'."\n"
+ ."\n"
+ .'- Lingjun: Lingjun resources', 'type' => 'string', 'required' => false, 'example' => 'Ecs', 'title' => ''],
+ 'ComputingResourceProvider' => ['description' => 'Compute resource type for the resource group.', 'type' => 'string', 'required' => false, 'example' => 'Ecs', 'title' => ''],
+ 'Tag' => [
+ 'description' => 'List of tags to add. Maximum 20 items.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '', 'description' => 'The tag key of the instance. N ranges from 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'],
+ 'Value' => ['title' => '', 'description' => 'Tag value for the resource group. N ranges from 1 to 20.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'Version' => ['title' => '', 'description' => 'Resource group version. This parameter takes effect only when the resource type is ECS.', 'type' => 'string', 'example' => '1.0', 'required' => false],
+ ],
'required' => false,
- 'example' => 'true',
- ],
- ],
- [
- 'name' => 'MetricType',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CpuUsageRate',
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'NodesMetrics' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/NodeMetric',
- ],
- ],
- 'ResourceGroupID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- 'MetricType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'DiskWriteRate',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n"],
+ 'ResourceGroupID' => ['description' => 'Resource group ID.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'substitutions' => [
- 'Cms::2019-01-01::DescribeMetricList',
+ 'title' => 'Create Resource Group',
+ 'changeSet' => [
+ ['createdAt' => '2025-09-19T03:30:04.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-01-04T03:16:22.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-05-11T03:07:01.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-04-04T06:45:05.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-06-29T07:14:56.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceGroup'],
],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NodesMetrics\\": [\\n {\\n \\"NodeID\\": \\"-i121212node\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": 0,\\n \\"Value\\": \\"23000\\"\\n }\\n ],\\n \\"GPUType\\": \\"\\"\\n }\\n ],\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"MetricType\\": \\"DiskWriteRate\\"\\n}","type":"json"}]',
- 'title' => 'GetNodeMetrics',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'ListResourceGroupMachineGroups' => [
- 'summary' => 'list machine groups',
- 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTrainingJob' => [
+ 'summary' => 'Create a training job.',
+ 'path' => '/api/v1/trainingjobs',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '125191',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '132535',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
- ],
- [
- 'name' => 'CreatorID',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1612285282502326',
- ],
- ],
- [
- 'name' => 'ResourceGroupID',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- ],
- [
- 'name' => 'PaymentType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PREPAY',
- ],
- ],
- [
- 'name' => 'PaymentDurationUnit',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Month',
- ],
- ],
- [
- 'name' => 'PaymentDuration',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'EcsSpec',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.c6.large',
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DESC',
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GmtCreatedTime',
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ready',
- ],
- ],
- [
- 'name' => 'OrderInstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '236553689400333',
- ],
- ],
- [
- 'name' => 'MachineGroupIDs',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Request body parameters.',
'type' => 'object',
'properties' => [
- 'MachineGroups' => [
- 'description' => '',
+ 'AlgorithmName' => ['description' => 'Algorithm name.', 'type' => 'string', 'required' => false, 'example' => 'ev_classification', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'Algorithm provider.', 'type' => 'string', 'required' => false, 'example' => 'pai', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'Algorithm version.', 'type' => 'string', 'required' => false, 'example' => 'v1.0.0', 'title' => ''],
+ 'ComputeResource' => [
+ 'description' => 'Compute resource configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'EcsCount' => ['description' => 'Number of ECS instances.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'EcsSpec' => ['description' => 'ECS instance type.', 'type' => 'string', 'required' => false, 'example' => 'ecs.gn5-c8g1.2xlarge', 'title' => ''],
+ 'ResourceId' => ['description' => 'Resource quota ID.', 'type' => 'string', 'required' => false, 'example' => 'quotam670lixikcs', 'title' => ''],
+ 'InstanceCount' => ['description' => 'Number of instances used by the resource quota.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ 'InstanceSpec' => [
+ 'description' => 'Resource quota instance configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CPU' => ['description' => 'Number of CPU cores for the instance.', 'type' => 'string', 'required' => false, 'example' => '8', 'title' => ''],
+ 'Memory' => ['description' => 'Instance memory size, in GiB.', 'type' => 'string', 'required' => false, 'example' => '32', 'title' => ''],
+ 'SharedMemory' => ['description' => 'Instance shared memory size, in GB.', 'type' => 'string', 'required' => false, 'example' => '32', 'title' => ''],
+ 'GPU' => ['description' => 'Number of GPU cards for the instance.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
+ 'GPUType' => ['description' => 'GPU card type for the instance.', 'type' => 'string', 'required' => false, 'example' => 'V100', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'SpotSpec' => [
+ 'description' => 'Spot instance configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'SpotStrategy' => ['description' => 'SpotStrategy: The preemption policy for the instance. Valid values:'."\n"
+ ."\n"
+ .'- SpotWithPriceLimit: Set a maximum price for the spot instance.'."\n"
+ ."\n"
+ .'- SpotAsPriceGo: The system automatically bids, following the current market price.', 'type' => 'string', 'required' => false, 'example' => 'SpotWithPriceLimit', 'title' => ''],
+ 'SpotDiscountLimit' => ['description' => 'Set the maximum hourly price discount for the instance. This parameter takes effect when SpotStrategy is set to SpotWithPriceLimit.', 'type' => 'number', 'format' => 'float', 'required' => false, 'example' => '9', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'UseSpotInstance' => ['description' => 'Specifies whether to use a spot instance.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'HyperParameters' => [
+ 'description' => 'Training hyperparameters configuration.',
'type' => 'array',
'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/MachineGroup',
+ 'description' => 'Training hyperparameters configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => 'Parameter name.', 'type' => 'string', 'required' => false, 'example' => 'learning_rate', 'title' => ''],
+ 'Value' => ['description' => 'Parameter value.', 'type' => 'string', 'required' => false, 'example' => '0.0001', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '4',
+ 'InputChannels' => [
+ 'description' => 'Training input data configuration.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Training input data configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => 'Input data name.', 'type' => 'string', 'required' => false, 'example' => 'model', 'title' => ''],
+ 'DatasetId' => ['description' => 'Dataset ID.', 'type' => 'string', 'required' => false, 'example' => 'd-475megosidivjfgfq6', 'title' => ''],
+ 'VersionName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ 'InputUri' => ['description' => 'Input data link.', 'type' => 'string', 'required' => false, 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/', 'title' => ''],
+ 'Options' => ['description' => 'Input data parameter configuration.', 'type' => 'string', 'required' => false, 'example' => '{"appendable": true}', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F',
+ 'Labels' => [
+ 'description' => 'Training job labels.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Training job labels.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'Label key.', 'type' => 'string', 'required' => false, 'example' => 'CreatedBy', 'title' => ''],
+ 'Value' => ['description' => 'Label value.', 'type' => 'string', 'required' => false, 'example' => 'QuickStart', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'OutputChannels' => [
+ 'description' => 'Training output data configuration.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Training output data configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetId' => ['description' => 'Dataset ID.', 'type' => 'string', 'required' => false, 'example' => 'd-475megosidivjfgfq6', 'title' => ''],
+ 'Name' => ['description' => 'Output data name.', 'type' => 'string', 'required' => false, 'example' => 'model', 'title' => ''],
+ 'OutputUri' => ['description' => 'Output data configuration.', 'type' => 'string', 'required' => false, 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/', 'title' => ''],
+ 'VersionName' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Scheduler' => [
+ 'description' => 'Training job scheduling configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxRunningTimeInSeconds' => ['description' => 'Maximum training runtime, in seconds. A value of 0 means no limit on the maximum runtime.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0', 'title' => ''],
+ 'MaxRunningTimeInMinutes' => ['description' => 'Maximum training runtime, in minutes. A value of 0 means no limit on the maximum runtime.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '0', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TrainingJobDescription' => ['description' => 'Training job description.', 'type' => 'string', 'required' => false, 'example' => 'qwen large language model training', 'title' => ''],
+ 'TrainingJobName' => ['description' => 'Training job name.', 'type' => 'string', 'required' => true, 'example' => 'qwen_llm', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'Workspace ID.', 'type' => 'string', 'required' => true, 'example' => '12345', 'title' => ''],
+ 'AlgorithmSpec' => ['description' => 'Training job algorithm configuration.', '$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false, 'title' => '', 'example' => ''],
+ 'CodeDir' => ['description' => 'Training job code configuration.', '$ref' => '#/components/schemas/Location', 'required' => false, 'title' => '', 'example' => ''],
+ 'RoleArn' => ['description' => 'Specify the ARN of the role. Format: acs:ram::$accountID:role/$roleName.', 'type' => 'string', 'required' => false, 'example' => 'acs:ram::1157703270994901:role/aliyunserviceroleforpaiworkspace', 'title' => ''],
+ 'UserVpc' => [
+ 'description' => 'VPC configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => ['description' => 'VPC ID.', 'type' => 'string', 'required' => false, 'example' => 'vpc-dxiflssjx978sl', 'title' => ''],
+ 'SwitchId' => ['description' => 'vSwitch ID.', 'type' => 'string', 'required' => false, 'example' => 'vs-icrc813vdsfol', 'title' => ''],
+ 'SecurityGroupId' => ['description' => 'Security group ID.', 'type' => 'string', 'required' => false, 'example' => 'sg-qdfasd13sdasf', 'title' => ''],
+ 'ExtendedCIDRs' => [
+ 'description' => 'Extended CIDR block configuration.',
+ 'type' => 'array',
+ 'items' => ['description' => 'Extended CIDR block configuration.', 'type' => 'string', 'required' => false, 'example' => '192.168.0.1/24', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DefaultRoute' => ['description' => 'Default routing interface. \\`eth0\\` means the default route uses the PAI VPC. \\`eth1\\` means the default route uses the user VPC. The default is \\`eth0\\`.', 'type' => 'string', 'required' => false, 'example' => 'eth0', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Settings' => ['description' => 'Additional training job parameter settings.', '$ref' => '#/components/schemas/JobSettings', 'required' => false, 'title' => '', 'example' => ''],
+ 'ExperimentConfig' => [
+ 'description' => 'Training job experiment association configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => 'Training job experiment ID.', 'type' => 'string', 'required' => false, 'example' => 'exp-ds9aefia90v', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Environments' => [
+ 'description' => 'Training job environment variables.',
+ 'additionalProperties' => ['description' => 'Training job environment variables.', 'type' => 'string', 'example' => 'debug=true', 'title' => ''],
+ 'type' => 'object',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
+ 'PythonRequirements' => [
+ 'description' => 'Training job Python package configuration.',
+ 'type' => 'array',
+ 'items' => ['description' => 'Training job Python package configuration.', 'type' => 'string', 'required' => false, 'example' => 'numpy', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Priority' => ['description' => 'Training job priority.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ 'AssignNodeSpec' => ['$ref' => '#/components/schemas/AssignNodeSpec', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
],
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroups\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"EcsCount\\": 0,\\n \\"GmtStartedTime\\": \\"\\",\\n \\"ResourceGroupID\\": \\"\\",\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"CreatorID\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"PaymentDurationUnit\\": \\"\\",\\n \\"EcsSpec\\": \\"\\",\\n \\"SupportedDrivers\\": [\\n \\"470.199.02\\"\\n ],\\n \\"PaymentDuration\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"DiskCapacity\\": 0,\\n \\"GmtExpiredTime\\": \\"\\",\\n \\"OrderInstanceId\\": \\"\\",\\n \\"DefaultDriver\\": \\"470.199.02\\",\\n \\"MachineGroupID\\": \\"mg1\\",\\n \\"PaymentType\\": \\"\\",\\n \\"DiskPL\\": \\"\\",\\n \\"Cpu\\": 0,\\n \\"Gpu\\": 0,\\n \\"GpuMemory\\": 0,\\n \\"GpuType\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"ResourceType\\": \\"\\",\\n \\"AllocatableCpu\\": 0,\\n \\"AllocatableMemory\\": 0,\\n \\"SystemReservedCpu\\": 0,\\n \\"SystemReservedMemory\\": 0\\n }\\n ],\\n \\"TotalCount\\": \\"4\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]',
- 'title' => 'ListResourceGroupMachineGroups',
- ],
- 'GetUserViewMetrics' => [
- 'summary' => 'get user view metrics',
- 'path' => '/api/v1/resources/{ResourceGroupID}/usermetrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '152476',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- 'FEATURElearn1N0SUT',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'ResourceGroupID',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- ],
- [
- 'name' => 'WorkspaceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
'required' => false,
- 'example' => '86995',
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GmtModified',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DESC',
- ],
- ],
- [
- 'name' => 'UserId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456',
- ],
- ],
- [
- 'name' => 'TimeStep',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1h',
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'ResourceGroupId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- 'UserMetrics' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/UserViewMetric',
- ],
- ],
- 'Summary' => [
- 'description' => '',
- '$ref' => '#/components/schemas/UserViewMetric',
- ],
- 'Total' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '2',
- ],
+ 'TrainingJobId' => ['description' => 'Training job ID.', 'type' => 'string', 'example' => 'traineyfz0m2hsfv', 'title' => ''],
+ 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'substitutions' => [
- 'PaiStudio::2022-01-12::GetQuotaUserViewMetrics',
- ],
+ 'title' => 'Create a training job',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-25T06:20:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-11-18T02:48:43.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-09-23T07:12:27.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-07-03T03:12:26.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-05-09T10:31:23.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-02-29T07:27:54.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-12-26T10:28:16.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-12-15T03:13:01.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-09-12T03:19:05.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-09-01T11:22:25.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-08-22T03:17:17.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-04-20T02:19:53.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-12-06T12:12:13.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:58.000Z', 'description' => 'OpenAPI offline'],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrainingJob'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroupId\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"UserMetrics\\": [\\n {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokhzaxg\\",\\n \\"TotalCPU\\": 0,\\n \\"CPUUsageRate\\": \\"\\",\\n \\"GPUUsageRate\\": \\"\\",\\n \\"TotalMemory\\": 0,\\n \\"TotalGPU\\": 0,\\n \\"MemoryUsageRate\\": \\"\\",\\n \\"RequestCPU\\": 0,\\n \\"RequestGPU\\": 0,\\n \\"RequestMemory\\": 0,\\n \\"NetworkInputRate\\": \\"\\",\\n \\"NetworkOutputRate\\": \\"\\",\\n \\"DiskReadRate\\": \\"\\",\\n \\"DiskWriteRate\\": \\"\\",\\n \\"JobType\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"CPUNodeNumber\\": 0,\\n \\"GPUNodeNumber\\": 0,\\n \\"CpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"NodeNames\\": [\\n \\"\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"Summary\\": {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokhzaxg\\",\\n \\"TotalCPU\\": 0,\\n \\"CPUUsageRate\\": \\"\\",\\n \\"GPUUsageRate\\": \\"\\",\\n \\"TotalMemory\\": 0,\\n \\"TotalGPU\\": 0,\\n \\"MemoryUsageRate\\": \\"\\",\\n \\"RequestCPU\\": 0,\\n \\"RequestGPU\\": 0,\\n \\"RequestMemory\\": 0,\\n \\"NetworkInputRate\\": \\"\\",\\n \\"NetworkOutputRate\\": \\"\\",\\n \\"DiskReadRate\\": \\"\\",\\n \\"DiskWriteRate\\": \\"\\",\\n \\"JobType\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"CPUNodeNumber\\": 0,\\n \\"GPUNodeNumber\\": 0,\\n \\"CpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"\\"\\n ],\\n \\"NodeNames\\": [\\n \\"\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"\\"\\n ]\\n },\\n \\"Total\\": 2\\n}","type":"json"}]',
- 'title' => 'GetUserViewMetrics',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TrainingJobId\\": \\"traineyfz0m2hsfv\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'GetResourceGroupMachineGroup' => [
- 'summary' => 'get machine group',
- 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteAlgorithm' => [
+ 'summary' => 'Deletes an algorithm.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '125186',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '146690',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'MachineGroupID',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'mgmioirqjgw6c5lg',
- ],
- ],
- [
- 'name' => 'ResourceGroupID',
+ 'name' => 'AlgorithmId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- ],
- [
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestKey',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestValue',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'schema' => ['title' => '', 'description' => 'The algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-sidjc8134hv'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'MachineGroupID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'mgmioirqjgw6c5lg',
- ],
- 'ResourceGroupID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Ready',
- ],
- 'PaymentType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'PREPAY',
- ],
- 'PaymentDurationUnit' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Month',
- ],
- 'PaymentDuration' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'EcsSpec' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ecs.c6.large',
- ],
- 'EcsCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'GmtCreatedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- ],
- 'GmtStartedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- ],
- 'GmtExpiredTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z'."\n",
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E',
- ],
- 'Cpu' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2',
- ],
- 'Gpu' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '8',
- ],
- 'GpuType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'A100',
- ],
- 'Memory' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '64',
- ],
- 'SupportedDrivers' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '535,550',
- 'type' => 'string',
- 'example' => '535,550',
- ],
- ],
- 'DefaultDriver' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '535',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'testMachineGroup',
- ],
- 'Tags' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TestKey',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TestValue',
- ],
- ],
- ],
- ],
- 'AllocatableCpu' => [
- 'type' => 'string',
- ],
- 'AllocatableMemory' => [
- 'type' => 'string',
- ],
- 'SystemReservedCpu' => [
- 'type' => 'string',
- ],
- 'SystemReservedMemory' => [
- 'type' => 'string',
- ],
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"mgmioirqjgw6c5lg\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"Status\\": \\"Ready\\",\\n \\"PaymentType\\": \\"PREPAY\\",\\n \\"PaymentDurationUnit\\": \\"Month\\",\\n \\"PaymentDuration\\": \\"1\\",\\n \\"EcsSpec\\": \\"ecs.c6.large\\",\\n \\"EcsCount\\": 1,\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtStartedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtExpiredTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Cpu\\": \\"2\\",\\n \\"Gpu\\": \\"8\\",\\n \\"GpuType\\": \\"A100\\",\\n \\"Memory\\": \\"64\\",\\n \\"SupportedDrivers\\": [\\n \\"535,550\\"\\n ],\\n \\"DefaultDriver\\": \\"535\\",\\n \\"Name\\": \\"testMachineGroup\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"TestKey\\",\\n \\"TagValue\\": \\"TestValue\\"\\n }\\n ],\\n \\"AllocatableCpu\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCpu\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'GetResourceGroupMachineGroup',
- ],
- 'GetResourceGroup' => [
- 'summary' => 'get resource group by group id',
- 'path' => '/api/v1/resources/{ResourceGroupID}',
- 'methods' => [
- 'get',
+ 'title' => 'Delete an algorithm',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlgorithm'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ 'DeleteAlgorithmVersion' => [
+ 'summary' => 'Deletes an algorithm version.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '124255',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '146338',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'ResourceGroupID',
+ 'name' => 'AlgorithmId',
'in' => 'path',
- 'schema' => [
- 'title' => 'get pai resource group details by id',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'rgmhpp8ib5lprq9k',
- ],
- ],
- [
- 'name' => 'IsAIWorkspaceDataEnabled',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'The algorithm ID.', 'type' => 'string', 'required' => true, 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
[
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestKey',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestValue',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
+ 'name' => 'AlgorithmVersion',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The algorithm version.', 'type' => 'string', 'required' => true, 'example' => 'v0.0.1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'GmtCreatedTime' => [
- 'title' => 'pai resource created time',
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z'."\n",
- ],
- 'GmtModifiedTime' => [
- 'title' => 'pai resource group modified time',
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z'."\n",
- ],
- 'RequestId' => [
- 'title' => 'request id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n",
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TestResourceGroup',
- ],
- 'CreatorID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1612285282502324',
- ],
- 'WorkspaceID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '35201',
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Ready',
- ],
- 'UserVpc' => [
- 'description' => '',
- '$ref' => '#/components/schemas/UserVpc',
- ],
- 'ComputingResourceProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'enumValueTitles' => [
- 'Ecs' => 'Ecs',
- 'Lingjun' => 'Lingjun',
- ],
- 'example' => 'ECS',
- ],
- 'ClusterID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'cb2c7bde30b774e46a329c',
- ],
- 'SupportRDMA' => [
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ResourceType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Ecs',
- ],
- 'Description' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'testDescription',
- ],
- 'Tags' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'testKey',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'testValue',
- ],
- ],
- ],
- ],
- 'Version' => [
- 'type' => 'string',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"Name\\": \\"TestResourceGroup\\",\\n \\"CreatorID\\": \\"1612285282502324\\",\\n \\"WorkspaceID\\": \\"35201\\",\\n \\"Status\\": \\"Ready\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"ComputingResourceProvider\\": \\"ECS\\",\\n \\"ClusterID\\": \\"cb2c7bde30b774e46a329c\\",\\n \\"SupportRDMA\\": true,\\n \\"ResourceType\\": \\"Ecs\\",\\n \\"Description\\": \\"testDescription\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"testKey\\",\\n \\"TagValue\\": \\"testValue\\"\\n }\\n ],\\n \\"Version\\": \\"\\"\\n}","type":"json"}]',
- 'title' => 'GetResourceGroup',
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'Delete an algorithm version',
+ 'changeSet' => [
+ ['createdAt' => '2024-09-25T02:19:16.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlgorithmVersion'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
],
'DeleteMachineGroup' => [
- 'summary' => 'delete machine group',
+ 'summary' => 'Deletes a machine group.',
'path' => '/api/v1/resources/machinegroups/{MachineGroupID}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => true,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '124429',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
'parameters' => [
[
'name' => 'MachineGroupID',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'MachineGroupID' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
+ 'MachineGroupID' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'RequestId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'description' => 'Response schema',
+ 'example' => '',
],
],
],
'staticInfo' => [
- 'substitutions' => [
- 'PaiStudio::2022-01-12::DeleteMachineGroup',
- ],
+ 'substitutions' => ['PaiStudio::2022-01-12::DeleteMachineGroup'],
],
- 'responseDemo' => null,
- ],
- 'CreateResourceGroup' => [
- 'summary' => '创建资源组',
- 'path' => '/api/v1/resources',
- 'methods' => [
- 'post',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMachineGroup'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteMachineGroup',
+ 'translator' => 'machine',
+ ],
+ 'DeleteQuota' => [
+ 'summary' => 'You can delete a resource quota by using DeleteQuota.',
+ 'path' => '/api/v1/quotas/{QuotaId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '125287',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- 'FEATURElearn1N0SUT',
- ],
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '191219',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'testResourceGroup',
- ],
- 'Description' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_api_report',
- ],
- 'UserVpc' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/UserVpc',
- ],
- 'ResourceType' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ecs',
- ],
- 'ComputingResourceProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ecs',
- ],
- 'Tag' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestKey',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestValue',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'Version' => [
- 'title' => '资源组版本,当前只在resource type为ECS时生效。',
- 'type' => 'string',
- 'example' => '1.0',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'QuotaId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The quota identifier to delete.', 'type' => 'string', 'required' => false, 'example' => 'quota1ci8g793pgm', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n",
- ],
- 'ResourceGroupID' => [
- 'description' => 'ResourceGroup ID。',
- 'type' => 'string',
- 'example' => 'rgf0zhfqn1d4ity2',
- ],
+ 'RequestId' => ['description' => 'Request ID.', 'title' => '', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'QuotaId' => ['description' => 'Quota ID.', 'title' => '', 'type' => 'string', 'example' => 'quotamtl37ge7gkvdz'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]',
- 'title' => 'CreateResourceGroup',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Delete resource quota',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
'DeleteResourceGroup' => [
- 'summary' => '删除资源组',
'path' => '/api/v1/resources/{ResourceGroupID}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [
'operationType' => 'delete',
'abilityTreeCode' => '125213',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
'name' => 'ResourceGroupID',
'in' => 'path',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgvl9d6utwcscukh',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rgvl9d6utwcscukh'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
- ],
- 'ResourceGroupID' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgvl9d6utwcscukh',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD'],
+ 'ResourceGroupID' => ['description' => 'The globally unique ID of the resource group.', 'type' => 'string', 'example' => 'rgvl9d6utwcscukh', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"ResourceGroupID\\": \\"rgvl9d6utwcscukh\\"\\n}","type":"json"}]',
- 'title' => 'DeleteResourceGroup',
- ],
- 'GetMachineGroup' => [
- 'summary' => 'get machine group',
- 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}',
- 'methods' => [
- 'get',
+ 'title' => 'Delete resource group',
+ 'summary' => 'Deletes a resource group.',
+ 'changeSet' => [
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceGroup'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"ResourceGroupID\\": \\"rgvl9d6utwcscukh\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'DeleteResourceGroupMachineGroup' => [
+ 'summary' => 'Deletes the specified machine group from a resource group.',
+ 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => true,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '124271',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '125207',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
'name' => 'MachineGroupID',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['description' => 'The machine group ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'ResourceGroupID',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'MachineGroupID' => [
- 'type' => 'string',
- ],
- 'OrderID' => [
- 'type' => 'string',
- ],
- 'PAIResourceID' => [
- 'type' => 'string',
- ],
- 'Status' => [
- 'type' => 'string',
- ],
- 'PayType' => [
- 'type' => 'string',
- ],
- 'PricingCycle' => [
- 'type' => 'string',
- ],
- 'Duration' => [
- 'type' => 'string',
- ],
- 'EcsType' => [
- 'type' => 'string',
- ],
- 'Count' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'RegionID' => [
- 'type' => 'string',
- ],
- 'GmtCreated' => [
- 'type' => 'string',
- ],
- 'GmtModified' => [
- 'type' => 'string',
- ],
- 'GmtStarted' => [
- 'type' => 'string',
- ],
- 'GmtExpired' => [
- 'type' => 'string',
- ],
- 'RequestId' => [
- 'type' => 'string',
- ],
- 'SupportedDrivers' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'DefaultDriver' => [
- 'type' => 'string',
- ],
- 'OrderInstanceId' => [
- 'type' => 'string',
- ],
+ 'MachineGroupID' => ['description' => 'The ID of the deleted machine group.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'RequestId' => ['description' => 'The request ID. Provide this ID to our technical support for troubleshooting.', 'type' => 'string', 'title' => '', 'example' => ''],
],
+ 'description' => 'The response body.',
+ 'example' => '',
],
],
],
'staticInfo' => [
- 'substitutions' => [
- 'PaiStudio::2022-01-12::GetMachineGroup',
+ 'substitutions' => ['PaiStudio::2022-01-12::DeleteResourceGroupMachineGroup'],
+ ],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceGroupMachineGroup'],
],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"\\",\\n \\"RequestId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteResourceGroupMachineGroup',
+ 'translator' => 'machine',
],
- 'CreateAlgorithm' => [
- 'summary' => '创建新的算法',
- 'path' => '/api/v1/algorithms',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTrainingJob' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '132982',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
'parameters' => [
[
- 'name' => 'WorkspaceId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '12345',
- ],
- ],
- [
- 'name' => 'AlgorithmDescription',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '',
- ],
- ],
- [
- 'name' => 'AlgorithmName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'llm_training',
- ],
- ],
- [
- 'name' => 'DisplayName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '',
- ],
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => false, 'example' => 'train76rcaupa2cz', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F',
- ],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-xsldfvu1334',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '4cc83062-9bcb-4ab3-979e-2e571a35834f', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\"\\n}","type":"json"}]',
- 'title' => 'CreateAlgorithm',
- ],
- 'CreateAlgorithmVersion' => [
- 'summary' => '创建一个新的算法版本',
- 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Delete Training Job',
+ 'summary' => 'Deletes a training task.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrainingJob'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4cc83062-9bcb-4ab3-979e-2e571a35834f\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'DeleteTrainingJobLabels' => [
+ 'summary' => 'Deletes the labels of a training task.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '132984',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
'parameters' => [
[
- 'name' => 'AlgorithmId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-xsldfvu1334',
- ],
- ],
- [
- 'name' => 'AlgorithmVersion',
+ 'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v0.0.1',
- ],
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'trainw52bqlfjbjc', 'title' => ''],
],
[
- 'name' => 'AlgorithmSpec',
- 'in' => 'formData',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/AlgorithmSpec',
- ],
+ 'name' => 'Keys',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The keys of the labels.', 'type' => 'string', 'required' => true, 'example' => 'RootModelID', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-xsldfvu1334',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.0.1',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\"\\n}","type":"json"}]',
- 'title' => 'CreateAlgorithmVersion',
+ 'title' => 'Delete training job labels',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrainingJobLabels'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'DeleteAlgorithm' => [
- 'summary' => '删除算法',
+ 'GetAlgorithm' => [
+ 'summary' => 'Retrieves algorithm details.',
'path' => '/api/v1/algorithms/{AlgorithmId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '146690',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
'name' => 'AlgorithmId',
'in' => 'path',
- 'schema' => [
- 'title' => '算法Id',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-sidjc8134hv',
- ],
+ 'schema' => ['description' => 'Algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'requestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'AlgorithmDescription' => ['description' => 'Algorithm description.', 'type' => 'string', 'example' => 'Large language model training.', 'title' => ''],
+ 'AlgorithmId' => ['description' => 'Algorithm ID.', 'type' => 'string', 'example' => 'algo-xsldfvu1334', 'title' => ''],
+ 'AlgorithmName' => ['description' => 'Algorithm name.', 'type' => 'string', 'example' => 'llm_training', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'Algorithm provider.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
+ 'GmtCreateTime' => ['description' => 'Time when the algorithm was created.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'Time when the algorithm was last updated.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'Workspace ID.', 'type' => 'string', 'example' => '12345', 'title' => ''],
+ 'UserId' => ['description' => 'User ID of the algorithm owner.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'TenantId' => ['description' => 'Tenant ID of the algorithm owner.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'DisplayName' => ['description' => 'Display name of the algorithm.', 'type' => 'string', 'example' => 'llm_training', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\"\\n}","type":"json"}]',
- 'title' => 'DeleteAlgorithm',
- ],
- 'DeleteAlgorithmVersion' => [
- 'summary' => '删除算法版本',
- 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
- 'methods' => [
- 'delete',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"AlgorithmDescription\\": \\"Large language model training.\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"DisplayName\\": \\"llm_training\\"\\n}","type":"json"}]',
+ 'title' => 'Retrieve algorithm details',
+ 'changeSet' => [
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:58.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlgorithm'],
+ ],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'manual',
+ ],
+ 'GetAlgorithmVersion' => [
+ 'summary' => 'Retrieve details about an algorithm version.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '146338',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
'name' => 'AlgorithmId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'algo-xsldfvu1334',
- ],
+ 'schema' => ['description' => 'The ID of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
[
'name' => 'AlgorithmVersion',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'v0.0.1',
- ],
+ 'schema' => ['description' => 'The version of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'v0.0.1', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response data.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
- ],
+ 'AlgorithmSpec' => ['description' => 'Details about the algorithm.', '$ref' => '#/components/schemas/AlgorithmSpec', 'title' => '', 'example' => ''],
+ 'AlgorithmId' => ['description' => 'The ID of the algorithm.', 'type' => 'string', 'example' => 'algo-xsldfvu1334', 'title' => ''],
+ 'AlgorithmName' => ['description' => 'The name of the algorithm.', 'type' => 'string', 'example' => 'llm_training', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'The provider of the algorithm.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'The version of the algorithm.', 'type' => 'string', 'example' => 'v0.0.1', 'title' => ''],
+ 'GmtCreateTime' => ['description' => 'The time when the algorithm was created.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'The time when the algorithm was last updated.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'UserId' => ['description' => 'The ID of the user who owns the algorithm.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'TenantId' => ['description' => 'The ID of the tenant who owns the algorithm.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'eventInfo' => [
- 'enable' => false,
- 'eventNames' => [],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]',
- 'title' => 'DeleteAlgorithmVersion',
- ],
- 'GetAlgorithm' => [
- 'summary' => '获取一个算法信息',
- 'path' => '/api/v1/algorithms/{AlgorithmId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Obtain algorithm version details',
+ 'changeSet' => [
+ ['createdAt' => '2022-04-27T10:50:46.000Z', 'description' => 'OpenAPI offline'],
],
- 'security' => [
- [
- 'AK' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlgorithmVersion'],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'AlgorithmId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-xsldfvu1334',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'AlgorithmDescription' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-xsldfvu1334',
- ],
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_training',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'WorkspaceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '12345',
- ],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'TenantId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'DisplayName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_training',
- ],
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"AlgorithmDescription\\": \\"大语言模型训练。\\",\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"DisplayName\\": \\"llm_training\\"\\n}","type":"json"}]',
- 'title' => 'GetAlgorithm',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"模型输出。\\",\\n \\"Required\\": true,\\n \\"Properties\\": {},\\n \\"Name\\": \\"Model\\",\\n \\"SupportedChannelTypes\\": [\\n \\"oss\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"0\\",\\n \\"Type\\": \\"Integer\\",\\n \\"Description\\": \\"参数定义了训练的batch_size。\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"batch_size\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"0\\"\\n ],\\n \\"MinLength\\": 1,\\n \\"MaxLength\\": 30,\\n \\"Minimum\\": \\"0\\",\\n \\"Maximum\\": \\"10\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"^\\\\\\\\+?[1-9][0-9]*$\\"\\n },\\n \\"DisplayName\\": \\"Batch Size\\"\\n }\\n ],\\n \\"JobType\\": \\"TFJob\\",\\n \\"Command\\": [\\n \\"python train.py\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"训练损失函数。\\",\\n \\"Regex\\": \\".*train:loss=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"loss\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"模型输出。\\",\\n \\"Required\\": true,\\n \\"Properties\\": {},\\n \\"Name\\": \\"Model\\",\\n \\"SupportedChannelTypes\\": [\\n \\"oss\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"ecs.g6.2xlarge\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"V1\\",\\n \\"Value\\": \\"[{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"MaxTotalCount\\\\\\\\\\\\\\":4,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":100}}},{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":5,\\\\\\\\\\\\\\"MaxTotalCount\\\\\\\\\\\\\\":10,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":20},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":80}}},{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":11,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":40},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":60}}}]\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"OSS\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"ecs.gn5-c4g1.xlarge\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"training progress\\",\\n \\"Regex\\": \\"^[0-9]+([.][0-9]+){0,1}$\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"training remaining time\\",\\n \\"Regex\\": \\"^[0-9]+([.][0-9]+){0,1}$\\"\\n }\\n }\\n },\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
],
- 'GetAlgorithmVersion' => [
- 'summary' => '创建一个新的算法版本',
- 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetMachineGroup' => [
+ 'summary' => 'Retrieves the details of a specific machine group.',
+ 'path' => '/api/v1/resources/machinegroups/{MachineGroupID}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '124271',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
- 'deprecated' => false,
- 'systemTags' => [],
'parameters' => [
[
- 'name' => 'AlgorithmId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-xsldfvu1334',
- ],
- ],
- [
- 'name' => 'AlgorithmVersion',
+ 'name' => 'MachineGroupID',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v0.0.1',
- ],
+ 'schema' => ['description' => 'The ID of the machine group.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'AlgorithmSpec' => [
- 'description' => '',
- '$ref' => '#/components/schemas/AlgorithmSpec',
- ],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-xsldfvu1334',
- ],
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_training',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.0.1',
- ],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'TenantId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
+ 'MachineGroupID' => ['description' => 'The ID of the machine group.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'OrderID' => ['description' => 'The order ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'PAIResourceID' => ['description' => 'The PAI resource ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'Status' => ['description' => 'The status of the machine group.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'PayType' => ['description' => 'The payment type. Valid values: `PostPay` (pay-as-you-go) and `PrePay` (subscription).', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'PricingCycle' => ['description' => 'The billing cycle. This parameter is returned only when `PayType` is `PrePay`.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'Duration' => ['description' => 'The subscription duration. This parameter is returned only when `PayType` is `PrePay`.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'EcsType' => ['description' => 'The ECS instance type of the machine group.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'Count' => ['description' => 'The number of instances in the machine group.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => ''],
+ 'RegionID' => ['description' => 'The region ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'GmtCreated' => ['description' => 'The time when the machine group was created.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'GmtModified' => ['description' => 'The time when the machine group was last modified.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'GmtStarted' => ['description' => 'The time when the machine group started.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'GmtExpired' => ['description' => 'The expiration time. This parameter is returned only when `PayType` is `PrePay`.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'SupportedDrivers' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'The driver name.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'The drivers that the machine group supports.',
+ 'title' => '',
+ 'example' => '',
],
+ 'DefaultDriver' => ['description' => 'The default driver.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'OrderInstanceId' => ['description' => 'The instance ID of the order.', 'type' => 'string', 'title' => '', 'example' => ''],
],
+ 'description' => 'The returned data.',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"\\",\\n \\"Type\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"\\"\\n ],\\n \\"MinLength\\": 0,\\n \\"MaxLength\\": 0,\\n \\"Minimum\\": \\"\\",\\n \\"Maximum\\": \\"\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"\\"\\n },\\n \\"DisplayName\\": \\"\\"\\n }\\n ],\\n \\"JobType\\": \\"\\",\\n \\"Command\\": [\\n \\"\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"train dataset oob score\\",\\n \\"Regex\\": \\".*train:oob_score=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"train:oob_score\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"GPU\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n }\\n }\\n },\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"TenantId\\": \\"123456789\\"\\n}","type":"json"}]',
- 'title' => 'GetAlgorithmVersion',
- ],
- 'ListAlgorithms' => [
- 'summary' => '获取算法列表',
- 'path' => '/api/v1/algorithms',
- 'methods' => [
- 'get',
+ 'staticInfo' => [
+ 'substitutions' => ['PaiStudio::2022-01-12::GetMachineGroup'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [
+ ['createdAt' => '2024-05-23T02:15:16.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-08-30T07:22:54.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMachineGroup'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"\\",\\n \\"OrderID\\": \\"\\",\\n \\"PAIResourceID\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"PayType\\": \\"\\",\\n \\"PricingCycle\\": \\"\\",\\n \\"Duration\\": \\"\\",\\n \\"EcsType\\": \\"\\",\\n \\"Count\\": 0,\\n \\"RegionID\\": \\"\\",\\n \\"GmtCreated\\": \\"\\",\\n \\"GmtModified\\": \\"\\",\\n \\"GmtStarted\\": \\"\\",\\n \\"GmtExpired\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"SupportedDrivers\\": [\\n \\"\\"\\n ],\\n \\"DefaultDriver\\": \\"\\",\\n \\"OrderInstanceId\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'GetMachineGroup',
+ 'translator' => 'machine',
+ ],
+ 'GetNodeMetrics' => [
+ 'path' => '/api/v1/resources/{ResourceGroupID}/nodemetrics/{MetricType}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [],
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '151753',
+ 'abilityTreeNodes' => ['FEATURElearn8Y18OQ'],
+ ],
'parameters' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- ],
+ 'name' => 'ResourceGroupID',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The resource group ID. Each resource group has a globally unique resource group ID. You can use the resource group ID to obtain information about the resource group.', 'type' => 'string', 'required' => true, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'GPUType',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The GPU type. Valid values:'."\n"
+ .'- V100'."\n"
+ .'- A100'."\n"
+ .'- A10'."\n"
+ .'- T4'."\n"
+ .'- P100', 'type' => 'string', 'required' => false, 'example' => 'V100', 'title' => ''],
],
[
- 'name' => 'AlgorithmName',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'llm_training',
- ],
+ 'schema' => ['description' => 'The start time.', 'type' => 'string', 'required' => false, 'example' => '2024-07-08T02:23:30.292Z', 'title' => ''],
],
[
- 'name' => 'AlgorithmId',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-xsldfvu1334',
- ],
+ 'schema' => ['description' => 'The end time.', 'type' => 'string', 'required' => false, 'example' => '2024-07-10T10:17:06', 'title' => ''],
],
[
- 'name' => 'AlgorithmProvider',
+ 'name' => 'TimeStep',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pai',
- ],
+ 'schema' => ['description' => 'The time step. Default value: 5m. The supported time units are:'."\n"
+ ."\n"
+ .'- h: hours.'."\n"
+ ."\n"
+ .'- m: minutes.'."\n"
+ ."\n"
+ .'- s: seconds.'."\n"
+ ."\n"
+ .'If the value does not contain a unit, the default unit is s (seconds).', 'type' => 'string', 'required' => false, 'example' => '1h', 'title' => ''],
],
[
- 'name' => 'WorkspaceId',
+ 'name' => 'Verbose',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '12345',
- ],
+ 'schema' => ['description' => 'Specifies whether to display non-essential information. Non-essential information currently includes Labels.'."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'false: does not display non-essential information (default value)'."\n"
+ .'true: displays non-essential information'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'MetricType',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The name of the metric to query.', 'type' => 'string', 'required' => true, 'example' => 'CpuUsageRate', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '',
+ 'title' => '',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'Algorithms' => [
- 'description' => '',
+ 'NodesMetrics' => [
+ 'description' => 'The metric information of the nodes.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'AlgorithmDescription' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-sidjc8134hv',
- ],
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_train',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-07-21T03:35:24Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-07-25T02:15:40Z',
- ],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'WorkspaceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '12345',
- ],
- 'DisplayName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'LLM Train',
- ],
- ],
- ],
- ],
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '4',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ 'items' => ['description' => 'The metric information of the node.', '$ref' => '#/components/schemas/NodeMetric', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'ResourceGroupID' => ['description' => 'The resource group ID. Each resource group has a globally unique resource group ID. You can use the resource group ID to obtain information about the resource group.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
+ 'MetricType' => ['description' => 'The name of the metric to query.', 'type' => 'string', 'example' => 'DiskWriteRate', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Algorithms\\": [\\n {\\n \\"AlgorithmDescription\\": \\"大语言模型训练。\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2023-07-21T03:35:24Z\\",\\n \\"GmtModifiedTime\\": \\"2023-07-25T02:15:40Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"DisplayName\\": \\"LLM Train\\"\\n }\\n ],\\n \\"TotalCount\\": 4,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'ListAlgorithms',
- ],
- 'ListAlgorithmVersions' => [
- 'summary' => '获取算法的所有版本信息',
- 'path' => '/api/v1/algorithms/{AlgorithmId}/versions',
- 'methods' => [
- 'get',
+ 'staticInfo' => [
+ 'substitutions' => ['Cms::2019-01-01::DescribeMetricList'],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Obtain the metric data at the node level',
+ 'summary' => 'You can call the GetNodeMetrics operation to obtain the metric information of resource group nodes.',
+ 'changeSet' => [
+ ['createdAt' => '2022-08-29T02:34:36.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetNodeMetrics'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NodesMetrics\\": [\\n {\\n \\"NodeID\\": \\"-i12****node\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": 0,\\n \\"Value\\": \\"23000\\"\\n }\\n ],\\n \\"GPUType\\": \\"GU108\\"\\n }\\n ],\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"MetricType\\": \\"DiskWriteRate\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetQuota' => [
+ 'path' => '/api/v1/quotas/{QuotaId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191160',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
'parameters' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- ],
+ 'name' => 'QuotaId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the resource quota.', 'type' => 'string', 'required' => false, 'example' => 'quota1ci8g79****', 'title' => ''],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'Verbose',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'Specifies whether to return detailed information.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
- 'name' => 'AlgorithmId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-sidjc8134hv',
- ],
+ 'name' => 'WithNodeMeta',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Specifies whether to return the metadata of nodes that are attached to the resource quota.', 'type' => 'boolean', 'required' => false, 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '',
+ 'description' => 'The response body.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'AlgorithmVersions' => [
- 'description' => '',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'],
+ 'QuotaId' => ['title' => '', 'description' => 'The ID of the resource quota.', 'type' => 'string', 'example' => 'quotajradxh4****'],
+ 'QuotaName' => ['title' => '', 'description' => 'The name of the resource quota.', 'type' => 'string', 'example' => 'test-quota'],
+ 'ResourceType' => ['title' => '', 'description' => 'The resource type of the quota.', 'type' => 'string', 'example' => 'ECS'],
+ 'ParentQuotaId' => ['title' => '', 'description' => 'The ID of the parent resource quota.', 'type' => 'string', 'example' => 'quota1ci8g79****'],
+ 'ResourceGroupIds' => [
+ 'description' => 'The resource groups that are associated with the resource quota.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-sidjc8134hv',
- ],
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_train',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.1.0',
- ],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-01-19T02:00:26Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-01-22T02:00:59Z',
- ],
- 'TenantId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- ],
- ],
+ 'items' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg69rj0leslw****', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '23',
+ 'AllocateStrategy' => ['title' => '', 'description' => 'The resource allocation policy.', 'type' => 'string', 'example' => 'ByNodeSpec'],
+ 'Min' => ['description' => 'The configuration of the minimum quota.', '$ref' => '#/components/schemas/ResourceSpec', 'title' => '', 'example' => ''],
+ 'Description' => ['title' => '', 'description' => 'The description of the resource quota.', 'type' => 'string', 'example' => 'this is a test quota'],
+ 'Labels' => [
+ 'description' => 'The labels of the resource quota.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The key-value pair of the label.', '$ref' => '#/components/schemas/Label', 'title' => '', 'example' => ''],
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ 'CreatorId' => ['title' => '', 'description' => 'The ID of the user who created the resource quota.', 'type' => 'string', 'example' => '1884692****'],
+ 'LatestOperationId' => ['title' => '', 'description' => 'The ID of the most recent change to the resource quota.', 'type' => 'string', 'example' => 'operation****'],
+ 'Status' => ['title' => '', 'description' => 'The status of the resource quota.', 'type' => 'string', 'example' => 'Ready'],
+ 'ReasonCode' => ['title' => '', 'description' => 'The error code.', 'type' => 'string', 'example' => '“”'],
+ 'ReasonMessage' => ['title' => '', 'description' => 'The cause of the error.', 'type' => 'string', 'example' => '“”'],
+ 'GmtCreatedTime' => ['title' => '', 'description' => 'The time when the resource quota was created.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'GmtModifiedTime' => ['title' => '', 'description' => 'The time when the resource quota was last modified.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'],
+ 'QuotaDetails' => ['title' => '', 'description' => 'The details of the resource quota.', '$ref' => '#/components/schemas/QuotaDetails', 'example' => ''],
+ 'QuotaConfig' => ['description' => 'The configurations of the resource quota:'."\n"
+ ."\n"
+ .'- VPC information'."\n"
+ ."\n"
+ .'- Whether Remote Direct Memory Access (RDMA) is supported'."\n"
+ ."\n"
+ .'- ACS configurations, which take effect if the resource type is ACS', '$ref' => '#/components/schemas/QuotaConfig', 'title' => '', 'example' => ''],
+ 'Workspaces' => [
+ 'description' => 'The workspaces that are associated with the resource quota.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The information about the associated workspaces.', '$ref' => '#/components/schemas/WorkspaceIdName', 'title' => '', 'example' => ''],
+ 'example' => '',
+ ],
+ 'SubQuotas' => [
+ 'description' => 'A list of sub-quotas of the resource quota.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The IDs of the sub-quotas.', '$ref' => '#/components/schemas/QuotaIdName', 'title' => '', 'example' => ''],
+ 'example' => '',
+ ],
+ 'QueueStrategy' => ['description' => 'The queuing policy for tasks in the resource quota.', 'type' => 'string', 'example' => 'PaiStrategyIntelligent', 'title' => ''],
+ 'Version' => ['title' => '', 'description' => 'The version information. This parameter takes effect when ResourceType is set to ECS.', 'type' => 'string', 'example' => '1.0'],
+ 'HyperZones' => [
+ 'description' => 'A list of high-performance network zones.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['title' => '', 'description' => 'The ID of a high-performance network zone.', 'type' => 'string', 'example' => 'A3'],
+ 'example' => '',
],
+ 'QuotaCluster' => ['title' => '', 'description' => 'The specifications and status of the cluster that is composed of resources within the quota.', '$ref' => '#/components/schemas/QuotaCluster', 'example' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmVersions\\": [\\n {\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\",\\n \\"GmtCreateTime\\": \\"2024-01-19T02:00:26Z\\",\\n \\"GmtModifiedTime\\": \\"2024-01-22T02:00:59Z\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"UserId\\": \\"123456789\\"\\n }\\n ],\\n \\"TotalCount\\": 23,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'ListAlgorithmVersions',
- ],
- 'UpdateAlgorithm' => [
- 'summary' => '更新算法',
- 'path' => '/api/v1/algorithms/{AlgorithmId}',
- 'methods' => [
- 'put',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Get Resource Quota Details',
+ 'summary' => 'Call GetQuota to retrieve the details of a resource quota. This helps you monitor current resource usage for effective resource management and planning.',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-12T09:21:16.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-11-06T13:03:33.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2025-09-19T03:30:04.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-05-09T05:27:33.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:GetQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"QuotaId\\": \\"quotajradxh4****\\",\\n \\"QuotaName\\": \\"test-quota\\",\\n \\"ResourceType\\": \\"ECS\\",\\n \\"ParentQuotaId\\": \\"quota1ci8g79****\\",\\n \\"ResourceGroupIds\\": [\\n \\"rg69rj0leslw****\\"\\n ],\\n \\"AllocateStrategy\\": \\"ByNodeSpec\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"this is a test quota\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"testAccTag\\",\\n \\"Value\\": \\"nihao\\"\\n }\\n ],\\n \\"CreatorId\\": \\"1884692****\\",\\n \\"LatestOperationId\\": \\"operation****\\",\\n \\"Status\\": \\"Ready\\",\\n \\"ReasonCode\\": \\"“”\\",\\n \\"ReasonMessage\\": \\"“”\\",\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"NodeStatistics\\": {\\n \\"ActualMinNodeNum\\": 0,\\n \\"ActualMinHyperNodeNum\\": 0,\\n \\"AllocatedNodeNum\\": 0,\\n \\"AllocatedHyperNodeNum\\": 0,\\n \\"EmptyNodeNum\\": 0,\\n \\"AllocatedHyperNodeDetails\\": [\\n {\\n \\"HyperNodeName\\": \\"\\",\\n \\"AllocatedNodeNum\\": 0,\\n \\"TotalNodeNum\\": 0,\\n \\"EmptyNodeNum\\": 0\\n }\\n ]\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb3724255364***\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\\\\\"192.168.0.1/24\\\\\\"\\"\\n ],\\n \\"RoleArn\\": \\"acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole\\",\\n \\"DefaultRoute\\": \\"eth0\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"nat-7j4mka9wguxj\\",\\n \\"EipAllocationId\\": \\"eip-h29r78ieufbih\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"470.199.02\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"rq-3kbt2gtimmyw7fgfgothocvh\\",\\n \\"AssociatedProducts\\": [\\n \\"PAI-DLC\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"122421\\",\\n \\"Product\\": \\"DLC\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"spec_test\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Reason\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": false,\\n \\"EnableSubQuotaPreemption\\": false,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": false,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": false\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptorPriorities\\": [\\n 0\\n ],\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": false,\\n \\"ControlPlaneClusterId\\": \\"\\",\\n \\"IsEncryptedResource\\": false,\\n \\"WorkloadTypes\\": [\\n \\"\\"\\n ]\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123***\\",\\n \\"WorkspaceName\\": \\"\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\",\\n \\"Version\\": \\"1.0\\",\\n \\"HyperZones\\": [\\n \\"A3\\"\\n ],\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'GetResourceGroup' => [
+ 'path' => '/api/v1/resources/{ResourceGroupID}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '124255',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
'parameters' => [
[
- 'name' => 'AlgorithmDescription',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '',
- ],
+ 'name' => 'ResourceGroupID',
+ 'in' => 'path',
+ 'schema' => ['title' => '', 'description' => 'The globally unique ID of the resource group.', 'type' => 'string', 'required' => true, 'example' => 'rgmhpp8ib5lprq9k'],
],
[
- 'name' => 'DisplayName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LLM Train',
- ],
+ 'name' => 'IsAIWorkspaceDataEnabled',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Optional. Defaults to `true`.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
- 'name' => 'AlgorithmId',
- 'in' => 'path',
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '',
- 'type' => 'string',
+ 'description' => 'A list of up to 20 tags to add to the instance.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'],
+ 'Value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- 'example' => 'algo-sidjc8134hv',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response body.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
+ 'GmtCreatedTime' => ['title' => '', 'description' => 'The time when the resource group was created.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'."\n"],
+ 'GmtModifiedTime' => ['title' => '', 'description' => 'The time when the resource group was last modified.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'."\n"],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'."\n"],
+ 'Name' => ['description' => 'The name of the resource group.', 'type' => 'string', 'example' => 'TestResourceGroup', 'title' => ''],
+ 'CreatorID' => ['description' => 'The ID of the user who created the resource group.', 'type' => 'string', 'example' => '1612285282502324', 'title' => ''],
+ 'WorkspaceID' => ['description' => 'The workspace ID.', 'type' => 'string', 'example' => '35201', 'title' => ''],
+ 'Status' => ['description' => 'The status of the resource group.', 'type' => 'string', 'example' => 'Ready', 'title' => ''],
+ 'UserVpc' => ['description' => 'The details of the VPC connected to the resource group.', '$ref' => '#/components/schemas/UserVpc', 'title' => '', 'example' => ''],
+ 'ComputingResourceProvider' => [
+ 'description' => 'The provider of computing resources for the resource group.',
+ 'enumValueTitles' => ['Ecs' => 'ECS', 'Lingjun' => 'Lingjun'],
'type' => 'string',
- 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F',
+ 'example' => 'ECS',
+ 'title' => '',
],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-sidjc8134hv',
+ 'ClusterID' => ['description' => 'The ID of the cluster to which the resource group belongs.', 'type' => 'string', 'example' => 'cb2c7bde30b774e46a329c', 'title' => ''],
+ 'SupportRDMA' => ['description' => 'Indicates whether the resource group supports RDMA.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'ResourceType' => ['description' => 'The type of computing resource for the resource group.', 'type' => 'string', 'example' => 'Ecs', 'title' => ''],
+ 'Description' => ['description' => 'The description of the resource group.', 'type' => 'string', 'example' => 'testDescription', 'title' => ''],
+ 'Tags' => [
+ 'description' => 'A list of tags.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'example' => 'testKey'],
+ 'TagValue' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'example' => 'testValue'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'Version' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\"\\n}","type":"json"}]',
- 'title' => 'UpdateAlgorithm',
- ],
- 'UpdateAlgorithmVersion' => [
- 'summary' => '更新算法',
- 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
- 'methods' => [
- 'put',
+ 'title' => 'Get resource group details',
+ 'summary' => '`GetResourceGroup` retrieves details for a resource group.',
+ 'changeSet' => [
+ ['createdAt' => '2025-09-19T03:30:04.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-01-04T03:16:22.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2023-05-11T03:07:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-04-10T09:57:38.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-04-06T05:56:43.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-04-04T06:45:06.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-08-03T03:11:36.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroup'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\\\n\\",\\n \\"Name\\": \\"TestResourceGroup\\",\\n \\"CreatorID\\": \\"1612285282502324\\",\\n \\"WorkspaceID\\": \\"35201\\",\\n \\"Status\\": \\"Ready\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\\\\\"192.168.0.1/24\\\\\\"\\"\\n ],\\n \\"RoleArn\\": \\"acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole\\",\\n \\"DefaultRoute\\": \\"eth0\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"nat-7j4mka9wguxj\\",\\n \\"EipAllocationId\\": \\"eip-h29r78ieufbih\\"\\n }\\n },\\n \\"ComputingResourceProvider\\": \\"ECS\\",\\n \\"ClusterID\\": \\"cb2c7bde30b774e46a329c\\",\\n \\"SupportRDMA\\": true,\\n \\"ResourceType\\": \\"Ecs\\",\\n \\"Description\\": \\"testDescription\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"testKey\\",\\n \\"TagValue\\": \\"testValue\\"\\n }\\n ],\\n \\"Version\\": \\"\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetResourceGroupMachineGroup' => [
+ 'summary' => 'Call GetResourceGroupMachineGroup to retrieve the details of a machine group.',
+ 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups/{MachineGroupID}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/x-www-form-urlencoded',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'readAndWrite',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '125186',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
'parameters' => [
[
- 'name' => 'AlgorithmId',
+ 'name' => 'MachineGroupID',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'algo-sidjc8134hv',
- ],
+ 'schema' => ['description' => 'The ID of the machine group.', 'type' => 'string', 'required' => true, 'example' => 'mgmioirqjgw6c5lg', 'title' => ''],
],
[
- 'name' => 'AlgorithmVersion',
+ 'name' => 'ResourceGroupID',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v0.0.1',
- ],
+ 'schema' => ['description' => 'The globally unique ID of the resource group. You can use this ID to retrieve details about the group.', 'type' => 'string', 'required' => true, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
[
- 'name' => 'AlgorithmSpec',
- 'in' => 'formData',
+ 'name' => 'Tag',
+ 'in' => 'query',
'style' => 'json',
'schema' => [
- 'description' => '',
+ 'description' => 'A list of up to 20 tags.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'TestKey'],
+ 'Value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'TestValue'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- '$ref' => '#/components/schemas/AlgorithmSpec',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-sidjc8134hv',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.1.0',
- ],
- ],
- ],
- ],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\"\\n}","type":"json"}]',
- 'title' => 'UpdateAlgorithmVersion',
- ],
- 'CreateTrainingJob' => [
- 'summary' => '创建TrainingJob',
- 'path' => '/api/v1/trainingjobs',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '132535',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
- ],
- 'parameters' => [
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ev_classification',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pai',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v1.0.0',
- ],
- 'ComputeResource' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'EcsCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
- 'EcsSpec' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.gn5-c8g1.2xlarge',
- ],
- 'ResourceId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quotam670lixikcs',
- ],
- 'InstanceCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
- 'InstanceSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'CPU' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '8',
- ],
- 'Memory' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '32',
- ],
- 'SharedMemory' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '32',
- ],
- 'GPU' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
- 'GPUType' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'V100',
- ],
- ],
- 'required' => false,
- ],
- 'SpotSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'SpotStrategy' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'SpotWithPriceLimit',
- ],
- 'SpotDiscountLimit' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'required' => false,
- 'example' => '9',
- ],
- ],
- 'required' => false,
- ],
- 'UseSpotInstance' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- ],
- 'required' => false,
- ],
- 'HyperParameters' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'learning_rate',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0.0001',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'InputChannels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'model',
- ],
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'd-475megosidivjfgfq6',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
- 'InputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/',
- ],
- 'Options' => [
- 'type' => 'string',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'Labels' => [
- 'description' => '',
+ 'MachineGroupID' => ['description' => 'The ID of the machine group.', 'type' => 'string', 'example' => 'mgmioirqjgw6c5lg', 'title' => ''],
+ 'ResourceGroupID' => ['description' => 'The ID of the resource group. This ID is globally unique and can be used to retrieve information about the resource group.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
+ 'Status' => ['description' => 'The status of the machine group.'."\n"
+ .'Valid values:'."\n"
+ .'Creating: The machine group is being created.'."\n"
+ .'Ready: The machine group is running.'."\n"
+ .'Expiring: The machine group is about to expire.'."\n"
+ .'Expired: The machine group has expired.'."\n"
+ .'Stopping: The machine group is being stopped.'."\n"
+ .'Stopped: The machine group has been stopped.', 'type' => 'string', 'example' => 'Ready', 'title' => ''],
+ 'PaymentType' => ['description' => 'The payment type.', 'type' => 'string', 'example' => 'PREPAY', 'title' => ''],
+ 'PaymentDurationUnit' => ['description' => 'The unit of the billing cycle for the machine group.', 'type' => 'string', 'example' => 'Month', 'title' => ''],
+ 'PaymentDuration' => ['description' => 'The payment duration. When PaymentDurationUnit is set to Month, valid values are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'EcsSpec' => ['description' => 'The ECS spec.', 'type' => 'string', 'example' => 'ecs.c6.large', 'title' => ''],
+ 'EcsCount' => ['description' => 'The number of ECS instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'GmtCreatedTime' => ['description' => 'The creation time of the machine group.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'The last modification time of the machine group.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z', 'title' => ''],
+ 'GmtStartedTime' => ['description' => 'The start time of the machine group.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z', 'title' => ''],
+ 'GmtExpiredTime' => ['description' => 'The expiration time of the machine group.', 'type' => 'string', 'example' => '2023-06-22T00:00:00Z'."\n", 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E', 'title' => ''],
+ 'Cpu' => ['description' => 'The total number of CPU cores per machine in the machine group.', 'type' => 'string', 'example' => '2', 'title' => ''],
+ 'Gpu' => ['description' => 'The number of GPUs per machine in the machine group.', 'type' => 'string', 'example' => '8', 'title' => ''],
+ 'GpuType' => ['description' => 'The GPU type per machine in the machine group.', 'type' => 'string', 'example' => 'A100', 'title' => ''],
+ 'Memory' => ['description' => 'The amount of memory per machine in the machine group.', 'type' => 'string', 'example' => '64', 'title' => ''],
+ 'SupportedDrivers' => [
+ 'description' => 'The GPU driver versions supported by the machines in the machine group.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CreatedBy',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'QuickStart',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
+ 'items' => ['description' => 'A supported GPU driver version.', 'type' => 'string', 'example' => '535,550', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
- 'OutputChannels' => [
- 'description' => '',
+ 'DefaultDriver' => ['description' => 'The default GPU driver version per machine in the machine group.', 'type' => 'string', 'example' => '535', 'title' => ''],
+ 'Name' => ['description' => 'The name of the machine group.', 'type' => 'string', 'example' => 'testMachineGroup', 'title' => ''],
+ 'Tags' => [
+ 'description' => 'The list of tags attached to the machine group.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A tag object.',
'type' => 'object',
'properties' => [
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'd-475megosidivjfgfq6',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'model',
- ],
- 'OutputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'oss://pai-quickstart-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/modelscope/models/qwen2-0.5b/main/',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- 'Scheduler' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'MaxRunningTimeInSeconds' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '0',
- ],
- 'MaxRunningTimeInMinutes' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- ],
- 'required' => false,
- ],
- 'TrainingJobDescription' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'qwen large language model training',
- ],
- 'TrainingJobName' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'qwen_llm',
- ],
- 'WorkspaceId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => '12345',
- ],
- 'AlgorithmSpec' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/AlgorithmSpec',
- ],
- 'CodeDir' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Location',
- ],
- 'RoleArn' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'acs:ram::1157703270994901:role/aliyunserviceroleforpaiworkspace',
- ],
- 'UserVpc' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'VpcId' => [
- 'description' => 'VPC ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vpc-dxiflssjx978sl',
- ],
- 'SwitchId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vs-icrc813vdsfol',
- ],
- 'SecurityGroupId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sg-qdfasd13sdasf',
- ],
- 'ExtendedCIDRs' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '192.168.0.1/24',
- ],
- 'required' => false,
- ],
- 'DefaultRoute' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eth0',
- ],
- ],
- 'required' => false,
- ],
- 'Settings' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Priority' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- 'EnableErrorMonitoringInAIMaster' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
- 'ErrorMonitoringArgs' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '--enable-log-hang-detection true',
- ],
- 'AIMasterType' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.c6.large',
- ],
- ],
- 'required' => false,
- '$ref' => '#/components/schemas/JobSettings',
- ],
- 'ExperimentConfig' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'exp-ds9aefia90v',
+ 'TagKey' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'example' => 'TestKey'],
+ 'TagValue' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'example' => 'TestValue'],
],
+ 'title' => '',
+ 'example' => '',
],
- 'required' => false,
- ],
- 'Environments' => [
- 'description' => '',
- 'type' => 'object',
- 'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '',
- 'example' => 'debug=true',
- ],
- ],
- 'PythonRequirements' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'numpy',
- ],
- 'required' => false,
- ],
- 'Priority' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'AssignNodeSpec' => [
- '$ref' => '#/components/schemas/AssignNodeSpec',
+ 'title' => '',
+ 'example' => '',
],
+ 'AllocatableCpu' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AllocatableMemory' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SystemReservedCpu' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'SystemReservedMemory' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
- 'required' => false,
+ 'example' => '',
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'TrainingJobId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'traineyfz0m2hsfv',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F',
- ],
+ 'title' => 'Get Machine Group Details',
+ 'changeSet' => [
+ ['createdAt' => '2025-08-22T05:48:16.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-01-04T03:16:22.000Z', 'description' => 'Request parameters changed, Response parameters changed'],
+ ['createdAt' => '2023-08-30T07:22:54.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-07-21T07:16:01.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupMachineGroup'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetResourceGroupMachineGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'MachineGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}/machinegroup/{#MachineGroupId}'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TrainingJobId\\": \\"traineyfz0m2hsfv\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]',
- 'title' => 'CreateTrainingJob',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroupID\\": \\"mgmioirqjgw6c5lg\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"Status\\": \\"Ready\\",\\n \\"PaymentType\\": \\"PREPAY\\",\\n \\"PaymentDurationUnit\\": \\"Month\\",\\n \\"PaymentDuration\\": \\"1\\",\\n \\"EcsSpec\\": \\"ecs.c6.large\\",\\n \\"EcsCount\\": 1,\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtStartedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtExpiredTime\\": \\"2023-06-22T00:00:00Z\\\\n\\",\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Cpu\\": \\"2\\",\\n \\"Gpu\\": \\"8\\",\\n \\"GpuType\\": \\"A100\\",\\n \\"Memory\\": \\"64\\",\\n \\"SupportedDrivers\\": [\\n \\"535,550\\"\\n ],\\n \\"DefaultDriver\\": \\"535\\",\\n \\"Name\\": \\"testMachineGroup\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"TestKey\\",\\n \\"TagValue\\": \\"TestValue\\"\\n }\\n ],\\n \\"AllocatableCpu\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCpu\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'CreateInstanceWebTerminal' => [
- 'summary' => '创建WebTerminal',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetResourceGroupRequest' => [
+ 'path' => '/api/v1/resources/data/request',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => true,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '199679',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeCode' => '146159',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train1nc6686x36b',
- ],
+ 'name' => 'ResourceGroupID',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The resource group ID. Each resource group has a globally unique resource group ID. You can use the resource group ID to obtain information about the resource group.', 'type' => 'string', 'required' => true, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
[
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train1nc6686x36b-master-0',
- ],
+ 'name' => 'PodStatus',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The container status. Valid values:'."\n"
+ ."\n"
+ .'- Waiting'."\n"
+ .'- Running'."\n"
+ .'- Terminated', 'type' => 'string', 'default' => 'Running', 'required' => false, 'example' => 'Running', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'WebTerminalId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ 'requestCPU' => ['description' => 'The total number of allocated CPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'requestMemory' => ['description' => 'The total amount of allocated memory.', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ 'requestGPU' => ['description' => 'The total number of allocated GPUs.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''],
+ 'requestGPUInfos' => [
+ 'description' => 'The allocated GPU resources counted separately by card type.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The allocated GPU resources counted separately by card type.', '$ref' => '#/components/schemas/GPUInfo', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"WebTerminalId\\": \\"wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'CreateInstanceWebTerminal',
- ],
- 'CheckInstanceWebTerminal' => [
- 'summary' => '检查WebTerminal',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/webterminals/action/check',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。'],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'Obtain the resources that have been allocated to a resource group',
+ 'summary' => 'You can call the GetResourceGroupRequest operation to obtain the number of resources that have been allocated to a resource group.',
+ 'changeSet' => [
+ ['createdAt' => '2022-07-21T07:16:01.000Z', 'description' => 'OpenAPI offline'],
],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupRequest'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestCPU\\": 1,\\n \\"requestMemory\\": 2,\\n \\"requestGPU\\": 8,\\n \\"requestGPUInfos\\": [\\n {\\n \\"count\\": 1,\\n \\"type\\": \\"T4\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetResourceGroupTotal' => [
+ 'path' => '/api/v1/resources/data/total',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '199680',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeCode' => '145960',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'traineyfz0m2hsfv',
- ],
- ],
- [
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train1oxaqdiluad-master-0',
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'CheckInfo' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'wss://pai-dlc-proxy-cn-shanghai.aliyun.com/terminal/t1157703270994901/dlcmjzjt1dxbmx4h/dlcmjzjt1dxbmx4h-worker-0?Token=******',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'ResourceGroupID',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the Resource Group.', 'type' => 'string', 'required' => false, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6',
+ 'totalCPU' => ['description' => 'The total number of CPU cores.', 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'totalMemory' => ['description' => 'The total memory.', 'type' => 'integer', 'format' => 'int32', 'example' => '300', 'title' => ''],
+ 'totalGPU' => ['description' => 'The total number of GPU cores.', 'type' => 'integer', 'format' => 'int32', 'example' => '24', 'title' => ''],
+ 'totalGPUInfos' => [
+ 'description' => 'The resources counted by GPU card type.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The resources of each card type counted separately by GPU card type.', '$ref' => '#/components/schemas/GPUInfo', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\"\\n}","type":"json"}]',
- 'title' => 'CheckInstanceWebTerminal',
- ],
- 'DeleteTrainingJob' => [
- 'summary' => '删除一个TrainingJob',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}',
- 'methods' => [
- 'delete',
+ 'title' => 'Get the total resources of a Resource Group',
+ 'summary' => 'You can call GetResourceGroupTotal to get the total resources of a Resource Group.',
+ 'changeSet' => [
+ ['createdAt' => '2022-07-21T07:16:01.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupTotal'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"totalCPU\\": 100,\\n \\"totalMemory\\": 300,\\n \\"totalGPU\\": 24,\\n \\"totalGPUInfos\\": [\\n {\\n \\"count\\": 1,\\n \\"type\\": \\"T4\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetSpotPriceHistory' => [
+ 'path' => '/api/v1/spots/{InstanceType}/pricehistory',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '132982',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '213678',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
+ 'name' => 'InstanceType',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'train76rcaupa2cz',
- ],
+ 'schema' => ['description' => 'The instance type of the spot instance. Supports ECS and Lingjun instance types.', 'type' => 'string', 'required' => false, 'example' => 'ml.gu7xf.8xlarge-gu108', 'title' => ''],
],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '4cc83062-9bcb-4ab3-979e-2e571a35834f',
- ],
- ],
- ],
+ [
+ 'name' => 'SpotDuration',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The retention period for the spot instance, in hours. Note that only ECS instance types support this parameter. Default value: 0. Valid values:'."\n"
+ ."\n"
+ .'- 1: Alibaba Cloud guarantees that the instance runs for at least one hour after creation. After one hour, the system compares your bid price with the current market price and checks resource inventory to decide whether to retain or revoke the instance.'."\n"
+ ."\n"
+ .'- 0: Alibaba Cloud does not guarantee one-hour runtime. The system compares your bid price with the current market price and checks resource inventory to decide whether to retain or revoke the instance.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4cc83062-9bcb-4ab3-979e-2e571a35834f\\"\\n}","type":"json"}]',
- 'title' => 'DeleteTrainingJob',
- ],
- 'DeleteTrainingJobLabels' => [
- 'summary' => '删除TrainingJob的Labels',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The start time for querying historical spot instance prices. This time must be no more than seven days before the end time. Specify the time in ISO 8601 format using UTC+0, as yyyy-MM-ddTHH:mm:ssZ. Default value: empty. An empty value means three days before the end time.', 'type' => 'string', 'required' => false, 'example' => '2024-12-26T09:36:46Z', 'title' => ''],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '132984',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The end time for querying historical spot instance prices. Specify the time in ISO 8601 format using UTC+0, as yyyy-MM-ddTHH:mm:ssZ. Default value: empty. An empty value means the current time.', 'type' => 'string', 'required' => false, 'example' => '2024-12-30T09:36:46Z', 'title' => ''],
],
- ],
- 'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number of the current page. Default value: ***1***. This parameter applies only when you query historical prices for Lingjun instance types.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page. Default value: **10**. This parameter applies only when you query historical prices for Lingjun instance types.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
'schema' => [
- 'description' => '',
+ 'description' => 'The field to sort by. Default value: GmtCreatedTime. Valid values:'."\n"
+ ."\n"
+ .'- GmtCreatedTime'."\n"
+ ."\n"
+ .'This parameter applies only when you query historical prices for Lingjun instance types.',
+ 'enumValueTitles' => ['GmtCreatedTime' => 'GmtCreatedTime'],
'type' => 'string',
- 'required' => true,
- 'example' => 'trainw52bqlfjbjc',
+ 'required' => false,
+ 'example' => 'GmtCreatedTime',
+ 'title' => '',
],
],
[
- 'name' => 'Keys',
+ 'name' => 'Order',
'in' => 'query',
'schema' => [
- 'description' => '',
+ 'description' => 'The sort order. Default value: asc. Valid values:'."\n"
+ ."\n"
+ .'- desc: descending order.'."\n"
+ ."\n"
+ .'- asc: ascending order.'."\n"
+ ."\n"
+ .'This parameter applies only when you query historical prices for Lingjun instance types.',
+ 'enumValueTitles' => ['asc' => 'asc', 'desc' => 'desc'],
'type' => 'string',
- 'required' => true,
- 'example' => 'RootModelID',
+ 'required' => false,
+ 'example' => 'asc',
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Details about historical spot instance prices',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7', 'title' => ''],
+ 'SpotPriceHistory' => [
+ 'description' => 'A list of historical spot instance price details',
+ 'type' => 'array',
+ 'items' => ['description' => 'Historical spot instance price details', '$ref' => '#/components/schemas/SpotPriceItem', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'TotalCount' => ['description' => 'The total number of historical spot instance prices', 'type' => 'integer', 'format' => 'int32', 'example' => '194', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'DeleteTrainingJobLabels',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Retrieve spot instance historical prices ',
+ 'summary' => 'Retrieves the historical prices of spot instances.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7\\",\\n \\"SpotPriceHistory\\": [\\n {\\n \\"ZoneId\\": \\"cn-wulanchabu-a\\",\\n \\"InstanceType\\": \\"ml.gu8xf.8xlarge-gu108\\",\\n \\"SpotDiscount\\": 0.1,\\n \\"Timestamp\\": \\"2024-01-17T06:00:00Z\\"\\n }\\n ],\\n \\"TotalCount\\": 194\\n}","type":"json"}]',
],
'GetToken' => [
- 'summary' => '调用GetToken获取临时鉴权信息',
+ 'summary' => 'Obtains a share token for a training task.',
'path' => '/api/v1/tokens',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '189411',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
'name' => 'TrainingJobId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'traincclrt205dcs',
- ],
+ 'schema' => ['description' => 'ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'traincclrt205dcs', 'title' => ''],
],
[
'name' => 'ExpireTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '60',
- ],
+ 'schema' => ['description' => 'Time-to-live (TTL) of the share link in seconds. Default is 604800. Minimum is 0.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6',
- ],
- 'Token' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ql4OU830nJaF17LP6KTry4a9DvnjIXHP',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'ID of the request.', 'type' => 'string', 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6'],
+ 'Token' => ['description' => 'Share token for the training task. Use this token as the Token parameter in the GetJob API to view details of the shared task.', 'type' => 'string', 'example' => 'ql4OU830nJaF17LP6KTry4a9DvnjIXHP', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"Token\\": \\"ql4OU830nJaF17LP6KTry4a9DvnjIXHP\\"\\n}","type":"json"}]',
- 'title' => 'GetToken',
+ 'title' => 'Obtain a sharing token for a training job',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'translator' => 'machine',
],
'GetTrainingJob' => [
- 'summary' => '获取TrainingJob的详情',
+ 'summary' => 'Get training job details.',
'path' => '/api/v1/trainingjobs/{TrainingJobId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
@@ -6064,669 +4299,401 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '132929',
- 'abilityTreeNodes' => [
- 'FEATURElearnVYA4L9',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnVYA4L9'],
],
'parameters' => [
[
'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train129f212o89d',
- ],
+ 'schema' => ['description' => 'The ID of the training job.', 'type' => 'string', 'required' => true, 'example' => 'train129f212o89d', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => '',
'type' => 'object',
'properties' => [
'OutputChannels' => [
- 'description' => '',
+ 'description' => 'The configurations for the output data channels of the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The configuration for an output data channel.',
'type' => 'object',
'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
- 'OutputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/',
- ],
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'd-8o0hh35po15ejcdq2p',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
+ 'Name' => ['description' => 'The name of the output data.', 'type' => 'string', 'example' => 'model', 'title' => ''],
+ 'OutputUri' => ['description' => 'The URI of the output data.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/', 'title' => ''],
+ 'DatasetId' => ['description' => 'The dataset ID.', 'type' => 'string', 'example' => 'd-8o0hh35po15ejcdq2p', 'title' => ''],
+ 'VersionName' => ['description' => 'The dataset version.', 'type' => 'string', 'example' => 'v1', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Running',
- ],
+ 'Status' => ['description' => 'The status of the training job.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
'HyperParameters' => [
- 'description' => '',
+ 'description' => 'The hyperparameter settings for the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A hyperparameter for the training job.',
'type' => 'object',
'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'learning_rate',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '0.0001',
- ],
+ 'Name' => ['description' => 'The name of the hyperparameter.', 'type' => 'string', 'example' => 'learning_rate', 'title' => ''],
+ 'Value' => ['description' => 'The value of the hyperparameter.', 'type' => 'string', 'example' => '0.0001', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'TrainingJobName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'qwen_llm',
- ],
- 'TrainingJobId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'traini6hhxiq69eo',
- ],
+ 'TrainingJobName' => ['description' => 'The training job name.', 'type' => 'string', 'example' => 'qwen_llm', 'title' => ''],
+ 'TrainingJobId' => ['description' => 'The training job ID.', 'type' => 'string', 'example' => 'traini6hhxiq69eo', 'title' => ''],
'Scheduler' => [
- 'description' => '',
+ 'description' => 'The scheduling configuration for the training job.',
'type' => 'object',
'properties' => [
- 'MaxRunningTimeInSeconds' => [
- 'description' => '',
- 'type' => 'string',
- 'format' => 'int64',
- 'example' => '0',
- ],
- 'MaxRunningTimeInMinutes' => [
- 'type' => 'string',
- ],
+ 'MaxRunningTimeInSeconds' => ['description' => 'The maximum runtime of the training job, in seconds. If the value is 0, the runtime is not limited.', 'type' => 'string', 'example' => '0', 'title' => ''],
+ 'MaxRunningTimeInMinutes' => ['description' => 'The maximum runtime, in minutes.', 'type' => 'string', 'example' => '100', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
- 'ReasonMessage' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'None',
- ],
- 'WorkspaceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '86995',
- ],
+ 'ReasonMessage' => ['description' => 'The reason for the training job failure.', 'type' => 'string', 'example' => 'None', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'The workspace ID.', 'type' => 'string', 'example' => '86995', 'title' => ''],
'ComputeResource' => [
- 'description' => '',
+ 'description' => 'The compute resource configuration.',
'type' => 'object',
'properties' => [
- 'EcsCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'EcsSpec' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ecs.gn5-c8g1.2xlarge',
- ],
- 'ResourceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'quotam670lixikcl',
- ],
- 'ResourceName' => [
- 'type' => 'string',
- ],
- 'InstanceCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
+ 'EcsCount' => ['description' => 'The number of ECS instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'EcsSpec' => ['description' => 'The ECS instance type.', 'type' => 'string', 'example' => 'ecs.gn5-c8g1.2xlarge', 'title' => ''],
+ 'ResourceId' => ['description' => 'The resource quota ID.', 'type' => 'string', 'example' => 'quotam670lixikcl', 'title' => ''],
+ 'ResourceName' => ['description' => 'The resource quota name.', 'type' => 'string', 'example' => 'quota', 'title' => ''],
+ 'InstanceCount' => ['description' => 'The number of instances used from the resource quota.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
'InstanceSpec' => [
- 'description' => '',
+ 'description' => 'The instance specification for the resource quota.',
'type' => 'object',
'properties' => [
- 'CPU' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '8',
- ],
- 'Memory' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '32',
- ],
- 'SharedMemory' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '32',
- ],
- 'GPU' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'GPUType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'V100',
- ],
+ 'CPU' => ['description' => 'The number of vCPUs for the instance.', 'type' => 'string', 'example' => '8', 'title' => ''],
+ 'Memory' => ['description' => 'The memory size for the instance, in GiB.', 'type' => 'string', 'example' => '32', 'title' => ''],
+ 'SharedMemory' => ['description' => 'The shared memory size for the instance, in GiB.', 'type' => 'string', 'example' => '32', 'title' => ''],
+ 'GPU' => ['description' => 'The number of GPUs for the instance.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'GPUType' => ['description' => 'The GPU type of the instance.', 'type' => 'string', 'example' => 'V100', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
- 'UseSpotInstance' => [
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'UseSpotInstance' => ['description' => 'Indicates whether to use spot instances.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
'SpotSpec' => [
- 'description' => '',
+ 'description' => 'The configuration for spot instances.',
'type' => 'object',
'properties' => [
- 'SpotStrategy' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'SpotWithPriceLimit',
- ],
- 'SpotDiscountLimit' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.9',
- ],
+ 'SpotStrategy' => ['description' => 'The bidding policy for the spot instance. Valid values:'."\n"
+ ."\n"
+ .'- `SpotWithPriceLimit`: Sets a maximum price for the spot instance.'."\n"
+ ."\n"
+ .'- `SpotAsPriceGo`: The system automatically places bids based on the real-time market price.', 'type' => 'string', 'example' => 'SpotWithPriceLimit', 'title' => ''],
+ 'SpotDiscountLimit' => ['description' => 'The maximum hourly price for the spot instance. This parameter applies only when `SpotStrategy` is set to `SpotWithPriceLimit`.', 'type' => 'number', 'format' => 'float', 'example' => '0.9', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
'Labels' => [
- 'description' => '',
+ 'description' => 'The labels for the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A label for the training job.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CreatedBy',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'QuickStart',
- ],
+ 'Key' => ['description' => 'The label key.', 'type' => 'string', 'example' => 'CreatedBy', 'title' => ''],
+ 'Value' => ['description' => 'The label value.', 'type' => 'string', 'example' => 'QuickStart', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
+ 'AlgorithmProvider' => ['description' => 'The algorithm provider.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
'InputChannels' => [
- 'description' => '',
+ 'description' => 'The configurations for the input data channels of the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The configuration for an input data channel.',
'type' => 'object',
'properties' => [
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'd-475megosidivjfgfq6',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
- 'InputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/',
- ],
- 'Options' => [
- 'type' => 'string',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
+ 'DatasetId' => ['description' => 'The dataset ID.', 'type' => 'string', 'example' => 'd-475megosidivjfgfq6', 'title' => ''],
+ 'Name' => ['description' => 'The name of the input data.', 'type' => 'string', 'example' => 'model', 'title' => ''],
+ 'InputUri' => ['description' => 'The URI of the input data.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/', 'title' => ''],
+ 'Options' => ['description' => 'The file system parameters for the input data.', 'type' => 'string', 'example' => 'ossAppendable=true', 'title' => ''],
+ 'VersionName' => ['description' => 'The dataset version.', 'type' => 'string', 'example' => 'v1', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_training',
- ],
- 'ReasonCode' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TrainingJobSucceed',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
+ 'AlgorithmName' => ['description' => 'The algorithm name.', 'type' => 'string', 'example' => 'llm_training', 'title' => ''],
+ 'ReasonCode' => ['description' => 'The reason code for the training job\'s status.', 'type' => 'string', 'example' => 'TrainingJobSucceed', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'The time when the training job status was last updated.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
'StatusTransitions' => [
- 'description' => '',
+ 'description' => 'The status transitions for the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A status transition of the training job.',
'type' => 'object',
'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'ReasonCode' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TrainingJobSucceed',
- ],
- 'ReasonMessage' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'KubeDL job runs successfully',
- ],
- 'StartTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Creating',
- ],
+ 'EndTime' => ['description' => 'The end time of the status.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'ReasonCode' => ['description' => 'The status code.', 'type' => 'string', 'example' => 'TrainingJobSucceed', 'title' => ''],
+ 'ReasonMessage' => ['description' => 'The message for the status update.', 'type' => 'string', 'example' => 'KubeDL job runs successfully', 'title' => ''],
+ 'StartTime' => ['description' => 'The start time of the status.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'Status' => ['description' => 'The status.', 'type' => 'string', 'example' => 'Creating', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
- ],
- 'TrainingJobDescription' => [
- 'description' => '',
- 'type' => 'string',
+ 'title' => '',
'example' => '',
],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.0.1',
- ],
+ 'TrainingJobDescription' => ['description' => 'The training job description.', 'type' => 'string', 'example' => 'Qwen2 large language model training.', 'title' => ''],
+ 'UserId' => ['description' => 'The user ID.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'The algorithm version.', 'type' => 'string', 'example' => 'v0.0.1', 'title' => ''],
'LatestMetrics' => [
- 'description' => '',
+ 'description' => 'The latest metrics for the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A monitoring metric for the training job.',
'type' => 'object',
'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'loss',
- ],
- 'Timestamp' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.11',
- ],
+ 'Name' => ['description' => 'The name of the metric.', 'type' => 'string', 'example' => 'loss', 'title' => ''],
+ 'Timestamp' => ['description' => 'The time when the metric was collected.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'Value' => ['description' => 'The value of the metric.', 'type' => 'number', 'format' => 'double', 'example' => '0.11', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
+ 'GmtCreateTime' => ['description' => 'The time when the training job was created.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
'Instances' => [
- 'description' => '',
+ 'description' => 'The instances for the training job.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'A training job instance.',
'type' => 'object',
'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'train1oug3yehan4-master-0',
- ],
- 'Role' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'master',
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Succeeded',
- ],
+ 'Name' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'train1oug3yehan4-master-0', 'title' => ''],
+ 'Role' => ['description' => 'The instance role.', 'type' => 'string', 'example' => 'master', 'title' => ''],
+ 'Status' => ['description' => 'The instance status.', 'type' => 'string', 'example' => 'Succeeded', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'AlgorithmId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'algo-xsldfvu1334',
- ],
- 'TrainingJobUrl' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4',
- ],
- 'RoleArn' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'acs:ram::{accountID}:role/{roleName}',
- ],
- 'AlgorithmSpec' => [
- 'title' => '临时算法定义。',
- 'description' => '',
- '$ref' => '#/components/schemas/AlgorithmSpec',
- ],
- 'IsTempAlgo' => [
- 'title' => '是否使用了临时算法。',
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
+ 'AlgorithmId' => ['description' => 'The training algorithm ID.', 'type' => 'string', 'example' => 'algo-xsldfvu1334', 'title' => ''],
+ 'TrainingJobUrl' => ['description' => 'The URL of the training job details page.', 'type' => 'string', 'example' => 'https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4', 'title' => ''],
+ 'RoleArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role used for delegated authorization.', 'type' => 'string', 'example' => 'acs:ram::{accountID}:role/{roleName}', 'title' => ''],
+ 'AlgorithmSpec' => ['title' => '', 'description' => 'The definition of the temporary algorithm.', '$ref' => '#/components/schemas/AlgorithmSpec', 'example' => ''],
+ 'IsTempAlgo' => ['title' => '', 'description' => 'Indicates whether a temporary algorithm is used.', 'type' => 'boolean', 'example' => 'true'],
'LatestProgress' => [
- 'description' => '',
+ 'description' => 'The latest progress of the training job.',
'type' => 'object',
'properties' => [
'OverallProgress' => [
- 'description' => '',
+ 'description' => 'The overall progress of the training job.',
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-07-04T13:20:18Z',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'float',
- 'example' => '0.75',
- ],
+ 'Timestamp' => ['description' => 'The timestamp of the progress update.', 'type' => 'string', 'example' => '2023-07-04T13:20:18Z', 'title' => ''],
+ 'Value' => ['description' => 'The progress value.', 'type' => 'number', 'format' => 'float', 'example' => '0.75', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
'RemainingTime' => [
- 'description' => '',
+ 'description' => 'The estimated remaining time for the training job to complete, in seconds.',
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-07-04T13:20:18Z',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '3600',
- ],
+ 'Timestamp' => ['description' => 'The timestamp of the progress update.', 'type' => 'string', 'example' => '2023-07-04T13:20:18Z', 'title' => ''],
+ 'Value' => ['description' => 'The remaining time, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '3600', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
'UserVpc' => [
- 'description' => '',
+ 'description' => 'The user\'s VPC configuration.',
'type' => 'object',
'properties' => [
- 'VpcId' => [
- 'description' => 'VPC ID。',
- 'type' => 'string',
- 'example' => 'vpc-abcdef****',
- ],
- 'SwitchId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'vs-abcdef****',
- ],
- 'SecurityGroupId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'sg-abcdef****',
- ],
+ 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-abcdef****', 'title' => ''],
+ 'SwitchId' => ['description' => 'The vSwitch ID.', 'type' => 'string', 'example' => 'vs-abcdef****', 'title' => ''],
+ 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'example' => 'sg-abcdef****', 'title' => ''],
'ExtendedCIDRs' => [
- 'description' => '',
+ 'description' => 'The configuration for the extended CIDR blocks.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '192.168.0.1/24',
- ],
+ 'items' => ['description' => 'An extended CIDR block.', 'type' => 'string', 'example' => '192.168.0.1/24', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
'OutputModel' => [
- 'description' => '',
+ 'description' => 'The model generated by the training job.',
'type' => 'object',
'properties' => [
- 'Uri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/',
- ],
- 'OutputChannelName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
+ 'Uri' => ['description' => 'The URI of the model.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/', 'title' => ''],
+ 'OutputChannelName' => ['description' => 'The name of the output channel for the model.', 'type' => 'string', 'example' => 'model', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
- 'Settings' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Priority' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'EnableErrorMonitoringInAIMaster' => [
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'ErrorMonitoringArgs' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '--enable-log-hang-detection true',
- ],
- 'AIMasterType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ecs.c6.large',
- ],
- ],
- '$ref' => '#/components/schemas/JobSettings',
- ],
+ 'Settings' => ['description' => 'The additional settings for the training job.', '$ref' => '#/components/schemas/JobSettings', 'title' => '', 'example' => ''],
'ExperimentConfig' => [
- 'description' => '',
+ 'description' => 'The configuration of the experiment associated with the training job.',
'type' => 'object',
'properties' => [
- 'ExperimentId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'exp-ds9aefia90v',
- ],
- 'ExperimentName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'large_language_model_train',
- ],
+ 'ExperimentId' => ['description' => 'The ID of the associated experiment.', 'type' => 'string', 'example' => 'exp-ds9aefia90v', 'title' => ''],
+ 'ExperimentName' => ['description' => 'The name of the associated experiment.', 'type' => 'string', 'example' => 'large_language_model_train', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
- 'Duration' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '7200',
- ],
+ 'Duration' => ['description' => 'The duration of the training job, in seconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '7200', 'title' => ''],
'Environments' => [
- 'description' => '',
+ 'description' => 'The environment variables for the training job.',
+ 'additionalProperties' => ['description' => 'An environment variable for the training job.', 'type' => 'string', 'example' => 'debug=true', 'title' => ''],
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '',
- 'example' => 'debug=true',
- ],
+ 'title' => '',
+ 'example' => '',
],
'PythonRequirements' => [
- 'description' => '',
+ 'description' => 'The required Python packages for the training job.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'torch>=2.2.0',
- ],
- ],
- 'Priority' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- 'AssignNodeSpec' => [
- '$ref' => '#/components/schemas/AssignNodeSpec',
+ 'items' => ['description' => 'A required Python package for the training job.', 'type' => 'string', 'example' => 'torch>=2.2.0', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'Priority' => ['description' => 'The priority of the training job.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''],
+ 'AssignNodeSpec' => ['$ref' => '#/components/schemas/AssignNodeSpec', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputChannels\\": [\\n {\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/\\",\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"Status\\": \\"Running\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.0001\\"\\n }\\n ],\\n \\"TrainingJobName\\": \\"qwen_llm\\",\\n \\"TrainingJobId\\": \\"traini6hhxiq69eo\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": \\"0\\",\\n \\"MaxRunningTimeInMinutes\\": \\"100\\"\\n },\\n \\"ReasonMessage\\": \\"None\\",\\n \\"WorkspaceId\\": \\"86995\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n },\\n \\"UseSpotInstance\\": true,\\n \\"SpotSpec\\": {\\n \\"SpotStrategy\\": \\"SpotWithPriceLimit\\",\\n \\"SpotDiscountLimit\\": 0.9\\n }\\n },\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"Name\\": \\"model\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/\\",\\n \\"Options\\": \\"ossAppendable=true\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2大语言模型训练。\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"LatestMetrics\\": [\\n {\\n \\"Name\\": \\"loss\\",\\n \\"Timestamp\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Value\\": 0.11\\n }\\n ],\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Instances\\": [\\n {\\n \\"Name\\": \\"train1oug3yehan4-master-0\\",\\n \\"Role\\": \\"master\\",\\n \\"Status\\": \\"Succeeded\\"\\n }\\n ],\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"TrainingJobUrl\\": \\"https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"\\",\\n \\"Type\\": \\"\\",\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"\\"\\n ],\\n \\"MinLength\\": 0,\\n \\"MaxLength\\": 0,\\n \\"Minimum\\": \\"\\",\\n \\"Maximum\\": \\"\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"\\"\\n },\\n \\"DisplayName\\": \\"\\"\\n }\\n ],\\n \\"JobType\\": \\"\\",\\n \\"Command\\": [\\n \\"\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"train dataset oob score\\",\\n \\"Regex\\": \\".*train:oob_score=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"train:oob_score\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"\\",\\n \\"Required\\": true,\\n \\"Properties\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Name\\": \\"\\",\\n \\"SupportedChannelTypes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"GPU\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"\\",\\n \\"Regex\\": \\"\\"\\n }\\n }\\n },\\n \\"IsTempAlgo\\": true,\\n \\"LatestProgress\\": {\\n \\"OverallProgress\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 0.75\\n },\\n \\"RemainingTime\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 3600\\n }\\n },\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ]\\n },\\n \\"OutputModel\\": {\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/\\",\\n \\"OutputChannelName\\": \\"model\\"\\n },\\n \\"Settings\\": {\\n \\"BusinessUserId\\": \\"166924\\",\\n \\"Caller\\": \\"SilkFlow\\",\\n \\"Tags\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"PipelineId\\": \\"pid-123456\\",\\n \\"EnableTideResource\\": true,\\n \\"EnableErrorMonitoringInAIMaster\\": false,\\n \\"ErrorMonitoringArgs\\": \\"--enable-log-hang-detection true\\",\\n \\"EnableRDMA\\": true,\\n \\"EnableOssAppend\\": true,\\n \\"OversoldType\\": \\"AcceptQuotaOverSold\\",\\n \\"AdvancedSettings\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Driver\\": \\"535.54.03\\",\\n \\"EnableSanityCheck\\": true,\\n \\"SanityCheckArgs\\": \\"--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai\\",\\n \\"JobReservedMinutes\\": 30,\\n \\"JobReservedPolicy\\": \\"Always\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model_train\\"\\n },\\n \\"Duration\\": 7200,\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"Priority\\": 0,\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n}","type":"json"}]',
- 'title' => 'GetTrainingJob',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputChannels\\": [\\n {\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/model/\\",\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"Status\\": \\"Running\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.0001\\"\\n }\\n ],\\n \\"TrainingJobName\\": \\"qwen_llm\\",\\n \\"TrainingJobId\\": \\"traini6hhxiq69eo\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": \\"0\\",\\n \\"MaxRunningTimeInMinutes\\": \\"100\\"\\n },\\n \\"ReasonMessage\\": \\"None\\",\\n \\"WorkspaceId\\": \\"86995\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n },\\n \\"UseSpotInstance\\": true,\\n \\"SpotSpec\\": {\\n \\"SpotStrategy\\": \\"SpotWithPriceLimit\\",\\n \\"SpotDiscountLimit\\": 0.9\\n }\\n },\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"Name\\": \\"model\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/model/\\",\\n \\"Options\\": \\"ossAppendable=true\\",\\n \\"VersionName\\": \\"v1\\"\\n }\\n ],\\n \\"AlgorithmName\\": \\"llm_training\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2 large language model training.\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"LatestMetrics\\": [\\n {\\n \\"Name\\": \\"loss\\",\\n \\"Timestamp\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Value\\": 0.11\\n }\\n ],\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Instances\\": [\\n {\\n \\"Name\\": \\"train1oug3yehan4-master-0\\",\\n \\"Role\\": \\"master\\",\\n \\"Status\\": \\"Succeeded\\"\\n }\\n ],\\n \\"AlgorithmId\\": \\"algo-xsldfvu1334\\",\\n \\"TrainingJobUrl\\": \\"https://pai.console.aliyun.com/?regionId=cn-hangzhou&workspaceId=1234#/training/jobs/train1ouyadsl8n4\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"AlgorithmSpec\\": {\\n \\"OutputChannels\\": [\\n {\\n \\"Description\\": \\"模型输出。\\",\\n \\"Required\\": true,\\n \\"Properties\\": {},\\n \\"Name\\": \\"Model\\",\\n \\"SupportedChannelTypes\\": [\\n \\"oss\\"\\n ]\\n }\\n ],\\n \\"HyperParameters\\": [\\n {\\n \\"DefaultValue\\": \\"0\\",\\n \\"Type\\": \\"Integer\\",\\n \\"Description\\": \\"参数定义了训练的batch_size。\\",\\n \\"Required\\": true,\\n \\"Name\\": \\"batch_size\\",\\n \\"Range\\": {\\n \\"Enum\\": [\\n \\"0\\"\\n ],\\n \\"MinLength\\": 1,\\n \\"MaxLength\\": 30,\\n \\"Minimum\\": \\"0\\",\\n \\"Maximum\\": \\"10\\",\\n \\"ExclusiveMinimum\\": true,\\n \\"ExclusiveMaximum\\": true,\\n \\"Pattern\\": \\"^\\\\\\\\+?[1-9][0-9]*$\\"\\n },\\n \\"DisplayName\\": \\"Batch Size\\"\\n }\\n ],\\n \\"JobType\\": \\"TFJob\\",\\n \\"Command\\": [\\n \\"python train.py\\"\\n ],\\n \\"MetricDefinitions\\": [\\n {\\n \\"Description\\": \\"训练损失函数。\\",\\n \\"Regex\\": \\".*train:loss=([-+]?[0-9]*\\\\\\\\\\\\\\\\.?[0-9]+(?:[eE][-+]?[0-9]+)?).*\\",\\n \\"Name\\": \\"loss\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"Description\\": \\"模型输出。\\",\\n \\"Required\\": true,\\n \\"Properties\\": {},\\n \\"Name\\": \\"Model\\",\\n \\"SupportedChannelTypes\\": [\\n \\"oss\\"\\n ]\\n }\\n ],\\n \\"SupportsDistributedTraining\\": true,\\n \\"Image\\": \\"registry.cn-shanghai.aliyuncs.com/pai-training/kmeans:v1.0.0\\",\\n \\"SupportedInstanceTypes\\": [\\n \\"ecs.g6.2xlarge\\"\\n ],\\n \\"ComputeResource\\": {\\n \\"Policy\\": {\\n \\"Version\\": \\"V1\\",\\n \\"Value\\": \\"[{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"MaxTotalCount\\\\\\\\\\\\\\":4,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":100}}},{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":5,\\\\\\\\\\\\\\"MaxTotalCount\\\\\\\\\\\\\\":10,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":20},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":80}}},{\\\\\\\\\\\\\\"MinTotalCount\\\\\\\\\\\\\\":11,\\\\\\\\\\\\\\"RolePolicies\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"chief\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Count\\\\\\\\\\\\\\":1},\\\\\\\\\\\\\\"ps\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":40},\\\\\\\\\\\\\\"worker\\\\\\\\\\\\\\":{\\\\\\\\\\\\\\"Percentage\\\\\\\\\\\\\\":60}}}]\\"\\n }\\n },\\n \\"CodeDir\\": {\\n \\"LocationType\\": \\"OSS\\",\\n \\"LocationValue\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n },\\n \\"Customization\\": {\\n \\"CodeDir\\": true\\n },\\n \\"ResourceRequirements\\": [\\n {\\n \\"Key\\": \\"SupportedMachineTypes\\",\\n \\"Operator\\": \\"in\\",\\n \\"Values\\": [\\n \\"ecs.gn5-c4g1.xlarge\\"\\n ]\\n }\\n ],\\n \\"ProgressDefinitions\\": {\\n \\"OverallProgress\\": {\\n \\"Description\\": \\"training progress\\",\\n \\"Regex\\": \\"^[0-9]+([.][0-9]+){0,1}$\\"\\n },\\n \\"RemainingTime\\": {\\n \\"Description\\": \\"training remaining time\\",\\n \\"Regex\\": \\"^[0-9]+([.][0-9]+){0,1}$\\"\\n }\\n }\\n },\\n \\"IsTempAlgo\\": true,\\n \\"LatestProgress\\": {\\n \\"OverallProgress\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 0.75\\n },\\n \\"RemainingTime\\": {\\n \\"Timestamp\\": \\"2023-07-04T13:20:18Z\\",\\n \\"Value\\": 3600\\n }\\n },\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ]\\n },\\n \\"OutputModel\\": {\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/model/output/\\",\\n \\"OutputChannelName\\": \\"model\\"\\n },\\n \\"Settings\\": {\\n \\"BusinessUserId\\": \\"166924\\",\\n \\"Caller\\": \\"SilkFlow\\",\\n \\"Tags\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"PipelineId\\": \\"pid-123456\\",\\n \\"EnableTideResource\\": true,\\n \\"EnableErrorMonitoringInAIMaster\\": false,\\n \\"ErrorMonitoringArgs\\": \\"--enable-log-hang-detection true\\",\\n \\"EnableRDMA\\": true,\\n \\"EnableOssAppend\\": true,\\n \\"OversoldType\\": \\"AcceptQuotaOverSold\\",\\n \\"AdvancedSettings\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Driver\\": \\"535.54.03\\",\\n \\"EnableSanityCheck\\": true,\\n \\"SanityCheckArgs\\": \\"--sanity-check-timing=AfterJobFaultTolerant --sanity-check-timeout-ops=MarkJobFai\\",\\n \\"JobReservedMinutes\\": 30,\\n \\"JobReservedPolicy\\": \\"Always\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model_train\\"\\n },\\n \\"Duration\\": 7200,\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"Priority\\": 0,\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'title' => 'Get training job details',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-25T06:20:13.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-11-18T02:48:42.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-10-17T03:44:01.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-08-07T03:10:37.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-07-19T02:50:12.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-05-09T10:31:22.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-03-14T08:12:52.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-02-29T07:27:54.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-12-26T10:28:15.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-12-07T04:21:27.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-09-01T11:22:25.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-08-15T11:50:53.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-05-24T09:46:45.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-04-20T02:19:53.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-24T14:00:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-14T12:38:37.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-14T12:38:37.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-14T12:18:34.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-14T12:18:34.000Z', 'description' => 'Response parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '500', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrainingJob'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'gatewayOptions' => [
+ 'gatewayProtocols' => [],
+ ],
+ 'translator' => 'machine',
],
'GetTrainingJobErrorInfo' => [
- 'summary' => '获取Training Job的算法错误信息',
'path' => '/api/v1/trainingjobs/{TrainingJobId}/errorinfo',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '195103',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'traineyfz0m2hsfv',
- ],
+ 'schema' => ['description' => 'Training task ID.', 'type' => 'string', 'required' => true, 'example' => 'traineyfz0m2hsfv', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
'ErrorInfo' => [
- 'description' => '',
+ 'description' => 'Error information.',
'type' => 'object',
'properties' => [
- 'Code' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'AdditionalInfo' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'additional info',
- ],
+ 'Code' => ['description' => 'Error code.', 'type' => 'string', 'example' => '200', 'title' => ''],
+ 'Message' => ['description' => 'Error message.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'AdditionalInfo' => ['description' => 'Additional information.', 'type' => 'string', 'example' => 'additional info', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Retrieve the error information of a training job',
+ 'summary' => 'Retrieve error information for a training task.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"AdditionalInfo\\": \\"additional info\\"\\n }\\n}","type":"json"}]',
- 'title' => 'GetTrainingJobErrorInfo',
+ 'translator' => 'machine',
],
'GetTrainingJobLatestMetrics' => [
- 'summary' => '获取TrainingJob最近的Metrics',
+ 'summary' => 'Retrieves the latest metrics for a training task.',
'path' => '/api/v1/trainingjobs/{TrainingJobId}/latestmetrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6736,3020 +4703,2814 @@
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '135852',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train129f212o89d',
- ],
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'train129f212o89d', 'title' => ''],
],
[
'name' => 'Names',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'loss',
- ],
+ 'schema' => ['description' => 'The name of the metric.', 'type' => 'string', 'required' => false, 'example' => 'loss', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E'],
'Metrics' => [
- 'description' => '',
+ 'description' => 'The metric information.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The metric information.',
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'example' => '2022-04-18T22:20:55Z',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.97',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'loss',
- ],
+ 'Timestamp' => ['description' => 'The timestamp when the metric was collected.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2022-04-18T22:20:55Z', 'title' => ''],
+ 'Value' => ['description' => 'The value of the metric.', 'type' => 'number', 'format' => 'double', 'example' => '0.97', 'title' => ''],
+ 'Name' => ['description' => 'The name of the metric.', 'type' => 'string', 'example' => 'loss', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
+ 'title' => 'Retrieve the latest metrics of a training job',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrainingJobLatestMetrics'],
+ ],
+ ],
+ 'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"Metrics\\": [\\n {\\n \\"Timestamp\\": \\"2022-04-18T22:20:55Z\\",\\n \\"Value\\": 0.97,\\n \\"Name\\": \\"loss\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'GetTrainingJobLatestMetrics',
+ 'translator' => 'machine',
],
- 'ListTrainingJobs' => [
- 'summary' => '获取TrainingJob的列表',
- 'path' => '/api/v1/trainingjobs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetUserViewMetrics' => [
+ 'summary' => 'Retrieves metric data at the user dimension.',
+ 'path' => '/api/v1/resources/{ResourceGroupID}/usermetrics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
- 'deprecated' => false,
+ 'deprecated' => true,
'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '132980',
- 'abilityTreeNodes' => [
- 'FEATURElearnVYA4L9',
- ],
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '152476',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7', 'FEATURElearn1N0SUT'],
],
'parameters' => [
[
+ 'name' => 'ResourceGroupID',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The resource group ID. Each resource group has a globally unique resource group ID. You can use the resource group ID to retrieve information about the resource group.', 'type' => 'string', 'required' => true, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
+ ],
+ [
'name' => 'WorkspaceId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '12345',
- ],
+ 'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => false, 'example' => '86995', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The current page number.', 'type' => 'string', 'required' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The page size.', 'type' => 'string', 'required' => true, 'example' => '10', 'title' => ''],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GmtModifiedTime',
- 'enum' => [
- 'GmtModifiedTime',
- 'GmtCreateTime',
- 'TrainingJobName',
- 'AlgorithmName',
- 'Status',
- ],
- ],
+ 'schema' => ['description' => 'The sorting criterion.', 'type' => 'string', 'required' => false, 'example' => 'GmtModified', 'title' => ''],
],
[
'name' => 'Order',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'ASC' => 'ASC',
- 'DESC' => 'DESC',
- ],
- 'example' => 'DESC',
- 'enum' => [
- 'desc',
- 'asc',
- ],
- ],
+ 'schema' => ['description' => 'The sort order. Valid values:'."\n"
+ .'- asc: ascending order.'."\n"
+ .'- desc: descending order.', 'type' => 'string', 'required' => false, 'example' => 'DESC', 'title' => ''],
],
[
- 'name' => 'TrainingJobName',
+ 'name' => 'UserId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'large_language_model_training',
- ],
+ 'schema' => ['description' => 'The ID of the Alibaba Cloud account.', 'type' => 'string', 'required' => false, 'example' => '123456', 'title' => ''],
],
[
- 'name' => 'Status',
+ 'name' => 'TimeStep',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Running',
- ],
+ 'schema' => ['description' => 'The time step. Default value: 5m. Valid values for the time unit:'."\n"
+ ."\n"
+ .'- h: hours.'."\n"
+ ."\n"
+ .'- m: minutes.'."\n"
+ ."\n"
+ .'- s: seconds.'."\n"
+ ."\n"
+ .'If no unit is specified, the default unit s (seconds) is used.', 'type' => 'string', 'required' => false, 'example' => '1h', 'title' => ''],
],
- [
- 'name' => 'TrainingJobId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trains930928remn',
- ],
- ],
- [
- 'name' => 'Labels',
- 'in' => 'query',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '',
+ 'title' => '',
+ 'description' => 'Schema of Response',
'type' => 'object',
- 'required' => false,
- 'example' => '{"project": "sd-s3"}',
+ 'properties' => [
+ 'ResourceGroupId' => ['description' => '资源组ID', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
+ 'UserMetrics' => [
+ 'description' => '按照用户维度统计的指标',
+ 'type' => 'array',
+ 'items' => ['description' => '按照用户维度统计的指标', '$ref' => '#/components/schemas/UserViewMetric', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Summary' => ['description' => '用户监控数据。', '$ref' => '#/components/schemas/UserViewMetric', 'title' => '', 'example' => ''],
+ 'Total' => ['description' => '总条数', 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ ],
+ 'example' => '',
],
],
- [
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-06-22T01:00:00Z',
- ],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => ['PaiStudio::2022-01-12::GetQuotaUserViewMetrics'],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'Retrieve user-dimension metrics',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetUserViewMetrics'],
],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroupId\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"UserMetrics\\": [\\n {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokh****\\",\\n \\"TotalCPU\\": 1000,\\n \\"CPUUsageRate\\": \\"59\\",\\n \\"GPUUsageRate\\": \\"10\\",\\n \\"TotalMemory\\": 10240,\\n \\"TotalGPU\\": 1,\\n \\"MemoryUsageRate\\": \\"20\\",\\n \\"RequestCPU\\": 100,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 102400000,\\n \\"NetworkInputRate\\": \\"1\\",\\n \\"NetworkOutputRate\\": \\"1\\",\\n \\"DiskReadRate\\": \\"22\\",\\n \\"DiskWriteRate\\": \\"22\\",\\n \\"JobType\\": \\"PyTorch\\",\\n \\"UserId\\": \\"16111111****\\",\\n \\"CPUNodeNumber\\": 2,\\n \\"GPUNodeNumber\\": 1,\\n \\"CpuJobNames\\": [\\n \\"dlcxxxxx\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"dlcyyyyy\\"\\n ],\\n \\"NodeNames\\": [\\n \\"lrnxxxxxx\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"ecixxxxxx\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"lrnxxxxxxx\\"\\n ]\\n }\\n ],\\n \\"Summary\\": {\\n \\"ResourceGroupId\\": \\"rg17tmvwiokh****\\",\\n \\"TotalCPU\\": 1000,\\n \\"CPUUsageRate\\": \\"59\\",\\n \\"GPUUsageRate\\": \\"10\\",\\n \\"TotalMemory\\": 10240,\\n \\"TotalGPU\\": 1,\\n \\"MemoryUsageRate\\": \\"20\\",\\n \\"RequestCPU\\": 100,\\n \\"RequestGPU\\": 10,\\n \\"RequestMemory\\": 102400000,\\n \\"NetworkInputRate\\": \\"1\\",\\n \\"NetworkOutputRate\\": \\"1\\",\\n \\"DiskReadRate\\": \\"22\\",\\n \\"DiskWriteRate\\": \\"22\\",\\n \\"JobType\\": \\"PyTorch\\",\\n \\"UserId\\": \\"16111111****\\",\\n \\"CPUNodeNumber\\": 2,\\n \\"GPUNodeNumber\\": 1,\\n \\"CpuJobNames\\": [\\n \\"dlcxxxxx\\"\\n ],\\n \\"GpuJobNames\\": [\\n \\"dlcyyyyy\\"\\n ],\\n \\"NodeNames\\": [\\n \\"lrnxxxxxx\\"\\n ],\\n \\"CpuNodeNames\\": [\\n \\"ecixxxxxx\\"\\n ],\\n \\"GpuNodeNames\\": [\\n \\"lrnxxxxxxx\\"\\n ]\\n },\\n \\"Total\\": 2\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListAlgorithmVersions' => [
+ 'summary' => 'Retrieve a list of algorithm version details.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2023-12-27T02:10:00Z',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
+ 'parameters' => [
[
- 'name' => 'AlgorithmProvider',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'pai',
- ],
+ 'schema' => ['description' => 'The page size for paging.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'title' => ''],
],
[
- 'name' => 'AlgorithmName',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'llm_train',
- ],
+ 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'IsTempAlgo',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'name' => 'AlgorithmId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-sidjc8134hv', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'description' => '',
+ 'description' => 'The response to the request.',
'type' => 'object',
'properties' => [
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '10',
- ],
- 'TrainingJobs' => [
- 'description' => '',
+ 'AlgorithmVersions' => [
+ 'description' => 'A list of algorithm version details.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'Algorithm version details.',
'type' => 'object',
'properties' => [
- 'AlgorithmName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'llm_train',
- ],
- 'AlgorithmProvider' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'pai',
- ],
- 'AlgorithmVersion' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'v0.0.1',
- ],
- 'ComputeResource' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'EcsCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'EcsSpec' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ecs.gn5-c8g1.2xlarge',
- ],
- 'ResourceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'quotam670lixikcl',
- ],
- 'ResourceName' => [
- 'type' => 'string',
- ],
- 'InstanceCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'InstanceSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'CPU' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '8',
- ],
- 'Memory' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '32',
- ],
- 'SharedMemory' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '32',
- ],
- 'GPU' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'GPUType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'V100',
- ],
- ],
- ],
- ],
- ],
- 'GmtCreateTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'GmtModifiedTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'HyperParameters' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'learning_rate',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '0.001',
- ],
- ],
- ],
- ],
- 'InputChannels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'd-475megosidivjfgfq6',
- ],
- 'InputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
- ],
- ],
- ],
- 'Labels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CreatedBy',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'QuickStart',
- ],
- ],
- ],
- ],
- 'OutputChannels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'DatasetId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'd-8o0hh35po15ejcdq2p',
- ],
- 'Name' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
- 'OutputUri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/',
- ],
- 'VersionName' => [
- 'type' => 'string',
- ],
- ],
- ],
- ],
- 'ReasonCode' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TrainingJobSucceed',
- ],
- 'ReasonMessage' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'None',
- ],
- 'Scheduler' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'MaxRunningTimeInSeconds' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '0',
- ],
- ],
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Running',
- ],
- 'StatusTransitions' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'EndTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'ReasonCode' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'TrainingJobSucceed',
- ],
- 'ReasonMessage' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'KubeDL job runs successfully',
- ],
- 'StartTime' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '2024-07-10T11:49:47Z',
- ],
- 'Status' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Creating',
- ],
- ],
- ],
- ],
- 'TrainingJobDescription' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '',
- ],
- 'TrainingJobId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'train1layo6js8ra',
- ],
- 'TrainingJobName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'qwen2-7b',
- ],
- 'UserId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '123456789',
- ],
- 'WorkspaceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '1234',
- ],
- 'RoleArn' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'acs:ram::{accountID}:role/{roleName}',
- ],
- 'IsTempAlgo' => [
- 'title' => '是否使用了临时算法。',
- 'description' => '',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'UserVpc' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'VpcId' => [
- 'description' => 'VPC ID。',
- 'type' => 'string',
- 'example' => 'vpc-abcdef****',
- ],
- 'SwitchId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'vs-abcdef****',
- ],
- 'SecurityGroupId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'sg-abcdef****',
- ],
- 'ExtendedCIDRs' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '192.168.0.1/24',
- ],
- ],
- 'DefaultRoute' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'eth1',
- ],
- ],
- ],
- 'ExperimentConfig' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'ExperimentId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'exp-ds9aefia90v',
- ],
- 'ExperimentName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'large_language_model',
- ],
- ],
- ],
- 'Environments' => [
- 'description' => '',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'description' => '',
- 'example' => 'debug=true',
- ],
- ],
- 'PythonRequirements' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'torch>=2.2.0',
- ],
- ],
- 'DlcJobId' => [
- 'type' => 'string',
- ],
- 'AssignNodeSpec' => [
- '$ref' => '#/components/schemas/AssignNodeSpec',
- ],
+ 'AlgorithmId' => ['description' => 'The algorithm ID.', 'type' => 'string', 'example' => 'algo-sidjc8134hv', 'title' => ''],
+ 'AlgorithmName' => ['description' => 'The algorithm name.', 'type' => 'string', 'example' => 'llm_train', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'The algorithm provider.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'The algorithm version.', 'type' => 'string', 'example' => 'v0.1.0', 'title' => ''],
+ 'GmtCreateTime' => ['description' => 'The time when the algorithm was created.', 'type' => 'string', 'example' => '2024-01-19T02:00:26Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'The time when the algorithm was last updated.', 'type' => 'string', 'example' => '2024-01-22T02:00:59Z', 'title' => ''],
+ 'TenantId' => ['description' => 'The tenant ID that owns the algorithm.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'UserId' => ['description' => 'The user ID that owns the algorithm.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
+ 'TotalCount' => ['description' => 'The total number of algorithm versions.', 'type' => 'integer', 'format' => 'int64', 'example' => '23', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 10,\\n \\"TrainingJobs\\": [\\n {\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n }\\n },\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.001\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/\\",\\n \\"Name\\": \\"model\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"OutputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"None\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": 0\\n },\\n \\"Status\\": \\"Running\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2大语言模型训练。\\",\\n \\"TrainingJobId\\": \\"train1layo6js8ra\\",\\n \\"TrainingJobName\\": \\"qwen2-7b\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"IsTempAlgo\\": true,\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ],\\n \\"DefaultRoute\\": \\"eth1\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model\\"\\n },\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"DlcJobId\\": \\"\\",\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n }\\n ],\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobs',
- ],
- 'ListTrainingJobEvents' => [
- 'summary' => '获取指定TrainingJob的事件。',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/events',
- 'methods' => [
- 'get',
+ 'title' => 'Retrieve the list of algorithm version details',
+ 'changeSet' => [
+ ['createdAt' => '2022-04-27T10:49:51.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlgorithmVersions'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListAlgorithmVersions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmVersions\\": [\\n {\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\",\\n \\"GmtCreateTime\\": \\"2024-01-19T02:00:26Z\\",\\n \\"GmtModifiedTime\\": \\"2024-01-22T02:00:59Z\\",\\n \\"TenantId\\": \\"123456789\\",\\n \\"UserId\\": \\"123456789\\"\\n }\\n ],\\n \\"TotalCount\\": 23,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ 'ListAlgorithms' => [
+ 'summary' => 'Lists algorithm details.',
+ 'path' => '/api/v1/algorithms',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '165613',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'traineyfz0m2hsfv',
- ],
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Page size.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'AlgorithmName',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'maximum' => '2000',
- 'minimum' => '1',
- 'example' => '100',
- 'default' => '100',
- ],
+ 'schema' => ['description' => 'Algorithm name.', 'type' => 'string', 'required' => false, 'example' => 'llm_training', 'title' => ''],
],
[
- 'name' => 'StartTime',
+ 'name' => 'AlgorithmId',
'in' => 'query',
- 'schema' => [
- 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['description' => 'Algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-xsldfvu1334', 'title' => ''],
],
[
- 'name' => 'EndTime',
+ 'name' => 'AlgorithmProvider',
'in' => 'query',
- 'schema' => [
- 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['description' => 'Algorithm provider.', 'type' => 'string', 'required' => false, 'example' => 'pai', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Workspace ID.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'TotalCount' => [
- 'title' => '符合过滤条件的日志数量',
- 'description' => '',
- 'type' => 'string',
- 'example' => '23',
- ],
- 'Events' => [
- 'title' => '日志列表',
- 'description' => '',
+ 'Algorithms' => [
+ 'description' => 'Algorithm list.',
'type' => 'array',
'items' => [
+ 'description' => 'Algorithm details.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AlgorithmDescription' => ['description' => 'Algorithm description.', 'type' => 'string', 'example' => 'Large language model training.', 'title' => ''],
+ 'AlgorithmId' => ['description' => 'Algorithm ID.', 'type' => 'string', 'example' => 'algo-sidjc8134hv', 'title' => ''],
+ 'AlgorithmName' => ['description' => 'Algorithm name.', 'type' => 'string', 'example' => 'llm_train', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'Algorithm provider.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
+ 'GmtCreateTime' => ['description' => 'Algorithm creation time.', 'type' => 'string', 'example' => '2023-07-21T03:35:24Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'Algorithm update time.', 'type' => 'string', 'example' => '2023-07-25T02:15:40Z', 'title' => ''],
+ 'UserId' => ['description' => 'Algorithm owner ID.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'Workspace ID.', 'type' => 'string', 'example' => '12345', 'title' => ''],
+ 'DisplayName' => ['description' => 'Algorithm display name.', 'type' => 'string', 'example' => 'LLM Train', 'title' => ''],
+ ],
'title' => '',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'UserEvent',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
+ 'TotalCount' => ['description' => 'Total algorithms.', 'type' => 'integer', 'format' => 'int64', 'example' => '4', 'title' => ''],
+ 'RequestId' => ['description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Events\\": [\\n \\"UserEvent\\"\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobEvents',
- ],
- 'ListTrainingJobInstanceEvents' => [
- 'summary' => '获取指定Instance(TrainingJob的运行单元)的日志。',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/events',
- 'methods' => [
- 'get',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Algorithms\\": [\\n {\\n \\"AlgorithmDescription\\": \\"Large language model training.\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"GmtCreateTime\\": \\"2023-07-21T03:35:24Z\\",\\n \\"GmtModifiedTime\\": \\"2023-07-25T02:15:40Z\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"12345\\",\\n \\"DisplayName\\": \\"LLM Train\\"\\n }\\n ],\\n \\"TotalCount\\": 4,\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'title' => 'Retrieve the algorithm details list',
+ 'changeSet' => [
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-09-09T09:37:28.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:51.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlgorithms'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListAlgorithms',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'translator' => 'manual',
+ ],
+ 'ListNodeTypes' => [
+ 'path' => '/api/v1/nodetypes',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '165612',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'abilityTreeCode' => '191233',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7', 'FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train76rcaupa2cz',
- ],
- ],
- [
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'train76rcaupa2cz-master-0',
- ],
+ 'name' => 'ResourceGroupIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of resource group IDs. You must specify either this parameter or `QuotaId`. The `UserId` for the specified `ResourceGroupId` must match the `UserId` of the requesting user. All specified `resource group` instances must be of the same type and associated with the same Virtual Private Cloud (VPC).', 'type' => 'string', 'required' => false, 'example' => 'rg123,rg456', 'title' => ''],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'QuotaId',
'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['description' => 'The quota ID. You must specify either this parameter or `ResourceGroupIds`.', 'type' => 'string', 'required' => false, 'example' => 'quota123', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'NodeTypes',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'maximum' => '2000',
- 'minimum' => '1',
- 'example' => '100',
- 'default' => '100',
- ],
+ 'schema' => ['description' => 'A comma-separated list of node types. If omitted, all node types are returned.', 'type' => 'string', 'required' => false, 'example' => 'ecs.c6.large,ecs.gn7i-c32g1.8xlarge', 'title' => ''],
],
[
- 'name' => 'StartTime',
+ 'name' => 'AcceleratorType',
'in' => 'query',
- 'schema' => [
- 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['description' => 'The accelerator type used to filter the results. Valid values: `CPU` and `GPU`.', 'type' => 'string', 'required' => false, 'example' => 'GPU', 'title' => ''],
],
[
- 'name' => 'EndTime',
+ 'name' => 'GPUType',
'in' => 'query',
- 'schema' => [
- 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['description' => 'The GPU type used to filter the results. Fuzzy matching is supported.', 'type' => 'string', 'required' => false, 'example' => 'A10', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'TotalCount' => [
- 'title' => '符合过滤条件的日志数量',
- 'description' => '',
- 'type' => 'string',
- 'example' => '1',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'NodeTypes' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'The details of a node type.', '$ref' => '#/components/schemas/NodeType', 'title' => '', 'example' => ''],
+ 'description' => 'A collection of node types.',
+ 'title' => '',
+ 'example' => '',
],
- 'Events' => [
- 'title' => '日志列表',
- 'description' => '',
+ 'Statistics' => [
'type' => 'array',
- 'items' => [
- 'title' => '',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'You are using pip version 9.0.1, however version 20.2.4 is available.',
- ],
+ 'items' => ['description' => 'The statistics for a node type.', '$ref' => '#/components/schemas/NodeTypeStatistic', 'title' => '', 'example' => ''],
+ 'description' => 'Statistics for the node types that match the filter criteria.',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'description' => 'The response object.',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"1\\",\\n \\"Events\\": [\\n \\"You are using pip version 9.0.1, however version 20.2.4 is available.\\"\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobInstanceEvents',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'ListNodeTypes',
+ 'summary' => 'Lists the available node types.',
+ 'description' => '## Description'."\n"
+ ."\n"
+ .'- Lists the node types that match the specified filter criteria.'."\n"
+ ."\n"
+ .'- You must specify either the `ResourceGroupIds` or `QuotaId` parameter. The specified resource group IDs or quota ID must belong to the requesting user.'."\n"
+ ."\n"
+ .'- You can filter the results by using parameters such as accelerator type and GPU type.'."\n"
+ ."\n"
+ .'- The response includes details and statistics for each node type, indicating the availability of your resources.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"NodeTypes\\": [\\n {\\n \\"NodeType\\": \\"ecs.g6.4xlarge\\",\\n \\"AcceleratorType\\": \\"CPU\\",\\n \\"CPU\\": \\"16\\",\\n \\"Memory\\": \\"64Gi\\",\\n \\"GPU\\": \\"0\\",\\n \\"GPUType\\": \\"\\",\\n \\"GPUMemory\\": \\"80G\\",\\n \\"AllocatableCPU\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCPU\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\"\\n }\\n ],\\n \\"Statistics\\": [\\n {\\n \\"NodeType\\": \\"ecs.g6.4xlarge\\",\\n \\"TotalCount\\": 10,\\n \\"CanBeBoundCount\\": 4\\n }\\n ]\\n}","type":"json"}]',
],
- 'ListTrainingJobInstanceMetrics' => [
- 'summary' => '获取Training Job实例的Metrics',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instancemetrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListNodes' => [
+ 'path' => '/api/v1/nodes',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '157749',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191226',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7', 'FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'title' => 'Training Job Id',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'trains930928remn',
- ],
+ 'name' => 'ResourceGroupIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of resource group IDs. You must specify either this parameter or `QuotaId`.'."\n"
+ .'Constraints:'."\n"
+ ."\n"
+ .'1. The user ID of the request must match the user ID associated with the specified resource groups.'."\n"
+ ."\n"
+ .'2. All specified resource groups must be of the same type.'."\n"
+ ."\n"
+ .'3. All specified resource groups must be in the same VPC.', 'type' => 'string', 'required' => false, 'example' => 'rg69rj0leslwdnbe', 'title' => ''],
],
[
- 'name' => 'MetricType',
+ 'name' => 'QuotaId',
'in' => 'query',
- 'schema' => [
- 'title' => '分页,从1开始,默认1',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'GpuCoreUsage',
- ],
+ 'schema' => ['description' => 'The ID of the resource quota that contains the nodes.', 'type' => 'string', 'required' => false, 'example' => 'quotamtl37ge7gkvdz', 'title' => ''],
],
[
- 'name' => 'TimeStep',
+ 'name' => 'NodeTypes',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '10s',
- ],
+ 'schema' => ['description' => 'A comma-separated list of node specifications. If this parameter is omitted, this operation returns nodes of all specifications.', 'type' => 'string', 'required' => false, 'example' => 'ecs.c6.xlarge', 'title' => ''],
],
[
- 'name' => 'InstanceId',
+ 'name' => 'AcceleratorType',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'trains930928remn-master-0',
- ],
+ 'schema' => ['description' => 'The accelerator type. Valid values:'."\n"
+ ."\n"
+ .'- CPU'."\n"
+ ."\n"
+ .'- GPU'."\n"
+ ."\n"
+ .'If omitted, this operation returns nodes of all accelerator types.', 'type' => 'string', 'required' => false, 'example' => 'CPU', 'title' => ''],
],
[
- 'name' => 'StartTime',
+ 'name' => 'GPUType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The GPU type. Fuzzy matching is supported.', 'type' => 'string', 'required' => false, 'example' => 'T4', 'title' => ''],
+ ],
+ [
+ 'name' => 'NodeStatuses',
'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of node statuses. If this parameter is omitted, this operation returns nodes of all statuses.', 'type' => 'string', 'required' => false, 'example' => 'Ready', 'title' => ''],
+ ],
+ [
+ 'name' => 'OrderStatuses',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of order statuses.', 'type' => 'string', 'required' => false, 'example' => 'Ready', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number. The first page is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The field by which to sort the results.', 'type' => 'string', 'required' => false, 'example' => 'GmtCreateTime', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The sort order. Valid values:'."\n"
+ ."\n"
+ .'- `desc`: Descending'."\n"
+ ."\n"
+ .'- `asc`: Ascending', 'type' => 'string', 'required' => false, 'example' => 'desc', 'title' => ''],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to return resource usage information. This parameter applies only when `QuotaId` is specified.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'false', 'title' => ''],
+ ],
+ [
+ 'name' => 'NodeNames',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of node names. Only nodes with names that match this list are returned.', 'type' => 'string', 'required' => false, 'example' => 'lingjxxxx', 'title' => ''],
+ ],
+ [
+ 'name' => 'HyperNode',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'CliqueID',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'FilterByQuotaId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'When used with `ResourceGroupIds`, this parameter further filters the results to include only nodes from the specified resource quota.', 'type' => 'string', 'required' => false, 'example' => 'quotamtl37ge7gkvdz', 'title' => ''],
+ ],
+ [
+ 'name' => 'FilterByResourceGroupIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'When used with `QuotaId`, this parameter further filters the results to include only nodes from the specified resource groups.', 'type' => 'string', 'required' => false, 'example' => 'rg69rj0leslwdnbe', 'title' => ''],
+ ],
+ [
+ 'name' => 'MachineGroupIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'ReasonCodes',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'HyperZone',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'AvailabilityZone',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'PaymentType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'OrderInstanceIds',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'A comma-separated list of order IDs.', 'type' => 'string', 'example' => '260590501560397', 'required' => false],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'HealthRate',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间',
+ 'type' => 'object',
+ 'properties' => [
+ 'operation' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'value' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'EndTime',
+ 'name' => 'HealthCount',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间',
+ 'type' => 'object',
+ 'properties' => [
+ 'operation' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'value' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
+ 'title' => '',
+ 'example' => '',
],
],
+ [
+ 'name' => 'LayoutMode',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'ResourceGroupName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'DiskPL',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'WorkloadNum',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'PodNum',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
- ],
- 'InstanceMetrics' => [
- 'title' => '符合过滤条件的Metrics数量',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'Nodes' => [
+ 'description' => 'The list of nodes.',
'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'InstanceId' => [
- 'type' => 'string',
- ],
- 'Metrics' => [
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'Time' => [
- 'type' => 'string',
- ],
- 'Value' => [
- 'type' => 'number',
- 'format' => 'double',
- ],
- ],
- ],
- ],
- 'NodeName' => [
- 'type' => 'string',
- ],
- ],
- ],
+ 'items' => ['description' => 'The node information.', '$ref' => '#/components/schemas/Node', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'TotalCount' => ['description' => 'The number of nodes that meet the filter conditions.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"InstanceMetrics\\": [\\n {\\n \\"InstanceId\\": \\"trainkxen7qjyg6y-master-0\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": \\"2020-11-08T16:00:00Z\\",\\n \\"Value\\": 1\\n }\\n ],\\n \\"NodeName\\": \\"trains930928remn-master-0\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobInstanceMetrics',
- ],
- 'ListTrainingJobLogs' => [
- 'summary' => '获取Training Job的日志',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/logs',
- 'methods' => [
- 'get',
+ 'title' => 'Retrieve Node List',
+ 'summary' => 'Returns a list of resource nodes.',
+ 'description' => 'ListNodes retrieves resource nodes that match specified filter conditions.',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-04T03:55:18.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-10-13T08:27:11.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-09-19T03:30:04.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-08-06T06:21:54.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-06-18T03:04:12.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-04-16T09:52:52.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-03-13T10:38:20.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Nodes\\": [\\n {\\n \\"CreatorId\\": \\"281044699048527748\\",\\n \\"NodeName\\": \\"lingjxxxx\\",\\n \\"NodeType\\": \\"ecs.c8i.xlarge\\",\\n \\"AcceleratorType\\": \\"CPU\\",\\n \\"CPU\\": \\"4\\",\\n \\"Memory\\": \\"8\\",\\n \\"GPU\\": \\"0\\",\\n \\"GPUType\\": \\"\\\\\\"\\\\\\"\\",\\n \\"GPUMemory\\": \\"\\",\\n \\"NodeStatus\\": \\"Ready\\",\\n \\"ReasonCode\\": \\"\\\\\\"\\\\\\"\\",\\n \\"ReasonMessage\\": \\"\\\\\\"\\\\\\"\\",\\n \\"OrderStatus\\": \\"Ready\\",\\n \\"ResourceGroupId\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"ResourceGroupName\\": \\"test\\",\\n \\"MachineGroupId\\": \\"mg1234456\\",\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtExpiredTime\\": \\"2025-06-22T00:00:00Z\\\\n\\",\\n \\"IsBound\\": false,\\n \\"BoundQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"RequestCPU\\": \\"4\\",\\n \\"RequestMemory\\": \\"8\\",\\n \\"RequestGPU\\": \\"0\\",\\n \\"LimitCPU\\": \\"4\\",\\n \\"LimitMemory\\": \\"8\\",\\n \\"LimitGPU\\": \\"0\\",\\n \\"PodNum\\": 2,\\n \\"WorkloadNum\\": 2,\\n \\"Users\\": [\\n {\\n \\"UserId\\": \\"161222222222\\",\\n \\"UserName\\": \\"test\\"\\n }\\n ],\\n \\"HyperZone\\": \\"\\",\\n \\"AvailabilityZone\\": \\"\\",\\n \\"AllocatableCPU\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCPU\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\",\\n \\"AncestorQuotaWorkloadNum\\": 0,\\n \\"SelfQuotaWorkloadNum\\": 0,\\n \\"DescendantQuotaWorkloadNum\\": 0,\\n \\"DiskPL\\": \\"\\",\\n \\"DiskCapacity\\": 0,\\n \\"SubNodes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListQuotaActiveUserUsages' => [
+ 'summary' => 'Lists users within a quota and their resource usage.',
+ 'path' => '/api/v1/quotas/{QuotaId}/activeuserusages',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '222847',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
'parameters' => [
[
- 'name' => 'TrainingJobId',
+ 'name' => 'QuotaId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train129f212o89d',
- ],
+ 'schema' => ['description' => 'The quota ID.', 'type' => 'string', 'required' => true, 'example' => 'quotamtl37ge7gkvdz', 'title' => ''],
],
[
- 'name' => 'WorkerId',
+ 'name' => 'SelfOnly',
'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'train129f212o89d-master-0',
- ],
+ 'schema' => ['description' => 'If true, retrieves resource usage from the current quota only.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'false', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'allowEmptyValue' => false,
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'default' => '1', 'required' => false, 'example' => '999', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'maximum' => '2000',
- 'minimum' => '1',
- 'example' => '100',
- 'default' => '100',
- ],
+ 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'default' => '10', 'required' => false, 'example' => '10', 'title' => ''],
],
[
- 'name' => 'StartTime',
+ 'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['description' => 'The field to sort the results by. Valid values:'."\n"
+ ."\n"
+ .'- QuotaId'."\n"
+ ."\n"
+ .'- SubmittedCPU'."\n"
+ ."\n"
+ .'- SubmittedMemory'."\n"
+ ."\n"
+ .'- SubmittedGPU'."\n"
+ ."\n"
+ .'- UsedCPU'."\n"
+ ."\n"
+ .'- UsedMemory'."\n"
+ ."\n"
+ .'- UsedGPU'."\n"
+ ."\n"
+ .'- WorkloadCount', 'type' => 'string', 'required' => false, 'example' => 'GmtCreateTime', 'title' => ''],
],
[
- 'name' => 'EndTime',
+ 'name' => 'Order',
'in' => 'query',
'schema' => [
- 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间',
- 'description' => '',
+ 'description' => 'The sort order. Valid values:'."\n"
+ ."\n"
+ .'- `desc`: descending order.'."\n"
+ ."\n"
+ .'- `asc`: ascending order.',
'type' => 'string',
- 'format' => 'iso8601',
+ 'enum' => ['asc', 'desc'],
'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
+ 'example' => 'desc',
+ 'title' => '',
],
],
[
- 'name' => 'InstanceId',
+ 'name' => 'UserId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'train129f212o89d-master-0',
- ],
+ 'schema' => ['description' => 'Filters the results by user ID.', 'type' => 'string', 'required' => false, 'example' => '200xxxxxx', 'title' => ''],
+ ],
+ [
+ 'name' => 'Username',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters the results by username.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The workspace ID.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkloadCount',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579',
- ],
- 'TotalCount' => [
- 'title' => '符合过滤条件的日志数量',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F'],
+ 'QuotaUserUsages' => [
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/QuotaUser', 'description' => '', 'title' => '', 'example' => ''],
'description' => '',
- 'type' => 'string',
- 'example' => '23',
+ 'title' => '',
+ 'example' => '',
],
- 'Logs' => [
- 'title' => '日志列表',
- 'description' => '',
+ 'TotalCount' => ['description' => 'The total number of entries that meet the filter criteria.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'QuotaUserUsage' => [
'type' => 'array',
- 'items' => [
- 'title' => '',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'loss: 0.0001',
- ],
+ 'items' => ['description' => 'The resource usage details for a user.', '$ref' => '#/components/schemas/QuotaUser', 'title' => '', 'example' => ''],
+ 'description' => 'A list of user resource usage details.',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'description' => 'The response object.',
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Logs\\": [\\n \\"loss: 0.0001\\"\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobLogs',
- ],
- 'ListTrainingJobMetrics' => [
- 'summary' => '获取Training Job的Metrics',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/metrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'ListQuotaActiveUserUsages',
+ 'description' => 'Retrieves the resource usage of users in a specified quota.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"QuotaUserUsages\\": [\\n {\\n \\"Username\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"WorkloadCount\\": 0,\\n \\"Resources\\": {\\n \\"Used\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"Submitted\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n }\\n }\\n ],\\n \\"TotalCount\\": 1,\\n \\"QuotaUserUsage\\": [\\n {\\n \\"Username\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"WorkloadCount\\": 0,\\n \\"Resources\\": {\\n \\"Used\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n }\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListQuotaWorkloads' => [
+ 'path' => '/api/v1/quotas/{QuotaId}/workloads',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '132913',
- 'abilityTreeNodes' => [
- 'FEATURElearnP1X97H',
- ],
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '221848',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
+ 'name' => 'QuotaId',
'in' => 'path',
- 'schema' => [
- 'title' => 'Training Job Id',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train76rcaupa2cz',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the quota.', 'type' => 'string', 'required' => true, 'example' => 'quota1y9qarq****'],
],
[
- 'name' => 'Name',
+ 'name' => 'WorkspaceIds',
'in' => 'query',
- 'schema' => [
- 'title' => '分页,从1开始,默认1',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'accuracy',
- ],
+ 'schema' => ['title' => '', 'description' => 'Filters workloads by workspace ID. You can specify multiple IDs, separated by commas.', 'type' => 'string', 'required' => false, 'example' => '1866**'],
+ ],
+ [
+ 'name' => 'WorkloadType',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters workloads by the sub-product type of the instance.', 'type' => 'string', 'required' => false, 'example' => 'dlc'],
+ ],
+ [
+ 'name' => 'WorkloadIds',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters workloads by workload ID. You can specify multiple IDs, separated by commas.', 'type' => 'string', 'required' => false, 'example' => 'dlc123445**'],
+ ],
+ [
+ 'name' => 'BeforeWorkloadId',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Retrieves workloads that precede the specified workload ID in the queue.', 'type' => 'string', 'required' => false, 'example' => 'dsw654433**'],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'title' => '每页返回的日志数量',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['title' => '', 'description' => 'The number of the page to return.', 'type' => 'integer', 'format' => 'int32', 'minimum' => '1', 'default' => '1', 'required' => false, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'title' => '每页返回的日志数量',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '1',
- 'example' => '100',
- 'default' => '100',
- ],
+ 'schema' => ['title' => '', 'description' => 'The maximum number of entries to return on a single page.', 'type' => 'integer', 'format' => 'int32', 'maximum' => '100', 'minimum' => '1', 'default' => '10', 'required' => false, 'example' => '10'],
],
[
- 'name' => 'StartTime',
+ 'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'title' => '起始UTC时间,格式 iso8601,假如为空是任务开始时间',
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
- ],
+ 'schema' => ['title' => '', 'description' => 'The field to use for sorting the results.', 'type' => 'string', 'required' => false, 'example' => 'GmtCreatedTime'],
],
[
- 'name' => 'EndTime',
+ 'name' => 'Order',
'in' => 'query',
'schema' => [
- 'title' => '截止UTC时间,格式 iso8601,假如为空是当前时间',
- 'description' => '',
+ 'title' => '',
+ 'description' => 'The sort order for the results. Valid values are `asc` for ascending and `desc` for descending.',
'type' => 'string',
- 'format' => 'iso8601',
+ 'enum' => ['asc', 'desc'],
'required' => false,
- 'example' => '2020-11-08T16:00:00Z',
+ 'example' => 'desc',
],
],
[
- 'name' => 'Order',
+ 'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'title' => 'Metrics的时间顺序,有ASC和DESC',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DESC',
- 'default' => 'DESC',
- ],
+ 'schema' => ['description' => 'Filters workloads by their status in the queue.', 'type' => 'string', 'default' => 'Enqueued', 'required' => false, 'example' => 'Enqueued', 'title' => ''],
+ ],
+ [
+ 'name' => 'ShowOwn',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to return only workloads that belong to the specified quota.', 'type' => 'boolean', 'default' => 'true', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'SubQuotaIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by sub-quota ID. You can specify multiple IDs, separated by commas.', 'type' => 'string', 'required' => false, 'example' => 'quota123446**,quota644322**', 'title' => ''],
+ ],
+ [
+ 'name' => 'UserIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by user ID. You can specify multiple IDs, separated by commas.', 'type' => 'string', 'required' => false, 'example' => '290438938**,238290930**', 'title' => ''],
+ ],
+ [
+ 'name' => 'NodeName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by node name.', 'type' => 'string', 'required' => false, 'example' => 'lrn482781276**', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkloadCreatedTimeRange',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads based on their creation time range.', '$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'WorkloadStatuses',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by status. You can specify multiple statuses, separated by commas.', 'type' => 'string', 'required' => false, 'example' => 'Pending', 'title' => ''],
+ ],
+ [
+ 'name' => 'GmtPositionModifiedTimeRange',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by the time range of their last queue position change.', '$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'GmtEnqueuedTimeRange',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by their enqueue time range.', '$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'GmtDequeuedTimeRange',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters workloads by their dequeue time range.', '$ref' => '#/components/schemas/TimeRangeFilter', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'WithHistoricalData',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to include historical data in the query results.', 'type' => 'boolean', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'WorkloadNames',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'Priority',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'Position',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'UseOversoldResource',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response object.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'Metrics' => [
- 'title' => '符合过滤条件的Metrics数量',
- 'description' => '',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '42F23B58-3684-5443-848A-8DA81FF99712'],
+ 'TotalCount' => ['title' => '', 'description' => 'The total number of workloads that match the filter criteria.', 'type' => 'integer', 'format' => 'int64', 'example' => '23'],
+ 'Workloads' => [
+ 'description' => 'A list of workloads.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Timestamp' => [
- 'description' => '',
- 'type' => 'string',
- 'format' => 'iso8601',
- 'example' => '2022-04-18T22:20:55Z',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.97',
- ],
- 'Name' => [
- 'title' => 'Metrics名称',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'accuracy',
- ],
- ],
- ],
- ],
- 'TotalCount' => [
- 'type' => 'integer',
- 'format' => 'int64',
+ 'items' => ['description' => 'The details of a workload in the queue.', '$ref' => '#/components/schemas/QueueInfo', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Metrics\\": [\\n {\\n \\"Timestamp\\": \\"2022-04-18T22:20:55Z\\",\\n \\"Value\\": 0.97,\\n \\"Name\\": \\"accuracy\\"\\n }\\n ],\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobMetrics',
- ],
- 'ListTrainingJobOutputModels' => [
- 'summary' => '获取Training Job 产出的所有模型信息',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/outputmodels',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Obtain the job list on a resource quota',
+ 'summary' => 'Retrieves a list of workloads associated with a specific quota.',
+ 'changeSet' => [
+ ['createdAt' => '2025-02-19T12:19:32.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\",\\n \\"TotalCount\\": 23,\\n \\"Workloads\\": [\\n {\\n \\"Status\\": \\"Enqueued\\",\\n \\"QuotaId\\": \\"“quotamtl37ge7gkvdz”\\",\\n \\"UserName\\": \\"\\",\\n \\"WorkloadId\\": \\"dlcxxxx\\",\\n \\"Position\\": 10,\\n \\"GmtEnqueuedTime\\": \\"“2023-06-22T00:00:00Z”\\",\\n \\"Priority\\": 2,\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"WorkloadType\\": \\"dlc\\",\\n \\"WorkspaceId\\": \\"“432524”\\",\\n \\"Resource\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"Code\\": \\"roleMaximumResource\\",\\n \\"Reason\\": \\"Current GPU Limit is 5, limited by Role PAI.AlgoDeveloper\\",\\n \\"UseOversoldResource\\": true,\\n \\"Name\\": \\"test-label-79f5498dd-9qrzs\\",\\n \\"WorkloadStatus\\": \\"PreAllocation\\",\\n \\"WorkloadName\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"GmtPositionModifiedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"CodeType\\": \\"ConfigRule\\",\\n \\"GmtDequeuedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"WorkspaceName\\": \\"\\",\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'ListQuotas' => [
+ 'path' => '/api/v1/quotas/',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '200236',
- 'abilityTreeNodes' => [
- 'FEATURElearn9XMQIJ',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191173',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7', 'FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'title' => 'A short description of struct',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'traineyfz0m2hsfv',
- ],
+ 'name' => 'QuotaName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters the results by quota name. Fuzzy matching is supported.', 'type' => 'string', 'required' => false, 'example' => 'quotajradxh43rgb', 'title' => ''],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The resource type. Valid values are Lingjun, ECS, and ACS. The default value is ECS.', 'type' => 'string', 'required' => false, 'example' => 'ECS', 'title' => ''],
+ ],
+ [
+ 'name' => 'LayoutMode',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The layout mode. Valid values: Tree and List.', 'type' => 'string', 'required' => false, 'example' => 'Tree', 'title' => ''],
+ ],
+ [
+ 'name' => 'ParentQuotaId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters the results by parent quota ID:'."\n"
+ ."\n"
+ .'- If this parameter is not specified, all quotas within the tenant are returned, including both root and child quotas.'."\n"
+ ."\n"
+ .'- If this parameter is set to an empty string, all root quotas are returned.'."\n"
+ ."\n"
+ .'- If a specific parent quota ID is provided, all child quotas of that parent are returned.', 'type' => 'string', 'required' => false, 'example' => 'quotajradxh43rgb', 'title' => ''],
+ ],
+ [
+ 'name' => 'QuotaIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of up to 100 quota IDs to filter the results. Only exact matching is supported.', 'type' => 'string', 'required' => false, 'example' => 'quota1ci8g793pgm,quotajradxh43rgb', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceIds',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of up to 10 workspace IDs to filter the results. Only exact matching is supported.', 'type' => 'string', 'required' => false, 'example' => '21345,38727', 'title' => ''],
+ ],
+ [
+ 'name' => 'Statuses',
+ 'in' => 'query',
+ 'schema' => ['description' => 'A comma-separated list of quota statuses to filter the results. Only exact matching is supported.', 'type' => 'string', 'required' => false, 'example' => 'Creating', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number of the results to return. The minimum value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return on each page. The minimum value is 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The field to sort the results by. Valid values:'."\n"
+ ."\n"
+ .'- QuotaName'."\n"
+ ."\n"
+ .'- Status'."\n"
+ ."\n"
+ .'- CPU'."\n"
+ ."\n"
+ .'- Memory'."\n"
+ ."\n"
+ .'- GPU'."\n"
+ ."\n"
+ .'- GmtCreatedTime'."\n"
+ ."\n"
+ .'- GmtModifiedTime', 'type' => 'string', 'required' => false, 'example' => 'status', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The sort order. Valid values are desc and asc.', 'type' => 'string', 'required' => false, 'example' => 'desc', 'title' => ''],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Filters the results by labels. Specify labels as key=value pairs, separated by commas (,).', 'type' => 'string', 'required' => false, 'example' => 'official=true,gpu=false', 'title' => ''],
+ ],
+ [
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to return detailed information. Valid values:'."\n"
+ ."\n"
+ .'- true: Returns detailed information.'."\n"
+ ."\n"
+ .'- false: Does not return detailed information.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'WorkspaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the associated workspace.', 'type' => 'string', 'required' => false, 'example' => 'myshellprod', 'title' => ''],
+ ],
+ [
+ 'name' => 'HasResource',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'Versions',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters the results by version.', 'type' => 'string', 'example' => '1.0', 'required' => false],
+ ],
+ [
+ 'name' => 'ClusterType',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Filters the results by cluster type.', 'type' => 'string', 'example' => 'RayCluster', 'required' => false],
+ ],
+ [
+ 'name' => 'GPUType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response body.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'OutputModels' => [
- 'description' => '',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD'],
+ 'Quotas' => [
+ 'description' => 'The list of quotas.',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'OutputChannelName' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'model',
- ],
- 'Uri' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/',
- ],
- 'Labels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'StableDiffusion',
- ],
- ],
- ],
- ],
- 'Metrics' => [
- 'description' => '',
- 'type' => 'object',
- 'example' => '{'."\n"
- .' "lr": 0.000001,'."\n"
- .' "train_loss": 2.6345'."\n"
- .'}',
- ],
- 'TrainingSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'example' => '{}',
- ],
- 'InferenceSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'example' => '{}',
- ],
- 'EvaluationSpec' => [
- 'description' => '',
- 'type' => 'object',
- 'example' => '{}',
- ],
- 'SourceType' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'PAIFlow',
- ],
- 'SourceId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf',
- ],
- 'CompressionSpec' => [
- 'type' => 'object',
- ],
- ],
- ],
+ 'items' => ['description' => 'The details of a quota.', '$ref' => '#/components/schemas/Quota', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'TotalCount' => ['description' => 'The total number of entries that match the request.', 'type' => 'integer', 'format' => 'int32', 'example' => '23', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Obtain Resource Quota List',
+ 'summary' => 'Lists quotas.',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-06T13:03:33.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-09-19T03:30:05.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-07-25T06:06:58.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-07-04T13:22:58.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-05-09T02:33:19.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-03-19T09:17:32.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-01-24T08:33:18.000Z', 'description' => 'Request parameters changed'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputModels\\": [\\n {\\n \\"OutputChannelName\\": \\"model\\",\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"RootModelName\\",\\n \\"Value\\": \\"qwen2-0.5\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"Results\\": [\\n {\\n \\"Dataset\\": {\\n \\"Train\\": \\"oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json\\"\\n },\\n \\"Metrics\\": {\\n \\"loss\\": 2.1276\\n }\\n }\\n ]\\n },\\n \\"TrainingSpec\\": {},\\n \\"InferenceSpec\\": {},\\n \\"EvaluationSpec\\": {},\\n \\"SourceType\\": \\"PAIFlow\\",\\n \\"SourceId\\": \\"region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf\\",\\n \\"CompressionSpec\\": {}\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListTrainingJobOutputModels',
- ],
- 'StopTrainingJob' => [
- 'summary' => '停止一个TrainingJob',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'deprecated' => false,
- 'systemTags' => [],
- 'parameters' => [
+ 'ramActions' => [
[
- 'name' => 'TrainingJobId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'train76rcaupa2cz',
- ],
- ],
- ],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListQuotas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
- 'title' => 'StopTrainingJob',
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Quotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\",\\n \\"ResourceType\\": \\"ECS\\",\\n \\"ParentQuotaId\\": \\"\\\\\\"\\\\\\"\\",\\n \\"ResourceGroupIds\\": [\\n \\"rg69rj0leslw****\\"\\n ],\\n \\"AllocateStrategy\\": \\"ByNodeSpec\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"this is a test quota\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"testAccTag\\",\\n \\"Value\\": \\"nihao\\"\\n }\\n ],\\n \\"CreatorId\\": \\"1884692****\\",\\n \\"LatestOperationId\\": \\"operation****\\",\\n \\"Status\\": \\"Ready\\",\\n \\"ReasonCode\\": \\"“”\\",\\n \\"ReasonMessage\\": \\"“”\\",\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"NodeStatistics\\": {\\n \\"ActualMinNodeNum\\": 0,\\n \\"ActualMinHyperNodeNum\\": 0,\\n \\"AllocatedNodeNum\\": 0,\\n \\"AllocatedHyperNodeNum\\": 0,\\n \\"EmptyNodeNum\\": 0,\\n \\"AllocatedHyperNodeDetails\\": [\\n {\\n \\"HyperNodeName\\": \\"\\",\\n \\"AllocatedNodeNum\\": 0,\\n \\"TotalNodeNum\\": 0,\\n \\"EmptyNodeNum\\": 0\\n }\\n ]\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb3724255364***\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\\\\\"192.168.0.1/24\\\\\\"\\"\\n ],\\n \\"RoleArn\\": \\"acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole\\",\\n \\"DefaultRoute\\": \\"eth0\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"nat-7j4mka9wguxj\\",\\n \\"EipAllocationId\\": \\"eip-h29r78ieufbih\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"470.199.02\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"rq-3kbt2gtimmyw7fgfgothocvh\\",\\n \\"AssociatedProducts\\": [\\n \\"PAI-DLC\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"122421\\",\\n \\"Product\\": \\"DLC\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"spec_test\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Code\\": \\"\\\\\\"\\\\\\"\\",\\n \\"Reason\\": \\"\\\\\\"\\\\\\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": false,\\n \\"EnableSubQuotaPreemption\\": false,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": false,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": false\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptorPriorities\\": [\\n 0\\n ],\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": false,\\n \\"ControlPlaneClusterId\\": \\"\\",\\n \\"IsEncryptedResource\\": false,\\n \\"WorkloadTypes\\": [\\n \\"\\"\\n ]\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123***\\",\\n \\"WorkspaceName\\": \\"\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\",\\n \\"Version\\": \\"\\",\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n },\\n \\"HyperZones\\": [\\n \\"\\"\\n ],\\n \\"GPUType\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]',
],
- 'UpdateTrainingJobLabels' => [
- 'summary' => '更新一个TrainingJob的Labels',
- 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListResourceGroupMachineGroups' => [
+ 'path' => '/api/v1/resources/{ResourceGroupID}/machinegroups',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [],
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '125191',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
+ ],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Labels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'RootModelID',
- ],
- 'Value' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'model-ad8cv770kl',
- ],
- ],
- 'required' => false,
- ],
- 'required' => false,
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the machine group.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'TrainingJobId',
+ 'name' => 'CreatorID',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the user who created the machine group.', 'type' => 'string', 'required' => false, 'example' => '1612285282502326', 'title' => ''],
+ ],
+ [
+ 'name' => 'ResourceGroupID',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'train76rcaupa2cz',
- ],
+ 'schema' => ['description' => 'The globally unique ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
+ ],
+ [
+ 'name' => 'PaymentType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The payment type.', 'type' => 'string', 'required' => false, 'example' => 'PREPAY', 'title' => ''],
+ ],
+ [
+ 'name' => 'PaymentDurationUnit',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The billing duration unit of the machine group.', 'type' => 'string', 'required' => false, 'example' => 'Month', 'title' => ''],
+ ],
+ [
+ 'name' => 'PaymentDuration',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The payment duration. If `PaymentDurationUnit` is set to `Month`, valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.', 'type' => 'string', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'EcsSpec',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ECS instance type.', 'type' => 'string', 'required' => false, 'example' => 'ecs.c6.large', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The sort order.'."\n"
+ ."\n"
+ .'- `Asc`: Sorts the results in ascending order.'."\n"
+ ."\n"
+ .'- `Desc`: Sorts the results in descending order.', 'type' => 'string', 'required' => false, 'example' => 'DESC', 'title' => ''],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The field to sort by.', 'type' => 'string', 'required' => false, 'example' => 'GmtCreatedTime', 'title' => ''],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The instance status. `Creating`: The instance is being created. `Ready`: The instance is running. `Expiring`: The instance is expiring. `Expired`: The instance has expired. `Stopping`: The instance is being stopped. `Stopped`: The instance is stopped.', 'type' => 'string', 'required' => false, 'example' => 'Ready', 'title' => ''],
+ ],
+ [
+ 'name' => 'OrderInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the purchase order.', 'type' => 'string', 'required' => false, 'example' => '236553689400333', 'title' => ''],
+ ],
+ [
+ 'name' => 'MachineGroupIDs',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The machine group IDs. Separate multiple IDs with a comma (,).', 'type' => 'string', 'required' => false, 'example' => 'mg105ecqwfe49hwb', 'title' => ''],
+ ],
+ [
+ 'name' => 'DiskPL',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response schema.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
+ 'MachineGroups' => [
+ 'description' => 'A list of machine groups.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A machine group.', '$ref' => '#/components/schemas/MachineGroup', 'title' => '', 'example' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'TotalCount' => ['description' => 'The total number of machine groups.', 'type' => 'string', 'example' => '4', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]',
- 'title' => 'UpdateTrainingJobLabels',
- ],
- 'CreateQuota' => [
- 'summary' => '创建Quota',
- 'path' => '/api/v1/quotas',
- 'methods' => [
- 'post',
+ 'title' => 'Obtain the list of machine groups',
+ 'summary' => 'Retrieves a list of machine groups in a specified resource group.',
+ 'changeSet' => [
+ ['createdAt' => '2025-03-19T07:07:04.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-05-23T02:15:16.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-02-25T03:43:31.000Z', 'description' => 'OpenAPI offline'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceGroupMachineGroups'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListResourceGroupMachineGroups',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"MachineGroups\\": [\\n {\\n \\"Status\\": \\"Success\\",\\n \\"EcsCount\\": 1,\\n \\"GmtStartedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\",\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"CreatorID\\": \\"1612285282502324\\",\\n \\"ReasonMessage\\": \\"“”\\",\\n \\"PaymentDurationUnit\\": \\"Monthly\\",\\n \\"EcsSpec\\": \\"ecs.c6.large\\",\\n \\"SupportedDrivers\\": [\\n \\"470.199.02\\"\\n ],\\n \\"PaymentDuration\\": \\"2\\",\\n \\"ReasonCode\\": \\"“”\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"DiskCapacity\\": 0,\\n \\"GmtExpiredTime\\": \\"2023-08-22T00:00:00Z\\\\n\\",\\n \\"OrderInstanceId\\": \\"“”\\",\\n \\"DefaultDriver\\": \\"470.199.02\\",\\n \\"MachineGroupID\\": \\"mg1\\",\\n \\"PaymentType\\": \\"PREPAY\\",\\n \\"DiskPL\\": \\"\\",\\n \\"Cpu\\": 0,\\n \\"Gpu\\": 0,\\n \\"GpuMemory\\": 0,\\n \\"GpuType\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"ResourceType\\": \\"\\",\\n \\"AllocatableCpu\\": 0,\\n \\"AllocatableMemory\\": 0,\\n \\"SystemReservedCpu\\": 0,\\n \\"SystemReservedMemory\\": 0\\n }\\n ],\\n \\"TotalCount\\": \\"4\\",\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListResourceGroups' => [
+ 'path' => '/api/v1/resources',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'write',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '191129',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '124250',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'QuotaName' => [
- 'title' => 'Quota名称',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-quota',
- ],
- 'ResourceType' => [
- 'title' => 'Quota资源类型(Lingjun/ECS),默认值ECS',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ECS',
- ],
- 'ParentQuotaId' => [
- 'title' => '父QuotaId'."\n"
- .'1. 如果父QuotaId为空,表示创建一个根Quota,从专属资源组中分配机器'."\n"
- .'2. 如果父QuotaId不为空,表示创建一个子Quota,资源从根Quota中绑定的Nodes中分配资源',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota1ci8g793pgm',
- ],
- 'ResourceGroupIds' => [
- 'title' => '专有资源组列表'."\n"
- .'约束:'."\n"
- .'1. 只有根Quota允许从(父QuotaId为空)资源组划分机器'."\n"
- .'2. 指定的资源组列表中的vpc配置需要一致',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgl593id9qqwkmbr',
- ],
- 'required' => false,
- ],
- 'AllocateStrategy' => [
- 'title' => 'Quota分配策略,目前仅支持ByNodeSpecs',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ByNodeSpecs',
- ],
- 'Min' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/ResourceSpec',
- ],
- 'Description' => [
- 'title' => 'Quota描述',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'this is a test quota',
- ],
- 'Labels' => [
- 'title' => 'Quota标签',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Label',
- ],
- 'required' => false,
- ],
- 'QuotaConfig' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/QuotaConfig',
- ],
- 'QueueStrategy' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PaiStrategyIntelligent',
- ],
- 'ClusterSpec' => [
- 'title' => '资源配额原生集群的规格',
- '$ref' => '#/components/schemas/ClusterSpec',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The name of the resource group.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The page size.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The sort order. Valid values:'."\n"
+ ."\n"
+ .'- `desc`: descending.'."\n"
+ ."\n"
+ .'- `asc`: ascending.', 'type' => 'string', 'example' => 'desc', 'required' => false],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The field to sort by. Valid values include: `DisplayName`, `GmtCreated`, `GmtModified`, `RegionID`, `Duration`, `PricingCycle`, and `PayType`.', 'type' => 'string', 'example' => 'DisplayName', 'required' => false],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The status of the resource group.', 'type' => 'string', 'example' => 'Creating', 'required' => false],
+ ],
+ [
+ 'name' => 'ShowAll',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to return all results.', 'type' => 'boolean', 'default' => 'false', 'required' => false, 'example' => 'false', 'title' => ''],
+ ],
+ [
+ 'name' => 'ComputingResourceProvider',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The provider of the compute resources.', 'type' => 'string', 'required' => false, 'example' => 'Ecs', 'title' => ''],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The resource type. Valid values:'."\n"
+ ."\n"
+ .'- `ECS`: ECS.'."\n"
+ ."\n"
+ .'- `Lingjun`: Lingjun intelligent computing resources.', 'type' => 'string', 'required' => false, 'example' => 'Lingjun', 'title' => ''],
+ ],
+ [
+ 'name' => 'ResourceGroupIDs',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'HasResource',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
+ ],
+ [
+ 'name' => 'Versions',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The version to filter by.', 'type' => 'string', 'example' => '1.0', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The response data.',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579',
- ],
- 'QuotaId' => [
- 'title' => 'Quota Id',
- 'description' => 'Quota Id',
- 'type' => 'string',
- 'example' => 'quotad2kd8ljpsno',
+ 'ResourceGroups' => [
+ 'description' => 'The list of resource groups.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'A resource group.', '$ref' => '#/components/schemas/ResourceGroup', 'title' => '', 'example' => ''],
+ 'example' => 'RG1',
],
+ 'TotalCount' => ['title' => '', 'description' => 'The total number of matching resource groups.', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '2'],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '9CFA2665-1FFE-5929-8468-C14C25890486'],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => 'Obtain a List of Resource Groups',
+ 'summary' => 'Call this operation to list resource groups for ECS or Lingjun intelligent computing resources.',
+ 'description' => 'Currently, AI computing resource groups (including ECS and Lingjun intelligent computing resources) are available only in specific regions. For a list of supported regions, see [AI computing resource management](~~143986~~).',
+ 'changeSet' => [
+ ['createdAt' => '2025-09-19T03:30:04.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-07-25T06:06:58.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2025-06-30T06:48:39.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-05-11T03:07:01.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-04-26T12:56:59.000Z', 'description' => 'Request parameters changed'],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"QuotaId\\": \\"quotad2kd8ljpsno\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateQuotaResponse>\\n <QuotaId>quotad2kd8ljpsno</QuotaId>\\n</CreateQuotaResponse>","errorExample":""}]',
- 'title' => 'CreateQuota',
- ],
- 'ListQuotas' => [
- 'summary' => '获取Quota列表',
- 'path' => '/api/v1/quotas/',
- 'methods' => [
- 'get',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceGroups'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListResourceGroups',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ResourceGroups\\": [\\n {\\n \\"Name\\": \\"RG1\\",\\n \\"ResourceGroupID\\": \\"rg17tmvwiokh****\\",\\n \\"WorkspaceID\\": \\"23000\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\\\\\"192.168.0.1/24\\\\\\"\\"\\n ],\\n \\"RoleArn\\": \\"acs:ram::25xxxx:role/AliyunPAIDLCDefaultRole\\",\\n \\"DefaultRoute\\": \\"eth0\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"nat-7j4mka9wguxj\\",\\n \\"EipAllocationId\\": \\"eip-h29r78ieufbih\\"\\n }\\n },\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"CreatorID\\": \\"161228528250****\\",\\n \\"NodeCount\\": 3,\\n \\"Version\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"ResourceType\\": \\"\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"RequestId\\": \\"9CFA2665-1FFE-5929-8468-C14C25890486\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTagResources' => [
+ 'path' => '/api/v1/tags',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '191173',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '205684',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'QuotaName',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quotajradxh43rgb',
- ],
+ 'schema' => ['title' => '', 'description' => 'Region ID', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ResourceType',
'in' => 'query',
'schema' => [
- 'description' => '',
+ 'title' => '',
+ 'description' => 'Resource type',
+ 'enumValueTitles' => ['MachineGroup' => 'MachineGroup', 'ResourceGroup' => 'ResourceGroup'],
'type' => 'string',
- 'required' => false,
- 'example' => 'ECS',
+ 'required' => true,
+ 'example' => 'ResourceGroup',
],
],
[
- 'name' => 'LayoutMode',
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'description' => 'Resource IDs. Maximum: 50 items.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'Resource ID. You can specify up to 50 resource IDs per call.', 'type' => 'string', 'required' => false, 'example' => '[\\"rgrk6hhjpvio3wvj\\"]', 'title' => ''],
+ 'required' => false,
+ 'example' => '',
],
],
[
- 'name' => 'ParentQuotaId',
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '',
- 'type' => 'string',
+ 'description' => 'Tags to filter by. Maximum: 20 items.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tags that are used by the rule. You can set multiple tags.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['title' => '', 'description' => 'Tag key', 'type' => 'string', 'required' => false, 'example' => 'TestKey'],
+ 'Value' => ['title' => '', 'description' => 'Tag value', 'type' => 'string', 'required' => false, 'example' => 'TestValue'],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- 'example' => 'quotajradxh43rgb',
+ 'example' => '',
],
],
[
- 'name' => 'QuotaIds',
+ 'name' => 'NextToken',
'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Pagination token for the next page of results', 'type' => 'string', 'required' => false, 'example' => 'ad31d453a1f3f23ce0b5e8707e68181f'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota1ci8g793pgm,quotajradxh43rgb',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', 'description' => 'Request ID', 'type' => 'string', 'example' => 'CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9'],
+ 'NextToken' => ['title' => '', 'description' => 'Pagination token for the next page of results', 'type' => 'string', 'example' => '3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5'],
+ 'TagResources' => [
+ 'description' => 'The list of resources.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['title' => '', 'description' => 'Tag key', 'type' => 'string', 'example' => 'tagKey'],
+ 'TagValue' => ['title' => '', 'description' => 'Tag value', 'type' => 'string', 'example' => 'tagValue'],
+ 'ResourceId' => ['title' => '', 'description' => 'Resource ID', 'type' => 'string', 'example' => 'rgqssemfn6vjqqev'],
+ 'ResourceType' => ['title' => '', 'description' => 'Resource type', 'type' => 'string', 'example' => 'ResourceGroup'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'title' => 'Query tag list',
+ 'summary' => 'Tag query API.',
+ 'description' => 'Specify at least one of the following parameters to query for resources.'."\n"
+ ."\n"
+ .'- ResourceId.N'."\n"
+ ."\n"
+ .'- Tag.N (Tag.N.Key and Tag.N.Value)'."\n"
+ ."\n"
+ .'If you specify both parameters, the operation returns only resources that match both criteria.'."\n"
+ ."\n"
+ .'- Tag.N and ResourceId.N',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9\\",\\n \\"NextToken\\": \\"3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5\\",\\n \\"TagResources\\": [\\n {\\n \\"TagKey\\": \\"tagKey\\",\\n \\"TagValue\\": \\"tagValue\\",\\n \\"ResourceId\\": \\"rgqssemfn6vjqqev\\",\\n \\"ResourceType\\": \\"ResourceGroup\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobEvents' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/events',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'WorkspaceIds',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '21345,38727',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '165613',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
+ 'parameters' => [
[
- 'name' => 'Statuses',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Creating',
- ],
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Training task ID.', 'type' => 'string', 'required' => true, 'example' => 'traineyfz0m2****', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'Page number (default is 1).', 'type' => 'integer', 'format' => 'int64', 'minimum' => '1', 'example' => '1', 'default' => '1', 'required' => false, 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
+ 'schema' => ['description' => 'Page size (default is 100).', 'type' => 'integer', 'format' => 'int64', 'maximum' => '2000', 'minimum' => '1', 'example' => '100', 'default' => '100', 'required' => false, 'title' => ''],
],
[
- 'name' => 'SortBy',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'status',
- ],
+ 'schema' => ['title' => '', 'description' => 'Start UTC time (ISO8601 format). If empty, it is the task start time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
],
[
- 'name' => 'Order',
+ 'name' => 'EndTime',
'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'End UTC time (ISO8601 format). If empty, it is the current time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
+ 'description' => 'Returned result.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'TotalCount' => ['title' => '', 'description' => 'Total number of events.', 'type' => 'string', 'example' => '23'],
+ 'Events' => [
+ 'description' => 'List of events.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'Event.', 'type' => 'string', 'title' => '', 'example' => 'UserEvent'],
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
],
],
+ ],
+ 'title' => 'Retrieve Training Job Events',
+ 'summary' => 'Retrieve events for a specific training task to gain detailed insight into the training process.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobEvents'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Events\\": [\\n \\"UserEvent\\"\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobInstanceEvents' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instances/{InstanceId}/events',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Labels',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'official=true,gpu=false',
- ],
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '165612',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'ID of the training job.', 'type' => 'string', 'required' => true, 'example' => 'train76rcaupa2cz', 'title' => ''],
],
[
- 'name' => 'Verbose',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'ID of the instance.', 'type' => 'string', 'required' => false, 'example' => 'train76rcaupa2cz-master-0', 'title' => ''],
],
[
- 'name' => 'WorkspaceName',
+ 'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int64', 'minimum' => '1', 'example' => '1', 'default' => '1', 'required' => false, 'title' => ''],
],
[
- 'name' => 'HasResource',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'schema' => ['description' => 'Number of items per page.', 'type' => 'integer', 'format' => 'int64', 'maximum' => '2000', 'minimum' => '1', 'example' => '100', 'default' => '100', 'required' => false, 'title' => ''],
],
[
- 'name' => 'Versions',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'title' => '按照版本信息搜索。',
- 'type' => 'string',
- 'example' => '1.0',
- ],
+ 'schema' => ['title' => '', 'description' => 'Start time in UTC, in ISO 8601 format. If empty, defaults to the training job start time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
],
[
- 'name' => 'ClusterType',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'title' => '集群类型',
- 'type' => 'string',
- 'example' => 'RayCluster',
- ],
+ 'schema' => ['title' => '', 'description' => 'End time in UTC, in ISO 8601 format. If empty, defaults to the current time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
- ],
- 'Quotas' => [
- 'description' => '',
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'TotalCount' => ['title' => '', 'description' => 'Total number of events.', 'type' => 'string', 'example' => '1'],
+ 'Events' => [
+ 'description' => 'List of events.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/Quota',
- ],
- ],
- 'TotalCount' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'items' => ['description' => 'Event message.', 'type' => 'string', 'title' => '', 'example' => 'You are using pip version 9.0.1, however version 20.2.4 is available.'],
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => 'Retrieve Management Events for a Training Job Instance',
+ 'summary' => 'Retrieve events for a training job instance.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobInstanceEvents'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"Quotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\",\\n \\"ResourceType\\": \\"\\",\\n \\"ParentQuotaId\\": \\"\\",\\n \\"ResourceGroupIds\\": [\\n \\"\\"\\n ],\\n \\"AllocateStrategy\\": \\"\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"CreatorId\\": \\"\\",\\n \\"LatestOperationId\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb37xxxx\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"\\",\\n \\"AssociatedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"\\",\\n \\"Product\\": \\"\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Reason\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": true,\\n \\"EnableSubQuotaPreemption\\": true,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": true,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": true\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ],\\n \\"PreemptorPriorities\\": [\\n 0\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": true,\\n \\"ControlPlaneClusterId\\": \\"\\"\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123456\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"\\",\\n \\"Version\\": \\"\\",\\n \\"HyperZones\\": [\\n \\"\\"\\n ],\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n }\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]',
- 'title' => 'ListQuotas',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"TotalCount\\": \\"1\\",\\n \\"Events\\": [\\n \\"You are using pip version 9.0.1, however version 20.2.4 is available.\\"\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'GetQuota' => [
- 'summary' => '获取Quota',
- 'path' => '/api/v1/quotas/{QuotaId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTrainingJobInstanceMetrics' => [
+ 'summary' => 'Retrieve monitoring metrics for training job instances.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/instancemetrics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '191160',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '157749',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'QuotaId',
+ 'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota1ci8g793pgm',
- ],
+ 'schema' => ['title' => '', 'description' => 'Training job ID.', 'type' => 'string', 'required' => true, 'example' => 'trains930928remn'],
],
[
- 'name' => 'Verbose',
+ 'name' => 'MetricType',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- ],
+ 'schema' => ['title' => '', 'description' => 'Metric type:'."\n"
+ ."\n"
+ .'- GpuCoreUsage: POD GPU usage'."\n"
+ ."\n"
+ .'- GpuMemoryUsage: POD GPU memory usage'."\n"
+ ."\n"
+ .'- CpuCoreUsage: POD CPU usage'."\n"
+ ."\n"
+ .'- MemoryUsage: POD memory usage'."\n"
+ ."\n"
+ .'- NetworkInputRate: POD network input rate (TCP/IP) (MB/s)'."\n"
+ ."\n"
+ .'- NetworkOutputRate: POD network output rate (TCP/IP) (MB/s)'."\n"
+ ."\n"
+ .'- DiskReadRate: POD disk read rate (MB/s)'."\n"
+ ."\n"
+ .'- DiskWriteRate: POD disk write rate (MB/s)', 'type' => 'string', 'required' => true, 'example' => 'GpuCoreUsage'],
],
[
- 'name' => 'WithNodeMeta',
+ 'name' => 'TimeStep',
'in' => 'query',
- 'schema' => [
- 'title' => '是否返回绑定到Quota的节点meta信息',
- 'type' => 'boolean',
- ],
+ 'schema' => ['description' => 'Time interval. Valid values: 1h, 30m, 5m, 10s.', 'type' => 'string', 'required' => false, 'example' => '10s', 'title' => ''],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Instance ID.', 'type' => 'string', 'required' => false, 'example' => 'trains930928remn-master-0', 'title' => ''],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'Start time in UTC, in ISO 8601 format. If empty, use the job start time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'End time in UTC, in ISO 8601 format. If empty, use the current time.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E',
- ],
- 'QuotaId' => [
- 'title' => 'Quota Id',
- 'description' => 'Quota Id',
- 'type' => 'string',
- 'example' => 'quotajradxh43rgb',
- ],
- 'QuotaName' => [
- 'title' => 'Quota名称',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'test-quota',
- ],
- 'ResourceType' => [
- 'title' => 'Quota资源类型',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ECS',
- ],
- 'ParentQuotaId' => [
- 'title' => '父Quota Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'quota1ci8g793pgm',
- ],
- 'ResourceGroupIds' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rg69rj0leslwdnbe',
- ],
- ],
- 'AllocateStrategy' => [
- 'title' => '资源分配策略',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ByNodeSpec',
- ],
- 'Min' => [
- 'description' => '',
- '$ref' => '#/components/schemas/ResourceSpec',
- ],
- 'Description' => [
- 'title' => 'Quota描述',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'this is a test quota',
- ],
- 'Labels' => [
- 'title' => 'Quota标签',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/Label',
- ],
- ],
- 'CreatorId' => [
- 'title' => 'Quota创建人Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '18846926616',
- ],
- 'LatestOperationId' => [
- 'title' => 'Quota最近变更Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'operation1234',
- ],
- 'Status' => [
- 'title' => 'Quota状态',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'Ready',
- ],
- 'ReasonCode' => [
- 'title' => '错误码',
- 'description' => '',
- 'type' => 'string',
- 'example' => '“”',
- ],
- 'ReasonMessage' => [
- 'title' => '错误原因',
- 'description' => '',
- 'type' => 'string',
- 'example' => '“”',
- ],
- 'GmtCreatedTime' => [
- 'title' => 'Quota创建时间',
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- ],
- 'GmtModifiedTime' => [
- 'title' => 'Quota修改时间',
- 'description' => '',
- 'type' => 'string',
- 'example' => '2023-06-22T00:00:00Z',
- ],
- 'QuotaDetails' => [
- 'title' => 'Quota详情',
- 'description' => '',
- '$ref' => '#/components/schemas/QuotaDetails',
- ],
- 'QuotaConfig' => [
- 'description' => '',
- '$ref' => '#/components/schemas/QuotaConfig',
- ],
- 'Workspaces' => [
- 'title' => 'Quota关联的工作空间',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/WorkspaceIdName',
- ],
- ],
- 'SubQuotas' => [
- 'title' => 'Quota的子Quota列表',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/QuotaIdName',
- ],
- ],
- 'QueueStrategy' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'PaiStrategyIntelligent',
- ],
- 'Version' => [
- 'title' => '版本信息。当resource type为ECS时生效。',
- 'type' => 'string',
- 'example' => '1.0',
- ],
- 'HyperZones' => [
- 'title' => '高性能网络区列表',
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD'],
+ 'InstanceMetrics' => [
+ 'description' => 'List of all monitoring metrics that match the filter condition.',
+ 'title' => '',
'type' => 'array',
'items' => [
- 'title' => '高性能网络区ID',
- 'type' => 'string',
+ 'description' => 'Monitoring metrics that match the filter condition.',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => ['description' => 'Instance ID.', 'type' => 'string', 'example' => 'trainkxen7qjyg6y-master-0', 'title' => ''],
+ 'Metrics' => [
+ 'description' => 'List of instance monitoring metrics.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Instance monitoring metric.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Time' => ['description' => 'UTC time in ISO 8601 format.', 'type' => 'string', 'example' => '2020-11-08T16:00:00Z', 'title' => ''],
+ 'Value' => ['description' => 'Metric value.', 'type' => 'number', 'format' => 'double', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'NodeName' => ['description' => 'Node name.', 'type' => 'string', 'example' => 'trains930928remn-master-0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- ],
- 'QuotaCluster' => [
- 'title' => '由配额内资源组成的集群规格与状态',
- '$ref' => '#/components/schemas/QuotaCluster',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => 'Obtain monitoring metrics of a training job instance',
+ 'changeSet' => [
+ ['createdAt' => '2024-08-06T02:04:36.000Z', 'description' => 'Response parameters changed'],
],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"18D5A1C6-14B8-545E-8408-0A7DDB4C6B5E\\",\\n \\"QuotaId\\": \\"quotajradxh4****\\",\\n \\"QuotaName\\": \\"test-quota\\",\\n \\"ResourceType\\": \\"ECS\\",\\n \\"ParentQuotaId\\": \\"quota1ci8g79****\\",\\n \\"ResourceGroupIds\\": [\\n \\"rg69rj0leslw****\\"\\n ],\\n \\"AllocateStrategy\\": \\"ByNodeSpec\\",\\n \\"Min\\": {\\n \\"NodeSpecs\\": [\\n {\\n \\"Type\\": \\"ecs.g6.4xlarge\\",\\n \\"Count\\": 10,\\n \\"BindingPolicy\\": {\\n \\"NodeSpecCount\\": 5,\\n \\"IncludeNodes\\": [\\n \\"lrnabc\\"\\n ],\\n \\"ExcludeNodes\\": [\\n \\"lrndef\\"\\n ]\\n },\\n \\"HyperType\\": \\"\\"\\n }\\n ]\\n },\\n \\"Description\\": \\"this is a test quota\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"\\",\\n \\"Value\\": \\"\\"\\n }\\n ],\\n \\"CreatorId\\": \\"1884692****\\",\\n \\"LatestOperationId\\": \\"operation****\\",\\n \\"Status\\": \\"Ready\\",\\n \\"ReasonCode\\": \\"“”\\",\\n \\"ReasonMessage\\": \\"“”\\",\\n \\"GmtCreatedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"GmtModifiedTime\\": \\"2023-06-22T00:00:00Z\\",\\n \\"QuotaDetails\\": {\\n \\"DesiredMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"ActualMinQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"RequestedQuota\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n }\\n },\\n \\"QuotaConfig\\": {\\n \\"SupportRDMA\\": false,\\n \\"ClusterId\\": \\"ceeb37xxxx\\",\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"\\",\\n \\"SwitchId\\": \\"\\",\\n \\"SecurityGroupId\\": \\"\\",\\n \\"ExtendedCIDRs\\": [\\n \\"\\"\\n ],\\n \\"RoleArn\\": \\"\\",\\n \\"DefaultRoute\\": \\"\\",\\n \\"DefaultForwardInfo\\": {\\n \\"NatGatewayId\\": \\"\\",\\n \\"EipAllocationId\\": \\"\\"\\n }\\n },\\n \\"SupportGPUDrivers\\": [\\n \\"\\"\\n ],\\n \\"DefaultGPUDriver\\": \\"470.199.02\\",\\n \\"ACS\\": {\\n \\"ACSQuotaId\\": \\"\\",\\n \\"AssociatedProducts\\": [\\n \\"\\"\\n ]\\n },\\n \\"ResourceSpecs\\": [\\n {\\n \\"WorkspaceId\\": \\"\\",\\n \\"Product\\": \\"\\",\\n \\"Specs\\": [\\n {\\n \\"SpecName\\": \\"\\",\\n \\"IsGuaranteedValid\\": true,\\n \\"IsOverSoldValid\\": true,\\n \\"CodeType\\": \\"\\",\\n \\"Code\\": \\"\\",\\n \\"Reason\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"EnablePreemptSubquotaWorkloads\\": true,\\n \\"EnableSubQuotaPreemption\\": true,\\n \\"SubQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorityUpperBound\\": 9,\\n \\"PreemptedProducts\\": [\\n \\"dlc\\"\\n ]\\n },\\n \\"EnableGPUShare\\": true,\\n \\"OversoldUsageConfig\\": {\\n \\"DisabledBy\\": \\"\\",\\n \\"Disabled\\": true\\n },\\n \\"SelfQuotaPreemptionConfig\\": {\\n \\"PreemptedPriorities\\": [\\n 0\\n ],\\n \\"PreemptedProducts\\": [\\n \\"\\"\\n ],\\n \\"PreemptorPriorities\\": [\\n 0\\n ]\\n },\\n \\"EniCacheConfig\\": {\\n \\"Enabled\\": true,\\n \\"CachePoolSize\\": 0\\n },\\n \\"SandboxCacheConfig\\": {\\n \\"Enabled\\": true\\n },\\n \\"UseCase\\": \\"\\",\\n \\"EnableSelfQuotaPreemption\\": true,\\n \\"ControlPlaneClusterId\\": \\"\\"\\n },\\n \\"Workspaces\\": [\\n {\\n \\"WorkspaceId\\": \\"ws123456\\"\\n }\\n ],\\n \\"SubQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\",\\n \\"Version\\": \\"1.0\\",\\n \\"HyperZones\\": [\\n \\"A3\\"\\n ],\\n \\"QuotaCluster\\": {\\n \\"ClusterType\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"DataSources\\": [\\n {\\n \\"DataSourceId\\": \\"\\",\\n \\"MountPath\\": \\"\\",\\n \\"Uri\\": \\"\\"\\n }\\n ],\\n \\"Endpoints\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"Status\\": \\"\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<GetQuotaResponse>\\n <QuotaId>quotajradxh43rgb</QuotaId>\\n <QuotaName>test-quota</QuotaName>\\n <ResourceType>ECS</ResourceType>\\n <ParentQuotaId>quota1ci8g793pgm</ParentQuotaId>\\n <ResourceGroupIds>rg69rj0leslwdnbe</ResourceGroupIds>\\n <AllocateStrategy>ByNodeSpec</AllocateStrategy>\\n <Min>\\n <NodeSpecs>\\n <Type>ecs.g6.4xlarge</Type>\\n <Count>10</Count>\\n </NodeSpecs>\\n </Min>\\n <Description>this is a test quota</Description>\\n <Labels/>\\n <Status>Ready</Status>\\n <GmtCreatedTime>2023-06-22T00:00:00Z</GmtCreatedTime>\\n <GmtModifiedTime>2023-06-22T00:00:00Z</GmtModifiedTime>\\n <QuotaDetails>\\n <DesiredMinQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </DesiredMinQuota>\\n <ActualMinQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </ActualMinQuota>\\n <RequestedQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </RequestedQuota>\\n <UsedQuota>\\n <CPU>100</CPU>\\n <Memory>100Gi</Memory>\\n <GPU>16</GPU>\\n <GPUType>GPU</GPUType>\\n </UsedQuota>\\n </QuotaDetails>\\n <QuotaConfig>\\n <SupportRDMA>false</SupportRDMA>\\n <ClusterId>ceeb37xxxx</ClusterId>\\n <UserVpc>\\n </UserVpc>\\n <DefaultGPUDriver>470.199.02</DefaultGPUDriver>\\n <ACS>\\n </ACS>\\n </QuotaConfig>\\n <Workspaces>\\n <WorkspaceId>ws123456</WorkspaceId>\\n </Workspaces>\\n <SubQuotas>\\n <QuotaId>quota12345</QuotaId>\\n <QuotaName>dlc-quota</QuotaName>\\n </SubQuotas>\\n <QueueStrategy>PaiStrategyIntelligent</QueueStrategy>\\n</GetQuotaResponse>","errorExample":""}]',
- 'title' => 'GetQuota',
- ],
- 'UpdateQuota' => [
- 'summary' => '更新Quota',
- 'path' => '/api/v1/quotas/{QuotaId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobInstanceMetrics'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\",\\n \\"InstanceMetrics\\": [\\n {\\n \\"InstanceId\\": \\"trainkxen7qjyg6y-master-0\\",\\n \\"Metrics\\": [\\n {\\n \\"Time\\": \\"2020-11-08T16:00:00Z\\",\\n \\"Value\\": 1\\n }\\n ],\\n \\"NodeName\\": \\"trains930928remn-master-0\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobLogs' => [
+ 'summary' => 'Retrieves the logs for a training task.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/logs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '191208',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
- 'name' => 'QuotaId',
+ 'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => 'Quota ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota-20210126170216-mtl37ge7gkvdz',
- ],
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'train129f212o89d', 'title' => ''],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Description' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'this is a test quota',
- ],
- 'Labels' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/Label',
- ],
- 'required' => false,
- ],
- 'QueueStrategy' => [
- 'type' => 'string',
- ],
- 'QuotaConfig' => [
- '$ref' => '#/components/schemas/QuotaConfig',
- ],
- 'QuotaName' => [
- 'type' => 'string',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'WorkerId',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The instance ID of the training task. This parameter is deprecated. Use InstanceId instead.', 'type' => 'string', 'required' => false, 'example' => 'train129f212o89d-master-0', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'minimum' => '1', 'example' => '1', 'default' => '1', 'required' => false, 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int64', 'maximum' => '2000', 'minimum' => '1', 'example' => '100', 'default' => '100', 'required' => false, 'title' => ''],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The start UTC time in ISO 8601 format. If empty, the task start time is used.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The end UTC time in ISO 8601 format. If empty, the current time is used.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => false, 'example' => 'train129f212o89d-master-0', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC',
- ],
- 'QuotaId' => [
- 'title' => 'Quota Id',
- 'description' => 'Quota Id',
- 'type' => 'string',
- 'example' => 'quota-20210126170216-mtl37ge7gkvdz',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'CBF05F13-B24C-5129-9048-4FA684DCD579'],
+ 'TotalCount' => ['title' => '', 'description' => 'The number of logs that match the filter condition.', 'type' => 'string', 'example' => '23'],
+ 'Logs' => [
+ 'description' => 'The list of logs.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => ['description' => 'The content of the log line.', 'type' => 'string', 'title' => '', 'example' => 'loss: 0.0001'],
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => 'Retrieve logs of a training job',
+ 'changeSet' => [
+ ['createdAt' => '2023-10-13T09:11:50.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-12-05T12:21:05.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:58.000Z', 'description' => 'OpenAPI offline'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"QuotaId\\": \\"quota-20210126170216-mtl37ge7gkvdz\\"\\n}","type":"json"}]',
- 'title' => 'UpdateQuota',
- ],
- 'ScaleQuota' => [
- 'summary' => '扩缩容Quota',
- 'path' => '/api/v1/quotas/{QuotaId}/action/scale',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobLogs'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CBF05F13-B24C-5129-9048-4FA684DCD579\\",\\n \\"TotalCount\\": \\"23\\",\\n \\"Logs\\": [\\n \\"loss: 0.0001\\"\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobMetrics' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/metrics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '191196',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '132913',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'QuotaId',
+ 'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => 'Quota ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quotamtl37ge7gkvdz',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'train76rcaupa2cz'],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'ResourceGroupIds' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg-aek2nxrabqavely',
- ],
- 'required' => false,
- ],
- 'Min' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/ResourceSpec',
- ],
- ],
- 'required' => false,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The name of the metric.', 'type' => 'string', 'required' => false, 'example' => 'accuracy'],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The page number.', 'type' => 'integer', 'format' => 'int64', 'minimum' => '1', 'example' => '1', 'default' => '1', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The number of items per page.', 'type' => 'integer', 'format' => 'int64', 'maximum' => '100', 'minimum' => '1', 'example' => '100', 'default' => '100', 'required' => false],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The start time in UTC, in ISO 8601 format. If you omit this parameter, the task start time is used.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The end time in UTC, in ISO 8601 format. If you omit this parameter, the current time is used.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2020-11-08T16:00:00Z', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['title' => '', 'description' => 'The sort order of returned metrics. Valid values: ASC or DESC.', 'type' => 'string', 'default' => 'DESC', 'required' => false, 'example' => 'DESC'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6',
- ],
- 'QuotaId' => [
- 'title' => 'Quota Id',
- 'description' => 'Quota Id',
- 'type' => 'string',
- 'example' => 'quotamtl37ge7gkvdz',
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
+ 'Metrics' => [
+ 'description' => 'The list of metrics.',
+ 'title' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The metric information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Timestamp' => ['description' => 'The timestamp when the metric was collected.', 'type' => 'string', 'format' => 'iso8601', 'example' => '2022-04-18T22:20:55Z', 'title' => ''],
+ 'Value' => ['description' => 'The value of the metric.', 'type' => 'number', 'format' => 'double', 'example' => '0.97', 'title' => ''],
+ 'Name' => ['title' => '', 'description' => 'The name of the metric.', 'type' => 'string', 'example' => 'accuracy'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'example' => '',
],
+ 'TotalCount' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","type":"json"}]',
- 'title' => 'ScaleQuota',
- ],
- 'DeleteQuota' => [
- 'summary' => '删除Quota',
- 'path' => '/api/v1/quotas/{QuotaId}',
- 'methods' => [
- 'delete',
+ 'title' => 'Obtain training job metrics ',
+ 'summary' => 'Retrieve monitoring data for a training task.',
+ 'changeSet' => [
+ ['createdAt' => '2024-11-06T02:28:37.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2022-04-27T10:49:51.000Z', 'description' => 'OpenAPI offline'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobMetrics'],
+ ],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Metrics\\": [\\n {\\n \\"Timestamp\\": \\"2022-04-18T22:20:55Z\\",\\n \\"Value\\": 0.97,\\n \\"Name\\": \\"accuracy\\"\\n }\\n ],\\n \\"TotalCount\\": 0\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobOutputModels' => [
+ 'summary' => 'Retrieves information about the output models of a training job.',
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/outputmodels',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '191219',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeCode' => '200236',
+ 'abilityTreeNodes' => ['FEATURElearn9XMQIJ'],
],
'parameters' => [
[
- 'name' => 'QuotaId',
+ 'name' => 'TrainingJobId',
'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota1ci8g793pgm',
- ],
+ 'schema' => ['title' => '', 'description' => 'Training job ID.', 'type' => 'string', 'required' => true, 'example' => 'traineyfz0m2hsfv'],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'QuotaId' => [
- 'title' => 'Quota Id',
- 'description' => 'Quota Id',
- 'type' => 'string',
- 'example' => 'quotamtl37ge7gkvdz',
+ 'OutputModels' => [
+ 'description' => 'List of models produced by training.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Model produced by training.',
+ 'type' => 'object',
+ 'properties' => [
+ 'OutputChannelName' => ['description' => 'Name of the training output data.', 'type' => 'string', 'example' => 'model', 'title' => ''],
+ 'Uri' => ['description' => 'Link to the training output data.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/', 'title' => ''],
+ 'Labels' => [
+ 'description' => 'List of tags.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Tag.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'Tag name.', 'type' => 'string', 'example' => 'RootModelName', 'title' => ''],
+ 'Value' => ['description' => 'Tag value.', 'type' => 'string', 'example' => 'qwen2-0.5', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Metrics' => ['description' => 'Training job metrics.', 'type' => 'object', 'example' => '{'."\n"
+ .' "Results": ['."\n"
+ .' {'."\n"
+ .' "Dataset": {'."\n"
+ .' "Train": "oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json"'."\n"
+ .' },'."\n"
+ .' "Metrics": {'."\n"
+ .' "loss": 2.1276'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}', 'title' => ''],
+ 'TrainingSpec' => ['description' => 'Model training configuration.', 'type' => 'object', 'example' => '{}', 'title' => ''],
+ 'InferenceSpec' => ['description' => 'Model inference configuration.', 'type' => 'object', 'example' => '{}', 'title' => ''],
+ 'EvaluationSpec' => ['description' => 'Model evaluation configuration.', 'type' => 'object', 'example' => '{}', 'title' => ''],
+ 'SourceType' => ['description' => 'Source (the type of job that produced the model). Default: Custom.', 'type' => 'string', 'example' => 'PAIFlow', 'title' => ''],
+ 'SourceId' => ['description' => 'Source ID (optional):'."\n"
+ ."\n"
+ .'- If the source is Custom, there are no format requirements.'."\n"
+ ."\n"
+ .'- If the source is PAIFlow, use the format: region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf.'."\n"
+ ."\n"
+ .'- If the source is TrainingService, use the format: region=cn-shanghai,workspaceId=1345,kind=TrainingJob,id=job-sakdbaskjdf.', 'type' => 'string', 'example' => 'region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf', 'title' => ''],
+ 'CompressionSpec' => ['description' => 'Model compression configuration.', 'type' => 'object', 'example' => '{}', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteQuotaResponse>\\n <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>\\n <QuotaId>quotamtl37ge7gkvdz</QuotaId>\\n</DeleteQuotaResponse>","errorExample":""}]',
- 'title' => 'DeleteQuota',
- ],
- 'ListQuotaWorkloads' => [
- 'summary' => '您可以通过此API获取Quota上的任务信息列表',
- 'path' => '/api/v1/quotas/{QuotaId}/workloads',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Retrieve models produced by a training job',
+ 'changeSet' => [
+ ['createdAt' => '2024-07-11T04:11:06.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-07-11T03:58:46.000Z', 'description' => 'Response parameters changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"OutputModels\\": [\\n {\\n \\"OutputChannelName\\": \\"model\\",\\n \\"Uri\\": \\"oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/\\",\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"RootModelName\\",\\n \\"Value\\": \\"qwen2-0.5\\"\\n }\\n ],\\n \\"Metrics\\": {\\n \\"Results\\": [\\n {\\n \\"Dataset\\": {\\n \\"Train\\": \\"oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json\\"\\n },\\n \\"Metrics\\": {\\n \\"loss\\": 2.1276\\n }\\n }\\n ]\\n },\\n \\"TrainingSpec\\": {},\\n \\"InferenceSpec\\": {},\\n \\"EvaluationSpec\\": {},\\n \\"SourceType\\": \\"PAIFlow\\",\\n \\"SourceId\\": \\"region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf\\",\\n \\"CompressionSpec\\": {}\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListTrainingJobs' => [
+ 'summary' => 'List training jobs.',
+ 'path' => '/api/v1/trainingjobs',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
- 'abilityTreeCode' => '221848',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '132980',
+ 'abilityTreeNodes' => ['FEATURElearnVYA4L9'],
],
'parameters' => [
[
- 'name' => 'QuotaId',
- 'in' => 'path',
- 'schema' => [
- 'title' => 'Quota ID',
- 'description' => 'Quota ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'quota1y9qarqj2i7',
- ],
- ],
- [
- 'name' => 'WorkspaceIds',
- 'in' => 'query',
- 'schema' => [
- 'title' => '查询指定的Workspace下的workload的排队信息',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '186692',
- ],
- ],
- [
- 'name' => 'WorkloadType',
- 'in' => 'query',
- 'schema' => [
- 'title' => '查询指定子产品的实例的排队信息',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dlc',
- ],
- ],
- [
- 'name' => 'WorkloadIds',
+ 'name' => 'WorkspaceId',
'in' => 'query',
- 'schema' => [
- 'title' => '查询指定workload id的排队信息',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dlc12344556',
- ],
- ],
- [
- 'name' => 'BeforeWorkloadId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '查询队列中指定workload Id之前的实例的排队信息',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dsw65443322',
- ],
+ 'schema' => ['description' => 'The ID of the workspace.', 'type' => 'string', 'required' => false, 'example' => '12345', 'title' => ''],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'title' => '查询的页码',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- 'example' => '1',
- 'default' => '1',
- ],
+ 'schema' => ['description' => 'The page number of the results to return.', 'type' => 'integer', 'format' => 'int64', 'minimum' => '1', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'title' => '分页查询每页的大小',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'maximum' => '100',
- 'minimum' => '1',
- 'example' => '10',
- 'default' => '10',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10', 'title' => ''],
],
[
'name' => 'SortBy',
'in' => 'query',
'schema' => [
- 'title' => '返回结果的排序字段',
- 'description' => '',
+ 'description' => 'The field to sort the results by.',
'type' => 'string',
'required' => false,
- 'example' => 'GmtCreatedTime',
+ 'enum' => ['GmtModifiedTime', 'GmtCreateTime', 'TrainingJobName', 'AlgorithmName', 'Status'],
+ 'example' => 'GmtModifiedTime',
+ 'title' => '',
],
],
[
'name' => 'Order',
'in' => 'query',
'schema' => [
- 'title' => '排队顺序',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- 'enum' => [
- 'asc',
- 'desc',
- ],
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
+ 'description' => 'The sort order. Valid values:'."\n"
+ ."\n"
+ .'- `ASC`: Ascending order.'."\n"
+ ."\n"
+ .'- `DESC`: Descending order.',
+ 'enumValueTitles' => ['ASC' => '', 'DESC' => ''],
'type' => 'string',
+ 'enum' => ['desc', 'asc'],
'required' => false,
- 'example' => 'Enqueued',
- 'default' => 'Enqueued',
- ],
- ],
- [
- 'name' => 'ShowOwn',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- 'default' => 'true',
+ 'example' => 'DESC',
+ 'title' => '',
],
],
[
- 'name' => 'SubQuotaIds',
+ 'name' => 'TrainingJobName',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quota12344666,quota64432233',
- ],
+ 'schema' => ['description' => 'The name of the training job.', 'type' => 'string', 'required' => false, 'example' => 'large_language_model_training', 'title' => ''],
],
[
- 'name' => 'UserIds',
+ 'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '29043893812,23829093093',
- ],
+ 'schema' => ['description' => 'The status of the training job.', 'type' => 'string', 'required' => false, 'example' => 'Running', 'title' => ''],
],
[
- 'name' => 'NodeName',
+ 'name' => 'TrainingJobId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'lrn48278127617',
- ],
+ 'schema' => ['description' => 'The ID of the training job.', 'type' => 'string', 'required' => false, 'example' => 'trains930928remn', 'title' => ''],
],
[
- 'name' => 'WorkloadCreatedTimeRange',
+ 'name' => 'Labels',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/TimeRangeFilter',
- ],
+ 'style' => 'json',
+ 'schema' => ['description' => 'The labels of the training job, specified as key-value pairs.', 'type' => 'object', 'required' => false, 'example' => '{"project": "sd-s3"}', 'title' => ''],
],
[
- 'name' => 'WorkloadStatuses',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Pending',
- ],
+ 'schema' => ['description' => 'The start of the time range to filter training jobs by creation time. The default is 7 days ago.', 'type' => 'string', 'required' => false, 'example' => '2024-06-22T01:00:00Z', 'title' => ''],
],
[
- 'name' => 'GmtPositionModifiedTimeRange',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/TimeRangeFilter',
- ],
+ 'schema' => ['description' => 'The end of the time range to filter training jobs by creation time. The default is the current time.', 'type' => 'string', 'required' => false, 'example' => '2023-12-27T02:10:00Z', 'title' => ''],
],
[
- 'name' => 'GmtEnqueuedTimeRange',
+ 'name' => 'AlgorithmProvider',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/TimeRangeFilter',
- ],
+ 'schema' => ['description' => 'The provider of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'pai', 'title' => ''],
],
[
- 'name' => 'GmtDequeuedTimeRange',
+ 'name' => 'AlgorithmName',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'required' => false,
- '$ref' => '#/components/schemas/TimeRangeFilter',
- ],
+ 'schema' => ['description' => 'The name of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'llm_train', 'title' => ''],
],
[
- 'name' => 'WithHistoricalData',
+ 'name' => 'IsTempAlgo',
'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'Specifies whether the algorithm is temporary.', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'The returned data.',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '42F23B58-3684-5443-848A-8DA81FF99712',
- ],
- 'TotalCount' => [
- 'title' => '符合过滤条件的实例数量',
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '23',
- ],
- 'Workloads' => [
- 'description' => '',
+ 'TotalCount' => ['description' => 'The total number of training jobs.', 'type' => 'integer', 'format' => 'int64', 'example' => '10', 'title' => ''],
+ 'TrainingJobs' => [
+ 'description' => 'A list of training jobs.',
'type' => 'array',
'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/QueueInfo',
+ 'description' => 'A training job.',
+ 'type' => 'object',
+ 'properties' => [
+ 'AlgorithmName' => ['description' => 'The name of the algorithm.', 'type' => 'string', 'example' => 'llm_train', 'title' => ''],
+ 'AlgorithmProvider' => ['description' => 'The provider of the algorithm.', 'type' => 'string', 'example' => 'pai', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'The version of the algorithm.', 'type' => 'string', 'example' => 'v0.0.1', 'title' => ''],
+ 'ComputeResource' => [
+ 'description' => 'The compute resource configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'EcsCount' => ['description' => 'The number of ECS instances.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'EcsSpec' => ['description' => 'The ECS instance type.', 'type' => 'string', 'example' => 'ecs.gn5-c8g1.2xlarge', 'title' => ''],
+ 'ResourceId' => ['description' => 'The ID of the resource quota.', 'type' => 'string', 'example' => 'quotam670lixikcl', 'title' => ''],
+ 'ResourceName' => ['description' => 'The name of the resource quota.', 'type' => 'string', 'example' => 'quota', 'title' => ''],
+ 'InstanceCount' => ['description' => 'The number of instances for the resource quota.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'InstanceSpec' => [
+ 'description' => 'The instance configuration for the resource quota.',
+ 'type' => 'object',
+ 'properties' => [
+ 'CPU' => ['description' => 'The number of CPU cores.', 'type' => 'string', 'example' => '8', 'title' => ''],
+ 'Memory' => ['description' => 'The memory size, in GiB.', 'type' => 'string', 'example' => '32', 'title' => ''],
+ 'SharedMemory' => ['description' => 'The shared memory size, in GiB.', 'type' => 'string', 'example' => '32', 'title' => ''],
+ 'GPU' => ['description' => 'The number of GPUs.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'GPUType' => ['description' => 'The GPU type.', 'type' => 'string', 'example' => 'V100', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'GmtCreateTime' => ['description' => 'The time the training job was created.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'GmtModifiedTime' => ['description' => 'The time the training job was last modified.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'HyperParameters' => [
+ 'description' => 'The hyperparameter configuration.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A hyperparameter.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => ['description' => 'The name of the hyperparameter.', 'type' => 'string', 'example' => 'learning_rate', 'title' => ''],
+ 'Value' => ['description' => 'The value of the hyperparameter.', 'type' => 'string', 'example' => '0.001', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'InputChannels' => [
+ 'description' => 'The input data channels.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'An input data channel.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetId' => ['description' => 'The ID of the input dataset.', 'type' => 'string', 'example' => 'd-475megosidivjfgfq6', 'title' => ''],
+ 'InputUri' => ['description' => 'The URI of the input data.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/', 'title' => ''],
+ 'Name' => ['description' => 'The name of the input channel.', 'type' => 'string', 'example' => 'model', 'title' => ''],
+ 'VersionName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Labels' => [
+ 'description' => 'The labels for the training job.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A label.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The label key.', 'type' => 'string', 'example' => 'CreatedBy', 'title' => ''],
+ 'Value' => ['description' => 'The label value.', 'type' => 'string', 'example' => 'QuickStart', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'OutputChannels' => [
+ 'description' => 'The output data channels.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'An output data channel.',
+ 'type' => 'object',
+ 'properties' => [
+ 'DatasetId' => ['description' => 'The ID of the output dataset.', 'type' => 'string', 'example' => 'd-8o0hh35po15ejcdq2p', 'title' => ''],
+ 'Name' => ['description' => 'The name of the output channel.', 'type' => 'string', 'example' => 'model', 'title' => ''],
+ 'OutputUri' => ['description' => 'The URI of the output data.', 'type' => 'string', 'example' => 'oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/', 'title' => ''],
+ 'VersionName' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ReasonCode' => ['description' => 'The reason code for the training job\'s status.', 'type' => 'string', 'example' => 'TrainingJobSucceed', 'title' => ''],
+ 'ReasonMessage' => ['description' => 'A message that provides details about the job\'s status.', 'type' => 'string', 'example' => 'None', 'title' => ''],
+ 'Scheduler' => [
+ 'description' => 'The scheduler configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'MaxRunningTimeInSeconds' => ['description' => 'The maximum runtime of the training job in seconds. A value of `0` indicates an unlimited runtime.', 'type' => 'integer', 'format' => 'int64', 'example' => '0', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Status' => ['description' => 'The status of the training job.', 'type' => 'string', 'example' => 'Running', 'title' => ''],
+ 'StatusTransitions' => [
+ 'description' => 'A list of status transitions for the training job.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A status transition.',
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => ['description' => 'The time when the status ended.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'ReasonCode' => ['description' => 'The reason code for the status.', 'type' => 'string', 'example' => 'TrainingJobSucceed', 'title' => ''],
+ 'ReasonMessage' => ['description' => 'Details about the status transition.', 'type' => 'string', 'example' => 'KubeDL job runs successfully', 'title' => ''],
+ 'StartTime' => ['description' => 'The time when the status started.', 'type' => 'string', 'example' => '2024-07-10T11:49:47Z', 'title' => ''],
+ 'Status' => ['description' => 'The status.', 'type' => 'string', 'example' => 'Creating', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'TrainingJobDescription' => ['description' => 'The description of the training job.', 'type' => 'string', 'example' => 'Qwen2 large language model training.', 'title' => ''],
+ 'TrainingJobId' => ['description' => 'The ID of the training job.', 'type' => 'string', 'example' => 'train1layo6js8ra', 'title' => ''],
+ 'TrainingJobName' => ['description' => 'The name of the training job.', 'type' => 'string', 'example' => 'qwen2-7b', 'title' => ''],
+ 'UserId' => ['description' => 'The user ID.', 'type' => 'string', 'example' => '123456789', 'title' => ''],
+ 'WorkspaceId' => ['description' => 'The ID of the workspace.', 'type' => 'string', 'example' => '1234', 'title' => ''],
+ 'RoleArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the RAM role assumed for the training job.', 'type' => 'string', 'example' => 'acs:ram::{accountID}:role/{roleName}', 'title' => ''],
+ 'IsTempAlgo' => ['title' => '', 'description' => 'Indicates whether a temporary algorithm was used.', 'type' => 'boolean', 'example' => 'true'],
+ 'UserVpc' => [
+ 'description' => 'The user\'s VPC configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => ['description' => 'The VPC ID.', 'type' => 'string', 'example' => 'vpc-abcdef****', 'title' => ''],
+ 'SwitchId' => ['description' => 'The switch ID.', 'type' => 'string', 'example' => 'vs-abcdef****', 'title' => ''],
+ 'SecurityGroupId' => ['description' => 'The security group ID.', 'type' => 'string', 'example' => 'sg-abcdef****', 'title' => ''],
+ 'ExtendedCIDRs' => [
+ 'description' => 'The extended CIDR blocks.',
+ 'type' => 'array',
+ 'items' => ['description' => 'An extended CIDR block.', 'type' => 'string', 'example' => '192.168.0.1/24', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DefaultRoute' => ['description' => 'The default route.', 'type' => 'string', 'example' => 'eth1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ExperimentConfig' => [
+ 'description' => 'The associated experiment configuration.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ExperimentId' => ['description' => 'The ID of the associated experiment.', 'type' => 'string', 'example' => 'exp-ds9aefia90v', 'title' => ''],
+ 'ExperimentName' => ['description' => 'The name of the associated experiment.', 'type' => 'string', 'example' => 'large_language_model', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Environments' => [
+ 'description' => 'The environment variables.',
+ 'additionalProperties' => ['description' => 'An environment variable in key-value format.', 'type' => 'string', 'example' => 'debug=true', 'title' => ''],
+ 'type' => 'object',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'PythonRequirements' => [
+ 'description' => 'The required Python packages.',
+ 'type' => 'array',
+ 'items' => ['description' => 'A Python package requirement.', 'type' => 'string', 'example' => 'torch>=2.2.0', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DlcJobId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'AssignNodeSpec' => ['$ref' => '#/components/schemas/AssignNodeSpec', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TotalCount\\": 10,\\n \\"TrainingJobs\\": [\\n {\\n \\"AlgorithmName\\": \\"llm_train\\",\\n \\"AlgorithmProvider\\": \\"pai\\",\\n \\"AlgorithmVersion\\": \\"v0.0.1\\",\\n \\"ComputeResource\\": {\\n \\"EcsCount\\": 1,\\n \\"EcsSpec\\": \\"ecs.gn5-c8g1.2xlarge\\",\\n \\"ResourceId\\": \\"quotam670lixikcl\\",\\n \\"ResourceName\\": \\"quota\\",\\n \\"InstanceCount\\": 1,\\n \\"InstanceSpec\\": {\\n \\"CPU\\": \\"8\\",\\n \\"Memory\\": \\"32\\",\\n \\"SharedMemory\\": \\"32\\",\\n \\"GPU\\": \\"1\\",\\n \\"GPUType\\": \\"V100\\"\\n }\\n },\\n \\"GmtCreateTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"GmtModifiedTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"HyperParameters\\": [\\n {\\n \\"Name\\": \\"learning_rate\\",\\n \\"Value\\": \\"0.001\\"\\n }\\n ],\\n \\"InputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-475megosidivjfgfq6\\",\\n \\"InputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/input/channel/\\",\\n \\"Name\\": \\"model\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"Labels\\": [\\n {\\n \\"Key\\": \\"CreatedBy\\",\\n \\"Value\\": \\"QuickStart\\"\\n }\\n ],\\n \\"OutputChannels\\": [\\n {\\n \\"DatasetId\\": \\"d-8o0hh35po15ejcdq2p\\",\\n \\"Name\\": \\"model\\",\\n \\"OutputUri\\": \\"oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/path/to/output/channel/\\",\\n \\"VersionName\\": \\"\\"\\n }\\n ],\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"None\\",\\n \\"Scheduler\\": {\\n \\"MaxRunningTimeInSeconds\\": 0\\n },\\n \\"Status\\": \\"Running\\",\\n \\"StatusTransitions\\": [\\n {\\n \\"EndTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"ReasonCode\\": \\"TrainingJobSucceed\\",\\n \\"ReasonMessage\\": \\"KubeDL job runs successfully\\",\\n \\"StartTime\\": \\"2024-07-10T11:49:47Z\\",\\n \\"Status\\": \\"Creating\\"\\n }\\n ],\\n \\"TrainingJobDescription\\": \\"Qwen2 large language model training.\\",\\n \\"TrainingJobId\\": \\"train1layo6js8ra\\",\\n \\"TrainingJobName\\": \\"qwen2-7b\\",\\n \\"UserId\\": \\"123456789\\",\\n \\"WorkspaceId\\": \\"1234\\",\\n \\"RoleArn\\": \\"acs:ram::{accountID}:role/{roleName}\\",\\n \\"IsTempAlgo\\": true,\\n \\"UserVpc\\": {\\n \\"VpcId\\": \\"vpc-abcdef****\\",\\n \\"SwitchId\\": \\"vs-abcdef****\\",\\n \\"SecurityGroupId\\": \\"sg-abcdef****\\",\\n \\"ExtendedCIDRs\\": [\\n \\"192.168.0.1/24\\"\\n ],\\n \\"DefaultRoute\\": \\"eth1\\"\\n },\\n \\"ExperimentConfig\\": {\\n \\"ExperimentId\\": \\"exp-ds9aefia90v\\",\\n \\"ExperimentName\\": \\"large_language_model\\"\\n },\\n \\"Environments\\": {\\n \\"key\\": \\"debug=true\\"\\n },\\n \\"PythonRequirements\\": [\\n \\"torch>=2.2.0\\"\\n ],\\n \\"DlcJobId\\": \\"\\",\\n \\"AssignNodeSpec\\": {\\n \\"EnableAssignNode\\": true,\\n \\"NodeNames\\": \\"\\",\\n \\"AntiAffinityNodeNames\\": \\"\\"\\n }\\n }\\n ],\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'title' => 'Retrieve the training job list',
+ 'changeSet' => [
+ ['createdAt' => '2025-11-25T06:20:13.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-11-18T02:48:42.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-08-07T03:10:37.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2024-02-29T07:27:53.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-12-15T03:13:02.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-10-09T06:51:30.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-09-01T11:22:26.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Response parameters changed'],
+ ['createdAt' => '2023-04-20T02:19:53.000Z', 'description' => 'Response parameters changed, Response parameters changed'],
+ ['createdAt' => '2022-09-26T11:54:38.000Z', 'description' => 'Request parameters changed'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\",\\n \\"TotalCount\\": 23,\\n \\"Workloads\\": [\\n {\\n \\"Status\\": \\"Enqueued\\",\\n \\"QuotaId\\": \\"“quotamtl37ge7gkvdz”\\",\\n \\"UserName\\": \\"\\",\\n \\"WorkloadId\\": \\"dlcxxxx\\",\\n \\"Position\\": 10,\\n \\"GmtEnqueuedTime\\": \\"“2023-06-22T00:00:00Z”\\",\\n \\"Priority\\": 2,\\n \\"GmtCreatedTime\\": \\"\\",\\n \\"WorkloadType\\": \\"dlc\\",\\n \\"WorkspaceId\\": \\"“432524”\\",\\n \\"Resource\\": {\\n \\"CPU\\": \\"100\\",\\n \\"Memory\\": \\"100Gi\\",\\n \\"GPU\\": \\"16\\",\\n \\"GPUType\\": \\"GPU\\"\\n },\\n \\"Code\\": \\"roleMaximumResource\\",\\n \\"Reason\\": \\"Current GPU Limit is 5, limited by Role PAI.AlgoDeveloper\\",\\n \\"UseOversoldResource\\": true,\\n \\"Name\\": \\"test-label-79f5498dd-9qrzs\\",\\n \\"WorkloadStatus\\": \\"PreAllocation\\",\\n \\"WorkloadName\\": \\"\\",\\n \\"UserId\\": \\"\\",\\n \\"GmtPositionModifiedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"CodeType\\": \\"ConfigRule\\",\\n \\"GmtDequeuedTime\\": \\"\\\\\\"2023-06-22T00:00:00Z\\\\\\"\\",\\n \\"WorkspaceName\\": \\"\\",\\n \\"QueueStrategy\\": \\"PaiStrategyIntelligent\\"\\n }\\n ]\\n}","type":"json"}]',
- 'title' => 'ListQuotaWorkloads',
- ],
- 'ListTagResources' => [
- 'summary' => '查标签接口',
- 'path' => '/api/v1/tags',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobs'],
+ ],
],
+ 'ramActions' => [],
+ 'translator' => 'machine',
+ ],
+ 'OperateNode' => [
+ 'path' => '/api/v1/nodes/{NodeId}',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '205684',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '216521',
+ 'abilityTreeNodes' => ['FEATURElearnZO51AS', 'FEATURElearnCMM1R7'],
],
'parameters' => [
[
- 'name' => 'RegionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '地域',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'name' => 'NodeId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The node ID.', 'type' => 'string', 'required' => true, 'example' => 'lingjunxxxx-mgxxx-xxxx', 'title' => ''],
],
[
- 'name' => 'ResourceType',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'title' => '资源类型',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'enumValueTitles' => [
- 'MachineGroup' => 'MachineGroup',
- 'ResourceGroup' => 'ResourceGroup',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group that contains the node.', 'type' => 'string', 'required' => false, 'example' => 'rgaekzbrflewn6jjq', 'title' => ''],
+ 'Operation' => [
+ 'description' => 'The operation to perform.'."\n"
+ ."\n"
+ .'- Cordon: Disables scheduling on the node.'."\n"
+ ."\n"
+ .'- Uncordon: Enables scheduling on the node.'."\n"
+ ."\n"
+ .'- Drain: Evicts pods from the node.',
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['Cordon', 'Uncordon', 'Drain'],
+ 'example' => 'Cordon',
+ 'title' => '',
+ ],
+ 'OperationParameters' => ['title' => '', 'description' => 'The parameter settings for the node operation.', '$ref' => '#/components/schemas/NodeOperationParameters', 'required' => false, 'example' => ''],
],
- 'example' => 'ResourceGroup',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'style' => 'json',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"rgrk6hhjpvio3wvj\\"]',
+ 'description' => 'Schema of Response',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC'],
+ 'NodeId' => ['description' => 'The node ID.', 'type' => 'string', 'example' => 'lingjunxxxx-mgxxx-xxxx', 'title' => ''],
],
- 'required' => false,
+ 'example' => '',
],
],
+ ],
+ 'title' => 'Operate Edge Zone ',
+ 'summary' => 'Use OperateNode to manage nodes.',
+ 'description' => 'Use OperateNode to manage a specified resource node. Supported operations include disabling or enabling scheduling.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"NodeId\\": \\"lingjunxxxx-mgxxx-xxxx\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ScaleQuota' => [
+ 'path' => '/api/v1/quotas/{QuotaId}/action/scale',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Tag',
- 'in' => 'query',
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'abilityTreeCode' => '191196',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'QuotaId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Quota ID.', 'type' => 'string', 'required' => false, 'example' => 'quotamtl37ge7gkvdz', 'title' => ''],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
'style' => 'json',
'schema' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'object',
- 'properties' => [
- 'Key' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestKey',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'TestValue',
- ],
+ 'description' => 'Request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceGroupIds' => [
+ 'description' => 'Resource group IDs.',
+ 'type' => 'array',
+ 'items' => ['description' => 'Resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-aek2nxrabqavely', 'title' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
- 'required' => false,
+ 'Min' => ['description' => 'Scaling Min Quota.'."\n"
+ .'><notice>NodeSpecs specifies the post-scaling specifications and quantity. If the Count in NodeSpecs is less than the current Quota\'s Count, it indicates scale-in. Otherwise, it indicates scale-out.></notice>', '$ref' => '#/components/schemas/ResourceSpec', 'required' => false, 'title' => '', 'example' => ''],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'NextToken',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '下一个查询开始Token',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ad31d453a1f3f23ce0b5e8707e68181f',
+ 'description' => 'Schema of Response',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', 'description' => 'Request ID.', 'type' => 'string', 'example' => 'F2D0392B-D749-5C48-A98A-3FAE5C9444A6'],
+ 'QuotaId' => ['title' => '', 'description' => 'Quota ID.', 'type' => 'string', 'example' => 'quotamtl37ge7gkvdz'],
+ ],
+ 'example' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Scale Out or Scale In Resource Quota',
+ 'summary' => 'Use ScaleQuota to scale resource quotas.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:ScaleQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F2D0392B-D749-5C48-A98A-3FAE5C9444A6\\",\\n \\"QuotaId\\": \\"quotamtl37ge7gkvdz\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'StopTrainingJob' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => false, 'example' => 'train76rcaupa2cz', 'title' => ''],
+ ],
+ ],
'responses' => [
200 => [
'schema' => [
+ 'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9',
- ],
- 'NextToken' => [
- 'title' => '下一个查询开始Token',
- 'description' => '',
- 'type' => 'string',
- 'example' => '3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5',
- ],
- 'TagResources' => [
- 'title' => '资源列表',
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'type' => 'object',
- 'properties' => [
- 'TagKey' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'tagKey',
- ],
- 'TagValue' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'tagValue',
- ],
- 'ResourceId' => [
- 'title' => '资源ID',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'rgqssemfn6vjqqev',
- ],
- 'ResourceType' => [
- 'title' => '资源类型',
- 'description' => '',
- 'type' => 'string',
- 'example' => 'ResourceGroup',
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"CE22EE94-8AFE-53B5-9C2C-B36207B1CBF9\\",\\n \\"NextToken\\": \\"3iEiu84Yk3TwHLzJV.usagf1Ain49xYKGoB6zffsDqPYZQQ5\\",\\n \\"TagResources\\": [\\n {\\n \\"TagKey\\": \\"tagKey\\",\\n \\"TagValue\\": \\"tagValue\\",\\n \\"ResourceId\\": \\"rgqssemfn6vjqqev\\",\\n \\"ResourceType\\": \\"ResourceGroup\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'Stop Training Job',
+ 'summary' => 'Stops a training task.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopTrainingJob'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
'TagResources' => [
- 'summary' => '打标签接口',
+ 'summary' => 'Attaches tags to resources.',
'path' => '/api/v1/tags',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '202685',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
@@ -9757,152 +7518,108 @@
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '',
+ 'description' => 'The request body.',
'type' => 'object',
'properties' => [
- 'ResourceType' => [
- 'title' => '资源类型',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ResourceGroup',
- ],
- 'RegionId' => [
- 'title' => '地域',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cn-hangzhou',
- ],
+ 'ResourceType' => ['title' => '', 'description' => 'The resource type.', 'type' => 'string', 'required' => false, 'example' => 'ResourceGroup'],
+ 'RegionId' => ['title' => '', 'description' => 'The region.', 'type' => 'string', 'required' => false, 'example' => 'cn-hangzhou'],
'ResourceId' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '',
+ 'description' => 'The resource IDs. You can specify up to 50 resource IDs.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"rgqssemfn6vjqqev\\"]',
- ],
+ 'items' => ['description' => 'The ID of the resource.', 'type' => 'string', 'required' => false, 'example' => '[\\"rgqssemfn6vjqqev\\"]', 'title' => ''],
'required' => false,
+ 'example' => '',
],
'Tag' => [
- 'title' => '对应新增标签列表,最多包含20个子项',
- 'description' => '',
+ 'description' => 'The tags to add. You can specify up to 20 tags.',
+ 'title' => '',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The tag information.',
'type' => 'object',
'properties' => [
- 'Key' => [
- 'title' => '标签键',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'key',
- ],
- 'Value' => [
- 'title' => '标签值',
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'value',
- ],
+ 'Key' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'key'],
+ 'Value' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'value'],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
'required' => false,
+ 'example' => '',
],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '42F23B58-3684-5443-848A-8DA81FF99712',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '42F23B58-3684-5443-848A-8DA81FF99712'],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Create and attach tags to a specified list of resources uniformly',
+ 'description' => 'Alibaba Cloud checks the number of existing tags on the resource before attaching a new tag. If the limit is exceeded, an error message is returned.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42F23B58-3684-5443-848A-8DA81FF99712\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
'UntagResources' => [
- 'summary' => '删标签接口',
+ 'summary' => 'Detach tags from a list of specified resources. If a tag is no longer attached to any resource after detachment, Alibaba Cloud deletes it automatically.',
'path' => '/api/v1/tags',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'abilityTreeCode' => '205683',
- 'abilityTreeNodes' => [
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'title' => '地域',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['title' => '', 'description' => 'Region', 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ResourceGroup',
- ],
+ 'schema' => ['title' => '', 'description' => 'Resource type', 'type' => 'string', 'required' => true, 'example' => 'ResourceGroup'],
],
[
'name' => 'ResourceId',
'in' => 'query',
'style' => 'json',
'schema' => [
- 'title' => '资源ID,最多 50个子项',
- 'description' => '',
+ 'description' => 'Resource IDs. Maximum: 50 items.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '[\\"rga2yvifxyicn1rq\\"]',
- ],
+ 'items' => ['description' => 'List of resources.', 'type' => 'string', 'required' => false, 'example' => '[\\"rga2yvifxyicn1rq\\"]', 'title' => ''],
'required' => true,
+ 'example' => '',
],
],
[
@@ -9910,717 +7627,1294 @@
'in' => 'query',
'style' => 'json',
'schema' => [
- 'title' => '对应标签键列表,最多包含20个子项',
- 'description' => '',
+ 'description' => 'List of tag keys. Maximum: 20 items.',
+ 'title' => '',
'type' => 'array',
- 'items' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'tagKey',
- ],
+ 'items' => ['description' => 'Tag value for the resource. Valid values for N: 1 to 20. You can specify an empty string. Maximum length: 128 characters. Cannot start with `aliyun` or `acs:`. Cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'tagKey', 'title' => ''],
'required' => false,
+ 'example' => '',
],
],
[
'name' => 'All',
'in' => 'query',
- 'schema' => [
- 'title' => '是否全部删除,只针对tags为空时有效。取值范围: true false True False 默认是 false',
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- ],
+ 'schema' => ['title' => '', 'description' => 'Whether to detach all tags from the resource. Valid values:'."\n"
+ ."\n"
+ .'- **true**: Detach all tags from the resource.'."\n"
+ ."\n"
+ .'- **false**: Do not detach all tags from the resource.'."\n"
+ ."\n"
+ .'> * Default value: false.'."\n"
+ ."\n"
+ .'- If you specify both TagKey and this parameter, this parameter is ignored.', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
],
'responses' => [
200 => [
'schema' => [
+ 'description' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD',
- ],
+ 'RequestId' => ['description' => 'Common parameter. Each request has a unique ID. Use this ID to troubleshoot and locate issues.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
+ 'title' => 'Detach tags from the specified resource list in a unified manner',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'ListNodes' => [
- 'summary' => '获取资源节点列表',
- 'path' => '/api/v1/nodes',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateAlgorithm' => [
+ 'summary' => 'Updates an algorithm.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '191226',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- 'FEATURElearn1N0SUT',
- ],
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
],
'parameters' => [
[
- 'name' => 'ResourceGroupIds',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg69rj0leslwdnbe',
- ],
- ],
- [
- 'name' => 'QuotaId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quotamtl37ge7gkvdz',
- ],
- ],
- [
- 'name' => 'NodeTypes',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ecs.c6.xlarge',
- ],
- ],
- [
- 'name' => 'AcceleratorType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CPU',
- ],
- ],
- [
- 'name' => 'GPUType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T4',
- ],
- ],
- [
- 'name' => 'NodeStatuses',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ready',
- ],
- ],
- [
- 'name' => 'OrderStatuses',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Ready',
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '2',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'GmtCreateTime',
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'desc',
- ],
+ 'name' => 'AlgorithmDescription',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The algorithm description.', 'type' => 'string', 'example' => 'Large language model training.', 'required' => false, 'title' => ''],
],
[
- 'name' => 'Verbose',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'false',
- 'default' => 'false',
- ],
+ 'name' => 'DisplayName',
+ 'in' => 'formData',
+ 'schema' => ['description' => 'The display name of the algorithm.', 'type' => 'string', 'required' => false, 'example' => 'LLM Train', 'title' => ''],
],
[
- 'name' => 'NodeNames',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'lingjxxxx',
- ],
+ 'name' => 'AlgorithmId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-sidjc8134hv', 'title' => ''],
],
- [
- 'name' => 'HyperNode',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'type' => 'string',
+ 'description' => 'Schema of Response',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E7C42CC7-2E85-508A-84F4-923B605FD10F'],
+ 'AlgorithmId' => ['description' => 'The algorithm ID.', 'type' => 'string', 'example' => 'algo-sidjc8134hv', 'title' => ''],
+ ],
+ 'example' => '',
],
],
- [
- 'name' => 'CliqueID',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E7C42CC7-2E85-508A-84F4-923B605FD10F\\",\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\"\\n}","type":"json"}]',
+ 'title' => 'Update algorithm',
+ 'changeSet' => [
+ ['createdAt' => '2023-05-24T09:46:46.000Z', 'description' => 'Request parameters changed'],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlgorithm'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'FilterByQuotaId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'quotamtl37ge7gkvdz',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'translator' => 'manual',
+ ],
+ 'UpdateAlgorithmVersion' => [
+ 'summary' => 'Updates an algorithm version.',
+ 'path' => '/api/v1/algorithms/{AlgorithmId}/versions/{AlgorithmVersion}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'FilterByResourceGroupIds',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rg69rj0leslwdnbe',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/x-www-form-urlencoded'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATURElearnP1X97H'],
+ ],
+ 'parameters' => [
[
- 'name' => 'MachineGroupIds',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'name' => 'AlgorithmId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The algorithm ID.', 'type' => 'string', 'required' => false, 'example' => 'algo-sidjc8134hv', 'title' => ''],
],
[
- 'name' => 'ReasonCodes',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'name' => 'AlgorithmVersion',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The algorithm version.', 'type' => 'string', 'required' => false, 'example' => 'v0.0.1', 'title' => ''],
],
[
- 'name' => 'HyperZone',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'name' => 'AlgorithmSpec',
+ 'in' => 'formData',
+ 'style' => 'json',
+ 'schema' => ['description' => 'The details of the algorithm.', '$ref' => '#/components/schemas/AlgorithmSpec', 'required' => false, 'title' => '', 'example' => ''],
],
- [
- 'name' => 'AvailabilityZone',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'type' => 'string',
+ 'description' => 'The response schema.',
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'AlgorithmId' => ['description' => 'The algorithm ID.', 'type' => 'string', 'example' => 'algo-sidjc8134hv', 'title' => ''],
+ 'AlgorithmVersion' => ['description' => 'The algorithm version.', 'type' => 'string', 'example' => 'v0.1.0', 'title' => ''],
+ ],
+ 'example' => '',
],
],
- [
- 'name' => 'PaymentType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ ],
+ 'title' => 'Update Algorithm Version',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlgorithmVersion'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'OrderInstanceIds',
- 'in' => 'query',
- 'schema' => [
- 'title' => '订单Id信息',
- 'type' => 'string',
- 'example' => '260590501560397',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AlgorithmId\\": \\"algo-sidjc8134hv\\",\\n \\"AlgorithmVersion\\": \\"v0.1.0\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ 'UpdateQuota' => [
+ 'path' => '/api/v1/quotas/{QuotaId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'WorkspaceId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191208',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
+ ],
+ 'parameters' => [
[
- 'name' => 'HealthRate',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'title' => '节点的健康率(健康节点的占比)',
- 'type' => 'object',
- 'properties' => [
- 'operation' => [
- 'title' => '可选值ge, gte, eq, lte, lt',
- 'type' => 'string',
- ],
- 'value' => [
- 'type' => 'integer',
- 'format' => 'int32',
- ],
- ],
- ],
+ 'name' => 'QuotaId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'Quota ID。', 'type' => 'string', 'required' => false, 'example' => 'quota-20210126170216-mtl37ge7gkvdz', 'title' => ''],
],
[
- 'name' => 'HealthCount',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
'style' => 'json',
'schema' => [
- 'title' => '健康的节点数',
+ 'description' => 'The request body.',
'type' => 'object',
'properties' => [
- 'operation' => [
- 'title' => '可选值ge, gte, eq, lte, lt',
- 'type' => 'string',
- ],
- 'value' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'Description' => ['description' => 'The description of the resource quota.', 'type' => 'string', 'required' => false, 'example' => 'this is a test quota', 'title' => ''],
+ 'Labels' => [
+ 'description' => 'The list of user-defined labels. This is a full update.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The user-defined label.', '$ref' => '#/components/schemas/Label', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
+ 'QueueStrategy' => ['description' => 'The queuing strategy for jobs in the quota.', 'type' => 'string', 'required' => false, 'example' => 'PaiStrategyIntelligent', 'title' => ''],
+ 'QuotaConfig' => ['description' => 'The resource quota configuration.', '$ref' => '#/components/schemas/QuotaConfig', 'required' => false, 'title' => '', 'example' => ''],
+ 'QuotaName' => ['description' => 'The resource quota name.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
+ 'PropagateDefaultGPUDriver' => ['type' => 'boolean', 'description' => '', 'title' => '', 'example' => ''],
],
- ],
- ],
- [
- 'name' => 'LayoutMode',
- 'in' => 'query',
- 'schema' => [
- 'title' => '布局模式',
- 'type' => 'string',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
+ 'title' => '',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => '请求Id',
- 'description' => '',
- 'type' => 'string',
- 'example' => '473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E',
- ],
- 'Nodes' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/Node',
- ],
- ],
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '23',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC'],
+ 'QuotaId' => ['title' => '', 'description' => 'Quota ID。', 'type' => 'string', 'example' => 'quota-20210126170216-mtl37ge7gkvdz'],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E\\",\\n \\"Nodes\\": [\\n {\\n \\"CreatorId\\": \\"\\",\\n \\"NodeName\\": \\"\\",\\n \\"NodeType\\": \\"\\",\\n \\"AcceleratorType\\": \\"\\",\\n \\"CPU\\": \\"\\",\\n \\"Memory\\": \\"\\",\\n \\"GPU\\": \\"\\",\\n \\"GPUType\\": \\"\\",\\n \\"GPUMemory\\": \\"\\",\\n \\"NodeStatus\\": \\"\\",\\n \\"ReasonCode\\": \\"\\",\\n \\"ReasonMessage\\": \\"\\",\\n \\"OrderStatus\\": \\"\\",\\n \\"ResourceGroupId\\": \\"\\",\\n \\"ResourceGroupName\\": \\"\\",\\n \\"MachineGroupId\\": \\"\\",\\n \\"GmtCreateTime\\": \\"\\",\\n \\"GmtModifiedTime\\": \\"\\",\\n \\"GmtExpiredTime\\": \\"\\",\\n \\"IsBound\\": true,\\n \\"BoundQuotas\\": [\\n {\\n \\"QuotaId\\": \\"quota12345\\",\\n \\"QuotaName\\": \\"dlc-quota\\"\\n }\\n ],\\n \\"RequestCPU\\": \\"\\",\\n \\"RequestMemory\\": \\"\\",\\n \\"RequestGPU\\": \\"\\",\\n \\"LimitCPU\\": \\"\\",\\n \\"LimitMemory\\": \\"\\",\\n \\"LimitGPU\\": \\"\\",\\n \\"PodNum\\": 0,\\n \\"WorkloadNum\\": 0,\\n \\"Users\\": [\\n {\\n \\"UserId\\": \\"\\",\\n \\"UserName\\": \\"\\"\\n }\\n ],\\n \\"HyperZone\\": \\"\\",\\n \\"AvailabilityZone\\": \\"\\",\\n \\"AllocatableCPU\\": \\"\\",\\n \\"AllocatableMemory\\": \\"\\",\\n \\"SystemReservedCPU\\": \\"\\",\\n \\"SystemReservedMemory\\": \\"\\",\\n \\"AncestorQuotaWorkloadNum\\": 0,\\n \\"SelfQuotaWorkloadNum\\": 0,\\n \\"DescendantQuotaWorkloadNum\\": 0,\\n \\"DiskPL\\": \\"\\",\\n \\"DiskCapacity\\": 0,\\n \\"SubNodes\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"TotalCount\\": 23\\n}","type":"json"}]',
- 'title' => 'ListNodes',
- ],
- 'GetSpotPriceHistory' => [
- 'summary' => '获取抢占式实例历史价格',
- 'path' => '/api/v1/spots/{InstanceType}/pricehistory',
- 'methods' => [
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Update resource quota configuration',
+ 'summary' => 'Updates the information of a resource quota.',
+ 'changeSet' => [
+ ['createdAt' => '2024-05-23T02:06:11.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2024-05-06T05:44:37.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2023-12-13T06:59:20.000Z', 'description' => 'Request parameters changed'],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"QuotaId\\": \\"quota-20210126170216-mtl37ge7gkvdz\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateResourceGroup' => [
+ 'summary' => 'Use UpdateResourceGroup to update resource group information.',
+ 'path' => '/api/v1/resources/{ResourceGroupID}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
- 'abilityTreeCode' => '213678',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- ],
+ 'abilityTreeCode' => '143268',
+ 'abilityTreeNodes' => ['FEATURElearn1N0SUT'],
],
'parameters' => [
[
- 'name' => 'InstanceType',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ml.gu7xf.8xlarge-gu108',
- ],
- ],
- [
- 'name' => 'SpotDuration',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '0',
- ],
- ],
- [
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-12-26T09:36:46Z',
- ],
- ],
- [
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '2024-12-30T09:36:46Z',
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'GmtCreatedTime' => 'GmtCreatedTime',
+ 'description' => 'The request body.',
+ 'type' => 'object',
+ 'properties' => [
+ 'UserVpc' => ['description' => 'Information about the VPC connected to the resource group.', '$ref' => '#/components/schemas/UserVpc', 'required' => false, 'title' => '', 'example' => ''],
+ 'Unbind' => ['description' => 'Whether to detach the resource group from the currently connected VPC.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ 'Name' => ['description' => 'The name of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'prophet', 'title' => ''],
+ 'Description' => ['description' => 'The description of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'test_new_havpn_tf', 'title' => ''],
],
- 'example' => 'GmtCreatedTime',
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'enumValueTitles' => [
- 'asc' => 'asc',
- 'desc' => 'desc',
- ],
- 'example' => 'asc',
- ],
+ 'name' => 'ResourceGroupID',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'required' => false, 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => '',
+ 'description' => 'Schema of Response',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => '8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7',
- ],
- 'SpotPriceHistory' => [
- 'description' => '',
- 'type' => 'array',
- 'items' => [
- 'description' => '',
- '$ref' => '#/components/schemas/SpotPriceItem',
- ],
- ],
- 'TotalCount' => [
- 'description' => '',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '194',
- ],
+ 'requestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'FFB1D4B4-B253-540A-9B3B-AA711C48A1B7'],
+ 'ResourceGroupID' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rgf0zhfqn1d4ity2', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => 'Update Resource Group',
+ 'changeSet' => [
+ ['createdAt' => '2024-01-04T03:16:22.000Z', 'description' => 'Request parameters changed'],
+ ['createdAt' => '2022-06-29T07:14:57.000Z', 'description' => 'OpenAPI offline'],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8BDA4440-DD3C-5F4B-BBDD-94A9CE1E75C7\\",\\n \\"SpotPriceHistory\\": [\\n {\\n \\"ZoneId\\": \\"cn-wulanchabu-a\\",\\n \\"InstanceType\\": \\"ml.gu8xf.8xlarge-gu108\\",\\n \\"SpotDiscount\\": 0.1,\\n \\"Timestamp\\": \\"2024-01-17T06:00:00Z\\"\\n }\\n ],\\n \\"TotalCount\\": 194\\n}","type":"json"}]',
- ],
- 'OperateNode' => [
- 'summary' => '您可以通过OperateNode对节点进行操作',
- 'path' => '/api/v1/nodes/{NodeId}',
- 'methods' => [
- 'post',
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceGroup'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"FFB1D4B4-B253-540A-9B3B-AA711C48A1B7\\",\\n \\"ResourceGroupID\\": \\"rgf0zhfqn1d4ity2\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'UpdateTrainingJobLabels' => [
+ 'path' => '/api/v1/trainingjobs/{TrainingJobId}/labels',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '216521',
- 'abilityTreeNodes' => [
- 'FEATURElearnZO51AS',
- 'FEATURElearnCMM1R7',
- ],
- ],
+ 'systemTags' => [],
'parameters' => [
[
- 'name' => 'NodeId',
- 'in' => 'path',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'lingjunxxxx-mgxxx-xxxx',
- ],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
- 'description' => '',
+ 'description' => 'The request body parameters.',
'type' => 'object',
'properties' => [
- 'ResourceGroupId' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'rgaekzbrflewn6jjq',
- ],
- 'Operation' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Cordon',
- 'enum' => [
- 'Cordon',
- 'Uncordon',
- 'Drain',
+ 'Labels' => [
+ 'description' => 'The list of labels.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'A label.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => ['description' => 'The tag key.', 'type' => 'string', 'required' => false, 'example' => 'RootModelID', 'title' => ''],
+ 'Value' => ['description' => 'The tag value.', 'type' => 'string', 'required' => false, 'example' => 'model-ad8cv770kl', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
],
- ],
- 'OperationParameters' => [
- 'title' => '节点操作参数配置'."\n",
- 'description' => '',
'required' => false,
- '$ref' => '#/components/schemas/NodeOperationParameters',
+ 'title' => '',
+ 'example' => '',
],
],
'required' => false,
+ 'title' => '',
+ 'example' => '',
],
],
+ [
+ 'name' => 'TrainingJobId',
+ 'in' => 'path',
+ 'schema' => ['description' => 'The ID of the training task.', 'type' => 'string', 'required' => true, 'example' => 'train76rcaupa2cz', 'title' => ''],
+ ],
],
'responses' => [
200 => [
'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => 'Response schema',
+ 'title' => '',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '96496E6E-00B4-5F55-80F6-1844FA9E92DC',
- ],
- 'NodeId' => [
- 'description' => '',
- 'type' => 'string',
- 'example' => 'lingjunxxxx-mgxxx-xxxx',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F082BD0D-21E1-5F9B-81A0-AB07485B03CD', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"96496E6E-00B4-5F55-80F6-1844FA9E92DC\\",\\n \\"NodeId\\": \\"lingjunxxxx-mgxxx-xxxx\\"\\n}","type":"json"}]',
+ 'title' => 'Update Training Job Labels',
+ 'summary' => 'Updates the labels of a training task.',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrainingJobLabels'],
+ ],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F082BD0D-21E1-5F9B-81A0-AB07485B03CD\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
],
'endpoints' => [
+ ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pai-vpc.cn-wulanchabu.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-beijing.aliyuncs.com', 'endpoint' => 'pai.cn-beijing.aliyuncs.com', 'vpc' => 'pai-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-shanghai.aliyuncs.com', 'endpoint' => 'pai.cn-shanghai.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-hongkong.aliyuncs.com', 'endpoint' => 'pai.cn-hongkong.aliyuncs.com', 'vpc' => 'pai-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-northeast-2.aliyuncs.com', 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com', 'vpc' => 'pai-vpc.ap-northeast-2.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com', 'vpc' => 'pai-vpc.ap-northeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-guangzhou.aliyuncs.com', 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com', 'vpc' => 'pai-vpc.cn-guangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-southeast-3.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-3.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-5.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com', 'vpc' => 'pai-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-8', 'regionName' => 'Malaysia (Johor)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'pai.ap-southeast-8.aliyuncs.com', 'endpoint' => 'pai.ap-southeast-8.aliyuncs.com', 'vpc' => 'pai-vpc.ap-southeast-8.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai.us-east-1.aliyuncs.com', 'endpoint' => 'pai.us-east-1.aliyuncs.com', 'vpc' => 'pai-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai.us-west-1.aliyuncs.com', 'endpoint' => 'pai.us-west-1.aliyuncs.com', 'vpc' => 'pai-vpc.us-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'pai.eu-central-1.aliyuncs.com', 'endpoint' => 'pai.eu-central-1.aliyuncs.com', 'vpc' => 'pai-vpc.eu-central-1.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'pai.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'pai-vpc.cn-shanghai-finance-1.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => 'DMS1000001', 'message' => 'Request failed.', 'http_code' => 500, 'description' => ''],
+ ],
+ 'changeSet' => [
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2025-11-25T06:20:33.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'GetQuota'],
+ ],
+ 'createdAt' => '2025-11-12T09:21:36.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateQuota'],
+ ['description' => 'Response parameters changed', 'api' => 'GetQuota'],
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotas'],
+ ],
+ 'createdAt' => '2025-11-06T13:03:55.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListNodes'],
+ ],
+ 'createdAt' => '2025-11-04T03:55:37.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListNodes'],
+ ],
+ 'createdAt' => '2025-04-16T09:53:08.000Z',
+ 'description' => '',
+ ],
[
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'pai.cn-beijing.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListResourceGroupMachineGroups'],
+ ],
+ 'createdAt' => '2025-03-19T07:07:25.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'pai.cn-wulanchabu.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListNodes'],
+ ],
+ 'createdAt' => '2025-03-13T10:38:48.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'pai.cn-hangzhou.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotaWorkloads'],
+ ],
+ 'createdAt' => '2025-02-19T12:19:47.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'pai.cn-shanghai.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2024-11-18T02:49:00.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'pai.cn-shenzhen.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobMetrics'],
+ ],
+ 'createdAt' => '2024-11-06T02:28:55.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'pai.cn-hongkong.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2024-10-17T03:44:21.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'pai.ap-southeast-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'DeleteAlgorithmVersion'],
+ ],
+ 'createdAt' => '2024-09-25T02:19:42.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-3',
- 'endpoint' => 'pai.ap-southeast-3.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ],
+ 'createdAt' => '2024-09-23T07:12:46.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'pai.ap-southeast-5.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2024-08-07T03:10:56.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'pai.eu-central-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobInstanceMetrics'],
+ ],
+ 'createdAt' => '2024-08-06T02:04:52.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-guangzhou',
- 'endpoint' => 'pai.cn-guangzhou.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2024-07-19T02:50:28.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-northeast-1',
- 'endpoint' => 'pai.ap-northeast-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobOutputModels'],
+ ],
+ 'createdAt' => '2024-07-11T04:11:22.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'us-east-1',
- 'endpoint' => 'pai.us-east-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobOutputModels'],
+ ],
+ 'createdAt' => '2024-07-11T03:59:08.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'us-west-1',
- 'endpoint' => 'pai.us-west-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotas'],
+ ],
+ 'createdAt' => '2024-07-04T13:23:12.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-northeast-2',
- 'endpoint' => 'pai.ap-northeast-2.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ],
+ 'createdAt' => '2024-07-03T03:12:41.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'cn-shanghai-finance-1',
- 'endpoint' => 'pai.cn-shanghai-finance-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetMachineGroup'],
+ ['description' => 'Request parameters changed', 'api' => 'ListResourceGroupMachineGroups'],
+ ],
+ 'createdAt' => '2024-05-23T02:15:19.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'us-southeast-1',
- 'endpoint' => 'pai.us-southeast-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'UpdateQuota'],
+ ],
+ 'createdAt' => '2024-05-23T02:06:24.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'ap-southeast-7',
- 'endpoint' => 'pai.ap-southeast-7.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2024-05-09T10:31:32.000Z',
+ 'description' => '',
],
[
- 'regionId' => 'me-east-1',
- 'endpoint' => 'pai.me-east-1.aliyuncs.com',
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'GetQuota'],
+ ],
+ 'createdAt' => '2024-05-09T05:27:58.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotas'],
+ ],
+ 'createdAt' => '2024-05-09T02:33:27.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'UpdateQuota'],
+ ],
+ 'createdAt' => '2024-05-06T05:44:59.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListQuotas'],
+ ],
+ 'createdAt' => '2024-03-19T09:18:19.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2024-03-14T08:13:00.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2024-02-29T07:28:02.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListQuotas'],
+ ],
+ 'createdAt' => '2024-01-24T08:33:31.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateResourceGroup'],
+ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'GetResourceGroup'],
+ ['description' => 'Request parameters changed, Response parameters changed', 'api' => 'GetResourceGroupMachineGroup'],
+ ['description' => 'Request parameters changed', 'api' => 'UpdateResourceGroup'],
+ ],
+ 'createdAt' => '2024-01-04T03:16:31.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2023-12-26T10:28:24.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2023-12-15T03:13:16.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'UpdateQuota'],
+ ],
+ 'createdAt' => '2023-12-13T06:59:30.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2023-12-07T04:21:37.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListTrainingJobLogs'],
+ ],
+ 'createdAt' => '2023-10-13T09:11:56.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2023-10-09T06:51:36.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ],
+ 'createdAt' => '2023-09-12T03:19:09.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2023-09-01T11:22:32.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetMachineGroup'],
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroupMachineGroup'],
+ ],
+ 'createdAt' => '2023-08-30T07:23:37.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ],
+ 'createdAt' => '2023-08-22T03:17:23.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2023-08-15T11:50:59.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateAlgorithm'],
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetAlgorithm'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'ListAlgorithms'],
+ ['description' => 'Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ['description' => 'Request parameters changed', 'api' => 'UpdateAlgorithm'],
+ ],
+ 'createdAt' => '2023-05-24T09:46:53.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateResourceGroup'],
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroup'],
+ ['description' => 'Request parameters changed', 'api' => 'ListResourceGroups'],
+ ],
+ 'createdAt' => '2023-05-11T03:07:06.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListResourceGroups'],
+ ],
+ 'createdAt' => '2023-04-26T12:57:03.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed, Response parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2023-04-20T02:19:58.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroup'],
+ ],
+ 'createdAt' => '2023-04-10T09:57:42.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroup'],
+ ],
+ 'createdAt' => '2023-04-06T05:56:48.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateResourceGroup'],
+ ['description' => 'Request parameters changed', 'api' => 'GetResourceGroup'],
+ ],
+ 'createdAt' => '2023-04-04T06:45:10.000Z',
+ 'description' => '',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateTrainingJob'],
+ ],
+ 'createdAt' => '2022-12-06T12:13:04.000Z',
+ 'description' => 'Support Temporary Algorithm.',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListTrainingJobLogs'],
+ ],
+ 'createdAt' => '2022-12-05T12:21:21.000Z',
+ 'description' => 'Modify ListTrainingJobLogs.',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'ListTrainingJobs'],
+ ],
+ 'createdAt' => '2022-09-26T11:55:02.000Z',
+ 'description' => '修改OpenApi可见性',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2022-09-24T14:00:23.000Z',
+ 'description' => 'Add Training Job Url.',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2022-09-14T12:39:10.000Z',
+ 'description' => '增加出参Instances(job实例)',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ['description' => 'Response parameters changed', 'api' => 'GetTrainingJob'],
+ ],
+ 'createdAt' => '2022-09-14T12:28:39.000Z',
+ 'description' => '添加算法id参数',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'ListAlgorithms'],
+ ],
+ 'createdAt' => '2022-09-09T09:37:46.000Z',
+ 'description' => 'fix error.',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI offline', 'api' => 'GetNodeMetrics'],
+ ],
+ 'createdAt' => '2022-09-02T14:39:22.000Z',
+ 'description' => 'd',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroup'],
+ ],
+ 'createdAt' => '2022-08-03T03:11:58.000Z',
+ 'description' => '更新超时threshold',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Response parameters changed', 'api' => 'GetResourceGroupMachineGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetResourceGroupRequest'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetResourceGroupTotal'],
+ ],
+ 'createdAt' => '2022-07-21T07:16:25.000Z',
+ 'description' => 'dashboard相关的API发布上线',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'Request parameters changed', 'api' => 'CreateResourceGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'UpdateResourceGroup'],
+ ],
+ 'createdAt' => '2022-07-01T08:14:21.000Z',
+ 'description' => 'UpdateResourceGroup',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI offline', 'api' => 'CreateAlgorithm'],
+ ['description' => 'OpenAPI offline', 'api' => 'CreateAlgorithmVersion'],
+ ['description' => 'OpenAPI offline', 'api' => 'CreateTrainingJob'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetAlgorithm'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetAlgorithmVersion'],
+ ['description' => 'OpenAPI offline', 'api' => 'ListAlgorithms'],
+ ['description' => 'OpenAPI offline', 'api' => 'ListAlgorithmVersions'],
+ ['description' => 'OpenAPI offline', 'api' => 'ListTrainingJobLogs'],
+ ['description' => 'OpenAPI offline', 'api' => 'ListTrainingJobMetrics'],
+ ],
+ 'createdAt' => '2022-04-27T11:13:17.000Z',
+ 'description' => 'PAI基于云原生推出了全新的算法训练服务,基于此API支持用户直接调用PAI提供的内置算法,创建训练任务、查看任务的详情、运行日志、算法的Metrics等',
+ ],
+ [
+ 'apis' => [
+ ['description' => 'OpenAPI offline', 'api' => 'CreateResourceGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'DeleteMachineGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'DeleteResourceGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetMachineGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetResourceGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'GetResourceGroupMachineGroup'],
+ ['description' => 'OpenAPI offline', 'api' => 'ListResourceGroupMachineGroups'],
+ ],
+ 'createdAt' => '2022-02-25T03:44:54.000Z',
+ 'description' => 'resource service openAPI第一次上线',
+ ],
+ ],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobInstanceMetrics'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateResourceGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetMachineGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'StopTrainingJob'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlgorithmVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlgorithm'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTrainingJob'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateResourceGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTrainingJobLabels'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupTotal'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobs'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrainingJob'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupMachineGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetNodeMetrics'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlgorithms'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroupRequest'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobInstanceEvents'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrainingJobLatestMetrics'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlgorithmVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlgorithm'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobLogs'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTrainingJobLabels'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetResourceGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceGroupMachineGroups'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteResourceGroupMachineGroup'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetUserViewMetrics'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobMetrics'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourceGroups'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateAlgorithm'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListAlgorithmVersions'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetAlgorithm'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTrainingJobEvents'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateAlgorithmVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteAlgorithmVersion'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteMachineGroup'],
+ ['threshold' => '500', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTrainingJob'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'PaiStudio',
+ 'productName' => 'Platform for AI',
+ 'ramCodes' => ['pai', 'paidesigner', 'paiartlab'],
+ 'ramLevel' => 'RESOURCE',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'ListQuotas',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListQuotas',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAlgorithm',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateResourceGroup',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListResourceGroupMachineGroups',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListResourceGroupMachineGroups',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAlgorithmVersion',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetQuota',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:GetQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetResourceGroupMachineGroup',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetResourceGroupMachineGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'MachineGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}/machinegroup/{#MachineGroupId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAlgorithms',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListAlgorithms',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteQuota',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetAlgorithm',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'pai:GetAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAlgorithmVersion',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListResourceGroups',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListResourceGroups',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteResourceGroup',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateResourceGroup',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAlgorithmVersion',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteAlgorithm',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'pai:DeleteAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateQuota',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:CreateQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ScaleQuota',
+ 'description' => '',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'pai:ScaleQuota',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateAlgorithm',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'pai:UpdateAlgorithm',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListAlgorithmVersions',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'pai:ListAlgorithmVersions',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateAlgorithmVersion',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'pai:CreateAlgorithmVersion',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'PaiStudio', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'ResourceGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}'],
+ ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:paiplugin:{#regionId}:{#accountId}:quota/{#QuotaId}'],
+ ['validationType' => 'always', 'resourceType' => 'MachineGroup', 'arn' => 'acs:pai:{#regionId}:{#accountId}:resourcegroup/{#ResourceGroupId}/machinegroup/{#MachineGroupId}'],
+ ['validationType' => 'always', 'resourceType' => 'Quota', 'arn' => 'acs:pai:{#regionId}:{#accountId}:quota'],
],
],
];