summaryrefslogtreecommitdiff
path: root/data/pai-dsw/2022-01-01/api-docs.php
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 16:56:35 +0800
commit814ec806c22e2782390af5a4a05cb6281aabd5e1 (patch)
tree29e1692a067b17e56886a7d246d2b9521b2b7777 /data/pai-dsw/2022-01-01/api-docs.php
parenteccd5cd5a067f5659982685afdeea209b1888efb (diff)
downloadafterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.tar.gz
afterglow-metadata-814ec806c22e2782390af5a4a05cb6281aabd5e1.zip
update APIs 20260712
Diffstat (limited to 'data/pai-dsw/2022-01-01/api-docs.php')
-rw-r--r--data/pai-dsw/2022-01-01/api-docs.php3090
1 files changed, 1139 insertions, 1951 deletions
diff --git a/data/pai-dsw/2022-01-01/api-docs.php b/data/pai-dsw/2022-01-01/api-docs.php
index 9f9d398..9ef8994 100644
--- a/data/pai-dsw/2022-01-01/api-docs.php
+++ b/data/pai-dsw/2022-01-01/api-docs.php
@@ -1,10 +1,6 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'pai-dsw',
- 'version' => '2022-01-01',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'pai-dsw', 'version' => '2022-01-01'],
'components' => [
'schemas' => [
'BandwidthLimit' => [
@@ -12,81 +8,44 @@
'properties' => [
'EgressWhitelists' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
- ],
- 'IngressRate' => [
- 'type' => 'string',
- ],
- 'EgressRate' => [
- 'type' => 'string',
+ 'items' => ['type' => 'string'],
],
+ 'IngressRate' => ['type' => 'string'],
+ 'EgressRate' => ['type' => 'string'],
'IngressWhitelists' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
],
],
'CredentialConfig' => [
'type' => 'object',
'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- ],
- 'AliyunEnvRoleKey' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Enable' => ['type' => 'boolean'],
+ 'AliyunEnvRoleKey' => ['type' => 'string', 'required' => false],
'Configs' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Type' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'Key' => ['type' => 'string', 'required' => true],
+ 'Type' => ['type' => 'string', 'required' => true],
'Roles' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
- 'RoleArn' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'RoleType' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'AssumeRoleFor' => [
- 'type' => 'string',
- ],
- 'Policy' => [
- 'type' => 'string',
- ],
+ 'RoleArn' => ['type' => 'string', 'required' => true],
+ 'RoleType' => ['type' => 'string', 'required' => true],
+ 'AssumeRoleFor' => ['type' => 'string'],
+ 'Policy' => ['type' => 'string'],
'UserInfo' => [
'type' => 'object',
'properties' => [
- 'Id' => [
- 'type' => 'string',
- ],
- 'Type' => [
- 'type' => 'string',
- ],
- 'AccessKeyId' => [
- 'type' => 'string',
- ],
- 'SecurityToken' => [
- 'type' => 'string',
- ],
+ 'Id' => ['type' => 'string'],
+ 'Type' => ['type' => 'string'],
+ 'AccessKeyId' => ['type' => 'string'],
+ 'SecurityToken' => ['type' => 'string'],
],
],
],
@@ -102,194 +61,140 @@
'properties' => [
'SubCategories' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DemoCategory',
- ],
- ],
- 'CategoryName' => [
- 'type' => 'string',
- ],
- 'CategoryCode' => [
- 'type' => 'string',
- ],
- 'Order' => [
- 'type' => 'integer',
- 'format' => 'int64',
+ 'items' => ['$ref' => '#/components/schemas/DemoCategory'],
],
+ 'CategoryName' => ['type' => 'string'],
+ 'CategoryCode' => ['type' => 'string'],
+ 'Order' => ['type' => 'integer', 'format' => 'int64'],
],
],
'DynamicMount' => [
'type' => 'object',
'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- ],
+ 'Enable' => ['type' => 'boolean'],
'MountPoints' => [
'type' => 'array',
- 'items' => [
- '$ref' => '#/components/schemas/DynamicMountPoint',
- ],
+ 'items' => ['$ref' => '#/components/schemas/DynamicMountPoint'],
],
],
],
'DynamicMountPoint' => [
'type' => 'object',
'properties' => [
- 'RootPath' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Options' => [
- 'type' => 'string',
- ],
+ 'RootPath' => ['type' => 'string', 'required' => true],
+ 'Options' => ['type' => 'string'],
],
],
'ForwardInfo' => [
'type' => 'object',
'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- ],
- 'ContainerName' => [
- 'type' => 'string',
- ],
- 'ForwardPort' => [
- 'type' => 'string',
- ],
- 'NatGatewayId' => [
- 'type' => 'string',
- ],
- 'EipAllocationId' => [
- 'type' => 'string',
- ],
- 'SSHPublicKey' => [
- 'type' => 'string',
- ],
- 'Name' => [
- 'type' => 'string',
- ],
- 'ExternalPort' => [
- 'type' => 'string',
- ],
+ 'Enable' => ['type' => 'boolean'],
+ 'ContainerName' => ['type' => 'string'],
+ 'ForwardPort' => ['type' => 'string'],
+ 'NatGatewayId' => ['type' => 'string'],
+ 'EipAllocationId' => ['type' => 'string'],
+ 'SSHPublicKey' => ['type' => 'string'],
+ 'Name' => ['type' => 'string'],
+ 'ExternalPort' => ['type' => 'string'],
'AccessType' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
+ 'NlbGatewayId' => ['type' => 'string'],
],
],
'ForwardInfoResponse' => [
'type' => 'object',
'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- ],
- 'ContainerName' => [
- 'type' => 'string',
- ],
- 'ForwardPort' => [
- 'type' => 'string',
- ],
- 'NatGatewayId' => [
- 'type' => 'string',
- ],
- 'EipAllocationId' => [
- 'type' => 'string',
- ],
- 'SSHPublicKey' => [
- 'type' => 'string',
- ],
+ 'Enable' => ['type' => 'boolean'],
+ 'ContainerName' => ['type' => 'string'],
+ 'ForwardPort' => ['type' => 'string'],
+ 'NatGatewayId' => ['type' => 'string'],
+ 'EipAllocationId' => ['type' => 'string'],
+ 'SSHPublicKey' => ['type' => 'string'],
'ConnectInfo' => [
'type' => 'object',
'properties' => [
- 'Phase' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
+ 'Phase' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
'Intranet' => [
'type' => 'object',
'properties' => [
- 'Endpoint' => [
- 'type' => 'string',
- ],
- 'Port' => [
- 'type' => 'string',
- ],
+ 'Endpoint' => ['type' => 'string'],
+ 'Port' => ['type' => 'string'],
],
],
'Internet' => [
'type' => 'object',
'properties' => [
- 'Endpoint' => [
- 'type' => 'string',
- ],
- 'Port' => [
- 'type' => 'string',
- ],
+ 'Endpoint' => ['type' => 'string'],
+ 'Port' => ['type' => 'string'],
],
],
],
],
- 'Name' => [
- 'type' => 'string',
- ],
- 'ExternalPort' => [
- 'type' => 'string',
- ],
+ 'Name' => ['type' => 'string'],
+ 'ExternalPort' => ['type' => 'string'],
'AccessType' => [
'type' => 'array',
- 'items' => [
- 'type' => 'string',
- ],
+ 'items' => ['type' => 'string'],
],
+ 'NlbGatewayId' => ['type' => 'string'],
],
],
'PodIp' => [
'type' => 'object',
'properties' => [
- 'Type' => [
- 'type' => 'string',
- ],
- 'Ip' => [
- 'type' => 'string',
- ],
- 'InterfaceName' => [
- 'type' => 'string',
- ],
+ 'Type' => ['type' => 'string'],
+ 'Ip' => ['type' => 'string'],
+ 'InterfaceName' => ['type' => 'string'],
],
],
'ServiceConfig' => [
'type' => 'object',
'properties' => [
- 'JupyterServerPassword' => [
- 'type' => 'string',
- ],
- 'JupyterServerAuth' => [
- 'type' => 'string',
- ],
- 'CodeServerPassword' => [
- 'type' => 'string',
- ],
- 'CodeServerAuth' => [
- 'type' => 'string',
- ],
+ 'JupyterServerPassword' => ['type' => 'string'],
+ 'JupyterServerAuth' => ['type' => 'string'],
+ 'CodeServerPassword' => ['type' => 'string'],
+ 'CodeServerAuth' => ['type' => 'string'],
],
],
],
],
'apis' => [
- 'CreateInstance' => [
- 'path' => '/api/v2/instances',
- 'methods' => [
- 'post',
+ 'CreateDiagnosis' => [
+ 'path' => '/api/v2/diagnoses',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'InstanceId' => ['type' => 'string', 'required' => false],
+ 'ProblemCategory' => ['type' => 'string', 'required' => true],
+ 'GmtFailureTime' => ['type' => 'string', 'format' => 'iso8601_normal', 'required' => false],
+ ],
+ ],
+ ],
],
+ ],
+ 'CreateIdleInstanceCuller' => [
+ 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -298,6 +203,11 @@
'deprecated' => false,
'parameters' => [
[
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
@@ -305,26 +215,38 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'WorkspaceId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'InstanceName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EcsSpec' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ImageId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ImageUrl' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'CpuPercentThreshold' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'GpuPercentThreshold' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ 'MaxIdleTimeInMinutes' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'CreateInstance' => [
+ 'path' => '/api/v2/instances',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'WorkspaceId' => ['type' => 'string', 'required' => false],
+ 'InstanceName' => ['type' => 'string', 'required' => false],
+ 'EcsSpec' => ['type' => 'string', 'required' => false],
+ 'ImageId' => ['type' => 'string', 'required' => false],
+ 'ImageUrl' => ['type' => 'string', 'required' => false],
'Datasets' => [
'type' => 'array',
'required' => false,
@@ -332,43 +254,18 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'DatasetId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DatasetVersion' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Uri' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MountPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'DatasetId' => ['type' => 'string', 'required' => false],
+ 'DatasetVersion' => ['type' => 'string', 'required' => false],
+ 'Uri' => ['type' => 'string', 'required' => false],
+ 'MountPath' => ['type' => 'string', 'required' => false],
'MountAccess' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'RW',
- 'RO',
- ],
- ],
- 'Options' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'OptionType' => [
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- ],
- 'Dynamic' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'enum' => ['RW', 'RO'],
],
+ 'Options' => ['type' => 'string', 'required' => false],
+ 'OptionType' => ['type' => 'string', 'deprecated' => true, 'required' => false],
+ 'Dynamic' => ['type' => 'boolean', 'required' => false],
],
],
],
@@ -376,88 +273,40 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'VpcId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'VSwitchId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SecurityGroupId' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'VpcId' => ['type' => 'string', 'required' => false],
+ 'VSwitchId' => ['type' => 'string', 'required' => false],
+ 'SecurityGroupId' => ['type' => 'string', 'required' => false],
'ExtendedCIDRs' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'DefaultRoute' => [
- 'type' => 'string',
- 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
+ 'DefaultRoute' => ['type' => 'string', 'required' => false],
'ForwardInfos' => [
'type' => 'array',
'required' => false,
- 'items' => [
- '$ref' => '#/components/schemas/ForwardInfo',
- 'required' => false,
- ],
- ],
- 'BandwidthLimit' => [
- '$ref' => '#/components/schemas/BandwidthLimit',
- 'required' => false,
+ 'items' => ['$ref' => '#/components/schemas/ForwardInfo', 'required' => false],
],
+ 'BandwidthLimit' => ['$ref' => '#/components/schemas/BandwidthLimit', 'required' => false],
],
],
- 'Accessibility' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Accessibility' => ['type' => 'string', 'required' => false],
'EnvironmentVariables' => [
'type' => 'object',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'string',
- ],
- ],
- 'ResourceId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Priority' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
+ 'additionalProperties' => ['type' => 'string'],
],
+ 'ResourceId' => ['type' => 'string', 'required' => false],
+ 'Priority' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
'RequestedResource' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'CPU' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Memory' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SharedMemory' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'GPU' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'GPUType' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'CPU' => ['type' => 'string', 'required' => false],
+ 'Memory' => ['type' => 'string', 'required' => false],
+ 'SharedMemory' => ['type' => 'string', 'required' => false],
+ 'GPU' => ['type' => 'string', 'required' => false],
+ 'GPUType' => ['type' => 'string', 'required' => false],
],
],
'Labels' => [
@@ -467,14 +316,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
],
],
],
@@ -485,62 +328,26 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Capacity' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SubType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MountPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Path' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Capacity' => ['type' => 'string', 'required' => false],
+ 'SubType' => ['type' => 'string', 'required' => false],
+ 'MountPath' => ['type' => 'string', 'required' => false],
+ 'Path' => ['type' => 'string', 'required' => false],
'Status' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'Available' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- 'Usage' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- 'Capacity' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'Available' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ 'Usage' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ 'Capacity' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
],
],
],
],
],
- 'WorkspaceSource' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'UserId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Driver' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'CredentialConfig' => [
- '$ref' => '#/components/schemas/CredentialConfig',
- 'required' => false,
- ],
+ 'WorkspaceSource' => ['type' => 'string', 'required' => false],
+ 'UserId' => ['type' => 'string', 'required' => false],
+ 'Driver' => ['type' => 'string', 'required' => false],
+ 'CredentialConfig' => ['$ref' => '#/components/schemas/CredentialConfig', 'required' => false],
'Affinity' => [
'type' => 'object',
'required' => false,
@@ -549,22 +356,13 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'Enable' => ['type' => 'boolean', 'required' => false],
],
],
],
],
- 'ImageAuth' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DynamicMount' => [
- '$ref' => '#/components/schemas/DynamicMount',
- 'required' => false,
- ],
+ 'ImageAuth' => ['type' => 'string', 'required' => false],
+ 'DynamicMount' => ['$ref' => '#/components/schemas/DynamicMount', 'required' => false],
'Tag' => [
'type' => 'array',
'required' => false,
@@ -572,14 +370,8 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
],
],
],
@@ -591,72 +383,52 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Content' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Content' => ['type' => 'string', 'required' => false],
],
],
],
],
- 'OversoldType' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'OversoldType' => ['type' => 'string', 'required' => false],
'AssignNodeSpec' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'NodeNames' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AntiAffinityNodeNames' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'NodeNames' => ['type' => 'string', 'required' => false],
+ 'AntiAffinityNodeNames' => ['type' => 'string', 'required' => false],
],
],
'SpotSpec' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'SpotStrategy' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotPriceLimit' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotDuration' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotDiscountLimit' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'SpotStrategy' => ['type' => 'string', 'required' => false],
+ 'SpotPriceLimit' => ['type' => 'string', 'required' => false],
+ 'SpotDuration' => ['type' => 'string', 'required' => false],
+ 'SpotDiscountLimit' => ['type' => 'string', 'required' => false],
],
],
- 'MigrationOptions' => [
+ 'DockerConfig' => [
'type' => 'object',
- 'required' => false,
+ 'properties' => [
+ 'Enable' => ['type' => 'boolean'],
+ 'ContainersLimit' => ['type' => 'integer', 'format' => 'int64'],
+ 'MountAccessConfigPath' => ['type' => 'string'],
+ ],
+ ],
+ 'MigrationOptions' => ['type' => 'object'],
+ 'AccessRestrictionRules' => [
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string'],
],
],
],
],
],
],
- 'DeleteInstance' => [
- 'path' => '/api/v2/instances/{InstanceId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateInstanceShutdownTimer' => [
+ 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -667,22 +439,27 @@
[
'name' => 'InstanceId',
'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'DueTime' => ['type' => 'string', 'required' => false],
+ 'RemainingTimeInMs' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
],
],
],
],
- 'UpdateInstance' => [
- 'path' => '/api/v2/instances/{InstanceId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateInstanceSnapshot' => [
+ 'path' => '/api/v2/instances/{InstanceId}/snapshots',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -693,10 +470,7 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'body',
@@ -706,358 +480,69 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'InstanceName' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EcsSpec' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ImageId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ImageUrl' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'UserVpc' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'VpcId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'VSwitchId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SecurityGroupId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ExtendedCIDRs' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'DefaultRoute' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ForwardInfos' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- '$ref' => '#/components/schemas/ForwardInfo',
- 'required' => false,
- ],
- ],
- 'BandwidthLimit' => [
- '$ref' => '#/components/schemas/BandwidthLimit',
- 'required' => false,
- ],
- ],
- ],
- 'Accessibility' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Datasets' => [
+ 'SnapshotName' => ['type' => 'string', 'required' => true],
+ 'SnapshotDescription' => ['type' => 'string', 'required' => false],
+ 'ImageUrl' => ['type' => 'string', 'required' => true],
+ 'Labels' => [
'type' => 'array',
'required' => false,
'items' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'DatasetId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DatasetVersion' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Uri' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MountPath' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MountAccess' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'RW',
- 'RO',
- ],
- ],
- 'Options' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'OptionType' => [
- 'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- ],
- 'Dynamic' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
],
],
],
- 'DisassociateDatasets' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'DisassociateVpc' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'DisassociateForwardInfos' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'RequestedResource' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'CPU' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Memory' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SharedMemory' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'GPU' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'GPUType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- 'WorkspaceSource' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'UserId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'CloudDisks' => [
+ 'ExcludePaths' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Capacity' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SubType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'Priority' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- 'Driver' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DisassociateDriver' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'CredentialConfig' => [
- '$ref' => '#/components/schemas/CredentialConfig',
- 'required' => false,
- ],
- 'DisassociateCredential' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'Affinity' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'CPU' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Enable' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- ],
- ],
- ],
- ],
- 'ImageAuth' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DynamicMount' => [
- '$ref' => '#/components/schemas/DynamicMount',
- 'required' => false,
- ],
- 'EnvironmentVariables' => [
- 'type' => 'object',
- 'required' => false,
- ],
- 'DisassociateEnvironmentVariables' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'UserCommand' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'OnStart' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Content' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- ],
- 'DisassociateUserCommand' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'OversoldType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'DisassociateSpot' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'SpotSpec' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'SpotStrategy' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotPriceLimit' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotDuration' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'SpotDiscountLimit' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- 'DisassociateAssignNode' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'AssignNodeSpec' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'NodeNames' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'AntiAffinityNodeNames' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- 'StartInstance' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- 'MigrationOptions' => [
- 'type' => 'object',
- 'required' => false,
- ],
- 'DisassociateMigrationOptions' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
+ 'Overwrite' => ['type' => 'boolean', 'required' => false],
],
],
],
],
],
- 'StartInstance' => [
- 'path' => '/api/v2/instances/{InstanceId}/start',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateSanityCheckTask' => [
+ 'path' => '/api/v2/sanitychecks/{CheckType}',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'CheckType',
'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'InstanceId' => ['type' => 'string', 'required' => true],
+ 'CheckArgs' => ['type' => 'object'],
+ ],
],
],
],
],
- 'StopInstance' => [
- 'path' => '/api/v2/instances/{InstanceId}/stop',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTempFile' => [
+ 'path' => '/api/v2/tempfiles',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1066,32 +551,27 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'SaveImage',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'boolean',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Capacity' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ 'Prefix' => ['type' => 'string', 'required' => false],
+ 'TaskId' => ['type' => 'string', 'required' => false],
+ 'InstanceId' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'GetInstance' => [
- 'path' => '/api/v2/instances/{InstanceId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTempFileTask' => [
+ 'path' => '/api/v2/tempfiletasks',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1100,40 +580,23 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'Token',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Fields',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'InstanceId' => ['type' => 'string', 'required' => false],
+ ],
],
],
],
],
- 'ListInstances' => [
- 'path' => '/api/v2/instances',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteIdleInstanceCuller' => [
+ 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1142,266 +605,57 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'WorkspaceId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'InstanceName',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Status',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PaymentType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Accessibility',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'AcceleratorType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Labels',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'CreateUserId',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'GpuType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MinCpu',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MaxCpu',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MinGpu',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MaxGpu',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MinMemory',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MaxMemory',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MinGpuMemory',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'MaxGpuMemory',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'ImageName',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'DeleteInstance' => [
+ 'path' => '/api/v2/instances/{InstanceId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Tag',
- 'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
+ 'AK' => [],
],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'OversoldInfo',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'DeleteInstanceLabels' => [
+ 'path' => '/api/v2/instances/{InstanceId}/labels',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'OversoldType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'CreateTimeAfter',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'CreateTimeBefore',
+ 'name' => 'LabelKeys',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetInstanceEvents' => [
- 'path' => '/api/v2/instances/{InstanceId}/events',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteInstanceShutdownTimer' => [
+ 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1412,63 +666,37 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'MaxEventsNum',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'DeleteInstanceSnapshot' => [
+ 'path' => '/api/v2/instances/{InstanceId}/snapshots/{SnapshotId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'Token',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'EventLevel',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'SnapshotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'UpdateInstanceLabels' => [
- 'path' => '/api/v2/instances/{InstanceId}/labels',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteInstances' => [
+ 'path' => '/api/v2/batch/instances/delete',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1484,46 +712,38 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Labels' => [
+ 'InstanceIds' => [
'type' => 'array',
- 'required' => true,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
],
],
],
],
+ ],
+ ],
+ 'DeleteTempFile' => [
+ 'path' => '/api/v2/tempfiles/{TempFileId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'InstanceId',
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'TempFileId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'DeleteInstanceLabels' => [
- 'path' => '/api/v2/instances/{InstanceId}/labels',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTempFileTask' => [
+ 'path' => '/api/v2/tempfiletasks/{TempFileTaskId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1532,37 +752,23 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'TempFileTaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'LabelKeys',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'DeleteInstances' => [
- 'path' => '/api/v2/batch/instances/delete',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteTempFileTasks' => [
+ 'path' => '/api/v2/batch/tempfiletasks/delete',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -1573,28 +779,20 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'InstanceIds' => [
+ 'TempFileTaskIds' => [
'type' => 'array',
'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'items' => ['type' => 'string', 'required' => false],
],
],
],
],
],
],
- 'StopInstances' => [
- 'path' => '/api/v2/batch/instances/stop',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetIdleInstanceCuller' => [
+ 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1603,35 +801,44 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'InstanceIds' => [
- 'type' => 'array',
- 'required' => true,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetLifecycle' => [
- 'path' => '/api/v2/instances/{InstanceId}/lifecycle',
- 'methods' => [
- 'get',
+ 'GetInstance' => [
+ 'path' => '/api/v2/instances/{InstanceId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'Token',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Fields',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
+ ],
+ 'GetInstanceEvents' => [
+ 'path' => '/api/v2/instances/{InstanceId}/events',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1642,72 +849,49 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'SessionNumber',
+ 'name' => 'MaxEventsNum',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
],
[
'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Limit',
+ 'name' => 'Token',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Order',
+ 'name' => 'EventLevel',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Token',
+ 'name' => 'Offset',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32'],
+ ],
+ [
+ 'name' => 'Reverse',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean'],
],
],
],
'GetInstanceMetrics' => [
'path' => '/api/v2/instance/{InstanceId}/metrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1718,54 +902,34 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'MetricType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'TimeStep',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'CreateInstanceSnapshot' => [
- 'path' => '/api/v2/instances/{InstanceId}/snapshots',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetInstanceShutdownTimer' => [
+ 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1776,75 +940,14 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'SnapshotName' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'SnapshotDescription' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ImageUrl' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Labels' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'ExcludePaths' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- 'Overwrite' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'DeleteInstanceSnapshot' => [
+ 'GetInstanceSnapshot' => [
'path' => '/api/v2/instances/{InstanceId}/snapshots/{SnapshotId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1855,30 +958,19 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'SnapshotId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetInstanceSnapshot' => [
- 'path' => '/api/v2/instances/{InstanceId}/snapshots/{SnapshotId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetLifecycle' => [
+ 'path' => '/api/v2/instances/{InstanceId}/lifecycle',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1889,30 +981,44 @@
[
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'SnapshotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'SessionNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Limit',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Token',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'ListInstanceSnapshot' => [
- 'path' => '/api/v2/instances/{InstanceId}/snapshots',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetMetrics' => [
+ 'path' => '/api/v2/instance/{InstanceId}/cms/metrics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1921,183 +1027,120 @@
'deprecated' => false,
'parameters' => [
[
+ 'name' => 'Namespace',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
'name' => 'InstanceId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'Dimensions',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'PageSize',
+ 'name' => 'Length',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'SortBy',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Order',
+ 'name' => 'Period',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'MetricName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'GetResourceGroupStatistics' => [
'path' => '/api/v2/resourcegroupstatistics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'produces' => [
- 'application/json',
- ],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'WorkspaceIds',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'ListInstanceStatistics' => [
- 'path' => '/api/v2/instancestatistics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetSanityCheckTask' => [
+ 'path' => '/api/v2/sanitychecks/{CheckType}/{TaskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'WorkspaceIds',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
- 'CreateInstanceShutdownTimer' => [
- 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'name' => 'CheckType',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'TaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'DueTime' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'RemainingTimeInMs' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'Verbose',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
],
],
- 'DeleteInstanceShutdownTimer' => [
- 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTempFile' => [
+ 'path' => '/api/v2/tempfiles/{TempFileId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2106,50 +1149,36 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'TempFileId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetInstanceShutdownTimer' => [
- 'path' => '/api/v2/instances/{InstanceId}/shutdowntimer',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetTempFileTask' => [
+ 'path' => '/api/v2/tempfiletasks/{TempFileTaskId}',
+ 'methods' => ['get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'TempFileTaskId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'CreateIdleInstanceCuller' => [
- 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetToken' => [
+ 'path' => '/api/v2/tokens',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2159,101 +1188,82 @@
'parameters' => [
[
'name' => 'InstanceId',
- 'in' => 'path',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'ExpireTime',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
+ 'required' => false,
+ 'enum' => ['Access', 'View'],
],
],
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
+ 'name' => 'Audience',
+ 'in' => 'query',
'schema' => [
- 'type' => 'object',
+ 'type' => 'string',
'required' => false,
- 'properties' => [
- 'CpuPercentThreshold' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'GpuPercentThreshold' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- 'MaxIdleTimeInMinutes' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
- ],
+ 'enum' => ['Aliyun', 'ThirdParty'],
],
],
],
],
- 'DeleteIdleInstanceCuller' => [
- 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetUserCommand' => [
+ 'path' => '/api/v2/usercommands/{UserCommandId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
+ [
+ 'APP' => [],
+ ],
],
+ 'consumes' => [],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'UserCommandId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Token',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetIdleInstanceCuller' => [
- 'path' => '/api/v2/instances/{InstanceId}/idleinstanceculler',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetUserConfig' => [
+ 'path' => '/api/v2/userconfig',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
+ 'parameters' => [],
],
'ListEcsSpecs' => [
'path' => '/api/v2/ecsspecs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2264,129 +1274,95 @@
[
'name' => 'AcceleratorType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Order',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'ResourceType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'GetUserConfig' => [
- 'path' => '/api/v2/userconfig',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListInstanceSnapshot' => [
+ 'path' => '/api/v2/instances/{InstanceId}/snapshots',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'deprecated' => false,
- 'parameters' => [],
- ],
- 'CreateDiagnosis' => [
- 'path' => '/api/v2/diagnoses',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
+ ],
+ 'ListInstanceStatistics' => [
+ 'path' => '/api/v2/instancestatistics',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'InstanceId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ProblemCategory' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'GmtFailureTime' => [
- 'type' => 'string',
- 'format' => 'iso8601_normal',
- 'required' => false,
- ],
- ],
- ],
+ 'name' => 'WorkspaceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'GetToken' => [
- 'path' => '/api/v2/tokens',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListInstances' => [
+ 'path' => '/api/v2/instances',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2395,374 +1371,654 @@
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'WorkspaceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'ExpireTime',
+ 'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Type',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Access',
- 'View',
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Audience',
+ 'name' => 'Status',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Aliyun',
- 'ThirdParty',
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- ],
- 'GetMetrics' => [
- 'path' => '/api/v2/instance/{InstanceId}/cms/metrics',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'PaymentType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'Namespace',
+ 'name' => 'Accessibility',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'AcceleratorType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Dimensions',
+ 'name' => 'Labels',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'style' => 'json',
+ 'schema' => ['type' => 'object', 'required' => false],
],
[
- 'name' => 'Length',
+ 'name' => 'CreateUserId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'EndTime',
+ 'name' => 'GpuType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Period',
+ 'name' => 'MinCpu',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'NextToken',
+ 'name' => 'MaxCpu',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'MetricName',
+ 'name' => 'MinGpu',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'StartTime',
+ 'name' => 'MaxGpu',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- ],
- 'GetUserCommand' => [
- 'path' => '/api/v2/usercommands/{UserCommandId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'MinMemory',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'APP' => [],
+ 'name' => 'MaxMemory',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'consumes' => [],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'UserCommandId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'MinGpuMemory',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'InstanceId',
+ 'name' => 'MaxGpuMemory',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Token',
+ 'name' => 'ImageName',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'array',
'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => false],
+ 'Value' => ['type' => 'string', 'required' => false],
+ ],
+ ],
],
],
+ [
+ 'name' => 'OversoldInfo',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'OversoldType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'CreateTimeAfter',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'CreateTimeBefore',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
],
'ListSystemLogs' => [
'path' => '/api/v2/systemlogs',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SourceRequestId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Offset',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Order',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'LogRepository',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'LogLevel',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'GmtStartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'format' => 'iso8601_normal',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'format' => 'iso8601_normal', 'required' => false],
],
[
'name' => 'GmtEndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'format' => 'iso8601_normal',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'format' => 'iso8601_normal', 'required' => false],
],
[
'name' => 'ProblemCategory',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'LifecycleId',
'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'ListTempFiles' => [
+ 'path' => '/api/v2/tempfiles',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Prefix',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Delimiter',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'QueryAutoShutdownPolicies' => [
+ 'path' => '/api/v2/batch/autoshutdownpolicies/query',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'InstanceIds' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ ],
],
],
+ [
+ 'name' => 'Token',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
],
],
- 'GetSanityCheckTask' => [
- 'path' => '/api/v2/sanitychecks/{CheckType}/{TaskId}',
- 'methods' => [
- 'get',
+ 'StartInstance' => [
+ 'path' => '/api/v2/instances/{InstanceId}/start',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
],
+ ],
+ 'StopInstance' => [
+ 'path' => '/api/v2/instances/{InstanceId}/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'SaveImage',
+ 'in' => 'query',
+ 'schema' => ['type' => 'boolean', 'required' => false],
+ ],
],
- 'produces' => [
- 'application/json',
+ ],
+ 'StopInstances' => [
+ 'path' => '/api/v2/batch/instances/stop',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'CheckType',
- 'in' => 'path',
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'InstanceIds' => [
+ 'type' => 'array',
+ 'required' => true,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ ],
],
],
+ ],
+ ],
+ 'UpdateInstance' => [
+ 'path' => '/api/v2/instances/{InstanceId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TaskId',
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'InstanceName' => ['type' => 'string', 'required' => false],
+ 'EcsSpec' => ['type' => 'string', 'required' => false],
+ 'ImageId' => ['type' => 'string', 'required' => false],
+ 'ImageUrl' => ['type' => 'string', 'required' => false],
+ 'UserVpc' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'VpcId' => ['type' => 'string', 'required' => false],
+ 'VSwitchId' => ['type' => 'string', 'required' => false],
+ 'SecurityGroupId' => ['type' => 'string', 'required' => false],
+ 'ExtendedCIDRs' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['type' => 'string', 'required' => false],
+ ],
+ 'DefaultRoute' => ['type' => 'string', 'required' => false],
+ 'ForwardInfos' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => ['$ref' => '#/components/schemas/ForwardInfo', 'required' => false],
+ ],
+ 'BandwidthLimit' => ['$ref' => '#/components/schemas/BandwidthLimit', 'required' => false],
+ ],
+ ],
+ 'Accessibility' => ['type' => 'string', 'required' => false],
+ 'Datasets' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'DatasetId' => ['type' => 'string', 'required' => false],
+ 'DatasetVersion' => ['type' => 'string', 'required' => false],
+ 'Uri' => ['type' => 'string', 'required' => false],
+ 'MountPath' => ['type' => 'string', 'required' => false],
+ 'MountAccess' => [
+ 'type' => 'string',
+ 'required' => false,
+ 'enum' => ['RW', 'RO'],
+ ],
+ 'Options' => ['type' => 'string', 'required' => false],
+ 'OptionType' => ['type' => 'string', 'deprecated' => true, 'required' => false],
+ 'Dynamic' => ['type' => 'boolean', 'required' => false],
+ ],
+ ],
+ ],
+ 'DisassociateDatasets' => ['type' => 'boolean', 'required' => false],
+ 'DisassociateVpc' => ['type' => 'boolean', 'required' => false],
+ 'DisassociateForwardInfos' => ['type' => 'boolean', 'required' => false],
+ 'RequestedResource' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'CPU' => ['type' => 'string', 'required' => false],
+ 'Memory' => ['type' => 'string', 'required' => false],
+ 'SharedMemory' => ['type' => 'string', 'required' => false],
+ 'GPU' => ['type' => 'string', 'required' => false],
+ 'GPUType' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ 'WorkspaceSource' => ['type' => 'string', 'required' => false],
+ 'UserId' => ['type' => 'string', 'required' => false],
+ 'CloudDisks' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Capacity' => ['type' => 'string', 'required' => false],
+ 'SubType' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ 'Priority' => ['type' => 'integer', 'format' => 'int64', 'required' => false],
+ 'Driver' => ['type' => 'string', 'required' => false],
+ 'DisassociateDriver' => ['type' => 'boolean', 'required' => false],
+ 'CredentialConfig' => ['$ref' => '#/components/schemas/CredentialConfig', 'required' => false],
+ 'DisassociateCredential' => ['type' => 'boolean', 'required' => false],
+ 'Affinity' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'CPU' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Enable' => ['type' => 'boolean', 'required' => false],
+ ],
+ ],
+ ],
+ ],
+ 'ImageAuth' => ['type' => 'string', 'required' => false],
+ 'DynamicMount' => ['$ref' => '#/components/schemas/DynamicMount', 'required' => false],
+ 'EnvironmentVariables' => ['type' => 'object', 'required' => false],
+ 'DisassociateEnvironmentVariables' => ['type' => 'boolean', 'required' => false],
+ 'UserCommand' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'OnStart' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Content' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
+ ],
+ 'DisassociateUserCommand' => ['type' => 'boolean', 'required' => false],
+ 'OversoldType' => ['type' => 'string', 'required' => false],
+ 'DisassociateSpot' => ['type' => 'boolean', 'required' => false],
+ 'SpotSpec' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'SpotStrategy' => ['type' => 'string', 'required' => false],
+ 'SpotPriceLimit' => ['type' => 'string', 'required' => false],
+ 'SpotDuration' => ['type' => 'string', 'required' => false],
+ 'SpotDiscountLimit' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ 'DisassociateAssignNode' => ['type' => 'boolean', 'required' => false],
+ 'AssignNodeSpec' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'NodeNames' => ['type' => 'string', 'required' => false],
+ 'AntiAffinityNodeNames' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ 'StartInstance' => ['type' => 'boolean'],
+ 'DisassociateMigrationOptions' => ['type' => 'boolean'],
+ 'MigrationOptions' => ['type' => 'object'],
+ ],
],
],
+ ],
+ ],
+ 'UpdateInstanceLabels' => [
+ 'path' => '/api/v2/instances/{InstanceId}/labels',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Verbose',
- 'in' => 'query',
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'boolean',
+ 'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'Labels' => [
+ 'type' => 'array',
+ 'required' => true,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => true],
+ 'Value' => ['type' => 'string', 'required' => true],
+ ],
+ ],
+ ],
+ ],
],
],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
],
],
- 'CreateSanityCheckTask' => [
- 'path' => '/api/v2/sanitychecks/{CheckType}',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'UpdateTempFile' => [
+ 'path' => '/api/v2/tempfiles/{TempFileId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'CheckType',
+ 'name' => 'TempFileId',
'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
- 'required' => true,
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'GmtExpiredTime' => ['type' => 'string', 'required' => false],
+ 'Status' => ['type' => 'string', 'required' => false],
+ ],
],
],
+ ],
+ ],
+ 'UpdateTempFileTask' => [
+ 'path' => '/api/v2/tempfiletasks/{TempFileTaskId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'TempFileTaskId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
[
'name' => 'body',
'in' => 'body',
@@ -2771,10 +2027,7 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'InstanceId' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'GmtExpiredTime' => ['type' => 'string', 'required' => false],
],
],
],
@@ -2782,93 +2035,28 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'us-west-1',
- 'endpoint' => 'pai-dsw.us-west-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'pai-dsw.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'pai-dsw.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'pai-dsw.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'pai-dsw.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'pai-dsw.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai-finance-1',
- 'endpoint' => 'pai-dsw.cn-shanghai-finance-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-1',
- 'endpoint' => 'pai-dsw.ap-northeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'pai-dsw.ap-southeast-5.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-guangzhou',
- 'endpoint' => 'pai-dsw.cn-guangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-northeast-2',
- 'endpoint' => 'pai-dsw.ap-northeast-2.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-7',
- 'endpoint' => 'pai-dsw.ap-southeast-7.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-3',
- 'endpoint' => 'pai-dsw.ap-southeast-3.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-chengdu',
- 'endpoint' => 'pai-dsw.cn-chengdu.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'pai-dsw.cn-shenzhen.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-south-1',
- 'endpoint' => 'pai-dsw.ap-south-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-southeast-1',
- 'endpoint' => 'pai-dsw.us-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'me-central-1',
- 'endpoint' => 'pai-dsw.me-central-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'eu-central-1',
- 'endpoint' => 'pai-dsw.eu-central-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'me-east-1',
- 'endpoint' => 'pai-dsw.me-east-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'us-east-1',
- 'endpoint' => 'pai-dsw.us-east-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-wulanchabu',
- 'endpoint' => 'pai-dsw.cn-wulanchabu.aliyuncs.com',
- ],
+ ['regionId' => 'cn-chengdu', 'regionName' => '西南1(成都)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-chengdu.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-chengdu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-wulanchabu.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-wulanchabu.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-beijing.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-beijing.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-shanghai.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-shanghai.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-hongkong.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-hongkong.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-shenzhen.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-shenzhen.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-2', 'regionName' => '韩国(首尔)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-northeast-2.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-northeast-2.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-northeast-2.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'regionName' => '日本(东京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-northeast-1.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-northeast-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-northeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-guangzhou.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-guangzhou.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-guangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-southeast-1.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-southeast-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => '马来西亚(吉隆坡)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-southeast-3.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-southeast-3.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-southeast-3.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-southeast-5.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-southeast-5.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-southeast-5.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-7', 'regionName' => '泰国(曼谷)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-southeast-7.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-southeast-7.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-southeast-7.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.cn-hangzhou.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-hangzhou.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-8', 'regionName' => '马来西亚(柔佛州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'pai-dsw.ap-southeast-8.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-southeast-8.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-southeast-8.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => '美国(弗吉尼亚)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai-dsw.us-east-1.aliyuncs.com', 'endpoint' => 'pai-dsw.us-east-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'us-southeast-1', 'regionName' => '美国(亚特兰大)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai-dsw.us-southeast-1.aliyuncs.com', 'endpoint' => 'pai-dsw.us-southeast-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.us-southeast-1.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai-dsw.us-west-1.aliyuncs.com', 'endpoint' => 'pai-dsw.us-west-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.us-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'pai-dsw.eu-central-1.aliyuncs.com', 'endpoint' => 'pai-dsw.eu-central-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.eu-central-1.aliyuncs.com'],
+ ['regionId' => 'me-east-1', 'regionName' => '阿联酋(迪拜)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'pai-dsw.me-east-1.aliyuncs.com', 'endpoint' => 'pai-dsw.me-east-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.me-east-1.aliyuncs.com'],
+ ['regionId' => 'me-central-1', 'regionName' => '沙特(利雅得)', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'pai-dsw.me-central-1.aliyuncs.com', 'endpoint' => 'pai-dsw.me-central-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.me-central-1.aliyuncs.com'],
+ ['regionId' => 'ap-south-1', 'regionName' => '印度(孟买)已关停', 'areaId' => 'middleEast', 'areaName' => '中东', 'public' => 'pai-dsw.ap-south-1.aliyuncs.com', 'endpoint' => 'pai-dsw.ap-south-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.ap-south-1.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'pai-dsw.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'pai-dsw.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'pai-dsw-vpc.cn-shanghai-finance-1.aliyuncs.com'],
],
];