summaryrefslogtreecommitdiff
path: root/data/paielasticdatasetaccelerator/2022-08-01/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/paielasticdatasetaccelerator/2022-08-01/api-docs.php')
-rw-r--r--data/paielasticdatasetaccelerator/2022-08-01/api-docs.php1982
1 files changed, 591 insertions, 1391 deletions
diff --git a/data/paielasticdatasetaccelerator/2022-08-01/api-docs.php b/data/paielasticdatasetaccelerator/2022-08-01/api-docs.php
index 4ee6f39..2fb62a9 100644
--- a/data/paielasticdatasetaccelerator/2022-08-01/api-docs.php
+++ b/data/paielasticdatasetaccelerator/2022-08-01/api-docs.php
@@ -1,10 +1,6 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'ROA',
- 'product' => 'PAIElasticDatasetAccelerator',
- 'version' => '2022-08-01',
- ],
+ 'info' => ['style' => 'ROA', 'product' => 'PAIElasticDatasetAccelerator', 'version' => '2022-08-01'],
'components' => [
'schemas' => [
'EndpointStatus' => [
@@ -12,25 +8,11 @@
'properties' => [
'Phase' => [
'type' => 'string',
- 'enum' => [
- 'Created',
- 'ResourceAllocating',
- 'ResourceAllocated',
- 'Ready',
- 'Stopping',
- 'Failed',
- 'Stopped',
- ],
- ],
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'Detail' => [
- '$ref' => '#/components/schemas/EndpointStatusDetail',
+ 'enum' => ['Created', 'ResourceAllocating', 'ResourceAllocated', 'Ready', 'Stopping', 'Failed', 'Stopped'],
],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'Detail' => ['$ref' => '#/components/schemas/EndpointStatusDetail'],
],
],
'EndpointStatusDetail' => [
@@ -38,21 +20,15 @@
'properties' => [
'IpPortMapping' => [
'type' => 'object',
- 'additionalProperties' => [
- '$ref' => '#/components/schemas/IpPort',
- ],
+ 'additionalProperties' => ['$ref' => '#/components/schemas/IpPort'],
],
],
],
'InstanceLifeCycle' => [
'type' => 'object',
'properties' => [
- 'Type' => [
- 'type' => 'string',
- ],
- 'Config' => [
- 'type' => 'string',
- ],
+ 'Type' => ['type' => 'string'],
+ 'Config' => ['type' => 'string'],
],
],
'InstanceStatus' => [
@@ -60,48 +36,26 @@
'properties' => [
'Phase' => [
'type' => 'string',
- 'enum' => [
- 'Created',
- 'Running',
- 'Stopped',
- ],
- ],
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'UsedCapacity' => [
- 'type' => 'string',
- ],
- 'SlotNum' => [
- 'type' => 'integer',
- 'format' => 'int32',
+ 'enum' => ['Created', 'Running', 'Stopped'],
],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'UsedCapacity' => ['type' => 'string'],
+ 'SlotNum' => ['type' => 'integer', 'format' => 'int32'],
],
],
'IpPort' => [
'type' => 'object',
'properties' => [
- 'Ip' => [
- 'type' => 'string',
- ],
- 'Port' => [
- 'type' => 'string',
- ],
+ 'Ip' => ['type' => 'string'],
+ 'Port' => ['type' => 'string'],
],
],
'Metric' => [
'type' => 'object',
'properties' => [
- 'Timestamp' => [
- 'type' => 'string',
- ],
- 'Value' => [
- 'type' => 'number',
- 'format' => 'double',
- ],
+ 'Timestamp' => ['type' => 'string'],
+ 'Value' => ['type' => 'number', 'format' => 'double'],
],
],
'SlotLifeCycle' => [
@@ -109,16 +63,9 @@
'properties' => [
'Type' => [
'type' => 'string',
- 'enum' => [
- 'KeepAlive',
- 'RelativeTime',
- 'AbsoluteTime',
- 'MaximumIdleTime',
- ],
- ],
- 'Config' => [
- 'type' => 'string',
+ 'enum' => ['KeepAlive', 'RelativeTime', 'AbsoluteTime', 'MaximumIdleTime'],
],
+ 'Config' => ['type' => 'string'],
],
],
'SlotStatus' => [
@@ -126,212 +73,63 @@
'properties' => [
'Phase' => [
'type' => 'string',
- 'enum' => [
- 'Created',
- 'Preparing',
- 'Loading',
- 'Running',
- 'Succeed',
- 'Failed',
- 'Stopping',
- 'Stopped',
- ],
- ],
- 'Code' => [
- 'type' => 'string',
- ],
- 'Message' => [
- 'type' => 'string',
- ],
- 'Detail' => [
- '$ref' => '#/components/schemas/SlotStatusDetail',
+ 'enum' => ['Created', 'Preparing', 'Loading', 'Running', 'Succeed', 'Failed', 'Stopping', 'Stopped'],
],
+ 'Code' => ['type' => 'string'],
+ 'Message' => ['type' => 'string'],
+ 'Detail' => ['$ref' => '#/components/schemas/SlotStatusDetail'],
],
],
'SlotStatusDetail' => [
'type' => 'object',
'properties' => [
- 'LoadedFileNum' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
- 'LoadedFileSize' => [
- 'type' => 'string',
- ],
- 'LoadingTimeCost' => [
- 'type' => 'integer',
- 'format' => 'int64',
- ],
+ 'LoadedFileNum' => ['type' => 'integer', 'format' => 'int64'],
+ 'LoadedFileSize' => ['type' => 'string'],
+ 'LoadingTimeCost' => ['type' => 'integer', 'format' => 'int64'],
],
],
],
],
'apis' => [
- 'CreateInstance' => [
- 'path' => '/api/v1/instances',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'BindEndpoint' => [
+ 'path' => '/api/v1/endpoints/{EndpointId}/slots/{SlotId}',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 1024,
- ],
- 'Type' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'basic',
- 'enhanced',
- 'lj.basic',
- ],
- ],
- 'Tags' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- ],
- ],
- ],
- 'PaymentType' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'PayAsYouGo',
- 'Subscription',
- ],
- ],
- 'Capacity' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'MaxSlot' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'MaxEndpoint' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'StorageType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'ProviderType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- ],
- ],
- 'DeleteInstance' => [
- 'path' => '/api/v1/instances/{InstanceId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ 'name' => 'EndpointId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'SlotId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'UpdateInstance' => [
- 'path' => '/api/v1/instances/{InstanceId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateEndpoint' => [
+ 'path' => '/api/v1/endpoints',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
@@ -339,274 +137,86 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 1024,
- ],
- 'MaxSlot' => [
+ 'Name' => ['type' => 'string', 'required' => false],
+ 'Type' => [
'type' => 'string',
'required' => false,
+ 'enum' => ['VPC'],
],
+ 'VpcId' => ['type' => 'string', 'required' => false],
+ 'VswitchId' => ['type' => 'string', 'required' => false],
+ 'InstanceId' => ['type' => 'string', 'required' => true],
],
],
],
],
],
- 'ListInstances' => [
+ 'CreateInstance' => [
'path' => '/api/v1/instances',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'InstanceIds',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Type',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'basic',
- 'enhanced',
- ],
- ],
- ],
- [
- 'name' => 'PaymentType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'PayAsYouGo',
- 'Subscription',
- ],
- ],
- ],
- [
- 'name' => 'Phase',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Created',
- 'Running',
- 'Stopped',
- ],
- ],
- ],
- [
- 'name' => 'SortBy',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Order',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Desc',
- 'Asc',
- ],
- ],
- ],
- [
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
- ],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
- ],
- ],
- ],
- 'QueryInstanceMetrics' => [
- 'path' => '/api/v1/instances/{InstanceId}/metrics/action/query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'Dimensions',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'required' => false,
- ],
- ],
- [
- 'name' => 'MetricType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'NetworkReceiveBytesPerSecond',
- 'NetworkTransmitBytesPerSecond',
- 'FrontendThroughputBytes',
- 'FrontendLatencyMicrosecond',
- 'FrontendIops',
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Description' => ['type' => 'string', 'required' => false, 'maxLength' => 1024],
+ 'Type' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['basic', 'enhanced', 'lj.basic'],
+ ],
+ 'Tags' => [
+ 'type' => 'array',
+ 'required' => false,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Value' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ ],
+ ],
+ ],
+ 'PaymentType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['PayAsYouGo', 'Subscription'],
+ ],
+ 'Capacity' => ['type' => 'string', 'required' => true],
+ 'MaxSlot' => ['type' => 'string', 'required' => false],
+ 'MaxEndpoint' => ['type' => 'string', 'required' => false],
+ 'StorageType' => ['type' => 'string', 'required' => false],
+ 'ProviderType' => ['type' => 'string', 'required' => false],
],
],
],
- [
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'TimeStep',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'DescribeInstance' => [
- 'path' => '/api/v1/instances/{InstanceId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
],
],
'CreateSlot' => [
'path' => '/api/v1/slots',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
@@ -617,20 +227,9 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'InstanceId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 1024,
- ],
+ 'InstanceId' => ['type' => 'string', 'required' => true],
+ 'Name' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Description' => ['type' => 'string', 'required' => false, 'maxLength' => 1024],
'Tags' => [
'type' => 'array',
'required' => false,
@@ -638,44 +237,20 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
+ 'Key' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Value' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
],
],
],
'StorageType' => [
'type' => 'string',
'required' => true,
- 'enum' => [
- 'OSS',
- 'NAS',
- 'CPFS',
- ],
- ],
- 'StorageUri' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Capacity' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'LifeCycle' => [
- '$ref' => '#/components/schemas/SlotLifeCycle',
- 'required' => false,
- ],
- 'IoType' => [
- 'type' => 'string',
- 'required' => false,
+ 'enum' => ['OSS', 'NAS', 'CPFS'],
],
+ 'StorageUri' => ['type' => 'string', 'required' => true],
+ 'Capacity' => ['type' => 'string', 'required' => true],
+ 'LifeCycle' => ['$ref' => '#/components/schemas/SlotLifeCycle', 'required' => false],
+ 'IoType' => ['type' => 'string', 'required' => false],
'Endpoints' => [
'type' => 'array',
'required' => false,
@@ -683,140 +258,37 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Name' => ['type' => 'string', 'required' => false],
'Type' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'VPC',
- ],
- ],
- 'VpcId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'VswitchId' => [
- 'type' => 'string',
- 'required' => false,
+ 'enum' => ['VPC'],
],
+ 'VpcId' => ['type' => 'string', 'required' => false],
+ 'VswitchId' => ['type' => 'string', 'required' => false],
],
],
],
- 'EndpointIds' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'EndpointIds' => ['type' => 'string', 'required' => false],
],
],
],
],
],
- 'DeleteSlot' => [
- 'path' => '/api/v1/slots/{SlotId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'SlotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'Force',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'boolean',
- 'required' => false,
- ],
- ],
- ],
- ],
- 'StopSlot' => [
- 'path' => '/api/v1/slots/{SlotId}/action/stop',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'SlotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ],
- 'UpdateSlot' => [
- 'path' => '/api/v1/slots/{SlotId}',
- 'methods' => [
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateSlots' => [
+ 'path' => '/api/v1/batch/slots/create',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'SlotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
'name' => 'body',
'in' => 'body',
'style' => 'json',
@@ -824,522 +296,356 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 1024,
- ],
- 'Tags' => [
+ 'Slots' => [
'type' => 'array',
'required' => false,
'items' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'Key' => [
- 'type' => 'string',
+ 'InstanceId' => ['type' => 'string', 'required' => true],
+ 'Name' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Description' => ['type' => 'string', 'required' => false, 'maxLength' => 1024],
+ 'Tags' => [
+ 'type' => 'array',
'required' => false,
- 'maxLength' => 64,
+ 'items' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Key' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Value' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ ],
+ ],
],
- 'Value' => [
+ 'LifeCycle' => ['$ref' => '#/components/schemas/SlotLifeCycle', 'required' => false],
+ 'IoType' => ['type' => 'string', 'required' => false],
+ 'StorageType' => [
'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
+ 'required' => true,
+ 'enum' => ['OSS', 'NAS', 'CPFS'],
],
+ 'StorageUri' => ['type' => 'string', 'required' => true],
+ 'Capacity' => ['type' => 'string', 'required' => false],
+ 'EndpointIds' => ['type' => 'string', 'required' => false],
],
],
],
- 'StorageType' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'OSS',
- 'NAS',
- ],
- ],
- 'StorageUri' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Capacity' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'LifeCycle' => [
- '$ref' => '#/components/schemas/SlotLifeCycle',
- 'required' => false,
- ],
+ 'DryRun' => ['type' => 'boolean', 'required' => false],
],
],
],
],
],
- 'QuerySlotMetrics' => [
- 'path' => '/api/v1/slots/{SlotId}/metrics/action/query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateTag' => [
+ 'path' => '/api/v1/tags',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'SlotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- [
- 'name' => 'Dimensions',
- 'in' => 'query',
+ 'name' => 'body',
+ 'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'required' => false,
+ 'properties' => [
+ 'ResourceType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['Instance', 'Slot'],
+ ],
+ 'ResourceId' => ['type' => 'string', 'required' => true],
+ 'Key' => ['type' => 'string', 'required' => true, 'maxLength' => 64],
+ 'Value' => ['type' => 'string', 'required' => true, 'maxLength' => 64],
+ ],
],
],
+ ],
+ ],
+ 'DeleteEndpoint' => [
+ 'path' => '/api/v1/endpoints/{EndpointId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'MetricType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'NetworkTransmitBytesPerSecond',
- 'NetworkReceiveBytesPerSecond',
- 'FrontendThroughputBytes',
- 'FrontendLatencyMicrosecond',
- 'FrontendIops',
- ],
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'StartTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'EndpointId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
+ ],
+ ],
+ 'DeleteInstance' => [
+ 'path' => '/api/v1/instances/{InstanceId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'EndTime',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'TimeStep',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'ListSlots' => [
- 'path' => '/api/v1/slots',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteSlot' => [
+ 'path' => '/api/v1/slots/{SlotId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'SlotIds',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'name' => 'SlotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'InstanceIds',
+ 'name' => 'Force',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
- ],
- [
- 'name' => 'Name',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
+ ],
+ ],
+ 'DeleteTag' => [
+ 'path' => '/api/v1/tags',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'StorageType',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'OSS',
- 'NAS',
- ],
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'Phase',
+ 'name' => 'ResourceType',
'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Created',
- 'Preparing',
- 'Loading',
- 'Running',
- 'Succeed',
- 'Failed',
- 'Stopping',
- 'Stopped',
- ],
+ 'required' => true,
+ 'enum' => ['Instance', 'Slot'],
],
],
[
- 'name' => 'SortBy',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'Order',
+ 'name' => 'Key',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Desc',
- 'Asc',
- ],
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'maxLength' => 64],
],
+ ],
+ ],
+ 'DescribeComponent' => [
+ 'path' => '/api/v1/components/{ComponentId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'PageNumber',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'name' => 'ComponentId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
[
- 'name' => 'EndpointIds',
+ 'name' => 'RenderTemplate',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'boolean', 'required' => false],
],
[
- 'name' => 'StorageUri',
+ 'name' => 'Values',
'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'type' => 'string',
+ 'type' => 'object',
'required' => false,
+ 'additionalProperties' => ['type' => 'any'],
],
],
],
],
- 'DescribeSlot' => [
- 'path' => '/api/v1/slots/{SlotId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DescribeEndpoint' => [
+ 'path' => '/api/v1/endpoints/{EndpointId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'SlotId',
+ 'name' => 'EndpointId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'CreateEndpoint' => [
- 'path' => '/api/v1/endpoints',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DescribeInstance' => [
+ 'path' => '/api/v1/instances/{InstanceId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'Type' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'VPC',
- ],
- ],
- 'VpcId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'VswitchId' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'InstanceId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'DeleteEndpoint' => [
- 'path' => '/api/v1/endpoints/{EndpointId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DescribeSlot' => [
+ 'path' => '/api/v1/slots/{SlotId}',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'EndpointId',
+ 'name' => 'SlotId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'BindEndpoint' => [
- 'path' => '/api/v1/endpoints/{EndpointId}/slots/{SlotId}',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListComponents' => [
+ 'path' => '/api/v1/components',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'EndpointId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'ComponentIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'SlotId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- ],
- 'UnbindEndpoint' => [
- 'path' => '/api/v1/endpoints/{EndpointId}/slots/{SlotId}',
- 'methods' => [
- 'delete',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'Version',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'EndpointId',
- 'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'SlotId',
- 'in' => 'path',
+ 'name' => 'Order',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
+ 'required' => false,
+ 'enum' => ['Desc', 'Asc'],
],
],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
],
],
'ListEndpoints' => [
'path' => '/api/v1/endpoints',
- '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' => 'EndpointIds',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'SlotIds',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Type',
@@ -1347,18 +653,13 @@
'schema' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'VPC',
- ],
+ 'enum' => ['VPC'],
],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Order',
@@ -1366,179 +667,152 @@
'schema' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'Desc',
- 'Asc',
- ],
+ 'enum' => ['Desc', 'Asc'],
],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
],
[
'name' => 'InstanceIds',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'DescribeEndpoint' => [
- 'path' => '/api/v1/endpoints/{EndpointId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListInstances' => [
+ 'path' => '/api/v1/instances',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'EndpointId',
- 'in' => 'path',
+ 'name' => 'InstanceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
+ 'required' => false,
+ 'enum' => ['basic', 'enhanced'],
],
],
- ],
- ],
- 'DescribeComponent' => [
- 'path' => '/api/v1/components/{ComponentId}',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
- ],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
- [
- 'name' => 'ComponentId',
- 'in' => 'path',
+ 'name' => 'PaymentType',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
+ 'required' => false,
+ 'enum' => ['PayAsYouGo', 'Subscription'],
],
],
[
- 'name' => 'RenderTemplate',
+ 'name' => 'Phase',
'in' => 'query',
'schema' => [
- 'type' => 'boolean',
+ 'type' => 'string',
'required' => false,
+ 'enum' => ['Created', 'Running', 'Stopped'],
],
],
[
- 'name' => 'Values',
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
'in' => 'query',
- 'style' => 'json',
'schema' => [
- 'type' => 'object',
+ 'type' => 'string',
'required' => false,
- 'additionalProperties' => [
- 'type' => 'any',
- ],
+ 'enum' => ['Desc', 'Asc'],
],
],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
],
],
- 'ListComponents' => [
- 'path' => '/api/v1/components',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListSlots' => [
+ 'path' => '/api/v1/slots',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'ComponentIds',
+ 'name' => 'SlotIds',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'InstanceIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Name',
'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'StorageType',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
+ 'enum' => ['OSS', 'NAS'],
],
],
[
- 'name' => 'Version',
+ 'name' => 'Phase',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
+ 'enum' => ['Created', 'Preparing', 'Loading', 'Running', 'Succeed', 'Failed', 'Stopping', 'Stopped'],
],
],
[
'name' => 'SortBy',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Order',
@@ -1546,111 +820,42 @@
'schema' => [
'type' => 'string',
'required' => false,
- 'enum' => [
- 'Desc',
- 'Asc',
- ],
+ 'enum' => ['Desc', 'Asc'],
],
],
[
'name' => 'PageNumber',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
],
- ],
- ],
- 'CreateTag' => [
- 'path' => '/api/v1/tags',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
[
- 'AK' => [],
+ 'name' => 'EndpointIds',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
- ],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'deprecated' => false,
- 'parameters' => [
[
- 'name' => 'body',
- 'in' => 'body',
- 'style' => 'json',
- 'schema' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'ResourceType' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'Instance',
- 'Slot',
- ],
- ],
- 'ResourceId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Key' => [
- 'type' => 'string',
- 'required' => true,
- 'maxLength' => 64,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => true,
- 'maxLength' => 64,
- ],
- ],
- ],
+ 'name' => 'StorageUri',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
- 'DeleteTag' => [
+ 'ListTags' => [
'path' => '/api/v1/tags',
- 'methods' => [
- 'delete',
- ],
- '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' => [
[
@@ -1658,237 +863,299 @@
'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'Instance',
- 'Slot',
- ],
+ 'required' => false,
+ 'enum' => ['Instance', 'Slot'],
],
],
[
'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
'name' => 'Key',
'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ ],
+ [
+ 'name' => 'Value',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ ],
+ [
+ 'name' => 'SortBy',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => true,
- 'maxLength' => 64,
+ 'required' => false,
+ 'enum' => ['Desc', 'Asc'],
],
],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1'],
+ ],
],
],
- 'ListTags' => [
- 'path' => '/api/v1/tags',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'QueryInstanceMetrics' => [
+ 'path' => '/api/v1/instances/{InstanceId}/metrics/action/query',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'Dimensions',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Instance',
- 'Slot',
- ],
- ],
+ 'style' => 'json',
+ 'schema' => ['type' => 'object', 'required' => false],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'MetricType',
'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => false,
+ 'required' => true,
+ 'enum' => ['NetworkReceiveBytesPerSecond', 'NetworkTransmitBytesPerSecond', 'FrontendThroughputBytes', 'FrontendLatencyMicrosecond', 'FrontendIops'],
],
],
[
- 'name' => 'Key',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'Value',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'SortBy',
+ 'name' => 'TimeStep',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
+ ],
+ ],
+ 'QuerySlotMetrics' => [
+ 'path' => '/api/v1/slots/{SlotId}/metrics/action/query',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Order',
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'SlotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'Dimensions',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => ['type' => 'object', 'required' => false],
+ ],
+ [
+ 'name' => 'MetricType',
'in' => 'query',
'schema' => [
'type' => 'string',
- 'required' => false,
- 'enum' => [
- 'Desc',
- 'Asc',
- ],
+ 'required' => true,
+ 'enum' => ['NetworkTransmitBytesPerSecond', 'NetworkReceiveBytesPerSecond', 'FrontendThroughputBytes', 'FrontendLatencyMicrosecond', 'FrontendIops'],
],
],
[
- 'name' => 'PageNumber',
+ 'name' => 'StartTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
],
[
- 'name' => 'PageSize',
+ 'name' => 'EndTime',
'in' => 'query',
- 'schema' => [
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'minimum' => '1',
- ],
+ 'schema' => ['type' => 'string', 'required' => false],
+ ],
+ [
+ 'name' => 'TimeStep',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false],
],
],
],
'QueryStatistic' => [
'path' => '/api/v1/statistics/action/query',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'Fields',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', '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],
],
],
],
'ReloadSlot' => [
'path' => '/api/v1/slots/{SlotId}/action/reload',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'SlotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
],
- 'produces' => [
- 'application/json',
+ ],
+ 'StopSlot' => [
+ 'path' => '/api/v1/slots/{SlotId}/action/stop',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'SlotId',
'in' => 'path',
- 'schema' => [
- 'type' => 'string',
- 'required' => true,
- ],
+ 'schema' => ['type' => 'string', 'required' => true],
],
],
],
- 'CreateSlots' => [
- 'path' => '/api/v1/batch/slots/create',
- 'methods' => [
- 'post',
+ 'UnbindEndpoint' => [
+ 'path' => '/api/v1/endpoints/{EndpointId}/slots/{SlotId}',
+ 'methods' => ['delete'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'EndpointId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'SlotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
],
+ ],
+ 'UpdateInstance' => [
+ 'path' => '/api/v1/instances/{InstanceId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'deprecated' => false,
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'object',
+ 'required' => false,
+ 'properties' => [
+ 'Name' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Description' => ['type' => 'string', 'required' => false, 'maxLength' => 1024],
+ 'MaxSlot' => ['type' => 'string', 'required' => false],
+ ],
+ ],
+ ],
],
- 'produces' => [
- 'application/json',
+ ],
+ 'UpdateSlot' => [
+ 'path' => '/api/v1/slots/{SlotId}',
+ 'methods' => ['put'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
+ 'name' => 'SlotId',
+ 'in' => 'path',
+ 'schema' => ['type' => 'string', 'required' => true],
+ ],
+ [
'name' => 'body',
'in' => 'body',
'style' => 'json',
@@ -1896,83 +1163,28 @@
'type' => 'object',
'required' => false,
'properties' => [
- 'Slots' => [
+ 'Name' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Description' => ['type' => 'string', 'required' => false, 'maxLength' => 1024],
+ 'Tags' => [
'type' => 'array',
'required' => false,
'items' => [
'type' => 'object',
'required' => false,
'properties' => [
- 'InstanceId' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Name' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Description' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 1024,
- ],
- 'Tags' => [
- 'type' => 'array',
- 'required' => false,
- 'items' => [
- 'type' => 'object',
- 'required' => false,
- 'properties' => [
- 'Key' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- 'Value' => [
- 'type' => 'string',
- 'required' => false,
- 'maxLength' => 64,
- ],
- ],
- ],
- ],
- 'LifeCycle' => [
- '$ref' => '#/components/schemas/SlotLifeCycle',
- 'required' => false,
- ],
- 'IoType' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'StorageType' => [
- 'type' => 'string',
- 'required' => true,
- 'enum' => [
- 'OSS',
- 'NAS',
- 'CPFS',
- ],
- ],
- 'StorageUri' => [
- 'type' => 'string',
- 'required' => true,
- ],
- 'Capacity' => [
- 'type' => 'string',
- 'required' => false,
- ],
- 'EndpointIds' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'Key' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
+ 'Value' => ['type' => 'string', 'required' => false, 'maxLength' => 64],
],
],
],
- 'DryRun' => [
- 'type' => 'boolean',
- 'required' => false,
+ 'StorageType' => [
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['OSS', 'NAS'],
],
+ 'StorageUri' => ['type' => 'string', 'required' => true],
+ 'Capacity' => ['type' => 'string', 'required' => true],
+ 'LifeCycle' => ['$ref' => '#/components/schemas/SlotLifeCycle', 'required' => false],
],
],
],
@@ -1980,21 +1192,9 @@
],
],
'endpoints' => [
- [
- 'regionId' => 'cn-beijing',
- 'endpoint' => 'paidatasetacc.cn-beijing.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-hangzhou',
- 'endpoint' => 'paidatasetacc.cn-hangzhou.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shanghai',
- 'endpoint' => 'paidatasetacc.cn-shanghai.aliyuncs.com',
- ],
- [
- 'regionId' => 'cn-shenzhen',
- 'endpoint' => 'paidatasetacc.cn-shenzhen.aliyuncs.com',
- ],
+ ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paidatasetacc.cn-beijing.aliyuncs.com', 'endpoint' => 'paidatasetacc.cn-beijing.aliyuncs.com', 'vpc' => 'paidatasetacc-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paidatasetacc.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paidatasetacc.cn-hangzhou.aliyuncs.com', 'vpc' => 'paidatasetacc-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paidatasetacc.cn-shanghai.aliyuncs.com', 'endpoint' => 'paidatasetacc.cn-shanghai.aliyuncs.com', 'vpc' => 'paidatasetacc-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paidatasetacc.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paidatasetacc.cn-shenzhen.aliyuncs.com', 'vpc' => 'paidatasetacc-vpc.cn-shenzhen.aliyuncs.com'],
],
];