summaryrefslogtreecommitdiff
path: root/data/en_us/eas
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/eas')
-rw-r--r--data/en_us/eas/2021-07-01/api-docs.php16380
1 files changed, 16380 insertions, 0 deletions
diff --git a/data/en_us/eas/2021-07-01/api-docs.php b/data/en_us/eas/2021-07-01/api-docs.php
new file mode 100644
index 0000000..4d4e510
--- /dev/null
+++ b/data/en_us/eas/2021-07-01/api-docs.php
@@ -0,0 +1,16380 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'ROA',
+ 'product' => 'eas',
+ 'version' => '2021-07-01',
+ ],
+ 'directories' => [
+ [
+ 'id' => 360783,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateService',
+ 'CreateServiceAutoScaler',
+ 'CreateServiceCronScaler',
+ 'CreateServiceMirror',
+ 'CreateAppService',
+ 'DescribeGroupEndpoints',
+ 'DescribeServiceEndpoints',
+ 'DescribeServiceSignedUrl',
+ 'CloneService',
+ 'DeleteService',
+ 'DeleteServiceLabel',
+ 'DeleteServiceAutoScaler',
+ 'DeleteServiceCronScaler',
+ 'DeleteServiceInstances',
+ 'DeleteServiceMirror',
+ 'UpdateService',
+ 'UpdateServiceLabel',
+ 'StartService',
+ 'StopService',
+ 'RestartService',
+ 'UpdateServiceAutoScaler',
+ 'UpdateServiceCronScaler',
+ 'DevelopService',
+ 'CommitService',
+ 'UpdateServiceMirror',
+ 'UpdateServiceVersion',
+ 'UpdateServiceSafetyLock',
+ 'UpdateServiceInstance',
+ 'UpdateAppService',
+ 'UpdateGroup',
+ 'ReleaseService',
+ 'DescribeService',
+ 'DescribeServiceAutoScaler',
+ 'DescribeServiceCronScaler',
+ 'DescribeServiceDiagnosis',
+ 'DescribeServiceInstanceDiagnosis',
+ 'DescribeServiceLog',
+ 'DescribeServiceEvent',
+ 'DescribeServiceMirror',
+ 'DescribeGroup',
+ 'DescribeSpotDiscountHistory',
+ 'ListServiceInstances',
+ 'ListServiceVersions',
+ 'ListServiceContainers',
+ 'ListServices',
+ 'ListGroups',
+ 'DescribeMachineSpec',
+ ],
+ ],
+ [
+ 'id' => 360831,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateVirtualResource',
+ 'ListVirtualResource',
+ 'DescribeVirtualResource',
+ 'DeleteVirtualResource',
+ 'CreateVirtualResource',
+ 'CreateResource',
+ 'CreateResourceInstances',
+ 'CreateResourceLog',
+ 'DeleteResource',
+ 'DeleteResourceDLink',
+ 'DeleteResourceInstances',
+ 'DeleteResourceLog',
+ 'DeleteResourceInstanceLabel',
+ 'MigrateResourceInstance',
+ 'UpdateResourceInstanceLabel',
+ 'UpdateResource',
+ 'UpdateResourceDLink',
+ 'UpdateResourceInstance',
+ 'DescribeResource',
+ 'DescribeResourceDLink',
+ 'DescribeResourceLog',
+ 'ListResourceInstances',
+ 'ListResourceInstanceWorker',
+ 'ListResources',
+ 'ListResourceServices',
+ ],
+ ],
+ [
+ 'id' => 360857,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateBenchmarkTask',
+ 'DeleteBenchmarkTask',
+ 'DescribeBenchmarkTask',
+ 'DescribeBenchmarkTaskReport',
+ 'ListBenchmarkTask',
+ 'StartBenchmarkTask',
+ 'StopBenchmarkTask',
+ 'UpdateBenchmarkTask',
+ ],
+ ],
+ [
+ 'id' => 360866,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'DeleteGatewayLabel',
+ 'UpdateGatewayLabel',
+ 'DetachGatewayDomain',
+ 'AttachGatewayDomain',
+ 'ListGatewayDomains',
+ 'ListGateway',
+ 'ListAclPolicy',
+ 'DeleteAclPolicy',
+ 'CreateAclPolicy',
+ 'CreateGateway',
+ 'DescribeGateway',
+ 'UpdateGateway',
+ 'CreateGatewayIntranetLinkedVpc',
+ 'ListGatewayIntranetLinkedVpc',
+ 'ListGatewayIntranetSupportedZone',
+ 'ListGatewayIntranetSupportedZone',
+ 'DeleteGatewayIntranetLinkedVpc',
+ 'DeleteGateway',
+ 'ListGatewayIntranetLinkedVpcPeer',
+ 'CreateGatewayIntranetLinkedVpcPeer',
+ 'DeleteGatewayIntranetLinkedVpcPeer',
+ ],
+ ],
+ [
+ 'id' => 360887,
+ 'title' => null,
+ 'type' => 'directory',
+ 'children' => [
+ 'DescribeRegions',
+ 'ReinstallTenantAddon',
+ 'ListServiceInstanceFaultInjectionInfo',
+ 'CreateFaultInjection',
+ 'DeleteFaultInjection',
+ 'ListTenantAddons',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'ContainerInfo' => [
+ 'title' => '',
+ 'description' => 'The response parameters.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '',
+ 'description' => 'The container name.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'worker0',
+ 'backendName' => 'Name',
+ ],
+ 'Image' => [
+ 'title' => '',
+ 'description' => 'The image.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320',
+ 'backendName' => 'Image',
+ ],
+ 'Port' => [
+ 'title' => '',
+ 'description' => 'The port number.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ 'backendName' => 'Port',
+ ],
+ 'RestartCount' => [
+ 'title' => '',
+ 'description' => 'The number of times the container restarted.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'RestartCount',
+ ],
+ 'Ready' => [
+ 'title' => '',
+ 'description' => 'Indicates whether the container passed the health check.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* false'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'visibility' => 'public',
+ 'type' => 'boolean',
+ 'enumValueTitles' => [
+ 'true' => '',
+ 'false' => '',
+ ],
+ 'example' => 'true',
+ 'backendName' => 'Ready',
+ ],
+ 'CurrentStatus' => [
+ 'title' => '',
+ 'description' => 'The current state of the container. Valid values:'."\n"
+ ."\n"
+ .'* Waiting'."\n"
+ .'* Running'."\n"
+ .'* Terminated'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Waiting',
+ 'backendName' => 'CurrentStatus',
+ ],
+ 'CurrentReaon' => [
+ 'title' => '',
+ 'description' => 'The reason why the container is in the current state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'PodInitializing',
+ 'backendName' => 'CurrentReaon',
+ ],
+ 'CurrentTimestamp' => [
+ 'title' => '',
+ 'description' => 'The time when the container entered the current state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2022-03-21T06:17:57Z',
+ 'backendName' => 'CurrentTimestamp',
+ ],
+ 'LastStatus' => [
+ 'title' => '',
+ 'description' => 'The last state of the container. Valid values:'."\n"
+ ."\n"
+ .'* Waiting'."\n"
+ .'* Running'."\n"
+ .'* Terminated'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Terminated',
+ 'backendName' => 'LastStatus',
+ ],
+ 'LastReason' => [
+ 'title' => '',
+ 'description' => 'The reason why the container is in the last state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Error',
+ 'backendName' => 'LastReason',
+ ],
+ 'LastTimestamp' => [
+ 'title' => '',
+ 'description' => 'The time when the container entered the last state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2022-03-21T05:17:57Z',
+ 'backendName' => 'LastTimestamp',
+ ],
+ ],
+ ],
+ 'Group' => [
+ 'title' => '',
+ 'description' => 'The service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '',
+ 'description' => 'The name of the service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'foo',
+ 'backendName' => 'Name',
+ ],
+ 'ClusterId' => [
+ 'title' => '',
+ 'description' => 'The region where the service group resides.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ 'backendName' => 'ClusterId',
+ ],
+ 'CreateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the service group was created. The time is displayed in UTC.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2020-05-19T14:19:42Z',
+ 'backendName' => 'CreateTime',
+ ],
+ 'UpdateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the service group was updated. The time is displayed in UTC.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2021-01-29T11:13:20Z',
+ 'backendName' => 'UpdateTime',
+ ],
+ 'QueueService' => [
+ 'title' => '',
+ 'description' => 'The queue service that is included in the service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'qservice',
+ 'backendName' => 'QueueService',
+ ],
+ 'InternetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The public endpoint of the service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://1110*****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group',
+ 'backendName' => 'InternetEndpoint',
+ ],
+ 'IntranetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The internal endpoint of the service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://1110*****.vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/test_group',
+ 'backendName' => 'IntranetEndpoint',
+ ],
+ 'AccessToken' => [
+ 'title' => '',
+ 'description' => 'The token that is used to access the service group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********',
+ 'backendName' => 'AccessToken',
+ ],
+ 'TrafficMode' => [
+ 'title' => '',
+ 'description' => 'The traffic mode.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* auto: The traffic is automatically allocated based on the number of instances.'."\n"
+ .'* customized: The traffic is allocated based on the custom weight.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'auto' => '',
+ 'customized' => '',
+ ],
+ 'example' => 'auto',
+ 'backendName' => 'TrafficMode',
+ ],
+ ],
+ ],
+ 'Instance' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'The response parameters.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'HostIP' => [
+ 'title' => '',
+ 'description' => 'The IP address of the host where the instance resides.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '11.0.XX.XX',
+ 'backendName' => 'HostIP',
+ ],
+ 'HostName' => [
+ 'title' => '',
+ 'description' => 'The name of the host where the instance resides.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'smart-scene-cls-854dbdc99d-****',
+ 'backendName' => 'HostName',
+ ],
+ 'InnerIP' => [
+ 'title' => '',
+ 'description' => 'The internal IP address of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '172.17.0.17',
+ 'backendName' => 'InnerIP',
+ ],
+ 'InstanceName' => [
+ 'title' => '',
+ 'description' => 'The instance name.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'foo-5fc8946767-v****',
+ 'backendName' => 'InstanceName',
+ ],
+ 'InstancePort' => [
+ 'title' => '',
+ 'description' => 'The network port of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ 'backendName' => 'InstancePort',
+ ],
+ 'LastState' => [
+ 'title' => '',
+ 'description' => 'The last state of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the instance state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'example' => '[]',
+ 'extendType' => 'true',
+ ],
+ 'backendName' => 'LastState',
+ ],
+ 'Namespace' => [
+ 'title' => '',
+ 'description' => 'The namespace of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'foo',
+ 'backendName' => 'Namespace',
+ ],
+ 'Reason' => [
+ 'title' => '',
+ 'description' => 'The reason for which the instance is in the current state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ 'backendName' => 'Reason',
+ ],
+ 'RestartCount' => [
+ 'title' => '',
+ 'description' => 'The number of times for which the instance is restarted.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'RestartCount',
+ ],
+ 'Status' => [
+ 'title' => '',
+ 'description' => 'The current state of the instance.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Terminating'."\n"
+ .'* Succeeded'."\n"
+ .'* Unknown'."\n"
+ .'* Failed'."\n"
+ .'* Running'."\n"
+ .'* Pending'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Terminating' => '',
+ 'Succeeded' => '',
+ 'Unknown' => '',
+ 'Failed' => '',
+ 'Running' => '',
+ 'Pending' => '',
+ ],
+ 'example' => 'Running',
+ 'backendName' => 'Status',
+ ],
+ 'TotalProcesses' => [
+ 'title' => '',
+ 'description' => 'The total number of processes that the instance contains.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'TotalProcesses',
+ ],
+ 'ReadyProcesses' => [
+ 'title' => '',
+ 'description' => 'The number of processes that have started for the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'ReadyProcesses',
+ ],
+ 'StartAt' => [
+ 'title' => '',
+ 'description' => 'The time when the instance was started. This parameter is deprecated. StartTime is used instead.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => '2021-05-27T09:46:05Z',
+ 'backendName' => 'StartAt',
+ ],
+ 'Role' => [
+ 'title' => '',
+ 'description' => 'The service role of the instance. Valid values: Queue, DataLoader, and Standard.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Standard',
+ 'backendName' => 'Role',
+ ],
+ 'ResourceType' => [
+ 'title' => '',
+ 'description' => 'The type of the resource group to which the instance belongs. Valid values: PublicResource and PrivateResource.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'PublicResource',
+ 'backendName' => 'ResourceType',
+ ],
+ 'TenantInstanceIP' => [
+ 'title' => '',
+ 'description' => 'The IP address of the instance in the VPC.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '192.168.xx.xx',
+ 'backendName' => 'TenantInstanceIP',
+ ],
+ 'TenantHostIP' => [
+ 'title' => '',
+ 'description' => 'The IP address of the host in the VPC.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '192.168.xx.xx',
+ 'backendName' => 'TenantHostIP',
+ ],
+ 'IsSpot' => [
+ 'title' => '',
+ 'description' => 'Indicates whether the instance is a spot instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'backendName' => 'IsSpot',
+ ],
+ 'CurrentAmount' => [
+ 'title' => '',
+ 'description' => 'The current hourly price of the spot instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.444',
+ 'backendName' => 'CurrentAmount',
+ ],
+ 'OriginalAmount' => [
+ 'title' => '',
+ 'description' => 'The original hourly price of the spot instance before a discount is used.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '2.2',
+ 'backendName' => 'OriginalAmount',
+ ],
+ 'Isolated' => [
+ 'title' => '',
+ 'description' => 'Indicates whether the instance is isolated.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'backendName' => 'Isolated',
+ ],
+ 'Zone' => [
+ 'title' => '',
+ 'description' => 'The zone to which the instance belongs.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai-a',
+ 'backendName' => 'Zone',
+ ],
+ 'ExternalIP' => [
+ 'title' => '',
+ 'description' => 'The IP address of the instance in the user-created VPC.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => '192.168.1.100',
+ 'backendName' => 'ExternalIP',
+ ],
+ 'ExternalInstancePort' => [
+ 'title' => '',
+ 'description' => 'The port number of the instance in the user-created VPC.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ 'backendName' => 'ExternalInstancePort',
+ ],
+ 'StartTime' => [
+ 'title' => '',
+ 'description' => 'The time when the instance was started.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => '2021-05-27T09:46:05Z',
+ 'backendName' => 'StartTime',
+ ],
+ 'InstanceType' => [
+ 'title' => '',
+ 'description' => 'The instance specification.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'ecs.c7.large',
+ 'backendName' => 'InstanceType',
+ ],
+ ],
+ ],
+ 'Resource' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceId' => [
+ 'title' => '',
+ 'description' => 'The resource group ID.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-r-asdasdasd',
+ 'backendName' => 'ResourceId',
+ ],
+ 'ResourceName' => [
+ 'title' => '',
+ 'description' => 'The name of the resource group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'iot',
+ 'backendName' => 'ResourceName',
+ ],
+ 'ResourceType' => [
+ 'title' => '',
+ 'description' => 'The type of the resource group. Valid values:'."\n"
+ ."\n"
+ .'* Dedicated: the dedicated resource group.'."\n"
+ .'* SelfManaged: the self-managed resource group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Dedicated',
+ 'backendName' => 'ResourceType',
+ ],
+ 'ClusterId' => [
+ 'title' => '',
+ 'description' => 'The information about the clusters.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ 'backendName' => 'ClusterId',
+ ],
+ 'CreateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the instance was created.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2019-02-26T17:52:49Z',
+ 'backendName' => 'CreateTime',
+ ],
+ 'UpdateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the instance was last updated.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2019-02-26T19:52:49Z',
+ 'backendName' => 'UpdateTime',
+ ],
+ 'InstanceCount' => [
+ 'title' => '',
+ 'description' => 'The total number of instances. It is equal to the number of subscription instances plus the number of pay-as-you-go instances.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ 'backendName' => 'InstanceCount',
+ ],
+ 'PrePaidInstanceCount' => [
+ 'title' => '',
+ 'description' => 'The number of subscription instances.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'backendName' => 'PrePaidInstanceCount',
+ ],
+ 'PostPaidInstanceCount' => [
+ 'title' => '',
+ 'description' => 'The number of pay-as-you-go instances.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'backendName' => 'PostPaidInstanceCount',
+ ],
+ 'CpuCount' => [
+ 'title' => '',
+ 'description' => 'The total number of CPU cores.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '64',
+ 'backendName' => 'CpuCount',
+ ],
+ 'GpuCount' => [
+ 'title' => '',
+ 'description' => 'The total number of GPUs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'GpuCount',
+ ],
+ 'Status' => [
+ 'title' => '',
+ 'description' => 'The status of the resource group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'ResouceReady',
+ 'backendName' => 'Status',
+ ],
+ 'Message' => [
+ 'title' => '',
+ 'description' => 'The latest message about the resource group.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Resource is ready',
+ 'backendName' => 'Message',
+ ],
+ 'ExtraData' => [
+ 'title' => '',
+ 'description' => 'The additional information.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'example' => '{}',
+ 'backendName' => 'ExtraData',
+ ],
+ 'Vendor' => [
+ 'title' => '',
+ 'description' => 'The vendor of the resource group instances.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* ECS'."\n"
+ .'* BareMetal'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'ECS' => 'ECS',
+ 'BareMetal' => 'BareMetal',
+ ],
+ 'example' => 'ECS',
+ 'backendName' => 'Vendor',
+ 'enum' => [
+ 'ECS',
+ 'BareMetal',
+ ],
+ ],
+ ],
+ ],
+ 'ResourceInstance' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'title' => '',
+ 'description' => 'The instance ID.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-i-1800z74n30kao****',
+ 'backendName' => 'InstanceId',
+ ],
+ 'InstanceName' => [
+ 'title' => '',
+ 'description' => 'The instance name.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas01122713204*****',
+ 'backendName' => 'InstanceName',
+ ],
+ 'InstanceIp' => [
+ 'title' => '',
+ 'description' => 'The IP address of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '11.227.XX.XX',
+ 'backendName' => 'InstanceIp',
+ ],
+ 'InstanceStatus' => [
+ 'title' => '',
+ 'description' => 'The instance status.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Ready-SchedulingDisabled'."\n"
+ .'* Ready'."\n"
+ .'* NotReady'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Ready-SchedulingDisabled' => '',
+ 'Ready' => '',
+ 'NotReady' => '',
+ ],
+ 'example' => 'Ready',
+ 'backendName' => 'InstanceStatus',
+ ],
+ 'InstanceCpuCount' => [
+ 'title' => '',
+ 'description' => 'The number of CPU cores for the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ 'backendName' => 'InstanceCpuCount',
+ ],
+ 'InstanceGpuCount' => [
+ 'title' => '',
+ 'description' => 'The number of GPUs for the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'InstanceGpuCount',
+ ],
+ 'InstanceMemory' => [
+ 'title' => '',
+ 'description' => 'The memory size of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '8192M',
+ 'backendName' => 'InstanceMemory',
+ ],
+ 'InstanceSystemDiskSize' => [
+ 'title' => '',
+ 'description' => 'The system disk size of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ 'backendName' => 'InstanceSystemDiskSize',
+ ],
+ 'InstanceGpuMemory' => [
+ 'title' => '',
+ 'description' => 'The GPU memory size of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '0G',
+ 'backendName' => 'InstanceGpuMemory',
+ ],
+ 'InstanceUsedCpu' => [
+ 'title' => '',
+ 'description' => 'The number of CPU cores used by the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '2.4',
+ 'backendName' => 'InstanceUsedCpu',
+ ],
+ 'InstanceUsedGpu' => [
+ 'title' => '',
+ 'description' => 'The number of GPUs used by the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0',
+ 'backendName' => 'InstanceUsedGpu',
+ ],
+ 'InstanceUsedMemory' => [
+ 'title' => '',
+ 'description' => 'The size of the memory used by the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '1000M',
+ 'backendName' => 'InstanceUsedMemory',
+ ],
+ 'InstanceType' => [
+ 'title' => '',
+ 'description' => 'The instance type.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'ecs.s6-c1m2.xlarge',
+ 'backendName' => 'InstanceType',
+ ],
+ 'CreateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the instance was created.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2020-07-05T22:51:32Z',
+ 'backendName' => 'CreateTime',
+ ],
+ 'ChargeType' => [
+ 'title' => '',
+ 'description' => 'The billing method of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'PrePaid',
+ 'backendName' => 'ChargeType',
+ ],
+ 'ExpiredTime' => [
+ 'title' => '',
+ 'description' => 'The time when the instance expires.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2020-08-05T22:51:32Z',
+ 'backendName' => 'ExpiredTime',
+ ],
+ 'AutoRenewal' => [
+ 'title' => '',
+ 'description' => 'Indicates whether auto-renewal is enabled for the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ 'backendName' => 'AutoRenewal',
+ ],
+ 'Arch' => [
+ 'title' => '',
+ 'description' => 'The system architecture of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'arm64',
+ 'backendName' => 'Arch',
+ ],
+ 'Region' => [
+ 'title' => '',
+ 'description' => 'The region ID of the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ 'backendName' => 'Region',
+ ],
+ 'Zone' => [
+ 'title' => '',
+ 'description' => 'The ID of the zone to which the instance belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-b',
+ 'backendName' => 'Zone',
+ ],
+ 'ResourceId' => [
+ 'title' => '',
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-r-xxxxx',
+ 'backendName' => 'ResourceId',
+ ],
+ 'InstanceTenantIp' => [
+ 'title' => '',
+ 'description' => 'The IP address of the instance in the VPC.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '192.168.xx.xx',
+ 'backendName' => 'InstanceTenantIp',
+ ],
+ 'InstanceUsedGpuMemory' => [
+ 'title' => '',
+ 'description' => 'The size of the GPU memory used by the instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '470M',
+ 'backendName' => 'InstanceUsedGpuMemory',
+ ],
+ 'Labels' => [
+ 'title' => '',
+ 'description' => 'The instance tags.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'array',
+ 'items' => [
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'LabelKey' => [
+ 'title' => '',
+ 'description' => 'The tag key of the instance.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'key',
+ 'backendName' => 'LabelKey',
+ ],
+ 'LabelValue' => [
+ 'title' => '',
+ 'description' => 'The tag value of the instance.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'value',
+ 'backendName' => 'LabelValue',
+ ],
+ ],
+ 'extendType' => 'true',
+ 'description' => '',
+ ],
+ 'backendName' => 'Labels',
+ ],
+ ],
+ ],
+ 'ResourceInstanceWorker' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'A short description of struct'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '',
+ 'description' => 'The name of the service instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'test-india-5bbbfdbc98-****',
+ 'backendName' => 'Name',
+ ],
+ 'ServiceName' => [
+ 'title' => '',
+ 'description' => 'The service name.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'test-in****',
+ 'backendName' => 'ServiceName',
+ ],
+ 'Status' => [
+ 'title' => '',
+ 'description' => 'The instance state.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Terminating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Succeeded'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Unknown'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Failed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Pending'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Terminating' => '',
+ 'Succeeded' => '',
+ 'Unknown' => '',
+ 'Failed' => '',
+ 'Running' => '',
+ 'Pending' => '',
+ ],
+ 'example' => 'Running',
+ 'backendName' => 'Status',
+ ],
+ 'Ready' => [
+ 'title' => '',
+ 'description' => 'Indicates whether the instance worker is ready.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ 'backendName' => 'Ready',
+ ],
+ 'CpuRequest' => [
+ 'title' => 'CpuRequest',
+ 'description' => 'The number of CPU cores that you applied for.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'CpuRequest',
+ ],
+ 'GpuRequest' => [
+ 'title' => 'GpuRequest',
+ 'description' => 'The number of GPUs that you applied for.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'GpuRequest',
+ ],
+ 'MemoryRquest' => [
+ 'title' => 'MemoryRquest',
+ 'description' => 'The memory size that you applied for.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ 'backendName' => 'MemoryRquest',
+ ],
+ 'CpuLimit' => [
+ 'title' => 'CpuLimit',
+ 'description' => 'The maximum number of CPU cores.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ 'backendName' => 'CpuLimit',
+ ],
+ 'GpuLimit' => [
+ 'title' => 'GpuLimit',
+ 'description' => 'The maximum number of GPUs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'GpuLimit',
+ ],
+ 'MemoryLimit' => [
+ 'title' => 'MemoryLimit',
+ 'description' => 'The maximum memory size.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '400',
+ 'backendName' => 'MemoryLimit',
+ ],
+ 'RestartCount' => [
+ 'title' => 'RestartCount',
+ 'description' => 'The number of times the instance worker restarted.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ 'backendName' => 'RestartCount',
+ ],
+ 'StartTime' => [
+ 'title' => 'StartTime',
+ 'description' => 'The time when the instance worker started.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2021-05-09T09:56:19Z',
+ 'backendName' => 'StartTime',
+ ],
+ ],
+ ],
+ 'Service' => [
+ 'title' => 'A short description of struct',
+ 'description' => 'The service details.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'QuotaId' => [
+ 'description' => 'The quota ID for the service. This parameter is available only for services deployed by using Lingjun resource quotas.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'quotaxxxxx',
+ 'backendName' => 'QuotaId',
+ ],
+ 'Message' => [
+ 'title' => '',
+ 'description' => 'The service summary.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Service start successfully',
+ 'backendName' => 'Message',
+ ],
+ 'ServiceGroup' => [
+ 'title' => '',
+ 'description' => 'The group to which the service belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'my_group',
+ 'backendName' => 'ServiceGroup',
+ ],
+ 'Memory' => [
+ 'title' => '',
+ 'description' => 'The memory size that you applied for each instance. Unit: MB.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1024',
+ 'backendName' => 'Memory',
+ ],
+ 'CurrentVersion' => [
+ 'title' => '',
+ 'description' => 'The version of the model that is running.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'CurrentVersion',
+ ],
+ 'RunningInstance' => [
+ 'title' => '',
+ 'description' => 'The number of instances for the running service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'RunningInstance',
+ ],
+ 'WorkspaceId' => [
+ 'title' => '',
+ 'description' => 'The ID of the workspace to which the service belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '123445',
+ 'backendName' => 'WorkspaceId',
+ ],
+ 'Cpu' => [
+ 'title' => '',
+ 'description' => 'The number of CPU cores that you applied for each instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'Cpu',
+ ],
+ 'Image' => [
+ 'title' => '',
+ 'description' => 'The data image of the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'registry.cn-shanghai.aliyuncs.com/eas/echo_cn-shanghai:v0.0.1-20210129111320',
+ 'backendName' => 'Image',
+ ],
+ 'Gpu' => [
+ 'title' => '',
+ 'description' => 'The number of GPUs that you applied for each instance.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'Gpu',
+ ],
+ 'CallerUid' => [
+ 'title' => '',
+ 'description' => 'The user ID (UID) of the Alibaba Cloud account that is used to create the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '20123*******',
+ 'backendName' => 'CallerUid',
+ ],
+ 'Reason' => [
+ 'title' => '',
+ 'description' => 'The reason for which the service is in the current state.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ 'backendName' => 'Reason',
+ ],
+ 'Source' => [
+ 'title' => '',
+ 'description' => 'The source from which the service deployment request is initiated.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'dsw',
+ 'backendName' => 'Source',
+ ],
+ 'ServiceId' => [
+ 'title' => '',
+ 'description' => 'The unique ID of the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-m-xxasdat',
+ 'backendName' => 'ServiceId',
+ ],
+ 'TotalInstance' => [
+ 'title' => '',
+ 'description' => 'The total number of instances for the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'TotalInstance',
+ ],
+ 'AppVersion' => [
+ 'title' => '',
+ 'description' => 'The application service version.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'v1',
+ 'backendName' => 'AppVersion',
+ ],
+ 'ServiceConfig' => [
+ 'title' => '',
+ 'description' => 'The service configurations.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '{ "metadata": { "cpu":1, "instance":1, "memory":1024 }, "name":"echo", "processor_entry":"libecho.so", "processor_path":"http://oss-cn-hangzhou-zmf.aliyuncs.com/059247/echo_processor_release.tar.gz", "processor_type":"cpp" }',
+ 'backendName' => 'ServiceConfig',
+ ],
+ 'AccessToken' => [
+ 'title' => '',
+ 'description' => 'The token that is used to access the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********',
+ 'backendName' => 'AccessToken',
+ ],
+ 'Gateway' => [
+ 'description' => 'The ID of the dedicated gateway for the service. This parameter is available only for services that are associated with dedicated gateways.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'example' => 'gw-xxxxxx',
+ 'backendName' => 'Gateway',
+ ],
+ 'AppSpecName' => [
+ 'title' => '',
+ 'description' => 'The name of the application service specification.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'llama_7b_fp16',
+ 'backendName' => 'AppSpecName',
+ ],
+ 'InternetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The public endpoint of the service. This parameter is returned only in the DescribeService API operation.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo',
+ 'backendName' => 'InternetEndpoint',
+ ],
+ 'ResourceAlias' => [
+ 'title' => '',
+ 'description' => 'The alias of the resource group to which the service belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'my_resource',
+ 'backendName' => 'ResourceAlias',
+ ],
+ 'Status' => [
+ 'title' => '',
+ 'description' => 'The service status.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ .'* Deploying'."\n"
+ .'* Stopped'."\n"
+ .'* Failed'."\n"
+ .'* Updating'."\n"
+ .'* Stopping'."\n"
+ .'* Waiting'."\n"
+ .'* HotUpdate'."\n"
+ .'* Starting'."\n"
+ .'* DeleteFailed'."\n"
+ .'* Running'."\n"
+ .'* Scaling'."\n"
+ .'* Pending'."\n"
+ .'* Deleting'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => '',
+ 'Deploying' => '',
+ 'Stopped' => '',
+ 'Failed' => '',
+ 'Updating' => '',
+ 'Stopping' => '',
+ 'Waiting' => '',
+ 'HotUpdate' => '',
+ 'Starting' => '',
+ 'DeleteFailed' => '',
+ 'Running' => '',
+ 'Scaling' => '',
+ 'Pending' => '',
+ 'Deleting' => '',
+ ],
+ 'example' => 'Running',
+ 'backendName' => 'Status',
+ ],
+ 'AppConfig' => [
+ 'title' => '',
+ 'description' => 'The application service configuration.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '{"ModelStorage":"oss"}',
+ 'backendName' => 'AppConfig',
+ ],
+ 'TrafficState' => [
+ 'title' => '',
+ 'description' => 'The traffic state.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* standalone: independent traffic.'."\n"
+ .'* grouping: grouped traffic.'."\n",
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'standalone' => 'standalone',
+ 'grouping' => 'grouping',
+ ],
+ 'example' => 'standalone',
+ 'backendName' => 'TrafficState',
+ ],
+ 'RequestId' => [
+ 'title' => '',
+ 'description' => 'The request ID.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82********',
+ 'backendName' => 'RequestId',
+ ],
+ 'CreateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the service was created. The time is displayed in the UTC RFC3339 format.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2021-01-29T11:13:20Z',
+ 'backendName' => 'CreateTime',
+ ],
+ 'Resource' => [
+ 'title' => '',
+ 'description' => 'The resource group to which the service belongs.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-r-xxxxxxx',
+ 'backendName' => 'Resource',
+ ],
+ 'SecondaryInternetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The public endpoint that is used in the asynchronization request of the service. This parameter is returned only in the DescribeService API operation.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n",
+ 'backendName' => 'SecondaryInternetEndpoint',
+ ],
+ 'Labels' => [
+ 'title' => '',
+ 'description' => 'The labels.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'array',
+ 'items' => [
+ 'visibility' => 'public',
+ 'type' => 'object',
+ 'properties' => [
+ 'LabelValue' => [
+ 'title' => '',
+ 'description' => 'The label value.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'value1',
+ 'backendName' => 'LabelValue',
+ ],
+ 'LabelKey' => [
+ 'title' => '',
+ 'description' => 'The label key.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'key1',
+ 'backendName' => 'LabelKey',
+ ],
+ ],
+ 'extendType' => 'true',
+ 'description' => '',
+ ],
+ 'backendName' => 'Labels',
+ ],
+ 'ExtraData' => [
+ 'title' => '',
+ 'description' => 'The additional information about the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '{\\"blue_green_services\\":[\\"test\\",\\"testxxxx\\"]}',
+ 'backendName' => 'ExtraData',
+ ],
+ 'Namespace' => [
+ 'title' => '',
+ 'description' => 'The namespace in which the service resides.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'echo',
+ 'backendName' => 'Namespace',
+ ],
+ 'Weight' => [
+ 'title' => '',
+ 'description' => 'The weight of the service in canary release.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ 'backendName' => 'Weight',
+ ],
+ 'Role' => [
+ 'title' => '',
+ 'description' => 'The service role.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'Queue',
+ 'backendName' => 'Role',
+ ],
+ 'SecondaryIntranetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The internal endpoint that is used in the asynchronization request of the service. This parameter is returned only in the DescribeService API operation.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/async_path.echo'."\n",
+ 'backendName' => 'SecondaryIntranetEndpoint',
+ ],
+ 'PendingInstance' => [
+ 'title' => '',
+ 'description' => 'The number of instances for the pending service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '0',
+ 'backendName' => 'PendingInstance',
+ ],
+ 'LatestVersion' => [
+ 'title' => '',
+ 'description' => 'The latest version of the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ 'backendName' => 'LatestVersion',
+ ],
+ 'ServiceName' => [
+ 'title' => '',
+ 'description' => 'The service name.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'echo',
+ 'backendName' => 'ServiceName',
+ ],
+ 'SafetyLock' => [
+ 'title' => '',
+ 'description' => 'The security lock of the service.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* all: forbids all operations.'."\n"
+ .'* dangerous: forbids the operation of deleting or stopping the service.'."\n"
+ .'* none: forbids no operations.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'all' => '',
+ 'dangerous' => '',
+ 'none' => '',
+ ],
+ 'example' => 'dangerous',
+ 'backendName' => 'SafetyLock',
+ 'enum' => [
+ 'none',
+ 'dangerous',
+ 'all',
+ ],
+ ],
+ 'UpdateTime' => [
+ 'title' => '',
+ 'description' => 'The time when the service was updated. The time is displayed in the UTC RFC3339 format.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '2021-01-29T11:13:20Z',
+ 'backendName' => 'UpdateTime',
+ ],
+ 'ServiceUid' => [
+ 'title' => '',
+ 'description' => 'The service ID. ServiceUid has the same meaning as ServiceId, and the values of the two parameters are the same.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'eas-m-xxasdat'."\n",
+ 'backendName' => 'ServiceUid',
+ ],
+ 'Region' => [
+ 'title' => '',
+ 'description' => 'The region in which the service resides.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ 'backendName' => 'Region',
+ ],
+ 'AppType' => [
+ 'title' => '',
+ 'description' => 'The application service type.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'LLM',
+ 'backendName' => 'AppType',
+ ],
+ 'ParentUid' => [
+ 'title' => '',
+ 'description' => 'The UID of the Alibaba Cloud account that is used to create the service.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '11234*******',
+ 'backendName' => 'ParentUid',
+ ],
+ 'IntranetEndpoint' => [
+ 'title' => '',
+ 'description' => 'The internal endpoint of the service. This parameter is returned only in the DescribeService API operation.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo',
+ 'backendName' => 'IntranetEndpoint',
+ ],
+ 'RoleAttrs' => [
+ 'title' => '',
+ 'description' => 'The additional attributes of the service role. This parameter is returned only in the DescribeService API operation.'."\n",
+ 'visibility' => 'public',
+ 'type' => 'string',
+ 'example' => '"{\\"ApproxMaxLength\\":null,\\"Length\\":null,\\"MaxPayloadBytes\\":null}"',
+ 'backendName' => 'RoleAttrs',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'CreateService' => [
+ 'summary' => 'Creates a model service in Elastic Algorithm Service (EAS).',
+ 'path' => '/api/v2/services',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '37002',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => [
+ 'description' => 'The request body. For more information about the key request parameters, see **Table 1. Request body parameters** and **Table 2. Metadata parameters**. For more information about all related parameters, see [Parameters of model services](~~450525~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Service deployment by using an image:'."\n"
+ .'{'."\n"
+ .' "name": "foo",'."\n"
+ .' "metadata": {'."\n"
+ .' "instance": 2,'."\n"
+ .' "memory": 7000,'."\n"
+ .' "cpu": 4'."\n"
+ .' },'."\n"
+ .' "containers": ['."\n"
+ .' {'."\n"
+ .' "image": "****",'."\n"
+ .' "script": "**** --listen=0.0.0.0 --server_port=8000 --headless",'."\n"
+ .' "port": 8000'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "storage": ['."\n"
+ .' {'."\n"
+ .' "oss": {'."\n"
+ .' "path": "oss://examplebuket/data111/",'."\n"
+ .' "readOnly": false'."\n"
+ .' },'."\n"
+ .' "properties": {'."\n"
+ .' "resource_type": "model"'."\n"
+ .' },'."\n"
+ .' "mount_path": "/data"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'AI-Web application deployment by using an image:'."\n"
+ .'{'."\n"
+ .' "name": "foo",'."\n"
+ .' "metadata": {'."\n"
+ .' "instance": 1,'."\n"
+ .' "memory": 7000,'."\n"
+ .' "cpu": 4,'."\n"
+ .' "enable_webservice": true'."\n"
+ .' },'."\n"
+ .' "containers": ['."\n"
+ .' {'."\n"
+ .' "image": "****",'."\n"
+ .' "script": "**** --listen=0.0.0.0 --server_port=8000 --headless",'."\n"
+ .' "port": 8000'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "storage": ['."\n"
+ .' {'."\n"
+ .' "oss": {'."\n"
+ .' "path": "oss://examplebucket/data111/",'."\n"
+ .' "readOnly": false'."\n"
+ .' },'."\n"
+ .' "properties": {'."\n"
+ .' "resource_type": "model"'."\n"
+ .' },'."\n"
+ .' "mount_path": "/data"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .'}'."\n"
+ .'Service deployment by using models and processors:'."\n"
+ .'{'."\n"
+ .' "metadata": {'."\n"
+ .' "instance": 1,'."\n"
+ .' "memory": 7000,'."\n"
+ .' "cpu": 4'."\n"
+ .' },'."\n"
+ .' "name": "foo",'."\n"
+ .' "model_config": {},'."\n"
+ .' "processor_type": "python",'."\n"
+ .' "processor_path": "oss://****",'."\n"
+ .' "processor_entry": "a.py",'."\n"
+ .' "model_path": "oss://****"'."\n"
+ .'}',
+ ],
+ ],
+ [
+ 'name' => 'Develop',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否进入开发模式。',
+ 'description' => 'Specifies whether to enter development mode.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* false'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => '',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The custom label.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The label.'."\n",
+ 'example' => '{"key":"value"}',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The workspace ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123456',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceId' => [
+ 'description' => 'The ID of the created service.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-m-aaxxxddf',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The name of the created service.'."\n",
+ 'type' => 'string',
+ 'example' => 'yourname',
+ ],
+ 'Status' => [
+ 'description' => 'The service state.'."\n",
+ 'type' => 'string',
+ 'example' => 'Creating',
+ ],
+ 'Region' => [
+ 'description' => 'The region ID of the created service.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'InternetEndpoint' => [
+ 'description' => 'The public endpoint of the created service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://pai-eas.vpc.cn-shanghai.****',
+ ],
+ 'IntranetEndpoint' => [
+ 'description' => 'The internal endpoint of the created service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://pai-eas.cn-shanghai.****',
+ ],
+ ],
+ ],
+ ],
+ 400 => [],
+ 403 => [],
+ 409 => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceId\\": \\"eas-m-aaxxxddf\\",\\n \\"ServiceName\\": \\"yourname\\",\\n \\"Status\\": \\"Creating\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"InternetEndpoint\\": \\"http://pai-eas.vpc.cn-shanghai.****\\",\\n \\"IntranetEndpoint\\": \\"http://pai-eas.cn-shanghai.****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateService',
+ 'description' => '**Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).'."\n",
+ 'requestParamsDescription' => '**Table 1. Request body parameters**'."\n"
+ ."\n"
+ .'|Parameter|Type|Required|Description|'."\n"
+ .'|---|---|---|---|'."\n"
+ .'|name|String|Yes|The service name, which must be unique in a region.|'."\n"
+ .'|token|String|No|The token for authentication. If you do not specify a token and **generate\\_token** is set to true, the token is automatically generated.|'."\n"
+ .'|model\\_path|String|No|The path of the model file. You can specify an HTTP address or an Object Storage Service (OSS) path. If you specify an HTTP address, the HTTP address must be publicly accessible. If you specify an OSS path, the path can be a directory or file name. If you specify a `.tar.gz`, `.tar.bz2`, or `.zip` file, the system automatically decompresses the file.|'."\n"
+ .'|role\\_arn|string|No|If you set **model\\_path** or **processor\\_path** to an OSS address, you need to specify the role\\_arn parameter to access OSS and the Role\\_ARN parameter to obtain the role\\_arn.|'."\n"
+ .'|oss\\_endpoint|String|No|The endpoint of the OSS bucket. If you set **model\\_path** or **processor\\_path** to an OSS path, you must specify this parameter.|'."\n"
+ .'|model\\_entry|String|No|The primary file of the model. Any file can be specified as the primary file of the model. If no file is specified, the file specified by **model\\_path** is used as the primary file of the model. The path of the primary file is delivered to the `Load()` function in the processor.|'."\n"
+ .'|processor\\_path|String|Yes|The path of the processor file. You can specify a local file or an HTTP address. If you specify a `.tar.gz`, `.tar.bz2`, or `.zip` file, the system automatically decompresses the file.|'."\n"
+ .'|processor\\_entry|String|No|**If you set processor\\_type to C, C++, or Python, this parameter is required**. The main file of the processor. The main file contains the implementations of the `Load()` and `Process()` functions that are required for prediction.|'."\n"
+ .'|processor\\_mainclass|String|No|**If you set processor\\_type to Java, this parameter is required**. The main class in the JAR package of the processor.|'."\n"
+ .'|processor\\_type|String|Yes|The language that is used to implement the processor. Valid values: C, C++, Java, and Python.|'."\n"
+ .'|metadata|Dict|No|The metadata of the service. For more information, see Table 2.|'."\n"
+ .'|cloud|Dict|No|The map key. This parameter is required only if you specify an instance type to deploy the service. You must specify this parameter in the following format: `"cloud":{"computing":{"instance_type": "ecs.gxxxxxx.large"}}`.|'."\n"
+ .'|containers|List|No|The method of container deployment that is implemented by using custom images. If the container that is deployed by using the processor cannot meet your requirements, you can deploy the container by using custom images. For more information, see [Deploy a model service by using a custom image](~~258246~~).|'."\n"
+ ."\n"
+ .'**Description** The model\\_path parameter and the processor\\_path parameter specify the sources of the model input and the processor input. You can set the paths to HTTP addresses or OSS paths. When you use the test command to debug the model on your on-premises machine, you can set the parameters to local files and directories.'."\n"
+ ."\n"
+ .'* If you use an HTTP address, you must compress the relevant files into .tar.gz, .tar.bz2, or .zip files. Then, you can upload the files to OSS to generate an HTTP address.'."\n"
+ .'* If you use an OSS path, you can enter a directory or file name as the path.'."\n"
+ ."\n"
+ .'**Table 2. Metadata parameters**'."\n"
+ ."\n"
+ .'|Parameter|Type|Required|Description|Example|'."\n"
+ .'|---|---|---|---|---|'."\n"
+ .'|instance|Int|No|The number of workers that are required to start the service.|1|'."\n"
+ .'|cpu|Int|No|The number of CPUs that are required by each worker.|1|'."\n"
+ .'|gpu|Int|No|The number of GPUs that are required by each worker.|0|'."\n"
+ .'|memory|Int|No|The memory size that is required by each worker. Unit: MB.|1000|'."\n"
+ .'|resource|String|No|The resource group to which the service belongs.|eas-r-aaabbbccc|'."\n"
+ .'|rpc.worker\\_threads|Int|No|The number of threads that are used to concurrently process requests in each instance.|5|'."\n"
+ .'|rpc.max\\_queue\\_size|Int|No|The maximum size of a queue for processing requests. If the queue is full, new requests are dropped and an HTTP 450 status code is returned.|64|'."\n"
+ .'|rpc.keepalive|Int|No|The timeout period of the request. Unit: milliseconds.|5000|'."\n"
+ .'|rpc.rate\\_limit|Int|No|The queries per second (QPS) value that triggers request throttling for a single instance. If the QPS is exceeded, new requests are dropped and an HTTP 429 status code is returned.|0|'."\n"
+ .'|release|Bool|No|Specifies whether to create a service for canary release. Valid values: true and false. If you set this parameter to true, you must create a service for canary release.|false|',
+ ],
+ 'CreateServiceAutoScaler' => [
+ 'summary' => 'Enables the Autoscaler feature and creates an Autoscaler controller for a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'min' => [
+ 'title' => '最小 replica 数,需要大于0',
+ 'description' => 'The minimum number of instances in the service.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ 'max' => [
+ 'title' => '最大 replica 数,需要大于MinReplica',
+ 'description' => 'The maximum number of instances in the service. The value of max must be greater than the value of min.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '8',
+ ],
+ 'scaleStrategies' => [
+ 'description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'metricName' => [
+ 'description' => 'The name of the metric for triggering auto scaling. Valid values:'."\n"
+ ."\n"
+ .'* qps: the queries per second (qps) for an individual instance.'."\n"
+ .'* cpu: the cpu utilization.'."\n"
+ .'* gpu[util]: gpu utilization.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'qps',
+ ],
+ 'threshold' => [
+ 'description' => 'The threshold of the metric that triggers auto scaling.'."\n"
+ ."\n"
+ .'* If you set metricName to qps, scale-out is triggered when the average qps for a single instance is greater than this threshold.'."\n"
+ .'* If you set metricName to cpu, scale-out is triggered when the average cpu utilization for a single instance is greater than this threshold.'."\n"
+ .'* If you set metricName to gpu, scale-out is triggered when the average gpu utilization for a single instance is greater than this threshold.',
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ 'example' => '10',
+ ],
+ 'service' => [
+ 'description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo_svc',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ 'behavior' => [
+ 'description' => 'The Autoscaler operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'scaleUp' => [
+ 'description' => 'The scale-out operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'stabilizationWindowSeconds' => [
+ 'description' => 'The time window that is required before the scale-out operation is performed. The scale-out operation can be performed only if the specified metric exceeds the specified threshold in the specified time window. Default value: 0.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'scaleDown' => [
+ 'description' => 'The scale-in operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'stabilizationWindowSeconds' => [
+ 'description' => 'The time window that is required before the scale-in operation is performed. The scale-in operation can be performed only if the specified metric drops below the specified threshold in the specified time window. Default value: 300.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '300',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'onZero' => [
+ 'description' => 'The operation that reduces the number of instances to 0.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'scaleDownGracePeriodSeconds' => [
+ 'description' => 'The time window that is required before the number of instances is reduced to 0. The number of instances can be reduced to 0 only if no request is available or no traffic exists in the specified time window. Default value: 600.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '600',
+ ],
+ 'scaleUpActivationReplicas' => [
+ 'description' => 'The number of instances that you want to create at a time if the number of instances is 0. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed to auto scale service [foo]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to auto scale service [foo]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'CreateServiceAutoScaler',
+ ],
+ 'CreateServiceCronScaler' => [
+ 'summary' => 'Enables the Cron Horizontal Pod Autoscaler (CronHPA) feature for a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '123919',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZ3WNW7',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ScaleJobs' => [
+ 'title' => '定时伸缩任务描述',
+ 'description' => 'The description of the CronHPA job.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TargetSize' => [
+ 'title' => '执行伸缩任务的目标replica',
+ 'description' => 'The number of instances that you want to configure for the CronHPA job.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ 'Schedule' => [
+ 'title' => '要执行伸缩任务的cron表达式',
+ 'description' => 'The cron expression that is used to configure the execution time of the CronHPA job. For more information about how to configure cron expressions, see **Description of special characters** in this topic.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0 18 * * * *',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the CronHPA job.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'scale-job-1',
+ ],
+ 'TimeZone' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ 'ExcludeDates' => [
+ 'title' => '需要排除的时间点的cron表达式',
+ 'description' => 'The points in time that are excluded when you schedule a CronHPA job. The points in time must be specified by using a cron expression.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The cron expression. For more information about how to configure cron expressions, see **Description of special characters** in this topic.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '* * * * * 0,6',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '操作成功消息',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Create cron scaler for service [foo] successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Create cron scaler for service [foo] successfully\\"\\n}","type":"json"}]',
+ 'title' => 'CreateServiceCronScaler',
+ 'requestParamsDescription' => '### Cron expressions'."\n"
+ ."\n"
+ .'![.drawio.png](https://intranetproxy.alipay.com/skylark/lark/0/2022/png/72178/1645094436048-953c2592-1017-4597-855d-22e6e78afee0.png#clientId=ua661de8e-75b1-4&#x26;crop=0&#x26;crop=0&#x26;crop=1&#x26;crop=1&#x26;from=ui&#x26;height=120&#x26;id=ufb1b2c04&#x26;margin=%5Bobject%20Object%5D&#x26;name=%E6%9C%AA%E5%91%BD%E5%90%8D%E7%BB%98%E5%9B%BE.drawio.png&#x26;originHeight=215&#x26;originWidth=547&#x26;originalType=binary&#x26;ratio=1&#x26;rotation=0&#x26;showTitle=false&#x26;size=17762&#x26;status=done&#x26;style=none&#x26;taskId=ue641ee0e-20dd-462b-ae2e-102a58eae0e&#x26;title=&#x26;width=305)'."\n"
+ ."\n"
+ .'|Parameter|Valid value|Valid special character|'."\n"
+ .'|---|---|---|'."\n"
+ .'|Second|0-59|\\* / , -|'."\n"
+ .'|Minute|0-59|\\* / , -|'."\n"
+ .'|Hour|0-23|\\* / , -|'."\n"
+ .'|Day|1-31|\\* / , -|'."\n"
+ .'|Month|1 to 12 or JAN to DEC|\\* / , -|'."\n"
+ .'|Day of week|0 to 6 or SUN to SAT|\\* / , -|'."\n"
+ ."\n"
+ .'#### Descriptions of special characters'."\n"
+ ."\n"
+ .'**Asterisk (\\*)** You can use an asterisk (\\*) to represent all valid values. For example, the cron expression 0 0 0 1 \\* \\* represents 00:00 on the first day of each month.'."\n"
+ ."\n"
+ .'**Hyphen (-)** You can use a hyphen (-) to represent a range of valid values. For example, the cron expression 0 0 12-14 \\* \\* \\* represents 12:00, 13:00, and 14:00 of each day.'."\n"
+ ."\n"
+ .'**Comma (,)** You can use a comma (,) to represent specific valid values. For example, the cron expression 0 0 12,14 \\* \\* \\* represents 12:00 and 14:00 of each day.'."\n"
+ ."\n"
+ .'**Forward slash (/)** You can use a forward slash (/) to specify an interval. For example, the cron expression 0 \\*/15 \\* \\* \\* \\* represents the zeroth, fifteenth, thirtieth, and forty-fifth minutes of each hour. You can use a forward slash (/) together with a hyphen (-) to specify an interval in a specific value range. For example, the cron expression 0 5-40/15 \\* \\* \\* \\* represents an interval of 15 minutes in the range of fifth to fortieth minutes of every hour. This means that valid time can be 0:05, 0:20, and 0:35.',
+ ],
+ 'CreateServiceMirror' => [
+ 'summary' => 'Enables the traffic mirroring feature for a service. After the feature is enabled, requests received by the service can be mirrored to another service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Ratio' => [
+ 'title' => '比例 [0, 100]',
+ 'description' => 'The percentage of the traffic that is mirrored to the destination service. Valid values: 0 to 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ 'Target' => [
+ 'title' => '服务实例列表',
+ 'description' => 'The instances.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The name of the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'echo',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Traffic mirroring is ON for service [foo] in region [cn-shanghia], ratio [70%]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Traffic mirroring is ON for service [foo] in region [cn-shanghai], ratio [70%]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'CreateServiceMirror',
+ ],
+ 'CreateAppService' => [
+ 'summary' => 'Creates an application service to obtain the inference capabilities of large models.',
+ 'path' => '/api/v2/app_services',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The workspace ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123456',
+ ],
+ ],
+ [
+ 'name' => 'QuotaId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The quota ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcdef',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ServiceName' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ 'AppType' => [
+ 'description' => 'The application service type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* LLM'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'LLM' => 'LLM',
+ ],
+ 'example' => 'LLM',
+ ],
+ 'AppVersion' => [
+ 'description' => 'The application version.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'ServiceSpec' => [
+ 'description' => 'The service specifications. Valid values:'."\n"
+ ."\n"
+ .'* llama\\_7b_fp16'."\n"
+ .'* llama\\_7b_int8'."\n"
+ .'* llama\\_13b_fp16'."\n"
+ .'* llama\\_7b_int8'."\n"
+ .'* chatglm\\_6b_fp16'."\n"
+ .'* chatglm\\_6b_int8'."\n"
+ .'* chatglm2\\_6b_fp16'."\n"
+ .'* baichuan\\_7b_int8'."\n"
+ .'* baichuan\\_13b_fp16'."\n"
+ .'* baichuan\\_7b_fp16'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'llama_7b_fp16',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of instances.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ 'Config' => [
+ 'description' => 'The additional configurations that are required for service deployment.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'any',
+ 'example' => '{"ModelStorage":"oss"}',
+ 'description' => 'The application information such as model mounting. Object Storage Service (OSS) mounting and File Storage NAS (NAS) mounting are supported.'."\n"
+ ."\n"
+ .'* For OSS mounting, the parameters are configured in the following way: { "ModelStorage": "oss", "OssPath": "oss://examplebucket/xxxx/" }'."\n"
+ .'* For NAS mounting, the parameters are configured in the following way: { "ModelStorage": "nas", "NasMountTarget": "317d14\\*\\*\\*\\*-****.cn-shanghai.nas.aliyuncs.com", "NasPath": "/", "SecurityGroupID": "sg-uf6e50fazt4u7smt****", "VpcID": "vpc-uf66zxxrlv0l4nj49\\*\\*\\*\\*", "VswitchID": "vsw-uf6fg76uu2bx84tci\\*\\*\\*\\*" } Parameters:'."\n"
+ .'* ModelStorage: specifies the service in which the model is stored.'."\n"
+ .'* OssPath: specifies the OSS bucket directory where the model resides.'."\n"
+ .'* NasMountTarget: specifies the NAS mount target.'."\n"
+ .'* NasPath: specifies the NAS path where the files are stored.'."\n"
+ .'* SecurityGroupID: specifies the ID of the security group that is used to create the NAS file system.'."\n"
+ .'* VpcID: specifies the ID of the virtual private cloud (VPC) that is used to create the NAS file system.'."\n"
+ .'* VswitchID: specifies the ID of the vSwitch that is used to create the NAS file system.',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceId' => [
+ 'description' => 'The service ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-m-aaxxxddf',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'Status' => [
+ 'description' => 'The service state.'."\n",
+ 'type' => 'string',
+ 'example' => 'Creating',
+ ],
+ 'Region' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'InternetEndpoint' => [
+ 'description' => 'The public endpoint of the service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://pai-eas.cn-shanghai.****',
+ ],
+ 'IntranetEndpoint' => [
+ 'description' => 'The internal endpoint of the service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://pai-eas-vpc.cn-shanghai.****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceId\\": \\"eas-m-aaxxxddf\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Status\\": \\"Creating\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"InternetEndpoint\\": \\"http://pai-eas.cn-shanghai.****\\",\\n \\"IntranetEndpoint\\": \\"http://pai-eas-vpc.cn-shanghai.****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateAppService',
+ ],
+ 'DescribeGroupEndpoints' => [
+ 'summary' => 'Obtains a list of endpoints of service groups.',
+ 'path' => '/api/v2/groups/{ClusterId}/{GroupName}/endpoints',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '254853',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service group name. For more information about how to obtain the service group name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'xx_test_group',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '890772EF-3AD6-129A-8E15-8F349C944783',
+ ],
+ 'Message' => [
+ 'description' => 'The response message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Execution successful.',
+ ],
+ 'AccessToken' => [
+ 'description' => 'The service token.'."\n",
+ 'type' => 'string',
+ 'example' => 'Nzc5N2FhNTM4OTQ0YzBmYTIy****ZTUxN2NkYjg4MTJmMWQxZmY1****',
+ ],
+ 'Endpoints' => [
+ 'description' => 'The endpoints of the service group.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndpointType' => [
+ 'description' => 'The service endpoint type. Valid values:'."\n"
+ ."\n"
+ .'* DefaultGateway: the shared gateway.'."\n"
+ .'* PrivateGateway: the dedicated gateway.'."\n"
+ .'* Nlb: Associate the service with the Network Load Balancer (NLB) instance.'."\n"
+ .'* Nacos: Associate the service with the Nacos instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'PrivateGateway',
+ ],
+ 'BackendId' => [
+ 'description' => 'The backend access ID, which varies based on the value of the EndpointType parameter.'."\n"
+ ."\n"
+ .'* If you set EndpointType to DefaultGateway, the value of this parameter is default.'."\n"
+ .'* If you set EndpointType to PrivateGateway, the value of this parameter is the ID of the dedicated gateway.'."\n"
+ .'* If you set EndpointType to Nlb, the value of this parameter is the ID of the NLB instance.'."\n"
+ .'* If you set EndpointType to Nacos, the value of this parameter is the ID of the Nacos instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-26340kjxjx8l3r****',
+ ],
+ 'PathType' => [
+ 'description' => 'The path type. Valid values:'."\n"
+ ."\n"
+ .'* Group: the path of the service group.'."\n",
+ 'type' => 'string',
+ 'example' => 'Group',
+ ],
+ 'IntranetEndpoints' => [
+ 'description' => 'The full endpoint.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The full endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://gw-26340kjxjx8l3r****-vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group',
+ ],
+ ],
+ 'InternetEndpoints' => [
+ 'description' => 'The full endpoint.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The full endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://gw-26340kjxjx8l3r****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group',
+ ],
+ ],
+ 'Port' => [
+ 'description' => 'The port number. This parameter takes effect only when you associate the service with an NLB or Nacos instance.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8080',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"890772EF-3AD6-129A-8E15-8F349C944783\\",\\n \\"Message\\": \\"执行成功。\\",\\n \\"AccessToken\\": \\"Nzc5N2FhNTM4OTQ0YzBmYTIy****ZTUxN2NkYjg4MTJmMWQxZmY1****\\",\\n \\"Endpoints\\": [\\n {\\n \\"EndpointType\\": \\"PrivateGateway\\",\\n \\"BackendId\\": \\"gw-26340kjxjx8l3r****\\",\\n \\"PathType\\": \\"Group\\",\\n \\"IntranetEndpoints\\": [\\n \\"http://gw-26340kjxjx8l3r****-vpc.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group\\"\\n ],\\n \\"InternetEndpoints\\": [\\n \\"http://gw-26340kjxjx8l3r****.cn-hangzhou.pai-eas.aliyuncs.com/api/predict/xx_test_group\\"\\n ],\\n \\"Port\\": 8080\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeGroupEndpoints',
+ ],
+ 'DescribeServiceEndpoints' => [
+ 'summary' => 'Obtains a list of service endpoints.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/endpoints',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '251429',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to obtain the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'service_name',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '739998B5-FB39-12A3-8323-0FA340317298',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Execution successful.',
+ ],
+ 'AccessToken' => [
+ 'description' => 'The service token.'."\n",
+ 'type' => 'string',
+ 'example' => 'Nzc5N2FhN****TQ0YzBmYTIyN2MxZTUxN2NkYjg4MTJmMWQxZmY1****',
+ ],
+ 'Endpoints' => [
+ 'description' => 'The service endpoints.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndpointType' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Nlb',
+ ],
+ 'BackendId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'nlb-5q4sp7u6oorkha****',
+ ],
+ 'PathType' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Service',
+ ],
+ 'IntranetEndpoints' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'nlb-5q4sp7u6oor****jvv.cn-hangzhou.nlb.aliyuncs.com',
+ ],
+ ],
+ 'InternetEndpoints' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ ],
+ 'Port' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '9090',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"739998B5-FB39-12A3-8323-0FA340317298\\",\\n \\"Message\\": \\"执行成功。\\",\\n \\"AccessToken\\": \\"Nzc5N2FhN****TQ0YzBmYTIyN2MxZTUxN2NkYjg4MTJmMWQxZmY1****\\",\\n \\"Endpoints\\": [\\n {\\n \\"EndpointType\\": \\"Nlb\\",\\n \\"BackendId\\": \\"nlb-5q4sp7u6oorkha****\\",\\n \\"PathType\\": \\"Service\\",\\n \\"IntranetEndpoints\\": [\\n \\"nlb-5q4sp7u6oor****jvv.cn-hangzhou.nlb.aliyuncs.com\\"\\n ],\\n \\"InternetEndpoints\\": [\\n \\"null\\"\\n ],\\n \\"Port\\": 9090\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceEndpoints',
+ ],
+ 'DescribeServiceSignedUrl' => [
+ 'summary' => 'Obtains the logon-free URL of the service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/signed_url',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region in which the service resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* webview'."\n"
+ .'* monitor'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'webview' => 'webview',
+ 'monitor' => 'monitor',
+ ],
+ 'example' => 'webview',
+ ],
+ ],
+ [
+ 'name' => 'Expire',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The period of time for which the URL expires.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '43200',
+ ],
+ ],
+ [
+ 'name' => 'Internal',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to use the VPC connection.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'SignedUrl' => [
+ 'description' => 'The service URL.'."\n",
+ 'type' => 'string',
+ 'example' => 'https://foo-115**.console.cn-hangzhou.eas.pai-ml.com?expire=1735202661&signature=ey*******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"SignedUrl\\": \\"https://foo-115**.console.cn-hangzhou.eas.pai-ml.com?expire=1735202661&signature=ey*******\\"\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceSignedUrl',
+ ],
+ 'CloneService' => [
+ 'summary' => 'Clones a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/clone',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '217114',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '集群Id',
+ 'description' => 'The cluster ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => [
+ 'title' => '复制服务覆盖的参数。',
+ 'description' => 'The request body. For more information, see [CreateService](~~412086~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } }',
+ ],
+ ],
+ [
+ 'name' => 'Labels',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '复制服务对应的Label。',
+ 'description' => 'The label of the service to be cloned.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The custom service label.'."\n",
+ 'example' => '{"key":"value"}'."\n",
+ ],
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceId' => [
+ 'title' => '服务Id',
+ 'description' => 'The service ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-m-r9knx7n9guf2p*****',
+ ],
+ 'ServiceName' => [
+ 'title' => '服务名',
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'Status' => [
+ 'title' => '服务状态',
+ 'description' => 'The service status.'."\n",
+ 'type' => 'string',
+ 'example' => 'Creating',
+ ],
+ 'InternetEndpoint' => [
+ 'title' => '公网访问地址',
+ 'description' => 'The public endpoint of the service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo',
+ ],
+ 'IntranetEndpoint' => [
+ 'title' => '快速访问地址',
+ 'description' => 'The private endpoint of the service.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceId\\": \\"eas-m-r9knx7n9guf2p*****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Status\\": \\"Creating\\",\\n \\"InternetEndpoint\\": \\"http://10123*****.cn-shanghai.aliyuncs.com/api/predict/echo\\",\\n \\"IntranetEndpoint\\": \\"http://10123*****.vpc.cn-shanghai.aliyuncs.com/api/predict/echo\\"\\n}","type":"json"}]',
+ 'title' => 'CloneService',
+ ],
+ 'DeleteService' => [
+ 'summary' => 'Deletes a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Service [foo] in region [cn-shanghai] is terminating',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service [foo] in region [cn-shanghai] is terminating\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteService',
+ ],
+ 'DeleteServiceLabel' => [
+ 'summary' => 'Deletes existing service tags.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/label',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '167565',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域。',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字。',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'Keys',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'title' => '要删除的服务标签。',
+ 'description' => 'The service tags that you want to delete.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '服务标签key列表。',
+ 'description' => 'The tag keys.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1,key2',
+ ],
+ 'required' => false,
+ 'deprecated' => true,
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '返回信息。',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed to delete service [service_from_zxxx] labels.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to delete service [service_from_zxxx] labels.\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteServiceLabel',
+ ],
+ 'DeleteServiceAutoScaler' => [
+ 'summary' => 'Deletes the existing Autoscaler controller and disables the Autoscaler feature for a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Autoscaler for service [foo] deleted successfully',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Autoscaler for service [foo] deleted successfully\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteServiceAutoScaler',
+ ],
+ 'DeleteServiceCronScaler' => [
+ 'summary' => 'Disables the Cronscaler feature for a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Cronscaler for service [foo] deleted successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Cronscaler for service [foo] deleted successfully\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteServiceCronScaler',
+ ],
+ 'DeleteServiceInstances' => [
+ 'summary' => 'Restarts the instances of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '39632',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceList',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '删除的实例列表,多个实例名字之间逗号隔开',
+ 'description' => 'The instances that you want to restart. Separate multiple instance names with commas (,). For more information about how to query the instance name, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo-rdsbxxxx,foo-rdsaxxxx',
+ ],
+ ],
+ [
+ 'name' => 'SoftRestart',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to restart only the container process without recreating the instance. Default value: false. Valid values: true and false.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Container',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the container whose process needs to be restarted. This parameter takes effect only if the SoftRestart parameter is set to true.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'worker0',
+ ],
+ ],
+ [
+ 'name' => 'IsReplica',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Instance(s) [foo-rdsb,foo-rdsa] for service [foo] in region [cn-shanghai] was deleted successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Instance(s) [foo-rdsb,foo-rdsa] for service [foo] in region [cn-shanghai] was deleted successfully\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteServiceInstances',
+ ],
+ 'DeleteServiceMirror' => [
+ 'summary' => 'Disables the traffic mirroring feature for a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Traffic mirroring is OFF for service [foo] in region [cn-shanghia], ratio [70%]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Traffic mirroring is OFF for service [foo] in region [cn-shanghia], ratio [70%]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteServiceMirror',
+ ],
+ 'UpdateService' => [
+ 'summary' => 'Updates a model or processor of a service. If only the metadata.instance field is updated, manual scaling can be performed.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '37044',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'UpdateType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the service update. Valid values: merge and replace. By default, merge is used if you do not specify this parameter.'."\n"
+ ."\n"
+ .'* merge: If the JSON string configured for the existing service is `{"a":"b"}` and the JSON string specified in the body parameter is `{"c":"d"}`, the JSON string is `{"a":"b","c":"d"}` after the service update.'."\n"
+ .'* replace: If the JSON string configured for the existing service is `{"a":"b"}` and the JSON string specified in the body parameter is `{"c":"d"}`, the JSON string is `{"c":"d"}` after the service update.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'merge' => '',
+ 'replace' => '',
+ ],
+ 'example' => 'merge',
+ ],
+ ],
+ [
+ 'name' => 'MemberToUpdate',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => [
+ 'description' => 'The request body. The body includes the request parameters that you want to update. For more information about the request parameters, see [CreateService](~~412086~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{ "name": "foo", "model_path": "http://path/to/model.tar.gz", "processor": "tensorflow_cpu", "metadata": { "instance": 2, "memory": 7000, "cpu": 4 } }',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '请求返回消息。',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed to update service [foo] in region [cn-shanghai]',
+ ],
+ ],
+ ],
+ ],
+ 400 => [],
+ 403 => [],
+ 409 => [],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to update service [foo] in region [cn-shanghai]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateService',
+ 'requestParamsDescription' => '> For more information about the request parameters, see CreateService.'."\n",
+ ],
+ 'UpdateServiceLabel' => [
+ 'summary' => 'Adds service tags or updates existing service tags.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/label',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '167564',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '请求Body',
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'title' => '自定义服务标签',
+ 'description' => 'The custom service tags.'."\n",
+ 'type' => 'object',
+ 'required' => true,
+ 'additionalProperties' => [
+ 'title' => '标签对象',
+ 'description' => 'The custom service tag.'."\n",
+ 'type' => 'string',
+ 'example' => '{"key":"value"}',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求Id',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '返回信息。',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed to update service [service_from_XXXX] labels.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to update service [service_from_XXXX] labels.\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateServiceLabel',
+ ],
+ 'StartService' => [
+ 'summary' => 'Starts a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/start',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '37048',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Service [foo] in region [cn-shanghai] is starting',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service [foo] in region [cn-shanghai] is starting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'StartService',
+ ],
+ 'StopService' => [
+ 'summary' => 'Stops a running service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/stop',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '37049',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed to auto scale service [foo]',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to auto scale service [foo]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'StopService',
+ ],
+ 'RestartService' => [
+ 'summary' => 'Restarts a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/restart',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域。',
+ 'description' => 'The ID of the region in which the service resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求Id。',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '请求消息。',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Service is restarting',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service is restarting\\"\\n}","type":"json"}]',
+ 'title' => 'RestartService',
+ ],
+ 'UpdateServiceAutoScaler' => [
+ 'summary' => 'Updates the Autoscaler configurations of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'min' => [
+ 'title' => '最小 replica 数,需要大于0',
+ 'description' => 'The minimum number of instances. The value must be greater than 0.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ 'max' => [
+ 'title' => '最大 replica 数,需要大于MinReplica',
+ 'description' => 'The maximum number of instances. The value must be greater than that of the min parameter.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '8',
+ ],
+ 'scaleStrategies' => [
+ 'description' => 'The auto scaling policies.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'metricName' => [
+ 'description' => 'The name of the metric for triggering auto scaling. Valid values:'."\n"
+ ."\n"
+ .'* qps: the queries per second (QPS) for an individual instance.'."\n"
+ .'* cpu: the CPU utilization.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'qps',
+ ],
+ 'threshold' => [
+ 'description' => 'The threshold of the metric that triggers auto scaling.'."\n"
+ ."\n"
+ .'* If you set metricName to QPS, scale-out is triggered when the average QPS for a single instance is greater than this threshold.'."\n"
+ .'* If you set metricName to CPU, scale-out is triggered when the average CPU utilization for a single instance is greater than this threshold.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => true,
+ 'example' => '100',
+ ],
+ 'service' => [
+ 'description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'demo_svc',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ 'behavior' => [
+ 'description' => 'The Autoscaler operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'scaleUp' => [
+ 'description' => 'The scale-out operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'stabilizationWindowSeconds' => [
+ 'description' => 'The time window that is required before the scale-out operation is performed. Default value: 0. The scale-out operation can be performed only if the specified metric exceeds the specified threshold in the specified time window.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'scaleDown' => [
+ 'description' => 'The scale-in operation.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'stabilizationWindowSeconds' => [
+ 'description' => 'The time window that is required before the scale-in operation is performed. Default value: 300. The scale-in operation can be performed only if the specified metric drops below the threshold in the specified time window.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '300',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'onZero' => [
+ 'description' => 'The operation that reduces the number of instances to 0.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'scaleDownGracePeriodSeconds' => [
+ 'description' => 'The time window that is required before the number of instances is reduced to 0. Default value: 600. The number of instances can be reduced to 0 only if no request is available or no traffic exists in the specified time window.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '600',
+ ],
+ 'scaleUpActivationReplicas' => [
+ 'description' => 'The number of instances that you want to create at a time if the number of instances is scaled out from 0. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Update auto scale for service [foo] successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update auto scale for service [foo] successfully\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateServiceAutoScaler',
+ ],
+ 'UpdateServiceCronScaler' => [
+ 'summary' => 'Updates the Cron Horizontal Pod Autoscaler (CronHPA) settings of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZ3WNW7',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ScaleJobs' => [
+ 'title' => '定时伸缩任务描述',
+ 'description' => 'The description of the CronHPA job.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TargetSize' => [
+ 'title' => '执行伸缩任务的目标replica',
+ 'description' => 'The number of instances that you want to configure for the CronHPA job.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '2',
+ ],
+ 'Schedule' => [
+ 'title' => '要执行伸缩任务的cron表达式',
+ 'description' => 'The cron expression that is used to configure the execution time of the CronHPA job. For more information about how to configure cron expressions, see **Description of special characters** in this topic.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '0 18 * * * *'."\n",
+ ],
+ 'Name' => [
+ 'description' => 'The name of the CronHPA job.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'scale-job-1'."\n",
+ ],
+ 'TimeZone' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ 'ExcludeDates' => [
+ 'title' => '需要排除的时间点的cron表达式',
+ 'description' => 'The points in time that are excluded when you schedule a CronHPA job. The points in time must be specified by using a cron expression.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The cron expression. For more information about how to configure cron expressions, see **Description of special characters** in this topic.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '* * * * * 0,6'."\n",
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Update cron scaler for service [foo] successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Update cron scaler for service [foo] successfully\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateServiceCronScaler',
+ 'requestParamsDescription' => '### Cron expressions'."\n"
+ ."\n"
+ .'![.drawio.png](https://intranetproxy.alipay.com/skylark/lark/0/2022/png/72178/1645094436048-953c2592-1017-4597-855d-22e6e78afee0.png#clientId=ua661de8e-75b1-4&#x26;crop=0&#x26;crop=0&#x26;crop=1&#x26;crop=1&#x26;from=ui&#x26;height=120&#x26;id=ufb1b2c04&#x26;margin=%5Bobject%20Object%5D&#x26;name=%E6%9C%AA%E5%91%BD%E5%90%8D%E7%BB%98%E5%9B%BE.drawio.png&#x26;originHeight=215&#x26;originWidth=547&#x26;originalType=binary&#x26;ratio=1&#x26;rotation=0&#x26;showTitle=false&#x26;size=17762&#x26;status=done&#x26;style=none&#x26;taskId=ue641ee0e-20dd-462b-ae2e-102a58eae0e&#x26;title=&#x26;width=305)'."\n"
+ ."\n"
+ .'|Parameter|Valid value|Valid special character|'."\n"
+ .'|---|---|---|'."\n"
+ .'|Second|0-59|\\* / , -|'."\n"
+ .'|Minute|0-59|\\* / , -|'."\n"
+ .'|Hour|0-23|\\* / , -|'."\n"
+ .'|Day|1-31|\\* / , -|'."\n"
+ .'|Month|1 to 12 or JAN to DEC|\\* / , -|'."\n"
+ .'|Day of week|0 to 6 or SUN to SAT|\\* / , -|'."\n"
+ ."\n"
+ .'#### Descriptions of special characters'."\n"
+ ."\n"
+ .'**Asterisk (\\*)** You can use an asterisk (\\*) to represent all valid values. For example, the cron expression 0 0 0 1 \\* \\* represents 00:00 on the first day of each month.'."\n"
+ ."\n"
+ .'**Hyphen (-)** You can use a hyphen (-) to represent a range of valid values. For example, the cron expression 0 0 12-14 \\* \\* \\* represents 12:00, 13:00, and 14:00 of each day.'."\n"
+ ."\n"
+ .'**Comma (,)** You can use a comma (,) to represent specific valid values. For example, the cron expression 0 0 12,14 \\* \\* \\* represents 12:00 and 14:00 of each day.'."\n"
+ ."\n"
+ .'**Forward slash (/)** You can use a forward slash (/) to specify an interval. For example, the cron expression 0 \\*/15 \\* \\* \\* \\* represents the zeroth, fifteenth, thirtieth, and forty-fifth minutes of each hour. You can use a forward slash (/) together with a hyphen (-) to specify an interval in a specific value range. For example, the cron expression 0 5-40/15 \\* \\* \\* \\* represents an interval of 15 minutes in the range of fifth to fortieth minutes of every hour. This means that valid time can be 0:05, 0:20, and 0:35.',
+ ],
+ 'DevelopService' => [
+ 'summary' => 'Switches a container service to development mode or exits development mode.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/develop',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '161121',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnO4KXYN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '集群Id。',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'echo',
+ ],
+ ],
+ [
+ 'name' => 'Exit',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '是否退出开发模式',
+ 'description' => 'Specifies whether to exit development mode. Valid values:'."\n"
+ ."\n"
+ .'* true: exits development mode.'."\n"
+ .'* false (default): enters development mode.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => '',
+ 'false' => '',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '执行结果消息',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]',
+ 'title' => 'DevelopService',
+ ],
+ 'CommitService' => [
+ 'summary' => 'Commits the Worker0 container in the custom container service and deploys the container as a new image.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/commit',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '161122',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '集群Id。',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名。',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '执行结果。',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]',
+ 'title' => 'CommitService',
+ ],
+ 'UpdateServiceMirror' => [
+ 'summary' => 'Updates the traffic mirroring configurations of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Ratio' => [
+ 'title' => '比例 [0, 100]',
+ 'description' => 'The percentage of traffic that you want to mirror. Valid values: 0 to 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ 'Target' => [
+ 'title' => '服务实例列表',
+ 'description' => 'The service instances.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The name of the service instance. For more information about how to query the name of a service instance, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo-xxxx',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Traffic mirroring is updating for service [foo] in region [cn-shanghia], ratio [70%]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Traffic mirroring is updating for service [foo] in region [cn-shanghai], ratio [70%]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateServiceMirror',
+ ],
+ 'UpdateServiceVersion' => [
+ 'summary' => 'Updates the version of a service or rolls back the service to a specific version.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/version',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'echo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Version' => [
+ 'description' => 'The destination version of the service. The value must be of the INT type. The value must be greater than 0 and smaller than the current version of the service.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '1',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Service [foo] in region [cn-shanghai] is starting',
+ ],
+ ],
+ ],
+ ],
+ 400 => [],
+ 403 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Service [foo] in region [cn-shanghai] is starting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateServiceVersion',
+ ],
+ 'UpdateServiceSafetyLock' => [
+ 'summary' => 'Updates the safety lock of a service to minimize misoperations on the service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/lock',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '161176',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Lock' => [
+ 'description' => 'The lock scope. Valid values:'."\n"
+ ."\n"
+ .'* all: locks all operations.'."\n"
+ .'* dangerous: locks dangerous operations such as delete and stop operations.'."\n"
+ .'* none: locks no operations.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'all' => '',
+ 'dangerous' => '',
+ 'none' => '',
+ ],
+ 'example' => 'dangerous',
+ 'enum' => [
+ 'none',
+ 'dangerous',
+ 'all',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'E089D584-B6F4-50C4-9902-DA2295B7****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'service safety lock updated to dangerous',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E089D584-B6F4-50C4-9902-DA2295B7****\\",\\n \\"Message\\": \\"service safety lock updated to dangerous\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateServiceSafetyLock',
+ ],
+ 'UpdateServiceInstance' => [
+ 'summary' => 'Updates attributes of service instances. Only isolation can be performed for service instances.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '200711',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The instance name. For more information about how to query the instance name, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo-69xxxx4f4-5w9r9',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Hibernate' => [
+ 'type' => 'boolean',
+ ],
+ 'Isolate' => [
+ 'description' => 'Specifies whether to isolate the service instance. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'Detach' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'IsReplica',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"instance xxxx isolation updated to true。\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateServiceInstance',
+ ],
+ 'UpdateAppService' => [
+ 'summary' => 'Updates an application service.',
+ 'path' => '/api/v2/app_services/{ClusterId}/{ServiceName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The workspace ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123456',
+ ],
+ ],
+ [
+ 'name' => 'QuotaId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The quota ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'abcdef',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'AppType' => [
+ 'description' => 'The application type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* LLM: the large language model (LLM) application'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'LLM' => 'LLM',
+ ],
+ 'example' => 'LLM',
+ ],
+ 'AppVersion' => [
+ 'description' => 'The application version.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v1',
+ ],
+ 'ServiceSpec' => [
+ 'description' => 'The service specifications. Valid values:'."\n"
+ ."\n"
+ .'* llama\\_7b_fp16'."\n"
+ .'* llama\\_7b_int8'."\n"
+ .'* llama\\_13b_fp16'."\n"
+ .'* llama\\_7b_int8'."\n"
+ .'* chatglm\\_6b_fp16'."\n"
+ .'* chatglm\\_6b_int8'."\n"
+ .'* chatglm2\\_6b_fp16'."\n"
+ .'* baichuan\\_7b_int8'."\n"
+ .'* baichuan\\_13b_fp16'."\n"
+ .'* baichuan\\_7b_fp16'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'llama_7b_fp16',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of instances. This value must be greater than 0.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ 'Config' => [
+ 'description' => 'The additional configurations that are required for service deployment.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'any',
+ 'example' => '{"ModelStorage":"oss"}',
+ 'description' => 'The application information such as model mounting. For more information, see [CreateAppService](~~2621216~~).'."\n",
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateAppService',
+ ],
+ 'UpdateGroup' => [
+ 'summary' => 'Updates the specific fields of a service group.',
+ 'path' => '/api/v2/groups/{ClusterId}/{GroupName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260902',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region in which the service group resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service group name. For more information about how to obtain the service group name, see ListServices.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request content.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'TrafficMode' => [
+ 'title' => '流量模式,枚举值为auto和customized。',
+ 'description' => 'The traffic mode. Valid values: auto and customized. auto: The traffic is automatically allocated based on the proportion of the number of instances to the total number of instances. customized: The traffic is allocated based on a custom weight.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'auto',
+ 'enum' => [
+ 'auto',
+ 'customized',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateGroup',
+ ],
+ 'ReleaseService' => [
+ 'summary' => 'Switch the traffic state or weight of the service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/release',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '37054',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnO4KXYN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Weight' => [
+ 'title' => '权重值,取值范围[-1, 1000]',
+ 'description' => 'The weight of the service. Valid values: [-1, 1000].',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ 'TrafficState' => [
+ 'description' => 'The traffic state. Valid values:'."\n"
+ ."\n"
+ .'* standalone: independent traffic.'."\n"
+ .'* grouping: grouped traffic.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'standalone' => '',
+ 'grouping' => '',
+ ],
+ 'example' => 'grouping',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running]',
+ ],
+ ],
+ ],
+ ],
+ 400 => [],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Releasing service [foo] in region [cn-shanghai] with weight [40], service status: [Running]\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ReleaseService',
+ ],
+ 'DescribeService' => [
+ 'summary' => 'Queries the details about a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '37005',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'The details about the service.'."\n",
+ '$ref' => '#/components/schemas/Service',
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"ServiceGroup\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"Cpu\\": 0,\\n \\"Image\\": \\"\\",\\n \\"Gpu\\": 0,\\n \\"TotalInstance\\": 0,\\n \\"AccessToken\\": \\"\\",\\n \\"ResourceBurstable\\": true,\\n \\"InternetEndpoint\\": \\"\\",\\n \\"ResourceAlias\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"TrafficState\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Resource\\": \\"\\",\\n \\"SecondaryInternetEndpoint\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"LabelValue\\": \\"\\",\\n \\"LabelKey\\": \\"\\"\\n }\\n ],\\n \\"Namespace\\": \\"\\",\\n \\"Weight\\": 0,\\n \\"Role\\": \\"\\",\\n \\"SecondaryIntranetEndpoint\\": \\"\\",\\n \\"PendingInstance\\": 0,\\n \\"ServiceName\\": \\"\\",\\n \\"SafetyLock\\": \\"\\",\\n \\"Region\\": \\"\\",\\n \\"AppType\\": \\"\\",\\n \\"InstanceCountInResource\\": {\\n \\"Quota\\": 0,\\n \\"Public\\": 0,\\n \\"Dedicated\\": 0\\n },\\n \\"IntranetEndpoint\\": \\"\\",\\n \\"QuotaId\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"CurrentVersion\\": 0,\\n \\"RunningInstance\\": 0,\\n \\"WorkspaceId\\": \\"\\",\\n \\"CallerUid\\": \\"\\",\\n \\"Reason\\": \\"\\",\\n \\"Source\\": \\"\\",\\n \\"ServiceId\\": \\"\\",\\n \\"AppVersion\\": \\"\\",\\n \\"CronscalerEnabled\\": true,\\n \\"ServiceConfig\\": \\"\\",\\n \\"Gateway\\": \\"\\",\\n \\"AppSpecName\\": \\"\\",\\n \\"GPUCorePercentage\\": 0,\\n \\"GPUMemory\\": 0,\\n \\"AppConfig\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"AutoscalerEnabled\\": true,\\n \\"ExtraData\\": \\"\\",\\n \\"LatestVersion\\": 0,\\n \\"UpdateTime\\": \\"\\",\\n \\"ServiceUid\\": \\"\\",\\n \\"ParentUid\\": \\"\\",\\n \\"RoleAttrs\\": \\"\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeService',
+ ],
+ 'DescribeServiceAutoScaler' => [
+ 'summary' => 'Queries information about the Autoscaler configurations of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/autoscaler',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'echo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceName' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'MinReplica' => [
+ 'title' => '服务最小实例数',
+ 'description' => 'The minimum number of instances in the service.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'MaxReplica' => [
+ 'title' => '服务最大实例数',
+ 'description' => 'The maximum number of instances in the service.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8',
+ ],
+ 'Behavior' => [
+ 'description' => 'The additional information about the Autoscaler policy, such as the interval of triggering Autoscaler.'."\n",
+ 'type' => 'object',
+ 'example' => '{'."\n"
+ .' "behavior": {'."\n"
+ .' "scaleDown": {'."\n"
+ .' "stabilizationWindowSeconds": 150'."\n"
+ .' }'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ 'ScaleStrategies' => [
+ 'description' => 'The auto scaling policies.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'metricName' => [
+ 'description' => 'The metric name. Valid values:'."\n"
+ ."\n"
+ .'* QPS: the queries per second (QPS) for an individual instance.'."\n"
+ .'* CPU: the CPU utilization.'."\n",
+ 'type' => 'string',
+ 'example' => 'QPS',
+ ],
+ 'threshold' => [
+ 'description' => 'The threshold of the metric that triggers auto scaling.'."\n"
+ ."\n"
+ .'* If you set metricName to QPS, scale-out is triggered when the average QPS for a single instance is greater than this threshold.'."\n"
+ .'* If you set metricName to CPU, scale-out is triggered when the average CPU utilization for a single instance is greater than this threshold.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '10',
+ ],
+ 'service' => [
+ 'description' => 'The service for which the metric is specified. If you do not set this parameter, the current service is specified by default.'."\n",
+ 'type' => 'string',
+ 'example' => 'demo_svc',
+ ],
+ ],
+ ],
+ ],
+ 'CurrentMetrics' => [
+ 'description' => 'The metrics.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'metricName' => [
+ 'description' => 'The metric name. Valid values:'."\n"
+ ."\n"
+ .'* QPS'."\n"
+ .'* CPU'."\n",
+ 'type' => 'string',
+ 'example' => 'qps',
+ ],
+ 'value' => [
+ 'description' => 'The metric value.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '10',
+ ],
+ 'service' => [
+ 'description' => 'The service for which the metric is specified.'."\n",
+ 'type' => 'string',
+ 'example' => 'demo_svc',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"MinReplica\\": 3,\\n \\"MaxReplica\\": 8,\\n \\"Behavior\\": {\\n \\"behavior\\": {\\n \\"scaleDown\\": {\\n \\"stabilizationWindowSeconds\\": 150\\n }\\n }\\n },\\n \\"ScaleStrategies\\": [\\n {\\n \\"metricName\\": \\"QPS\\",\\n \\"threshold\\": 10,\\n \\"service\\": \\"demo_svc\\"\\n }\\n ],\\n \\"CurrentMetrics\\": [\\n {\\n \\"metricName\\": \\"QPS\\",\\n \\"value\\": 10,\\n \\"service\\": \\"demo_svc\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeServiceAutoScaler',
+ ],
+ 'DescribeServiceCronScaler' => [
+ 'summary' => 'Queries the Cron Horizontal Pod Autoscaler (CronHPA) configurations of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/cronscaler',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '123960',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnZ3WNW7',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'ExcludeDates' => [
+ 'description' => 'The points in time that are excluded when you schedule a CronHPA job. The points in time must be specified by using a cron expression.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The cron expression.'."\n",
+ 'type' => 'string',
+ 'example' => '* * * * * 0,6'."\n",
+ ],
+ ],
+ 'ScaleJobs' => [
+ 'description' => 'The CronHPA jobs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Schedule' => [
+ 'description' => 'The cron expression that is used to configure the execution time of the CronHPA job.'."\n",
+ 'type' => 'string',
+ 'example' => '0 18 * * * *',
+ ],
+ 'TargetSize' => [
+ 'description' => 'The number of instances that you expect to configure for the CronHPA job.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the CronHPA job.'."\n",
+ 'type' => 'string',
+ 'example' => 'scale-job-1',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => '"cron hpa job scale-jobs-0 executed successfully. current replicas:3, desired replicas:2."',
+ ],
+ 'State' => [
+ 'description' => 'The status of the most recent CronHPA job.'."\n",
+ 'type' => 'string',
+ 'example' => 'Succeed',
+ ],
+ 'LastProbeTime' => [
+ 'description' => 'The time when the most recent CronHPA job ran. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2022-02-24T06:31:00Z',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the most recent CronHPA job was created. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-06-24T02:11:30Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"ExcludeDates\\": [\\n \\"* * * * * 0,6\\\\n\\"\\n ],\\n \\"ScaleJobs\\": [\\n {\\n \\"Schedule\\": \\"0 18 * * * *\\",\\n \\"TargetSize\\": 1,\\n \\"Name\\": \\"scale-job-1\\",\\n \\"Message\\": \\"\\\\\\"cron hpa job scale-jobs-0 executed successfully. current replicas:3, desired replicas:2.\\\\\\"\\",\\n \\"State\\": \\"Succeed\\",\\n \\"LastProbeTime\\": \\"2022-02-24T06:31:00Z\\",\\n \\"CreateTime\\": \\"2020-06-24T02:11:30Z\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceCronScaler',
+ ],
+ 'DescribeServiceDiagnosis' => [
+ 'summary' => 'Queries the diagnostics details of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/diagnosis',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '181894',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnO4KXYN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'DiagnosisList' => [
+ 'description' => 'The diagnostics list.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Error' => [
+ 'description' => 'The error message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Container worker0 failed to pull image.',
+ ],
+ 'Causes' => [
+ 'description' => 'The causes of the errors.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The cause of the error.'."\n",
+ 'type' => 'string',
+ 'example' => 'Failed to pull image "busybox:no_exist_tag": rpc error: code = NotFound.',
+ ],
+ ],
+ 'Advices' => [
+ 'description' => 'The suggestions about how to handle the errors.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The suggestion about how to handle the error.'."\n",
+ 'type' => 'string',
+ 'example' => 'Please make sure the container image exists.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"DiagnosisList\\": [\\n {\\n \\"Error\\": \\"Container worker0 failed to pull image.\\",\\n \\"Causes\\": [\\n \\"Failed to pull image \\\\\\"busybox:no_exist_tag\\\\\\": rpc error: code = NotFound.\\"\\n ],\\n \\"Advices\\": [\\n \\"Please make sure the container image exists.\\"\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceDiagnosis',
+ ],
+ 'DescribeServiceInstanceDiagnosis' => [
+ 'summary' => 'Queries the diagnostics details of an instance that runs Elastic Algorithm Service (EAS).',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/diagnosis',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '181910',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnO4KXYN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the instance that runs the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo-69xxxx4f4-5w9r9',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Diagnosis' => [
+ 'description' => 'The diagnostics information.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Error' => [
+ 'description' => 'The error message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Container worker0 failed to pull image.',
+ ],
+ 'Causes' => [
+ 'description' => 'The causes of the errors.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The cause of the error.'."\n",
+ 'type' => 'string',
+ 'example' => 'Failed to pull image "busybox:no_exist_tag": rpc error: code = NotFound.',
+ ],
+ ],
+ 'Advices' => [
+ 'description' => 'The solutions to the errors.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The solution to the error.'."\n",
+ 'type' => 'string',
+ 'example' => 'Please make sure the container image exists.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Diagnosis\\": {\\n \\"Error\\": \\"Container worker0 failed to pull image.\\",\\n \\"Causes\\": [\\n \\"Failed to pull image \\\\\\"busybox:no_exist_tag\\\\\\": rpc error: code = NotFound.\\"\\n ],\\n \\"Advices\\": [\\n \\"Please make sure the container image exists.\\"\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceInstanceDiagnosis',
+ ],
+ 'DescribeServiceLog' => [
+ 'summary' => 'Queries the information about the logs of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/logs',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为500)',
+ 'description' => 'The number of entries per page. Default value: 500.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '500',
+ ],
+ ],
+ [
+ 'name' => 'Ip',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '要查询的机器ip',
+ 'description' => 'The IP address of the instance whose logs you want to query. For more information about how to query the IP address of an instance, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.0.0.1',
+ ],
+ ],
+ [
+ 'name' => 'Keyword',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询的关键字',
+ 'description' => 'The keyword that you use to query the logs of the service.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询的开始时间',
+ 'description' => 'The beginning of the time range to query. The time must be in Coordinated Universal Time (UTC).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2006-01-02 15:04:05',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询的结束时间',
+ 'description' => 'The end of the time range to query. The time must be in UTC.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2006-01-02 15:04:05',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'echo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the instance that runs the service. For more information about how to query the instance name, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'echo-da290ac8-7fckm',
+ ],
+ ],
+ [
+ 'name' => 'ContainerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the container that runs the service.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'worker0',
+ ],
+ ],
+ [
+ 'name' => 'Previous',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to query the logs that are generated before the instance last restarts. This parameter is available only if the instance restarts.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* false'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82********',
+ ],
+ 'Logs' => [
+ 'title' => '返回的日志信息',
+ 'description' => 'The returned logs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the log.'."\n",
+ 'type' => 'string',
+ 'example' => 'echo_test',
+ ],
+ ],
+ 'PageNum' => [
+ 'title' => '当前页码',
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'title' => '总计数量',
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalPageNum' => [
+ 'title' => '总计页码',
+ 'description' => 'The total number of pages returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '500',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Logs\\": [\\n \\"echo_test\\"\\n ],\\n \\"PageNum\\": 1,\\n \\"TotalCount\\": 1,\\n \\"TotalPageNum\\": 500\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeServiceLog',
+ ],
+ 'DescribeServiceEvent' => [
+ 'summary' => 'Queries information about recent service deployment events.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/events',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '152928',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNum',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求页码(默认1)',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务对应区域',
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务对应名称',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'StartTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '日志查询起始时刻(默认7天前)',
+ 'description' => 'The beginning of the time range to query. The time must be in UTC. The default value is seven days ago.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2006-01-02 15:04:05',
+ ],
+ ],
+ [
+ 'name' => 'EndTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '日志查询终止时刻(默认当前时刻)',
+ 'description' => 'The end of the time range to query. By default, the current point in time is the end of the time range to query.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2006-01-02 15:04:05',
+ ],
+ ],
+ [
+ 'name' => 'EventType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The event type. Valid values:'."\n"
+ ."\n"
+ .'* Normal'."\n"
+ .'* Warning'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Warning' => 'Warning',
+ 'Normal' => 'Normal',
+ ],
+ 'example' => 'Normal',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance name. For more information about how to obtain the instance name, see [ListServiceInstances](~~412108~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'echo-test-784xxxx85d-hhnd8',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '3D491C94-6239-5318-B4B4-799D859***',
+ ],
+ 'Events' => [
+ 'description' => 'The events.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The event type. Valid values:'."\n"
+ ."\n"
+ .'* Normal'."\n"
+ .'* Warning'."\n",
+ 'type' => 'string',
+ 'example' => 'Normal',
+ ],
+ 'Reason' => [
+ 'description' => 'The cause of the event. The information about the change in the service status is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'Updating',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message. The message is formatted and returned in the JSON format.'."\n",
+ 'type' => 'string',
+ 'example' => '{\\"versionId\\":1,\\"message\\":\\"Stage scale complete\\",\\"availableInstance\\":1,\\"unavailableInstance\\":0}',
+ ],
+ 'Time' => [
+ 'description' => 'The time when the event occurred. The time must be in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2022-04-09 06:30:00',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '29',
+ ],
+ 'TotalPageNum' => [
+ 'description' => 'The total number of pages returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12',
+ ],
+ 'PageNum' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"3D491C94-6239-5318-B4B4-799D859***\\",\\n \\"Events\\": [\\n {\\n \\"Type\\": \\"Normal\\",\\n \\"Reason\\": \\"Updating\\",\\n \\"Message\\": \\"{\\\\\\\\\\\\\\"versionId\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"message\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Stage scale complete\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"availableInstance\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"unavailableInstance\\\\\\\\\\\\\\":0}\\",\\n \\"Time\\": \\"2022-04-09 06:30:00\\"\\n }\\n ],\\n \\"TotalCount\\": 29,\\n \\"TotalPageNum\\": 12,\\n \\"PageNum\\": 1\\n}","type":"json"}]',
+ 'title' => 'DescribeServiceEvent',
+ ],
+ 'DescribeServiceMirror' => [
+ 'summary' => 'Queries details about the traffic mirroring settings of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/mirror',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceName' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'Target' => [
+ 'title' => '设置流量镜像对服务列表',
+ 'description' => 'The destination services to which you want to mirror traffic.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo2,foo3',
+ ],
+ 'Ratio' => [
+ 'title' => '比例[0,100]',
+ 'description' => 'The percentage of traffic that you want to mirror. Valid values: 0 to 100.'."\n",
+ 'type' => 'string',
+ 'example' => '50',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Target\\": \\"foo2,foo3\\",\\n \\"Ratio\\": \\"50\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeServiceMirror',
+ ],
+ 'DescribeGroup' => [
+ 'summary' => 'Queries the information about a service group.',
+ 'path' => '/api/v2/groups/{ClusterId}/{GroupName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '154833',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region to which the service group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the service group. For more information about how to query the group name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'The details of the service group.'."\n",
+ '$ref' => '#/components/schemas/Group',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Name\\": \\"\\",\\n \\"ClusterId\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"UpdateTime\\": \\"\\",\\n \\"QueueService\\": \\"\\",\\n \\"InternetEndpoint\\": \\"\\",\\n \\"IntranetEndpoint\\": \\"\\",\\n \\"AccessToken\\": \\"\\",\\n \\"TrafficMode\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'DescribeGroup',
+ ],
+ 'DescribeSpotDiscountHistory' => [
+ 'summary' => 'Queries the historical prices of preemptible instances. For more information about preemptible instances, see Create and use preemptible instances.',
+ 'path' => '/api/v2/public/spot_discount',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '183027',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnPKQVPS',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the Elastic Algorithm Service (EAS) instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ecs.c6.4xlarge',
+ ],
+ ],
+ [
+ 'name' => 'IsProtect',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the preemptible instance has a protection period. During the 1-hour protection period of the preemptible instance, the preemptible instance will not be released.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'SpotDiscounts' => [
+ 'description' => 'The discount for the preemptible instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ZoneId' => [
+ 'description' => 'The zone ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-i',
+ ],
+ 'SpotDiscount' => [
+ 'description' => 'The discount for the preemptible instance. For example, 0.1 represents a 90% discount.'."\n",
+ 'type' => 'string',
+ 'example' => '0.1',
+ ],
+ 'Timestamp' => [
+ 'description' => 'The time when the discount is available. The time must be in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2024-04-10T10:00:00Z',
+ ],
+ 'InstanceType' => [
+ 'description' => 'The type of the ECS instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'ecs.c7.large',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"SpotDiscounts\\": [\\n {\\n \\"ZoneId\\": \\"cn-hangzhou-i\\",\\n \\"SpotDiscount\\": \\"0.1\\",\\n \\"Timestamp\\": \\"2024-04-10T10:00:00Z\\",\\n \\"InstanceType\\": \\"ecs.c7.large\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeSpotDiscountHistory',
+ ],
+ 'ListServiceInstances' => [
+ 'summary' => 'Queries instances of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region where the service is deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The keyword used to query instances. Instances can be queried based on instance name, instance IP address, IP address of the server where the instance resides, and instance type.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.118.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the resource group to which the instance belongs.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* PublicResource'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DedicatedResource'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PublicResource' => '',
+ 'DedicatedResource' => '',
+ ],
+ 'example' => 'PublicResource',
+ ],
+ ],
+ [
+ 'name' => 'InstanceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance type.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c7.large',
+ ],
+ ],
+ [
+ 'name' => 'InstanceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance state.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Running',
+ ],
+ ],
+ [
+ 'name' => 'InstanceIP',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The IP address of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.224.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo-bdc5xxxx-8l7rk',
+ ],
+ ],
+ [
+ 'name' => 'HostIP',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The IP address of the server where the instance resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.224.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'IsSpot',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the instance is a preemptible instance.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'Role',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The service role.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DataSet'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' dataset service'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* SDProxy'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' Stable-Diffusion proxy service'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* Standard'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' standard service'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* Queue'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' queue service'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DataSet' => '',
+ 'SDProxy' => '',
+ 'Standard' => '',
+ 'Queue' => '',
+ ],
+ 'example' => 'Queue',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The field that you use to sort the query results.'."\n"
+ ."\n"
+ .'* Set the value to StartTime.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The value specifies that the query results are sorted based on the time when the instances were created'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'StartTime' => '',
+ ],
+ 'example' => 'StartTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The sorting order.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* asc'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instances are sorted in ascending order.'."\n"
+ ."\n"
+ .'* desc'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instances are sorted in descending order.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'asc' => 'asc',
+ 'desc' => 'desc',
+ ],
+ 'example' => 'desc',
+ ],
+ ],
+ [
+ 'name' => 'MemberType',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ListReplica',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'ReplicaName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'QuotaId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Resource',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Instances' => [
+ 'description' => 'The instances.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance.'."\n",
+ '$ref' => '#/components/schemas/Instance',
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Instances\\": [\\n {\\n \\"HostIP\\": \\"\\",\\n \\"HostName\\": \\"\\",\\n \\"InnerIP\\": \\"\\",\\n \\"InstanceName\\": \\"\\",\\n \\"InstancePort\\": 0,\\n \\"LastState\\": [\\n {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n }\\n ],\\n \\"Namespace\\": \\"\\",\\n \\"Reason\\": \\"\\",\\n \\"RestartCount\\": 0,\\n \\"Status\\": \\"\\",\\n \\"TotalProcesses\\": 0,\\n \\"ReadyProcesses\\": 0,\\n \\"StartAt\\": \\"\\",\\n \\"Role\\": \\"Standard\\",\\n \\"ResourceType\\": \\"PublicResource\\",\\n \\"TenantInstanceIP\\": \\"192.168.0.39\\",\\n \\"TenantHostIP\\": \\"192.168.0.39\\",\\n \\"IsSpot\\": false,\\n \\"CurrentAmount\\": 0.444,\\n \\"OriginalAmount\\": 2.2,\\n \\"Isolated\\": false,\\n \\"Zone\\": \\"cn-shanghai-a\\",\\n \\"ExternalIP\\": \\"192.168.1.100\\",\\n \\"ExternalInstancePort\\": 8080,\\n \\"StartTime\\": \\"\\",\\n \\"InstanceType\\": \\"ecs.c7.large\\",\\n \\"IsLatest\\": true,\\n \\"Detached\\": true,\\n \\"IsReplica\\": true,\\n \\"ReplicaName\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListServiceInstances',
+ ],
+ 'ListServiceVersions' => [
+ 'summary' => 'Queries the information about the historical versions of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/versions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '152269',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务所在区域',
+ 'description' => 'The ID of the region in which the service resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '服务名字',
+ 'description' => 'The service name. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test_oss',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'E089D584-B6F4-50C4-9902-DA2295B7****',
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '166',
+ ],
+ 'Versions' => [
+ 'description' => 'The historical versions of the service.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'BuildTime' => [
+ 'description' => 'The time when the service version was created. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2022-08-29T22:02:14Z',
+ ],
+ 'ImageAvailable' => [
+ 'description' => 'Indicates whether the image is available. Valid values:'."\n"
+ ."\n"
+ .'* true: The image is available.'."\n"
+ .'* false: The image is unavailable.'."\n"
+ .'* unknown: The availability of the image is unknown.'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'ImageId' => [
+ 'description' => 'The image ID.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Service is Running',
+ ],
+ 'ServiceRunnable' => [
+ 'description' => 'Indicates whether Elastic Algorithm service (EAS) is activated. Valid values:'."\n"
+ ."\n"
+ .'* true: EAS is activated.'."\n"
+ .'* false: EAS is not activated.'."\n"
+ .'* unknown: The activation of EAS is unknown.'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'ServiceConfig' => [
+ 'description' => 'The service deployment configurations. This parameter is returned only if the service is deployed by using a custom image.'."\n",
+ 'type' => 'string',
+ 'example' => '{'."\n"
+ .' "metadata": {'."\n"
+ .' "cpu": 1,'."\n"
+ .' "instance": 1,'."\n"
+ .' "memory": 1024'."\n"
+ .' },'."\n"
+ .' "name": "echo"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E089D584-B6F4-50C4-9902-DA2295B7****\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 166,\\n \\"Versions\\": [\\n {\\n \\"BuildTime\\": \\"2022-08-29T22:02:14Z\\",\\n \\"ImageAvailable\\": \\"true\\",\\n \\"ImageId\\": 4,\\n \\"Message\\": \\"Service is Running\\",\\n \\"ServiceRunnable\\": \\"true\\",\\n \\"ServiceConfig\\": \\"{\\\\n \\\\\\"metadata\\\\\\": {\\\\n \\\\\\"cpu\\\\\\": 1,\\\\n \\\\\\"instance\\\\\\": 1,\\\\n \\\\\\"memory\\\\\\": 1024\\\\n },\\\\n \\\\\\"name\\\\\\": \\\\\\"echo\\\\\\"\\\\n}\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListServiceVersions',
+ ],
+ 'ListServiceContainers' => [
+ 'summary' => 'Queries the containers of a service.',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/containers',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '172666',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the instance that runs the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo-69xxxx4f4-5w9r9',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'Containers' => [
+ 'description' => 'The containers of the service.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The detailed information about the container.'."\n",
+ '$ref' => '#/components/schemas/ContainerInfo',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Containers\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"Image\\": \\"\\",\\n \\"Port\\": 0,\\n \\"RestartCount\\": 0,\\n \\"Ready\\": true,\\n \\"CurrentStatus\\": \\"\\",\\n \\"CurrentReaon\\": \\"\\",\\n \\"CurrentTimestamp\\": \\"\\",\\n \\"LastStatus\\": \\"\\",\\n \\"LastReason\\": \\"\\",\\n \\"LastTimestamp\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListServiceContainers',
+ ],
+ 'ListServices' => [
+ 'summary' => 'Lists services.',
+ 'path' => '/api/v2/services',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '37031',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序字段 (时间戳类型默认倒序排序)',
+ 'description' => 'The sort field. By default, the query results are sorted by the timestamp type in descending order.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序方式(默认降序)',
+ 'description' => 'The sorting order. Valid values:'."\n"
+ ."\n"
+ .'* desc (default): The query results are sorted in descending order.'."\n"
+ .'* asc: The query results are sorted in ascending order.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'asc',
+ ],
+ ],
+ [
+ 'name' => 'Filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '模糊匹配字段(只支持按服务名字模糊匹配)',
+ 'description' => 'The field that is used for fuzzy matches. The system performs fuzzy matches only by service name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'GroupName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务组名称过滤',
+ 'description' => 'The name of the service group. For more information about how to query the name of a service group, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'ParentServiceUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the primary service that corresponds to the Band member service.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-m-ijafy3c8cxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ServiceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The service type. Valid values:'."\n"
+ ."\n"
+ .'* Async'."\n"
+ .'* Standard'."\n"
+ .'* Offline Task'."\n"
+ .'* Proxima'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Async'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Standard'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* OfflineTask'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Proxima'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Async' => 'Async',
+ 'Standard' => 'Standard',
+ 'OfflineTask' => 'OfflineTask',
+ 'Proxima' => 'Proxima',
+ ],
+ 'example' => 'Standard',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The tag that is used to filter services.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The tag format, which is `{"key":"value"}`. If the tag value is null or an empty string, services are filtered only by tag key. The tag value can be any value.'."\n",
+ 'example' => '{"key1":"value1","key2":null}',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ServiceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The service state.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Stopped'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Failed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Complete'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Cloning'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Stopping'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Updating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Waiting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* HotUpdate'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Committing'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Starting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DeleteFailed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Developing'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Scaling'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Deleted'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Pending'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Deleting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Creating' => 'Creating',
+ 'Stopped' => 'Stopped',
+ 'Failed' => 'Failed',
+ 'Complete' => 'Complete',
+ 'Cloning' => 'Cloning',
+ 'Stopping' => 'Stopping',
+ 'Updating' => 'Updating',
+ 'Waiting' => 'Waiting',
+ 'HotUpdate' => 'HotUpdate',
+ 'Committing' => 'Committing',
+ 'Starting' => 'Starting',
+ 'DeleteFailed' => 'DeleteFailed',
+ 'Running' => 'Running',
+ 'Developing' => 'Developing',
+ 'Scaling' => 'Scaling',
+ 'Deleted' => 'Deleted',
+ 'Pending' => 'Pending',
+ 'Deleting' => 'Deleting',
+ ],
+ 'example' => 'Running',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The service name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'echo_test',
+ ],
+ ],
+ [
+ 'name' => 'ServiceUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The user ID (UID) of the service.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-m-c9iw3yitxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name or ID of the resource group to which the service belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-hd0qwy8cxxxx',
+ 'deprecated' => true,
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The workspace ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123456',
+ ],
+ ],
+ [
+ 'name' => 'QuotaId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The quota ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quota12345',
+ ],
+ ],
+ [
+ 'name' => 'Gateway',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'Role',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The server role.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DataLoader'."\n"
+ .'* FrontEnd'."\n"
+ .'* DataSet'."\n"
+ .'* SDProxy'."\n"
+ .'* LLMSscheduler'."\n"
+ .'* ScalableJob'."\n"
+ .'* LLMGateway'."\n"
+ .'* Job'."\n"
+ .'* Queue'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DataLoader' => 'DataLoader',
+ 'FrontEnd' => 'FrontEnd',
+ 'DataSet' => 'DataSet',
+ 'SDProxy' => 'SDProxy',
+ 'LLMScheduler' => 'LLMScheduler',
+ 'ScalableJob' => 'ScalableJob',
+ 'LLMGateway' => 'LLMGateway',
+ 'Job' => 'Job',
+ 'Queue' => 'Queue',
+ ],
+ 'example' => 'LLMGateway',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'IncludeNoWorkspace',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'ResourceAliasName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ResourceBurstable',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'CronscalerEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'AutoscalerEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'TrafficState',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'CallerUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '服务创建账号的 UID',
+ 'type' => 'string',
+ 'example' => '19989224166xxxxxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Services' => [
+ 'description' => 'The services.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The service.'."\n",
+ '$ref' => '#/components/schemas/Service',
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Services\\": [\\n {\\n \\"ServiceGroup\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"Cpu\\": 0,\\n \\"Image\\": \\"\\",\\n \\"Gpu\\": 0,\\n \\"TotalInstance\\": 0,\\n \\"AccessToken\\": \\"\\",\\n \\"ResourceBurstable\\": true,\\n \\"InternetEndpoint\\": \\"\\",\\n \\"ResourceAlias\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"TrafficState\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Resource\\": \\"\\",\\n \\"SecondaryInternetEndpoint\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"LabelValue\\": \\"\\",\\n \\"LabelKey\\": \\"\\"\\n }\\n ],\\n \\"Namespace\\": \\"\\",\\n \\"Weight\\": 0,\\n \\"Role\\": \\"\\",\\n \\"SecondaryIntranetEndpoint\\": \\"\\",\\n \\"PendingInstance\\": 0,\\n \\"ServiceName\\": \\"\\",\\n \\"SafetyLock\\": \\"\\",\\n \\"Region\\": \\"\\",\\n \\"AppType\\": \\"\\",\\n \\"InstanceCountInResource\\": {\\n \\"Quota\\": 0,\\n \\"Public\\": 0,\\n \\"Dedicated\\": 0\\n },\\n \\"IntranetEndpoint\\": \\"\\",\\n \\"QuotaId\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"CurrentVersion\\": 0,\\n \\"RunningInstance\\": 0,\\n \\"WorkspaceId\\": \\"\\",\\n \\"CallerUid\\": \\"\\",\\n \\"Reason\\": \\"\\",\\n \\"Source\\": \\"\\",\\n \\"ServiceId\\": \\"\\",\\n \\"AppVersion\\": \\"\\",\\n \\"CronscalerEnabled\\": true,\\n \\"ServiceConfig\\": \\"\\",\\n \\"Gateway\\": \\"\\",\\n \\"AppSpecName\\": \\"\\",\\n \\"GPUCorePercentage\\": 0,\\n \\"GPUMemory\\": 0,\\n \\"AppConfig\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"AutoscalerEnabled\\": true,\\n \\"ExtraData\\": \\"\\",\\n \\"LatestVersion\\": 0,\\n \\"UpdateTime\\": \\"\\",\\n \\"ServiceUid\\": \\"\\",\\n \\"ParentUid\\": \\"\\",\\n \\"RoleAttrs\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 100,\\n \\"TotalCount\\": 2\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListServices',
+ ],
+ 'ListGroups' => [
+ 'summary' => 'Queries created service groups.',
+ 'path' => '/api/v2/groups',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '153481',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页大小,默认100',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '页码数,默认1',
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '名字过滤',
+ 'description' => 'The name of the filter that is used to filter out unwanted service groups. Fuzzy match is supported.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'WorkspaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The workspace ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '123***',
+ ],
+ ],
+ [
+ 'name' => 'TrafficMode',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '流量分配方式筛选',
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序字段',
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '排序顺序',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Groups' => [
+ 'description' => 'The service groups.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the service group.'."\n",
+ '$ref' => '#/components/schemas/Group',
+ ],
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '20',
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Groups\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"ClusterId\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"UpdateTime\\": \\"\\",\\n \\"QueueService\\": \\"\\",\\n \\"InternetEndpoint\\": \\"\\",\\n \\"IntranetEndpoint\\": \\"\\",\\n \\"AccessToken\\": \\"\\",\\n \\"TrafficMode\\": \\"\\"\\n }\\n ],\\n \\"PageSize\\": 20,\\n \\"PageNumber\\": 1,\\n \\"TotalCount\\": 5\\n}","type":"json"}]',
+ 'title' => 'ListGroups',
+ ],
+ 'DescribeMachineSpec' => [
+ 'summary' => 'Queries a list of instance types for an available instance in a shared resource group.',
+ 'path' => '/api/v2/public/instance_types',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '146280',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ChargeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'InstanceTypes',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'This parameter is deprecated.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'This parameter is deprecated.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '',
+ ],
+ 'deprecated' => true,
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Types' => [
+ 'description' => 'The values that can be supported when the number of CPUs and memory size are specified for deployment.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The value. Example:'."\n"
+ ."\n"
+ .' {"CPU":1,"Memory":[1000,2000,4000]}'."\n"
+ ."\n"
+ .'The value indicates that the memory size can be 1000, 2000, or 4000 when one CPU core is specified.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'CPU' => [
+ 'description' => 'Valid values:'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Memory' => [
+ 'description' => 'The optional values for memory when CPU is set to a specific value as above.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The optional value for memory.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'InstanceMetas' => [
+ 'description' => 'The instance types when the resources are specified.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the instance type.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'CPU' => [
+ 'description' => 'The number of CPU cores in the instance type.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '32',
+ ],
+ 'Memory' => [
+ 'description' => 'The memory size in the instance type. Unit: GB.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '188',
+ ],
+ 'GPU' => [
+ 'description' => 'The GPU type in the instance type. If the instance type is not a GPU-based instance type, this parameter does not exist.'."\n",
+ 'type' => 'string',
+ 'example' => 'GU30',
+ ],
+ 'GPUAmount' => [
+ 'description' => 'The number of GPUs in the instance type.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'GPUMemory' => [
+ 'description' => 'The GPU memory in the instance type. Unit: GB.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '24',
+ ],
+ 'InstanceType' => [
+ 'description' => 'The name of the instance type.'."\n",
+ 'type' => 'string',
+ 'example' => 'ml.gu7i.c32m188.1-gu30',
+ ],
+ 'SpotDiscount' => [
+ 'description' => 'The minimum discount that can be accepted when the preemptible instance type has the 1-hour protection duration. 0.1 indicates one fold. If this parameter is not returned, the bidding feature is not supported.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.12',
+ ],
+ 'NonProtectSpotDiscount' => [
+ 'description' => 'The minimum discount that can be accepted when the preemptible instance type does not include a usage duration. 0.1 indicates one fold. If this parameter is not returned, the bidding feature is not supported.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '0.1',
+ ],
+ 'IsAvailable' => [
+ 'description' => 'Indicates whether the instance type is available.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Vendor' => [
+ 'description' => 'The source of the instance type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* ECS'."\n"
+ .'* BareMetal'."\n"
+ .'* Lingjun'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'ECS' => 'ECS',
+ 'BareMetal' => '',
+ 'Lingjun' => '',
+ ],
+ 'example' => 'ECS',
+ ],
+ 'StockStatus' => [
+ 'description' => 'The inventory status of the instance type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* WithStock'."\n"
+ .'* ClosedWithStock'."\n"
+ .'* NoStock'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'WithStock' => '',
+ 'ClosedWithStock' => '',
+ 'NoStock' => '',
+ ],
+ 'example' => 'WithStock',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Types\\": [\\n {\\n \\"CPU\\": 1,\\n \\"Memory\\": [\\n 1000\\n ]\\n }\\n ],\\n \\"InstanceMetas\\": [\\n {\\n \\"CPU\\": 32,\\n \\"Memory\\": 188,\\n \\"GPU\\": \\"GU30\\",\\n \\"GPUAmount\\": 1,\\n \\"GPUMemory\\": 24,\\n \\"InstanceType\\": \\"ml.gu7i.c32m188.1-gu30\\",\\n \\"SpotDiscount\\": 0.12,\\n \\"NonProtectSpotDiscount\\": 0.1,\\n \\"IsAvailable\\": true,\\n \\"Vendor\\": \\"ECS\\",\\n \\"StockStatus\\": \\"WithStock\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeMachineSpec',
+ ],
+ 'UpdateVirtualResource' => [
+ 'summary' => 'Updates the information about a virtual resource group.',
+ 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '238299',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源所在的集群ID',
+ 'description' => 'The ID of the region to which the virtual resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'VirtualResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n",
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Resources' => [
+ 'title' => '虚拟资源所包含的资源列表,如果指定,将会覆盖先前的数据',
+ 'description' => 'The resources in the virtual resource group.'."\n"
+ ."\n"
+ .'> If you specify this parameter, previous data is overwritten.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the resource.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'title' => '资源所在的集群ID',
+ 'description' => 'The region in which the resource resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Priority' => [
+ 'title' => '资源的使用优先级',
+ 'description' => 'The priority of resource scheduling. A greater number indicates a higher priority.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '6',
+ ],
+ 'InstanceType' => [
+ 'title' => '资源所使用的实例规格,如果使用公共资源组,则必须指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The instance type of the public resource group.'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.s6-c1m2.xlarge'."\n",
+ ],
+ 'ResourceId' => [
+ 'title' => '资源ID,如果该资源组为EAS专属资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId其中的一个字段,且只能指定一个。)',
+ 'description' => 'The ID of the dedicated resource group. For information about how to obtain the ID of a dedicated resource group, see [ListResources](~~412133~~).'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-g55ieatgg3butwrn7a',
+ ],
+ 'QuotaId' => [
+ 'title' => '灵骏资源的ID,如果该资源为灵骏智算资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The ID of the Lingjun resource quota.'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quota185lqf994k6',
+ ],
+ 'SpotPriceLimit' => [
+ 'title' => '实例规格的竞拍价格,如果资源为抢占类型,则需要指定该字段。',
+ 'description' => 'The maximum price of preemptible instances in a public resource group.'."\n"
+ ."\n"
+ .'> If you leave this parameter empty, preemptible instances are not used.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '10.05',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'VirtualResourceName' => [
+ 'title' => '虚拟资源的名称,如果不指定,默认和虚拟资源的ID相同',
+ 'description' => 'The new name of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NewMyVirtualResource',
+ ],
+ 'DisableSpotProtectionPeriod' => [
+ 'description' => 'Specifies whether to disable the retention period of preemptible instances.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully updated virtual resource eas-vr-npovr28onap1xxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully updated virtual resource eas-vr-npovr28onap1xxxxxx\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateVirtualResource',
+ ],
+ 'ListVirtualResource' => [
+ 'summary' => 'Queries a list of virtual resource groups for the current user.',
+ 'path' => '/api/v2/virtualresources',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '238285',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'VirtualResourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '虚拟资源的ID,如果指定,将会返回对应的虚拟资源信息',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n",
+ ],
+ ],
+ [
+ 'name' => 'VirtualResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '虚拟资源的名称,如果指定,将会返回名称相近的虚拟资源的信息',
+ 'description' => 'The name of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyVirtualResource',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'title' => '虚拟资源的总数',
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'VirtualResources' => [
+ 'title' => '虚拟资源列表',
+ 'description' => 'The virtual resource groups.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the virtual resource group.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VirtualResourceName' => [
+ 'title' => '虚拟资源的名称,如果没有指定,默认和虚拟资源ID相同',
+ 'description' => 'The name of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'MyVirtualResource',
+ ],
+ 'VirtualResourceId' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n",
+ ],
+ 'CreateTime' => [
+ 'title' => '虚拟资源的创建时间',
+ 'description' => 'The time when the virtual resource group was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2024-10-16T17:52:49Z'."\n",
+ ],
+ 'UpdateTime' => [
+ 'title' => '虚拟资源的更新时间',
+ 'description' => 'The time when the virtual resource group was last updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2024-10-16T19:52:49Z'."\n",
+ ],
+ 'ServiceCount' => [
+ 'description' => 'The number of deployed services.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 100,\\n \\"VirtualResources\\": [\\n {\\n \\"VirtualResourceName\\": \\"MyVirtualResource\\",\\n \\"VirtualResourceId\\": \\"eas-vr-npovr28onap1xxxxxx\\\\n\\",\\n \\"CreateTime\\": \\"2024-10-16T17:52:49Z\\\\n\\",\\n \\"UpdateTime\\": \\"2024-10-16T19:52:49Z\\\\n\\",\\n \\"ServiceCount\\": 1\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListVirtualResource',
+ ],
+ 'DescribeVirtualResource' => [
+ 'summary' => 'Views the details of a virtual resource group.',
+ 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '238272',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源的集群ID',
+ 'description' => 'The ID of the region to which the virtual resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'VirtualResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The details of the virtual resource group.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Resources' => [
+ 'title' => '虚拟资源所包含的资源列表',
+ 'description' => 'The list of resources in the virtual resource group.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the resource.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'title' => '资源所在的集群ID',
+ 'description' => 'The region where the resource resides.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Priority' => [
+ 'title' => '资源的使用优先级',
+ 'description' => 'The priority of resource scheduling. A greater number specifies a higher priority.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'InstanceType' => [
+ 'title' => '资源所使用的实例规格,如果使用公共资源组,则必须指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId其中的一个字段,且只能指定一个。)',
+ 'description' => 'The instance type of the public resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'ecs.s6-c1m2.xlarge'."\n",
+ ],
+ 'QuotaId' => [
+ 'title' => '灵骏ID,如果该资源为灵骏智算资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The instance type of the public resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'quota185lqxxxxxx'."\n",
+ ],
+ 'SpotPriceLimit' => [
+ 'title' => '实例规格的竞拍价格,如果资源为抢占类型,则需要指定该字段。',
+ 'description' => 'The maximum price of preemptible instances in a public resource group.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '10.05',
+ ],
+ 'ResourceId' => [
+ 'title' => '资源ID,如果该资源为EAS专属资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The ID of the dedicated resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-g55ieatgg3buxxxxxx'."\n",
+ ],
+ ],
+ ],
+ ],
+ 'CreateTime' => [
+ 'title' => '虚拟资源的创建时间',
+ 'description' => 'The time when the virtual resource group was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2024-10-16T17:52:49Z'."\n",
+ ],
+ 'UpdateTime' => [
+ 'title' => '虚拟资源的更新时间',
+ 'description' => 'The time when the virtual resource group was last updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2024-10-16T19:52:49Z'."\n",
+ ],
+ 'VirtualResourceId' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-vr-npovr28onap1xxxxxx'."\n",
+ ],
+ 'VirtualResourceName' => [
+ 'title' => '虚拟资源的名称',
+ 'description' => 'The name of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'MyVirtualResource'."\n",
+ ],
+ 'ServiceCount' => [
+ 'description' => 'The number of deployed services.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'DisableSpotProtectionPeriod' => [
+ 'description' => 'Indicates whether the retention period of preemptible instances was disabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Features' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Resources\\": [\\n {\\n \\"Region\\": \\"cn-hangzhou\\",\\n \\"Priority\\": 3,\\n \\"InstanceType\\": \\"ecs.s6-c1m2.xlarge\\\\n\\",\\n \\"QuotaId\\": \\"quota185lqxxxxxx\\\\n\\",\\n \\"SpotPriceLimit\\": 10.05,\\n \\"ResourceId\\": \\"eas-r-g55ieatgg3buxxxxxx\\\\n\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2024-10-16T17:52:49Z\\\\n\\",\\n \\"UpdateTime\\": \\"2024-10-16T19:52:49Z\\\\n\\",\\n \\"VirtualResourceId\\": \\"eas-vr-npovr28onap1xxxxxx\\\\n\\",\\n \\"VirtualResourceName\\": \\"MyVirtualResource\\\\n\\",\\n \\"ServiceCount\\": 1,\\n \\"DisableSpotProtectionPeriod\\": true,\\n \\"Features\\": [\\n \\"GpuShare\\"\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeVirtualResource',
+ ],
+ 'DeleteVirtualResource' => [
+ 'summary' => 'Deletes a virtual resource group that contains no resources or instances.',
+ 'path' => '/api/v2/virtualresources/{ClusterId}/{VirtualResourceId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '238260',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源所在的集群ID',
+ 'description' => 'The ID of the region to which the virtual resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'VirtualResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-vr-npovr28onap1xxxxxx',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'title' => '',
+ 'description' => 'The information about the operation result.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully deleted virtual resource eas-vr-npovr28onap1xxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Successfully deleted virtual resource eas-vr-npovr28onap1xxxxxx\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteVirtualResource',
+ ],
+ 'CreateVirtualResource' => [
+ 'summary' => 'Creates a virtual resource group.',
+ 'path' => '/api/v2/virtualresources',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '238222',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Resources' => [
+ 'title' => '虚拟资源所包含的资源列表',
+ 'description' => 'The resources in the virtual resource group.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the resource.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Region' => [
+ 'title' => '资源所在的集群ID',
+ 'description' => 'The region in which the resource resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ 'InstanceType' => [
+ 'title' => '资源所使用的实例规格,如果使用公共资源组,则必须指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The instance type of the public resource group.'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.s6-c1m2.xlarge'."\n",
+ ],
+ 'Priority' => [
+ 'title' => '资源的使用优先级',
+ 'description' => 'The priority of resource scheduling. A greater number indicates a higher priority.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '6',
+ ],
+ 'QuotaId' => [
+ 'title' => '灵骏ID,如果该资源为灵骏智算资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The ID of the Lingjun resource quota.'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'quota185lqxxxxxx',
+ ],
+ 'SpotPriceLimit' => [
+ 'title' => '实例规格的竞拍价格,如果资源为抢占类型,则需要指定该字段。',
+ 'description' => 'The maximum price of preemptible instances in a public resource group.'."\n"
+ ."\n"
+ .'> If you leave this parameter empty, preemptible instances are not used.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'required' => false,
+ 'example' => '10.05',
+ ],
+ 'ResourceId' => [
+ 'title' => '资源ID,如果该资源为EAS专属资源组,则需要指定该字段。(注意: 用户必须指定InstanceType、ResourceId和QuotaId中的一个字段,且只能指定一个。)',
+ 'description' => 'The ID of the dedicated resource group. For information about how to obtain the ID of a dedicated resource group, see [ListResources](~~412133~~).'."\n"
+ ."\n"
+ .'> You must specify one and only one of the InstanceType, ResourceId, and QuotaId parameters.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-g55ieatgg3buxxxxxx',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ 'VirtualResourceName' => [
+ 'title' => '虚拟资源的名称,默认为虚拟资源的ID',
+ 'description' => 'The name of the virtual resource group. Default value: the ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyVirtualResource',
+ ],
+ 'DisableSpotProtectionPeriod' => [
+ 'description' => 'Specifies whether to disable the retention period of preemptible instances.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The returned result.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully created virtual resource eas-vr-npovr28onap1xxxxxx',
+ ],
+ 'VirtualResourceId' => [
+ 'title' => '虚拟资源的ID',
+ 'description' => 'The ID of the virtual resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-vr-npovr28onap1xxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Successfully created virtual resource eas-vr-npovr28onap1xxxxxx\\",\\n \\"VirtualResourceId\\": \\"eas-vr-npovr28onap1xxxxxx\\"\\n}","type":"json"}]',
+ 'title' => 'CreateVirtualResource',
+ ],
+ 'CreateResource' => [
+ 'summary' => 'Creates a resource group.',
+ 'path' => '/api/v2/resources',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '37055',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'EcsInstanceType' => [
+ 'title' => '实例机型,对应ecs机型',
+ 'description' => 'The type of the Elastic Compute Service (ECS) instance.'."\n"
+ ."\n"
+ .'> This parameter is required when the ResourceType parameter is set to Dedicated.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c6.8xlarge',
+ ],
+ 'SystemDiskSize' => [
+ 'title' => '系统盘大小(200-2000GB)。不传默认为200。',
+ 'description' => 'The size of the system disk. Unit: GiB. Valid values: 200 to 2000. Default value: 200.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '2000',
+ 'minimum' => '200',
+ 'example' => '200',
+ 'default' => '200',
+ ],
+ 'EcsInstanceCount' => [
+ 'title' => '实例数量',
+ 'description' => 'The number of ECS instances.'."\n"
+ ."\n"
+ .'> This parameter is required when the ResourceType parameter is set to Dedicated.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '5',
+ ],
+ 'ChargeType' => [
+ 'title' => '付费类型,预付费PrePaid,后付费PostPaid',
+ 'description' => 'The billing method. Valid values:'."\n"
+ ."\n"
+ .'* PrePaid: the subscription billing method.'."\n"
+ .'* PostPaid: the pay-as-you-go billing method.'."\n"
+ ."\n"
+ .'> This parameter is required when the ResourceType parameter is set to Dedicated.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PostPaid' => '',
+ 'PrePaid' => '',
+ ],
+ 'example' => 'PostPaid',
+ 'enum' => [
+ 'PrePaid',
+ 'PostPaid',
+ ],
+ ],
+ 'AutoRenewal' => [
+ 'title' => '是否自动续费',
+ 'description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n"
+ ."\n"
+ .'* false (default)'."\n"
+ .'* true'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'Zone' => [
+ 'description' => 'The ID of the zone in which the instance resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai-f',
+ ],
+ 'ResourceType' => [
+ 'description' => 'The type of the resource group. Valid values:'."\n"
+ ."\n"
+ .'* Dedicated: the dedicated resource group.'."\n"
+ .'* SelfManaged: the self-managed resource group.'."\n"
+ ."\n"
+ .'> If you use a self-managed resource group, you must configure a whitelist.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SelfManaged' => 'SelfManaged',
+ 'Dedicated' => 'Dedicated',
+ ],
+ 'example' => 'Dedicated',
+ ],
+ 'SelfManagedResourceOptions' => [
+ 'description' => 'The configurations of the self-managed resource group.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ExternalClusterId' => [
+ 'description' => 'The ID of the self-managed cluster.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cf0386f250f2545689ca7fdd1cd******',
+ ],
+ 'RoleName' => [
+ 'description' => 'The name of the RAM user to which the permissions on Elastic Algorithm Service (EAS) of Platform for AI (PAI) are granted.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'clusterrole',
+ ],
+ 'NodeMatchLabels' => [
+ 'description' => 'The tag key-value pairs of the node.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '"key1": "value1"',
+ 'description' => 'The tag key-value pair of the node.'."\n",
+ ],
+ ],
+ 'NodeTolerations' => [
+ 'description' => 'The tolerations for the node taint.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The toleration for the node taint.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'description' => 'The key name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'value' => [
+ 'description' => 'The key value.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ 'operator' => [
+ 'description' => 'The relationship between key names and key values.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Equal'."\n"
+ .'* Exists'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Equal' => 'Equal',
+ 'Exists' => 'Exists',
+ ],
+ 'example' => 'Equal',
+ ],
+ 'effect' => [
+ 'description' => 'The effect.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* PreferNoSchedule'."\n"
+ .'* NoSchedule'."\n"
+ .'* NoExecute'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PreferNoSchedule' => 'PreferNoSchedule',
+ 'NoSchedule' => 'NoSchedule',
+ 'NoExecute' => 'NoExecute',
+ ],
+ 'example' => 'NoSchedule',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'Labels' => [
+ 'description' => 'The labels.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The label.'."\n",
+ 'example' => '{"key":"value"}',
+ ],
+ ],
+ 'ResourceName' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyResource',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ResourceId' => [
+ 'title' => '资源组ID',
+ 'description' => 'The ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-h7lcw24dyqztwxxxxxx',
+ ],
+ 'ResourceName' => [
+ 'title' => '资源组名称',
+ 'description' => 'The name of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'MyResource',
+ ],
+ 'ClusterId' => [
+ 'title' => '资源组所在集群ID',
+ 'description' => 'The ID of the cluster to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'OwnerUid' => [
+ 'title' => '资源组的Owner UID',
+ 'description' => 'The user ID (UID) of the resource group owner.'."\n",
+ 'type' => 'string',
+ 'example' => '14401087478****',
+ ],
+ 'InstanceIds' => [
+ 'description' => 'The instance IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-i-xxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 400 => [],
+ [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ResourceId\\": \\"eas-r-h7lcw24dyqztwxxxxxx\\",\\n \\"ResourceName\\": \\"MyResource\\",\\n \\"ClusterId\\": \\"cn-shanghai\\",\\n \\"OwnerUid\\": \\"14401087478****\\",\\n \\"InstanceIds\\": [\\n \\"eas-i-xxxxx\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'CreateResource',
+ 'description' => '**Before you call this operation, make sure that you are familiar with the [billing](~~144261~~) of Elastic Algorithm Service (EAS).'."\n",
+ ],
+ 'CreateResourceInstances' => [
+ 'summary' => 'Creates instances in a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '39655',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'EcsInstanceType' => [
+ 'title' => '实例机型,对应ecs机型',
+ 'description' => 'The type of the Elastic Compute Service (ECS) instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ecs.s6-c1m2.xlarge',
+ ],
+ 'SystemDiskSize' => [
+ 'title' => '系统盘大小(200-2000)GB,不传默认为200',
+ 'description' => 'The size of the system disk. Unit: GiB. Valid values: 200 to 2000. Default value: 200.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '2000',
+ 'minimum' => '200',
+ 'example' => '200',
+ 'default' => '200',
+ ],
+ 'EcsInstanceCount' => [
+ 'title' => '新创建的实例个数,(0, 100]',
+ 'description' => 'The number of instances that you want to create. Valid values: 1 to 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'example' => '5',
+ ],
+ 'ChargeType' => [
+ 'title' => '付费类型,预付费PrePaid,后付费PostPaid',
+ 'description' => 'The billing method of the instance. Valid values:'."\n"
+ ."\n"
+ .'* PrePaid: subscription.'."\n"
+ .'* PostPaid: pay-as-you-go.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'PostPaid' => '',
+ 'PrePaid' => '',
+ ],
+ 'example' => 'PrePaid',
+ 'enum' => [
+ 'PrePaid',
+ 'PostPaid',
+ ],
+ ],
+ 'UserData' => [
+ 'title' => '用户自这义数据,小于 16KB',
+ 'description' => 'The user-defined information. This parameter is not in use.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'x112223333',
+ 'deprecated' => true,
+ ],
+ 'AutoRenewal' => [
+ 'title' => '是否自动续费',
+ 'description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n"
+ ."\n"
+ .'* false (default)'."\n"
+ .'* true'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'Zone' => [
+ 'description' => 'The zone to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai-f',
+ ],
+ 'Labels' => [
+ 'description' => 'The custom service tag.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The custom service tag.',
+ 'example' => '{"key":"value"}',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'InstanceIds' => [
+ 'description' => 'The instance IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-i-xxxxxx',
+ ],
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Create 5 new ecs instance(s) in resource [eas-r-asdasdasd] successfully',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"InstanceIds\\": [\\n \\"eas-i-xxxxxx\\"\\n ],\\n \\"Message\\": \\"Create 5 new ecs instance(s) in resource [eas-r-asdasdasd] successfully\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'CreateResourceInstances',
+ ],
+ 'CreateResourceLog' => [
+ 'summary' => 'Enables the LogShipper feature of Log Service for a resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/log',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '39659',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ProjectName' => [
+ 'title' => '资源组对应的sls日志管理项目',
+ 'description' => 'The Log Service project that is associated with the resource group. For more information about how to query the project, see [ListProject](~~74955~~).',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd-sls',
+ ],
+ 'LogStore' => [
+ 'title' => 'sls日志库',
+ 'description' => 'The Logstore of Log Service. For more information about how to query a Logstore, see [ListLogStores](~~426970~~).',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'access_log',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Resource [eas-r-asdasdasd] is deleted.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Resource [eas-r-asdasdasd****] is deleted.\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'CreateResourceLog',
+ ],
+ 'DeleteResource' => [
+ 'summary' => 'Deletes a resource group that contains no resources or instances.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82-9624-EC2B1779848E',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Resource [eas-r-asdasdasd] is deleted.',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82-9624-EC2B1779****\\",\\n \\"Message\\": \\"Resource [eas-r-asdasdasd****] is deleted.\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteResource',
+ ],
+ 'DeleteResourceDLink' => [
+ 'summary' => 'Disables the virtual private cloud (VPC) direct connection feature for a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/dlink',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Network interfaces are deleting',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Network interfaces are deleting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteResourceDLink',
+ ],
+ 'DeleteResourceInstances' => [
+ 'summary' => 'Deletes instances in a dedicated resource group. You can delete only pay-as-you-go instances as a regular user.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '37103',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'InstanceList',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instances. Separate multiple instances with commas (,), such as `instanceId1,instanceId2`. For more information about how to query the instances, see [ListResourceInstances](~~412129~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-i-xxxxxxx,eas-i-xxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'AllFailed',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to delete all the instances that fail to be created. Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Instances eas-i-011227132046,eas-i-011227132046 are deleting',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Instances eas-i-01122713****,eas-i-01122713**** are deleting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteResourceInstances',
+ ],
+ 'DeleteResourceLog' => [
+ 'summary' => 'Disables the LogShipper feature of Log Service for a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/log',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Log service for resource [eas-r-asdasdasd] is deleting',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Log service for resource [eas-r-asdas****] is deleting\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DeleteResourceLog',
+ ],
+ 'DeleteResourceInstanceLabel' => [
+ 'summary' => 'Deletes the tags of an instance in a resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/label',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '260412',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The resource group ID. For more information about how to obtain the resource group ID, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-h7lcw24dyqztwxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'InstanceIds',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'The instance IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-i-xxxxx',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AllInstances',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the delete operation takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Keys',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'The keys of the tags that you want to delete.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The key of the tag that you want to delete.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key',
+ ],
+ 'required' => false,
+ 'deprecated' => true,
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82********',
+ ],
+ 'Message' => [
+ 'description' => 'The message.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteResourceInstanceLabel',
+ ],
+ 'MigrateResourceInstance' => [
+ 'summary' => 'Migrates resource group instances.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances/migrate',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '227413',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the cluster to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The resource group ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd****',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceIds' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '[\'eas-i-4ybm1bin7gygx67umh\', \'eas-i-iy6dfaag7qals6g4i2\']',
+ ],
+ 'required' => true,
+ ],
+ 'DestResourceId' => [
+ 'description' => 'The ID of the destination resource group.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd****',
+ ],
+ 'MigrateToHybrid' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ 'InstanceIds' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => '[\'eas-i-1l3saj0kfhz5lp6p5m\', \'eas-i-hgjztp6rsw5pmyko9n\']',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Success\\",\\n \\"InstanceIds\\": [\\n \\"[\'eas-i-1l3saj0kfhz5lp6p5m\', \'eas-i-hgjztp6rsw5pmyko9n\']\\"\\n ]\\n}","type":"json"}]',
+ 'title' => 'MigrateResourceInstance',
+ ],
+ 'UpdateResourceInstanceLabel' => [
+ 'summary' => 'Updates the tag of an instance in a resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/label',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '260413',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The resource group ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'InstanceIds',
+ 'in' => 'query',
+ 'style' => 'simple',
+ 'schema' => [
+ 'description' => 'The instance IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-i-xxxxxx',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'AllInstances',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether the modification takes effect on all instances in the resource group. If you set this parameter to true, the InstanceIds parameter does not take effect.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'description' => 'The custom tag.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '{"key":"alue"}'."\n",
+ 'description' => 'The tag.'."\n",
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Success\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateResourceInstanceLabel',
+ ],
+ 'UpdateResource' => [
+ 'summary' => 'Updates the information about a dedicated resource group. Only the name of a dedicated resource group can be updated.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourceName' => [
+ 'title' => '',
+ 'description' => 'The new name of the resource group after the update. The name can be up to 27 characters in length.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'iot',
+ ],
+ 'SelfManagedResourceOptions' => [
+ 'description' => 'The configuration items of the self-managed resource group.',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeMatchLabels' => [
+ 'description' => 'Tag tag key-value pairs for nodes.',
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '"key1": "value1"',
+ 'description' => 'The tag key-value pairs for a node.',
+ ],
+ ],
+ 'NodeTolerations' => [
+ 'description' => 'Tolerations for nodes.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Tolerations for nodes.',
+ 'type' => 'object',
+ 'properties' => [
+ 'key' => [
+ 'description' => 'The key name.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'value' => [
+ 'description' => 'The key value.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'value1',
+ ],
+ 'operator' => [
+ 'description' => 'Relationship between key names and key values.'."\n"
+ .'Valid values:'."\n"
+ .'- Equal'."\n"
+ .'- Exists',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Equal' => 'Equal',
+ 'Exists' => 'Exists',
+ ],
+ 'example' => 'Equal',
+ ],
+ 'effect' => [
+ 'description' => 'The effect.'."\n"
+ .'Valid values:'."\n"
+ .'- PreferNoSchedule'."\n"
+ .'- NoSchedule'."\n"
+ .'- NoExecute',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PreferNoSchedule' => 'PreferNoSchedule',
+ 'NoSchedule' => 'NoSchedule',
+ 'NoExecute' => 'NoExecute',
+ ],
+ 'example' => 'NoSchedule',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ResourceId' => [
+ 'description' => 'The ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ 'ResourceName' => [
+ 'description' => 'The name of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'iot',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ResourceId\\": \\"eas-r-asdasdasd****\\",\\n \\"ResourceName\\": \\"iot\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateResource',
+ ],
+ 'UpdateResourceDLink' => [
+ 'summary' => 'Updates the configurations of a virtual private cloud (VPC) direct connection for a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/dlink',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的Id',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'iot',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VSwitchId' => [
+ 'title' => '对端的主VSwitchID,会在该vswitch中创建ENI',
+ 'description' => 'The ID of the peer primary vSwitch. After this parameter is specified, an elastic network interface (ENI) is created in the VSwitch.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'SecurityGroupId' => [
+ 'title' => '客户端ECS归属的安全组',
+ 'description' => 'The ID of the security group to which the Elastic Compute Service (ECS) instance belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'sg-bp149cedsfx2rfspd2d',
+ ],
+ 'VSwitchIdList' => [
+ 'title' => '要打通的客户端的vswitch列表,会将这些vswitch对应的网段加入到服务端的回包路由中',
+ 'description' => 'The vSwitches of the clients that you want to connect to. After this parameter is specified, the CIDR blocks of these vSwitches are added to the back-to-origin route of the server.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The vSwitch ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '["vsw-8ersw98sgmlgkxxxxxx","vsw-4dsgg2at0kljjxxxxxxxx"]',
+ ],
+ 'required' => false,
+ ],
+ 'DestinationCIDRs' => [
+ 'title' => '要打通的客户端的网段信息,会将该网段加入到服务端的回包路由中,与VSwitchIdList可二选一',
+ 'description' => 'The CIDR blocks of the clients that you want to connect to. After this parameter is specified, the CIDR blocks are added to the back-to-origin route of the server. Either this parameter or the VSwitchIdList parameter can be used to determine CIDR blocks.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '72.16.0.0/16',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Network interfaces are updating',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ 409 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Network interfaces are updating\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'UpdateResourceDLink',
+ ],
+ 'UpdateResourceInstance' => [
+ 'summary' => 'Updates the service scheduling status of an instance in a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances/{InstanceId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '155033',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例所属集群',
+ 'description' => 'The ID of the region to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-beijing',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例所属资源组Id',
+ 'description' => 'The ID of the resource group to which the instance belongs. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例Id',
+ 'description' => 'The instance ID. For more information about how to query the instance ID, see [ListResourceInstances](~~412129~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-i-asdasdasd',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Action' => [
+ 'title' => '更新服务的行为:Cordon, Uncordon, Drain',
+ 'description' => 'The operation that updates the scheduling state of the instance in a dedicated resource group. Valid values:'."\n"
+ ."\n"
+ .'* Uncordon: allows scheduling the service to this instance.'."\n"
+ .'* Cordon: prohibits scheduling the service to this instance.'."\n"
+ .'* Drain: evicts the service that has been scheduled to this instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'Uncordon' => '',
+ 'Cordon' => '',
+ 'Drain' => '',
+ ],
+ 'example' => 'Cordon',
+ ],
+ 'NewDiskSize' => [
+ 'type' => 'string',
+ ],
+ 'Reason' => [
+ 'title' => 'Action 为 Cordon 和 Drain 时生效,记录操作原因。',
+ 'type' => 'string',
+ 'maxLength' => 200,
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ResourceId' => [
+ 'title' => '资源组ID',
+ 'description' => 'The ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ 'InstanceId' => [
+ 'title' => '实例名',
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-i-asdasdasd'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ResourceId\\": \\"eas-r-asdasdasd\\",\\n \\"InstanceId\\": \\"eas-i-asdasdasd\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateResourceInstance',
+ ],
+ 'DescribeResource' => [
+ 'summary' => 'Queries the information about a resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '37069',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the cluster to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '902976F2-6FAF-5404-8A4D-6CC223***',
+ ],
+ 'ResourceId' => [
+ 'description' => 'The ID of the Elastic Algorithm Service (EAS) resource.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-glkfpsxuw57x1h*****',
+ ],
+ 'ResourceName' => [
+ 'description' => 'The name of the EAS resource.'."\n",
+ 'type' => 'string',
+ 'example' => 'my-resouce****',
+ ],
+ 'ClusterId' => [
+ 'description' => 'The ID of the cluster to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-beijing',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the resource group was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-05-19T14:19:42Z',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the resource group was last updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-24T11:52:17Z',
+ ],
+ 'OwnerUid' => [
+ 'description' => 'The ID of the resource group owner.'."\n",
+ 'type' => 'string',
+ 'example' => '14401087478****',
+ ],
+ 'InstanceCount' => [
+ 'description' => 'The total number of instances in the resource group.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'PrePaidInstanceCount' => [
+ 'description' => 'The total number of subscription instances in the resource group.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PostPaidInstanceCount' => [
+ 'description' => 'The total number of pay-as-you-go instances in the resource group.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'CpuCount' => [
+ 'description' => 'The total number of CPU cores.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '16',
+ ],
+ 'GpuCount' => [
+ 'description' => 'The total number of GPUs.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Memory' => [
+ 'description' => 'The total memory size. Unit: MB.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8192',
+ ],
+ 'CpuUsed' => [
+ 'description' => 'The number of vCPUs that is used.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '8',
+ ],
+ 'GpuUsed' => [
+ 'description' => 'The number of GPUs that is used.'."\n",
+ 'type' => 'number',
+ 'format' => 'float',
+ 'example' => '2',
+ ],
+ 'MemoryUsed' => [
+ 'description' => 'The size of memory that is used. Unit: MB.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2048',
+ ],
+ 'Status' => [
+ 'description' => 'The state of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'ResourceReady',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Resource is ready',
+ ],
+ 'ExtraData' => [
+ 'description' => 'The additional information, such as the connection status of a virtual private cloud (VPC) and the log status of Log Service.'."\n",
+ 'type' => 'string',
+ 'example' => '{"vswitch_id":"vsw-bp17uo6xebcusy****","gpu_share":true,"aux_vswitch_id_list":["vsw-bp13b3pvjap3vxn****","vsw-bp1nls8o5hk8mt8*****"],"security_group_id":"sg-bp1j1z7297hcink*****","vpc_id":"vpc-bp1kjr3rfyhx01*****","destination_cidr":"172.16.0.12/28","role_arn":"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas","sls_project":"","sls_logstore":"","sls_status":"ResourceReady","sls_message":"","update_time":""}',
+ ],
+ 'ResourceType' => [
+ 'description' => 'The type of the resource group. Valid values:'."\n"
+ ."\n"
+ .'* Dedicated: the dedicated resource group.'."\n"
+ .'* SelfManaged: the self-managed resource group.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'SelfManaged' => 'SelfManaged',
+ 'Dedicated' => 'Dedicated',
+ ],
+ 'example' => 'Dedicated',
+ ],
+ 'InstanceMaxAllocatableMemory' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'Features' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'InstanceMaxAllocatableGPU' => [
+ 'type' => 'number',
+ 'format' => 'float',
+ ],
+ 'InstanceMaxAllocatableCPU' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"902976F2-6FAF-5404-8A4D-6CC223***\\",\\n \\"ResourceId\\": \\"eas-r-glkfpsxuw57x1h*****\\",\\n \\"ResourceName\\": \\"my-resouce****\\",\\n \\"ClusterId\\": \\"cn-beijing\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-02-24T11:52:17Z\\",\\n \\"OwnerUid\\": \\"14401087478****\\",\\n \\"InstanceCount\\": 4,\\n \\"PrePaidInstanceCount\\": 1,\\n \\"PostPaidInstanceCount\\": 3,\\n \\"CpuCount\\": 16,\\n \\"GpuCount\\": 4,\\n \\"Memory\\": 8192,\\n \\"CpuUsed\\": 8,\\n \\"GpuUsed\\": 2,\\n \\"MemoryUsed\\": 2048,\\n \\"Status\\": \\"ResourceReady\\",\\n \\"Message\\": \\"Resource is ready\\",\\n \\"ExtraData\\": \\"{\\\\\\"vswitch_id\\\\\\":\\\\\\"vsw-bp17uo6xebcusy****\\\\\\",\\\\\\"gpu_share\\\\\\":true,\\\\\\"aux_vswitch_id_list\\\\\\":[\\\\\\"vsw-bp13b3pvjap3vxn****\\\\\\",\\\\\\"vsw-bp1nls8o5hk8mt8*****\\\\\\"],\\\\\\"security_group_id\\\\\\":\\\\\\"sg-bp1j1z7297hcink*****\\\\\\",\\\\\\"vpc_id\\\\\\":\\\\\\"vpc-bp1kjr3rfyhx01*****\\\\\\",\\\\\\"destination_cidr\\\\\\":\\\\\\"172.16.0.12/28\\\\\\",\\\\\\"role_arn\\\\\\":\\\\\\"acs:ram::1157703270*****:role/AliyunServiceRoleForPaiEas\\\\\\",\\\\\\"sls_project\\\\\\":\\\\\\"\\\\\\",\\\\\\"sls_logstore\\\\\\":\\\\\\"\\\\\\",\\\\\\"sls_status\\\\\\":\\\\\\"ResourceReady\\\\\\",\\\\\\"sls_message\\\\\\":\\\\\\"\\\\\\",\\\\\\"update_time\\\\\\":\\\\\\"\\\\\\"}\\",\\n \\"ResourceType\\": \\"Dedicated\\",\\n \\"InstanceMaxAllocatableMemory\\": 2048,\\n \\"Features\\": [\\n \\"GpuShare\\"\\n ],\\n \\"InstanceMaxAllocatableGPU\\": 2,\\n \\"InstanceMaxAllocatableCPU\\": 16\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeResource',
+ ],
+ 'DescribeResourceDLink' => [
+ 'summary' => 'Queries detailed configurations about a virtual private cloud (VPC) direct connection of a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/dlink',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-adfabas',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'VpcId' => [
+ 'title' => '已打通直接的Vpc ID',
+ 'description' => 'The ID of the VPC that is directly connected.'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'VSwitchId' => [
+ 'title' => '已打通直连的主VSwitch ID',
+ 'description' => 'The ID of the primary vSwitch that is directly connected.'."\n",
+ 'type' => 'string',
+ 'example' => 'vsw-8vbqn2at0kljjxxxx****',
+ ],
+ 'SecurityGroupId' => [
+ 'title' => '已打通直连的安全组',
+ 'description' => 'The ID of the security group that is directly connected.'."\n",
+ 'type' => 'string',
+ 'example' => 'sg-bp1j1z7297hcink9d****',
+ ],
+ 'AuxVSwitchList' => [
+ 'title' => '已打通直连的副VSwitch ID',
+ 'description' => 'The IDs of the secondary vSwitches that are directly connected.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The ID of the secondary vSwitch.'."\n",
+ 'type' => 'string',
+ 'example' => '[" vsw-8ersw98sgmlgkxxxxxx", " vsw-4dsgg2at0kljjxxxxxxxx"]',
+ ],
+ ],
+ 'DestinationCIDRs' => [
+ 'title' => '要打通的客户端的网段信息,会将该网段加入到服务端的回包路由中,与VSwitchIdList可二选一',
+ 'description' => 'The CIDR blocks of the clients that you want to connect to. After this parameter is specified, the CIDR blocks are added to the back-to-origin route of the server. Either this parameter or the VSwitchIdList parameter can be used to determine CIDR blocks.'."\n",
+ 'type' => 'string',
+ 'example' => '72.16.0.0/16',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"VpcId\\": \\"vpc-uf66uio7m****1\\",\\n \\"VSwitchId\\": \\"vsw-8vbqn2at0kljjxxxx****\\",\\n \\"SecurityGroupId\\": \\"sg-bp1j1z7297hcink9d****\\",\\n \\"AuxVSwitchList\\": [\\n \\"[\\\\\\" vsw-8ersw98sgmlgkxxxxxx\\\\\\", \\\\\\" vsw-4dsgg2at0kljjxxxxxxxx\\\\\\"]\\"\\n ],\\n \\"DestinationCIDRs\\": \\"172.16.0.0/16\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeResourceDLink',
+ ],
+ 'DescribeResourceLog' => [
+ 'summary' => 'Queries the details about the LogShipper configurations of Log Service for a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/log',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-asdasdasd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'ProjectName' => [
+ 'title' => '资源组对应的sls日志管理项目',
+ 'description' => 'The Log Service project that is associated with the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-r-asdasdasd-sls',
+ ],
+ 'LogStore' => [
+ 'title' => 'sls日志库',
+ 'description' => 'The Logstore of Log Service.'."\n",
+ 'type' => 'string',
+ 'example' => 'access_log',
+ ],
+ 'Message' => [
+ 'title' => 'sls日志信息',
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Network interfaces are updating',
+ ],
+ 'Status' => [
+ 'title' => '资源组状态',
+ 'description' => 'The state of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'ResourceReady',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"ProjectName\\": \\"eas-r-asdasdasd-sls\\",\\n \\"LogStore\\": \\"access_log\\",\\n \\"Message\\": \\"Network interfaces are updating\\",\\n \\"Status\\": \\"ResourceReady\\"\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'DescribeResourceLog',
+ ],
+ 'ListResourceInstances' => [
+ 'summary' => 'Queries a list of instances in a dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instances',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '37095',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'iot',
+ ],
+ ],
+ [
+ 'name' => 'ChargeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '付费类型'."\n"
+ .'PrePaid预付费'."\n"
+ .'PostPaid后付费',
+ 'description' => 'The billing method of the instance. Valid values:'."\n"
+ ."\n"
+ .'* PrePaid: subscription.'."\n"
+ .'* PostPaid: pay-as-you-go.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PostPaid' => '',
+ 'PrePaid' => '',
+ ],
+ 'example' => 'PrePaid',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'e-xxxx***',
+ ],
+ ],
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID. For more information about how to query the instance ID, see [ListResourceInstances](~~412129~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'i-bp1jd6x3uotsv****',
+ ],
+ ],
+ [
+ 'name' => 'InstanceIP',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The IP address of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.224.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'Filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The keyword used to query instances. Instances can be queried by instance ID or instance IP address.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.224.xx.xx',
+ ],
+ ],
+ [
+ 'name' => 'InstanceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance state.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Ready-SchedulingDisabled'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instance is available but unschedulable'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* Ready'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instance'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' is running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* NotReady'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instance is unready.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Stopped'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instance has stopped.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* NotReady-SchedulingDisabled'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instance is unavailable and unschedulable'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* Attaching'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instance'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' is starting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* Deleting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instance is being deleted.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* CreateFailed: The instance failed to be created.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'Ready-SchedulingDisabled' => '',
+ 'Ready' => '',
+ 'NotReady' => '',
+ 'Stopped' => '',
+ 'NotReady-SchedulingDisabled' => '',
+ 'Attaching' => '',
+ 'Deleting' => '',
+ 'CreateFailed' => '',
+ ],
+ 'example' => 'Ready',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The tag.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'example' => '{"key1":"value1","key2":null}',
+ 'description' => 'The tag is in the {"key":"value"} format. If the tag value is null or an empty string, instances are filtered only by tag key. The tag value can be any value.'."\n",
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The field that you use to sort the query results.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* CreateTime'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instances are sorted based on the time when the instances were created.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* MemoryUsed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instances are sorted based on the memory usage of the instances'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' .'."\n"
+ ."\n"
+ .'* GpuUsed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instances are sorted based on the'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' GPU usage of the instances.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* ExpireTime: The instances are sorted based on the time when the instances expired.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* CpuUsed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The instances are sorted based on the CPU utilization of the instances.'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'CreateTime' => '',
+ 'MemoryUsed' => '',
+ 'GpuUsed' => '',
+ 'ExpireTime' => '',
+ 'CpuUsed' => '',
+ ],
+ 'example' => 'CreateTime',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The sorting order.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* asc: The instances are sorted in ascending order.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* desc'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' : The instances are sorted in descending order.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'asc' => '',
+ 'desc' => '',
+ ],
+ 'example' => 'desc',
+ ],
+ ],
+ [
+ 'name' => 'Zone',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Instances' => [
+ 'description' => 'The instances.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the instance.'."\n",
+ '$ref' => '#/components/schemas/ResourceInstance',
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Instances\\": [\\n {\\n \\"InstanceId\\": \\"\\",\\n \\"InstanceName\\": \\"\\",\\n \\"InstanceIp\\": \\"\\",\\n \\"InstanceStatus\\": \\"\\",\\n \\"InstancePhase\\": \\"\\",\\n \\"InstanceCpuCount\\": 0,\\n \\"InstanceGpuCount\\": 0,\\n \\"InstanceMemory\\": \\"\\",\\n \\"InstanceSystemDiskSize\\": 0,\\n \\"InstanceGpuMemory\\": \\"\\",\\n \\"InstanceUsedCpu\\": 0,\\n \\"InstanceUsedGpu\\": 0,\\n \\"InstanceUsedMemory\\": \\"\\",\\n \\"InstanceType\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"ChargeType\\": \\"\\",\\n \\"ExpiredTime\\": \\"\\",\\n \\"AutoRenewal\\": true,\\n \\"Arch\\": \\"\\",\\n \\"Region\\": \\"\\",\\n \\"Zone\\": \\"\\",\\n \\"ResourceId\\": \\"\\",\\n \\"InstanceTenantIp\\": \\"\\",\\n \\"InstanceUsedGpuMemory\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"\\",\\n \\"LabelValue\\": \\"\\"\\n }\\n ],\\n \\"LastCordonOperator\\": \\"\\",\\n \\"LastCordonReason\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListResourceInstances',
+ ],
+ 'ListResourceInstanceWorker' => [
+ 'summary' => 'Queries a list of workers in a resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/instance/{InstanceName}/workers',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '37099',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the cluster to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'eas-r-adfabas',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the instance in a resource group. For more information about how to obtain the instance name, see [ListServiceInstances](~~412129~~). HostName in the returned result indicates the name of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cne10',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'WorkerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The worker name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-fd95xxxxx-xxxxxx ',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Ready',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Pods' => [
+ 'title' => 'pod列表',
+ 'description' => 'The workers.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the worker.'."\n",
+ '$ref' => '#/components/schemas/ResourceInstanceWorker',
+ ],
+ ],
+ 'PageNumber' => [
+ 'title' => '当前页码',
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'title' => '每页大小',
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'title' => 'pod总数',
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Pods\\": [\\n {\\n \\"Name\\": \\"\\",\\n \\"ServiceName\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"Ready\\": true,\\n \\"CpuRequest\\": 0,\\n \\"GpuRequest\\": 0,\\n \\"MemoryRquest\\": 0,\\n \\"CpuLimit\\": 0,\\n \\"GpuLimit\\": 0,\\n \\"MemoryLimit\\": 0,\\n \\"RestartCount\\": 0,\\n \\"StartTime\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListResourceInstanceWorker',
+ ],
+ 'ListResources' => [
+ 'summary' => 'Queries a list of dedicated resource groups for the current user.',
+ 'path' => '/api/v2/resources',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '37092',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnRPDTZG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the resource group. You can call the [CreateResource](~~412111~~) operation to query the name of the resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'MyResource',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. You can call the [CreateResource](~~412111~~) operation to query the ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-h7lcw24dyqztwxxxxxx',
+ ],
+ ],
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the resource group. Valid values:'."\n"
+ ."\n"
+ .'* Dedicated: the dedicated resource group.'."\n"
+ .'* SelfManaged: the self-managed resource group.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SelfManaged' => 'SelfManaged',
+ 'Dedicated' => 'Dedicated',
+ ],
+ 'example' => 'Dedicated',
+ ],
+ ],
+ [
+ 'name' => 'ResourceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The resource group status.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceReady',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The sorting order. Valid values:'."\n"
+ ."\n"
+ .'* Desc'."\n"
+ .'* Asc'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Desc',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The condition by which the results are sorted. By default, the query results are sorted by the timestamp type in descending order.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* PrePaidInstanceCount'."\n"
+ .'* CpuCount'."\n"
+ .'* Memory'."\n"
+ .'* CreateTime'."\n"
+ .'* PostPaidInstanceCount'."\n"
+ .'* MemoryUsed'."\n"
+ .'* GpuCount'."\n"
+ .'* GpuUsed'."\n"
+ .'* CpuUsed'."\n"
+ .'* ServiceCount'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'PrePaidInstanceCount' => 'PrePaidInstanceCount',
+ 'CpuCount' => 'CpuCount',
+ 'Memory' => 'Memory',
+ 'CreateTime' => 'CreateTime',
+ 'PostPaidInstanceCount' => 'PostPaidInstanceCount',
+ 'MemoryUsed' => 'MemoryUsed',
+ 'GpuCount' => 'GpuCount',
+ 'GpuUsed' => 'GpuUsed',
+ 'CpuUsed' => 'CpuUsed',
+ 'ServiceCount' => 'ServiceCount',
+ ],
+ 'example' => 'CreateTime',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Resources' => [
+ 'description' => 'The resource groups.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The details of the resource group.'."\n",
+ '$ref' => '#/components/schemas/Resource',
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Resources\\": [\\n {\\n \\"Status\\": \\"\\",\\n \\"PrePaidInstanceCount\\": 0,\\n \\"Message\\": \\"\\",\\n \\"ClusterId\\": \\"\\",\\n \\"ResourceName\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"CreateTime\\": \\"\\",\\n \\"ResourceType\\": \\"\\",\\n \\"PostPaidInstanceCount\\": 0,\\n \\"ExtraData\\": {\\n \\"test\\": \\"test\\",\\n \\"test2\\": 1\\n },\\n \\"Vendor\\": \\"\\",\\n \\"InstanceCount\\": 0,\\n \\"CpuCount\\": 0,\\n \\"InstanceMaxAllocatableCPU\\": 0,\\n \\"ResourceId\\": \\"\\",\\n \\"UpdateTime\\": \\"\\",\\n \\"InstanceMaxAllocatableGPU\\": 0,\\n \\"InstanceMaxAllocatableMemory\\": 0,\\n \\"MemoryUsed\\": 0,\\n \\"Features\\": [\\n \\"\\"\\n ],\\n \\"GpuCount\\": 0,\\n \\"GpuUsed\\": 0,\\n \\"CpuUsed\\": 0\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 1\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListResources',
+ ],
+ 'ListResourceServices' => [
+ 'summary' => 'Queries a list of services that are deployed in the dedicated resource group.',
+ 'path' => '/api/v2/resources/{ClusterId}/{ResourceId}/services',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '37100',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组所在的集群ID',
+ 'description' => 'The ID of the region to which the resource group belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '资源组的ID',
+ 'description' => 'The ID of the resource group. For more information about how to query the ID of a resource group, see [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'iot',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '请求的页码(默认为1)',
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '每页的大小(默认为100)',
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Services' => [
+ 'description' => 'The services.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The summary information about the service.'."\n",
+ '$ref' => '#/components/schemas/Service',
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ 404 => [],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => [
+ 'eas::2021-07-01::ListServices',
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Services\\": [\\n {\\n \\"ServiceGroup\\": \\"\\",\\n \\"Memory\\": 0,\\n \\"Cpu\\": 0,\\n \\"Image\\": \\"\\",\\n \\"Gpu\\": 0,\\n \\"TotalInstance\\": 0,\\n \\"AccessToken\\": \\"\\",\\n \\"ResourceBurstable\\": true,\\n \\"InternetEndpoint\\": \\"\\",\\n \\"ResourceAlias\\": \\"\\",\\n \\"Status\\": \\"\\",\\n \\"TrafficState\\": \\"\\",\\n \\"RequestId\\": \\"\\",\\n \\"Resource\\": \\"\\",\\n \\"SecondaryInternetEndpoint\\": \\"\\",\\n \\"Labels\\": [\\n {\\n \\"LabelValue\\": \\"\\",\\n \\"LabelKey\\": \\"\\"\\n }\\n ],\\n \\"Namespace\\": \\"\\",\\n \\"Weight\\": 0,\\n \\"Role\\": \\"\\",\\n \\"SecondaryIntranetEndpoint\\": \\"\\",\\n \\"PendingInstance\\": 0,\\n \\"ServiceName\\": \\"\\",\\n \\"SafetyLock\\": \\"\\",\\n \\"Region\\": \\"\\",\\n \\"AppType\\": \\"\\",\\n \\"InstanceCountInResource\\": {\\n \\"Quota\\": 0,\\n \\"Public\\": 0,\\n \\"Dedicated\\": 0\\n },\\n \\"IntranetEndpoint\\": \\"\\",\\n \\"QuotaId\\": \\"\\",\\n \\"Message\\": \\"\\",\\n \\"CurrentVersion\\": 0,\\n \\"RunningInstance\\": 0,\\n \\"WorkspaceId\\": \\"\\",\\n \\"CallerUid\\": \\"\\",\\n \\"Reason\\": \\"\\",\\n \\"Source\\": \\"\\",\\n \\"ServiceId\\": \\"\\",\\n \\"AppVersion\\": \\"\\",\\n \\"CronscalerEnabled\\": true,\\n \\"ServiceConfig\\": \\"\\",\\n \\"Gateway\\": \\"\\",\\n \\"AppSpecName\\": \\"\\",\\n \\"GPUCorePercentage\\": 0,\\n \\"GPUMemory\\": 0,\\n \\"AppConfig\\": \\"\\",\\n \\"CreateTime\\": \\"\\",\\n \\"AutoscalerEnabled\\": true,\\n \\"ExtraData\\": \\"\\",\\n \\"LatestVersion\\": 0,\\n \\"UpdateTime\\": \\"\\",\\n \\"ServiceUid\\": \\"\\",\\n \\"ParentUid\\": \\"\\",\\n \\"RoleAttrs\\": \\"\\"\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20,\\n \\"TotalCount\\": 2\\n}","errorExample":""},{"type":"xml","example":"","errorExample":""}]',
+ 'title' => 'ListResourceServices',
+ ],
+ 'CreateBenchmarkTask' => [
+ 'summary' => 'Creates a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => [
+ 'description' => 'The request body. The body includes the parameters that are set to create a stress testing task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "base": {'."\n"
+ .' "duration": 600'."\n"
+ .' },'."\n"
+ .' "service": {'."\n"
+ .' "serviceName": "test_service",'."\n"
+ .' "requestToken": "test_token"'."\n"
+ .' },'."\n"
+ .' "data": {'."\n"
+ .' "path": "https://larec-benchmark-cd.oss-cn-chengdu.aliyuncs.com/youbei/sv_dbmtl/data/youbei.warmup.tf.bin",'."\n"
+ .' "dataType": "binary"'."\n"
+ .' },'."\n"
+ .' "optional": {'."\n"
+ .' "maxRt": 100'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82********',
+ ],
+ 'TaskName' => [
+ 'description' => 'The name of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'benchmark-larec-test-1076',
+ ],
+ 'Region' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [foo] is Creating',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"TaskName\\": \\"benchmark-larec-test-1076\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"Message\\": \\"Benchmark task [foo] is Creating\\"\\n}","type":"json"}]',
+ 'title' => 'CreateBenchmarkTask',
+ 'requestParamsDescription' => '## Parameters that are set to create a stress testing task'."\n"
+ ."\n"
+ .'The following table describes the parameters that are set to create a stress testing task by using eas-benchmark.'."\n"
+ ."\n"
+ .'|**Parameter**|**Description**|'."\n"
+ .'|---|---|'."\n"
+ .'|base|The basic configurations of the stress testing task.|'."\n"
+ .'|service|The configurations related to the service that you want to test.|'."\n"
+ .'|data|The configurations related to the requested data for the stress testing.|'."\n"
+ .'|http|The configurations related to the request HTTP for the service.|'."\n"
+ .'|optional|The optional advanced configurations for the stress testing task.|'."\n"
+ ."\n"
+ .'#### Table 1. Fields in the base parameter'."\n"
+ ."\n"
+ .'|**Field**|**Description**|'."\n"
+ .'|---|---|'."\n"
+ .'|name|The name of the stress testing task. If you do not specify this field, the task is automatically named based on the service name. This field is optional.|'."\n"
+ .'|duration|The total stress testing duration. Unit: seconds. Default value: 1200. This field is optional.|'."\n"
+ .'|qps|The expected queries per second (QPS) of the stress testing task. Default value: 10000. This field is optional.|'."\n"
+ .'|concurrency|The number of concurrent connections that you want to create for each instance in the stress testing task. The default value is 40, and it canbe automatically changed. This field is optional.|'."\n"
+ .'|agentCount|The number of instances that you want to create for the stress testing task. The default value is 1, and it can be automatically changed. This field is optional.|'."\n"
+ ."\n"
+ .'#### Table 2. Fields in the service parameter'."\n"
+ ."\n"
+ .'| \\*\\*Field\\*\\* | \\*\\*Description\\*\\* | '."\n"
+ .'| --- | --- | '."\n"
+ .'| serviceUrl | The URL of the service that you want to test. If a service of Elastic Algorithm Service (EAS) is tested, this field can be ignored. This field is optional. | '."\n"
+ .'| serviceName | The name of the service that you want to test. If a service of EAS is tested, this field must be set. If a custom service is tested, this field can be ignored. This field is optional. | '."\n"
+ .'| requestToken | The token used to access the service. If the value of \\*\\*serviceName\\*\\* is specified, this field can be ignored. This field is optional. | '."\n"
+ .'| endpointType | The type of stress testing supported by the service. Valid values: default and direct. \\*\\*default\\*\\* specifies that the stress testing task is performed on the service by using a gateway. \\*\\*direct\\*\\* specifies that the stress testing task is directly performed on the service. Default value: \\*\\*direct\\*\\*. This field is optional. | '."\n"
+ .'#### Table 3. Fields in the data parameter '."\n"
+ .'| \\*\\*Field\\*\\* | \\*\\*Description\\*\\* | '."\n"
+ .'| --- | --- | '."\n"
+ .'| content | The content of a stress testing request. The value of this field is of the STRING type. This field is optional. | '."\n"
+ .'| path | The path of the stress testing data. The path can be a single file or a \\`.zip\\` file. The \\`.zip\\` file is automatically downloaded and decompressed. This field is optional. | '."\n"
+ .'| dataType | The type of the test data. Valid values: text and binary. Default value: text. This field is optional. | '."\n"
+ .'| multiLine | Specifies whether to separate the stress testing data by line. Valid values: true and false. Default value: false. If you set this field to true, the downloaded data is parsed by line. This field is optional. | '."\n"
+ .'#### Table 4. Fields in the HTTP parameter '."\n"
+ .'| \\*\\*Field\\*\\* | \\*\\*Description\\*\\* | '."\n"
+ .'| --- | --- | '."\n"
+ .'| method | The HTTP request method. Default value: POST. This field is optional. | '."\n"
+ .'| host | The host that sends the request. This field is empty by default. This field is optional. | '."\n"
+ .'| headers | The header of the HTTP request. The header is of the LIST type, such as \\`\\["Authorization:aaa", "Content-Type:text"\\] \\`. This field is optional. | '."\n"
+ .'| timeout | The HTTP request latency. Unit: millisecond. Default value: 20000. This field is optional. | '."\n"
+ .'#### Table 5. Fields in the optional parameter '."\n"
+ .'| \\*\\*Field\\*\\* | \\*\\*Description\\*\\* | '."\n"
+ .'| --- | --- | '."\n"
+ .'| mode | The stress testing mode. Valid values: auto, scan, and manual. The value scan specifies to periodically perform stress testing. Default value: auto. This field is optional. | '."\n"
+ .'| adjustInterval | The interval at which stress testing is automatically performed. Unit: seconds. If this field is set to 1, stress testing is performed at an interval of 1 second. Default value: 60. This field is optional. | '."\n"
+ .'| minQPS | The minimum QPS of stress testing. Default value: 100. This field is optional. | '."\n"
+ .'| maxQPS | The maximum QPS of stress testing. Default value: 10000. This field is optional. | '."\n"
+ .'| maxRT | The maximum response time. If the actual response time exceeds the specified upper limit, the QPS is automatically adjusted until the response time drops below the upper limit. This field is optional. | '."\n"
+ .'| qpsGrowthDelta | The QPS increment. Default value: 50. This field is optional. | '."\n"
+ .'| faultTolerate | The highest request error rate that can be tolerated, excluding errors with the HTTP 200 status code. Default value: 0.001. This field is optional. | '."\n"
+ .'| faultAction | The operation that is performed if the request error rate exceeds the threshold specified by the faultTolerate field. Valid values: stop and revise. stop means to maintain the current QPS and stop increasing the loads. revise means to dynamically adjust the QPS until the request error rate meets the expectation. This field is optional.|',
+ ],
+ 'DeleteBenchmarkTask' => [
+ 'summary' => 'Deletes a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task. For more information about how to query the name of a stress testing task, see [ListBenchmarkTask](~~432976~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-2b11',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [benchmark-test-service-234c] is Deleting',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-test-service-234c] is Deleting\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteBenchmarkTask',
+ ],
+ 'DescribeBenchmarkTask' => [
+ 'summary' => 'Queries details about the configurations of a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task. For more information about how to query the name of a stress testing task, see [ListBenchmarkTask](~~432976~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-eac4',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'TaskName' => [
+ 'description' => 'The name of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'benchmark-larec-test-ae70',
+ ],
+ 'TaskId' => [
+ 'description' => 'The ID of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-b-gv4y86u****',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The name of the service that you want to test.'."\n",
+ 'type' => 'string',
+ 'example' => 'foo',
+ ],
+ 'Token' => [
+ 'description' => 'The token for authentication when a stress testing task is created.'."\n",
+ 'type' => 'string',
+ 'example' => '6062787a-9301****',
+ ],
+ 'CallerUid' => [
+ 'description' => 'The ID of the operation caller.'."\n",
+ 'type' => 'string',
+ 'example' => '1640133467****',
+ ],
+ 'ParentUid' => [
+ 'description' => 'The ID of the Alibaba Cloud account that is used to call the operation.'."\n",
+ 'type' => 'string',
+ 'example' => '1029728669****',
+ ],
+ 'DesiredAgent' => [
+ 'description' => 'The number of instances that you want to test.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '4',
+ ],
+ 'AvailableAgent' => [
+ 'description' => 'The number of instances that you can test.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '4',
+ ],
+ 'Status' => [
+ 'description' => 'The state of the stress testing task.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Starting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DeleteFailed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Stopping'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Error'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Updating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Deleting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* CreateFailed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => '',
+ 'Starting' => '',
+ 'DeleteFailed' => '',
+ 'Running' => '',
+ 'Stopping' => '',
+ 'Error' => '',
+ 'Updating' => '',
+ 'Deleting' => '',
+ 'CreateFailed' => '',
+ ],
+ 'example' => 'Running',
+ ],
+ 'Reason' => [
+ 'description' => 'The event or reason that causes the current state of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmar task is Running',
+ ],
+ 'Endpoint' => [
+ 'description' => 'The endpoint of the service gateway.'."\n",
+ 'type' => 'string',
+ 'example' => '192342311234.pai-eas.cn-chengdu.aliyuncs.com',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"TaskName\\": \\"benchmark-larec-test-ae70\\",\\n \\"TaskId\\": \\"eas-b-gv4y86u****\\",\\n \\"ServiceName\\": \\"foo\\",\\n \\"Token\\": \\"6062787a-9301****\\",\\n \\"CallerUid\\": \\"1640133467****\\",\\n \\"ParentUid\\": \\"1029728669****\\",\\n \\"DesiredAgent\\": 4,\\n \\"AvailableAgent\\": 4,\\n \\"Status\\": \\"Running\\",\\n \\"Reason\\": \\"RUNNING\\",\\n \\"Message\\": \\"Benchmar task is Running\\",\\n \\"Endpoint\\": \\"192342311234.pai-eas.cn-chengdu.aliyuncs.com\\"\\n}","type":"json"}]',
+ 'title' => 'DescribeBenchmarkTask',
+ ],
+ 'DescribeBenchmarkTaskReport' => [
+ 'summary' => 'Queries the report of a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/report',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task. For more information about how to query the name of a stress testing task, see [ListBenchmarkTask](~~432976~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-015d',
+ ],
+ ],
+ [
+ 'name' => 'ReportType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The report type of the stress testing task. Valid values: RAW and Report.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'report',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82********',
+ ],
+ 'ReportUrl' => [
+ 'description' => 'If the value of ReportType is set to Report, the URL of the stress testing report is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'http://eas-benchmark.oss-cn-chengdu.aliyuncs.com/summary/benchmark-larec-test-015d-10007.html',
+ ],
+ 'Data' => [
+ 'description' => 'If the value of ReportType is set to RAW, the details about the stress testing report are returned.'."\n",
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .' "TimestampList": ["int64"],'."\n"
+ .' "QPSList": ["float32"],'."\n"
+ .' "RTList": ['."\n"
+ .' {'."\n"
+ .' "AVG": "float32",'."\n"
+ .' "TP100": "float32",'."\n"
+ .' "TP99": "float32",'."\n"
+ .' "TP90": "float32",'."\n"
+ .' "TP50": "float32",'."\n"
+ .' "TP10": "float32"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "TrafficList": ['."\n"
+ .' {'."\n"
+ .' "Send": "float64",'."\n"
+ .' "Receive": "float64"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "StatusCode": {'."\n"
+ .' "200": "uint64",'."\n"
+ .' "450": "uint64",'."\n"
+ .' "500": "uint64"'."\n"
+ .' },'."\n"
+ .' "Count": "uint64",'."\n"
+ .' "Total": "float64",'."\n"
+ .' "MinRT": "float32",'."\n"
+ .' "AvgRT": "float32",'."\n"
+ .' "MaxRT": "float32",'."\n"
+ .' "QPS": "float32",'."\n"
+ .' "TotalSend": "float64",'."\n"
+ .' "TotalReceive": "float64",'."\n"
+ .' "RTDistribution": ['."\n"
+ .' {'."\n"
+ .' "Latency": "float32",'."\n"
+ .' "Percentage": "int"'."\n"
+ .' }'."\n"
+ .' ],'."\n"
+ .' "RTHistogram": ['."\n"
+ .' {'."\n"
+ .' "Count": "int",'."\n"
+ .' "Mark": "float32",'."\n"
+ .' "Frequency": "float32"'."\n"
+ .' }'."\n"
+ .' ]'."\n"
+ .' }',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82********\\",\\n \\"ReportUrl\\": \\"http://eas-benchmark.oss-cn-chengdu.aliyuncs.com/summary/benchmark-larec-test-015d-10007.html\\",\\n \\"Data\\": \\"{\\\\n \\\\\\"TimestampList\\\\\\": [\\\\\\"int64\\\\\\"],\\\\n \\\\\\"QPSList\\\\\\": [\\\\\\"float32\\\\\\"],\\\\n \\\\\\"RTList\\\\\\": [\\\\n {\\\\n \\\\\\"AVG\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TP100\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TP99\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TP90\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TP50\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TP10\\\\\\": \\\\\\"float32\\\\\\"\\\\n }\\\\n ],\\\\n \\\\\\"TrafficList\\\\\\": [\\\\n {\\\\n \\\\\\"Send\\\\\\": \\\\\\"float64\\\\\\",\\\\n \\\\\\"Receive\\\\\\": \\\\\\"float64\\\\\\"\\\\n }\\\\n ],\\\\n \\\\\\"StatusCode\\\\\\": {\\\\n \\\\\\"200\\\\\\": \\\\\\"uint64\\\\\\",\\\\n \\\\\\"450\\\\\\": \\\\\\"uint64\\\\\\",\\\\n \\\\\\"500\\\\\\": \\\\\\"uint64\\\\\\"\\\\n },\\\\n \\\\\\"Count\\\\\\": \\\\\\"uint64\\\\\\",\\\\n \\\\\\"Total\\\\\\": \\\\\\"float64\\\\\\",\\\\n \\\\\\"MinRT\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"AvgRT\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"MaxRT\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"QPS\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"TotalSend\\\\\\": \\\\\\"float64\\\\\\",\\\\n \\\\\\"TotalReceive\\\\\\": \\\\\\"float64\\\\\\",\\\\n \\\\\\"RTDistribution\\\\\\": [\\\\n {\\\\n \\\\\\"Latency\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"Percentage\\\\\\": \\\\\\"int\\\\\\"\\\\n }\\\\n ],\\\\n \\\\\\"RTHistogram\\\\\\": [\\\\n {\\\\n \\\\\\"Count\\\\\\": \\\\\\"int\\\\\\",\\\\n \\\\\\"Mark\\\\\\": \\\\\\"float32\\\\\\",\\\\n \\\\\\"Frequency\\\\\\": \\\\\\"float32\\\\\\"\\\\n }\\\\n ]\\\\n }\\"\\n}","type":"json"}]',
+ 'title' => 'DescribeBenchmarkTaskReport',
+ ],
+ 'ListBenchmarkTask' => [
+ 'summary' => 'Queries a list of stress testing tasks that are created by the current user.',
+ 'path' => '/api/v2/benchmark-tasks',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnO4KXYN',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Filter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The keyword used to query required stress testing tasks. If this parameter is specified, the system returns stress testing tasks based on the names of the stress testing tasks in the matched Elastic Algorithm Service (EAS).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test_bench',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the EAS service that corresponds to the stress testing task. For more information about how to query the service name, see [ListServices](~~412109~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test_bench_srv',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ModelId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'RequestMethod',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number. Pages start from page 1. Default value: 1.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Tasks' => [
+ 'description' => 'The stress testing tasks.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskName' => [
+ 'description' => 'The name of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'benchmark-larec-test-1076',
+ ],
+ 'TaskId' => [
+ 'description' => 'The ID of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'eas-b-gv4y86uvgt****i',
+ ],
+ 'ServiceName' => [
+ 'description' => 'The name of the service on which you want to perform a stress testing.'."\n",
+ 'type' => 'string',
+ 'example' => 'test_quota',
+ ],
+ 'Region' => [
+ 'description' => 'The region ID of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'AvailableAgent' => [
+ 'description' => 'The number of instances that are available for stress testing.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2',
+ ],
+ 'Status' => [
+ 'description' => 'The state of the stress testing task.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Starting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* DeleteFailed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Stopping'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Error'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Updating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Deleting'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* CreateFailed'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => 'Creating',
+ 'Starting' => 'Starting',
+ 'DeleteFailed' => 'DeleteFailed',
+ 'Running' => 'Running',
+ 'Stopping' => 'Stopping',
+ 'Error' => 'Error',
+ 'Updating' => 'Updating',
+ 'Deleting' => 'Deleting',
+ 'CreateFailed' => 'CreateFailed',
+ ],
+ 'example' => 'Running',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [benchmark-larec-test-1076] is Running',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the stress testing task was created.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-12-04T02:43:15Z',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the stress testing task was updated.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-06-24T03:11:30Z',
+ ],
+ ],
+ ],
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '20',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Tasks\\": [\\n {\\n \\"TaskName\\": \\"benchmark-larec-test-1076\\",\\n \\"TaskId\\": \\"eas-b-gv4y86uvgt****i\\",\\n \\"ServiceName\\": \\"test_quota\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"AvailableAgent\\": 2,\\n \\"Status\\": \\"Running\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-1076] is Running\\",\\n \\"CreateTime\\": \\"2020-02-04T02:43:15Z\\",\\n \\"UpdateTime\\": \\"2020-06-24T03:11:30Z\\"\\n }\\n ],\\n \\"TotalCount\\": 1,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 20\\n}","type":"json"}]',
+ 'title' => 'ListBenchmarkTask',
+ ],
+ 'StartBenchmarkTask' => [
+ 'summary' => 'Starts a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/start',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task. For more information about how to query the name of a stress testing task, see [ListBenchmarkTask](~~432976~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-3bc6',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [benchmark-larec-test-1076] is Starting',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-1076] is Starting\\"\\n}","type":"json"}]',
+ 'title' => 'StartBenchmarkTask',
+ ],
+ 'StopBenchmarkTask' => [
+ 'summary' => 'Stops a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}/stop',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task. For more information about how to query the name of a stress testing task, see [ListBenchmarkTask](~~432976~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-dbe5',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [benchmark-larec-test-1076] is Stopping',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-dbe5] is Stopping\\"\\n}","type":"json"}]',
+ 'title' => 'StopBenchmarkTask',
+ ],
+ 'UpdateBenchmarkTask' => [
+ 'summary' => 'Updates a stress testing task.',
+ 'path' => '/api/v2/benchmark-tasks/{ClusterId}/{TaskName}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the region where the stress testing task is performed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TaskName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The name of the stress testing task.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'benchmark-larec-test-645c',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'schema' => [
+ 'description' => 'The request body. The body includes the parameters that are set to create a stress testing task. For more information, see **Table 1. Fields in the base parameter**.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "base": {'."\n"
+ .' "qps": 200'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Benchmark task [benchmark-larec-test-1076] is Updating',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Benchmark task [benchmark-larec-test-1076] is Updating\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateBenchmarkTask',
+ 'requestParamsDescription' => '#### Table 1. Fields in the base parameter'."\n"
+ ."\n"
+ .'The following table describes the fields in the base parameter that can be modified when you call this operation.'."\n"
+ ."\n"
+ .'|**Field**|**Description**|'."\n"
+ .'|---|---|'."\n"
+ .'|duration|The total stress testing duration. Unit: seconds. Default value: 1200. This field is optional.|'."\n"
+ .'|qps|The expected queries per second (QPS) of the stress testing task. Default value: 10000. This field is optional.|'."\n"
+ .'|concurrency|The number of concurrent connections that you want to create for each instance in the stress testing task. The default value is 40, and it can be automatically changed. This field is optional.|'."\n"
+ .'|agentCount|The number of instances that you want to create for the stress testing task. The default value is 1, and it can be automatically changed. This field is optional.|',
+ ],
+ 'DeleteGatewayLabel' => [
+ 'summary' => '删除网关标签',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/label',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '167565',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关所在区域。',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关名字。',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'LabelKeys',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '要删除的网关标签。',
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '服务标签key列表。',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'key1',
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID。',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '返回信息。',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Succeed to delete gateway labels.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to delete gateway labels.\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateGatewayLabel' => [
+ 'summary' => '修改网关标签',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/label',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '167564',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnKDX12S',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关所在区域',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关id',
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '请求Body',
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Labels' => [
+ 'title' => '自定义网关标签',
+ 'description' => '',
+ 'type' => 'object',
+ 'required' => true,
+ 'additionalProperties' => [
+ 'title' => '标签对象',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '{"key":"value"}',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求Id',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'title' => '返回信息。',
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Succeed to update gateway gw-1uhcqmsc7x22****** labels.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Succeed to update gateway gw-1uhcqmsc7x22****** labels.\\"\\n}","type":"json"}]',
+ ],
+ 'DetachGatewayDomain' => [
+ 'summary' => 'Unbinds a custom domain name from a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/domain/detach',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '243555',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'CustomDomain',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The custom domain name information.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The domain name type.'."\n"
+ ."\n"
+ .'Valid value:'."\n"
+ ."\n"
+ .'* intranet: internal network.'."\n"
+ .'* internet: public network.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'intranet' => '',
+ 'internet' => '',
+ ],
+ 'example' => 'intranet',
+ ],
+ 'Domain' => [
+ 'description' => 'The custom domain name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test.com',
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The message that is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully delete custom endpoint for gateway gw-1uhcqmsc7x22******'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully delete custom endpoint for gateway gw-1uhcqmsc7x22******\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'DetachGatewayDomain',
+ ],
+ 'AttachGatewayDomain' => [
+ 'summary' => 'Binds a custom domain name to a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/domain/attach',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '241083',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'CustomDomain',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The custom domain name information.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The domain name type.'."\n"
+ ."\n"
+ .'Valid value:'."\n"
+ ."\n"
+ .'* intranet: internal network.'."\n"
+ .'* internet: public network.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'intranet' => '',
+ 'internet' => '',
+ ],
+ 'example' => 'intranet',
+ ],
+ 'CertificateId' => [
+ 'description' => 'The ID of the SSL certificate bound to the domain name. Obtain the certificate ID after you upload or purchase a certificate in the [Certificate Management Service](https://yundunnext.console.aliyun.com/?spm=5176.2020520163.console-base_help.2.4b3baJixaJixOc\\&p=cas) console.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1473**25',
+ ],
+ 'Domain' => [
+ 'description' => 'The custom domain name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test.com',
+ ],
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The error message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully update custom endpoint for gateway gw-1uhcqmsc7x22******'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully update custom endpoint for gateway gw-1uhcqmsc7x22******\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'AttachGatewayDomain',
+ ],
+ 'ListGatewayDomains' => [
+ 'summary' => 'Queries a list of custom domain names of a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/domains',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '245872',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The message that is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully get custom domains',
+ ],
+ 'CustomDomains' => [
+ 'description' => 'The custom domain names.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The custom domain name.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The domain name type.'."\n"
+ ."\n"
+ .'Valid value:'."\n"
+ ."\n"
+ .'* intranet: internal network.'."\n"
+ .'* internet: public network.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'intranet' => '',
+ 'internet' => '',
+ ],
+ 'example' => 'intranet',
+ ],
+ 'CertificateId' => [
+ 'description' => 'The ID of the SSL certificate bound to the domain name. Obtain the certificate ID after you upload or purchase a certificate in the [Certificate Management Service](https://yundunnext.console.aliyun.com/?spm=5176.2020520163.console-base_help.2.4b3baJixaJixOc\\&p=cas) console.'."\n",
+ 'type' => 'string',
+ 'example' => '1473**25',
+ ],
+ 'Domain' => [
+ 'description' => 'The custom domain name.'."\n",
+ 'type' => 'string',
+ 'example' => 'test.com',
+ ],
+ 'CertificateName' => [
+ 'type' => 'string',
+ ],
+ 'CertificateStartDate' => [
+ 'type' => 'string',
+ ],
+ 'CertificateEndDate' => [
+ 'type' => 'string',
+ ],
+ 'CreateTime' => [
+ 'type' => 'string',
+ ],
+ 'UpdateTime' => [
+ 'type' => 'string',
+ ],
+ 'CertificateStatus' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully get custom domains\\",\\n \\"CustomDomains\\": [\\n {\\n \\"Type\\": \\"intranet\\",\\n \\"CertificateId\\": \\"1473**25\\",\\n \\"Domain\\": \\"test.com\\",\\n \\"CertificateName\\": \\"cert-9955038\\",\\n \\"CertificateStartDate\\": \\"2018-07-13\\",\\n \\"CertificateEndDate\\": \\"2023-10-25\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-05-19T14:19:42Z\\",\\n \\"CertificateStatus\\": \\"Succeeded\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListGatewayDomains',
+ ],
+ 'ListGateway' => [
+ 'summary' => 'Queries a list of private gateways.',
+ 'path' => '/api/v2/gateways',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '192662',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The private gateway ID. To obtain the private gateway ID, see the private_gateway_id parameter in the response parameters of the ListResources operation.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'PageNumber',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Default value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '100',
+ ],
+ ],
+ [
+ 'name' => 'GatewayName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The private gateway alias.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mygateway1',
+ ],
+ ],
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the resource group. To obtain a resource group ID, see the ResourceId field in the response of the [ListResources](~~412133~~) operation.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-4gt8twzwllfo******',
+ ],
+ ],
+ [
+ 'name' => 'InternetEnabled',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'Status',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ChargeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Sort',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Order',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'GatewayType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'Label',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'title' => '按标签过滤。',
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'title' => '按{"key":"value"}格式填写。Value 可为 null 或空字符,代表只按 Key 过滤,Value 可为任意值。',
+ 'type' => 'string',
+ 'example' => '{"key1":"value1","key2":null}',
+ ],
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Gateways' => [
+ 'description' => 'The private gateways.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The private gateway.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'GatewayName' => [
+ 'description' => 'The private gateway alias.'."\n",
+ 'type' => 'string',
+ 'example' => 'mygateway1',
+ ],
+ 'InstanceType' => [
+ 'description' => 'The type of instances used for the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => '2c4g',
+ ],
+ 'IntranetDomain' => [
+ 'description' => 'The internal endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com',
+ ],
+ 'InternetEnabled' => [
+ 'description' => 'Indicates whether Internet access is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InternetDomain' => [
+ 'description' => 'The public endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the private gateway was created. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-05-19T14:19:42Z',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the private gateway was updated. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-24T11:52:17Z',
+ ],
+ 'Status' => [
+ 'description' => 'The state of the private gateway.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ .'* Stopped'."\n"
+ .'* Failed'."\n"
+ .'* Running'."\n"
+ .'* Deleted'."\n"
+ .'* Deleting'."\n"
+ .'* Waiting'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => '',
+ 'Stopped' => '',
+ 'Failed' => '',
+ 'Running' => '',
+ 'Deleted' => '',
+ 'Deleting' => '',
+ 'Waiting' => '',
+ ],
+ 'example' => 'Running',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of nodes in the private gateway.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'IsDefault' => [
+ 'description' => 'Indicates whether it is the default private gateway.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ChargeType' => [
+ 'description' => 'The billing method. Valid values:'."\n"
+ ."\n"
+ .'* PrePaid: subscription.'."\n"
+ .'* PostPaid: pay-as-you-go.'."\n",
+ 'type' => 'string',
+ 'example' => 'PostPaid',
+ ],
+ 'SSLRedirectionEnabled' => [
+ 'description' => 'Specifies whether to enable HTTP to HTTPS redirection.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IntranetEnabled' => [
+ 'type' => 'boolean',
+ ],
+ 'Labels' => [
+ 'title' => '网关标签列表'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '网关标签对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'LabelKey' => [
+ 'title' => '网关标签键',
+ 'type' => 'string',
+ 'example' => 'key1',
+ ],
+ 'LabelValue' => [
+ 'title' => '网关标签值',
+ 'type' => 'string',
+ 'example' => 'value1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'PageNumber' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of private gateways returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Gateways\\": [\\n {\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"GatewayName\\": \\"mygateway1\\",\\n \\"InstanceType\\": \\"2c4g\\",\\n \\"IntranetDomain\\": \\"gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com\\",\\n \\"InternetEnabled\\": true,\\n \\"InternetDomain\\": \\"gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-02-24T11:52:17Z\\",\\n \\"Status\\": \\"Running\\",\\n \\"Replicas\\": 2,\\n \\"IsDefault\\": true,\\n \\"ChargeType\\": \\"PostPaid\\",\\n \\"SSLRedirectionEnabled\\": true,\\n \\"IntranetEnabled\\": true,\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"key1\\",\\n \\"LabelValue\\": \\"value1\\"\\n }\\n ]\\n }\\n ],\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 100,\\n \\"TotalCount\\": 5\\n}","type":"json"}]',
+ 'title' => 'ListGateway',
+ ],
+ 'ListAclPolicy' => [
+ 'summary' => 'Queries access control lists (ACLs) created for a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '225605',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID. To obtain the private gateway ID, see the private_gateway_id parameter in the response parameters of the ListResources operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the virtual private cloud (VPC). For more information about how to obtain the VPC ID, see DescribeVpcs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'InternetAclPolicyList' => [
+ 'description' => 'The access control policies of the private gateway over the Internet.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The access control policy of the private gateway over the Internet.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'AclPolicyList' => [
+ 'description' => 'The whitelisted IP CIDR blocks in the VPC that can access the private gateway over the Internet.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the IP CIDR block in the VPC that can access the private gateway over the Internet.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Entry' => [
+ 'description' => 'The IP CIDR block in the VPC that can access the private gateway over the Internet.'."\n",
+ 'type' => 'string',
+ 'example' => '10.23.XX.XX/32',
+ ],
+ 'Comment' => [
+ 'description' => 'The comment on the IP CIDR block in the VPC that can access the private gateway over the Internet.'."\n",
+ 'type' => 'string',
+ 'example' => 'default',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'IntranetVpcAclPolicyList' => [
+ 'description' => 'The access control policies of the private gateway over the internal network.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The access control policy of the private gateway over the internal network.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'The VPC ID. For more information about how to obtain the VPC ID, see DescribeVpcs.'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'AclPolicyList' => [
+ 'description' => 'The whitelisted IP CIDR blocks in the VPC that can access the private gateway over the internal network.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The information about the IP CIDR block in the VPC that can access the private gateway over the internal network.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Entry' => [
+ 'description' => 'The IP CIDR block in the VPC that can access the private gateway over the internal network.'."\n",
+ 'type' => 'string',
+ 'example' => '192.168.XX.XX/24',
+ ],
+ 'Comment' => [
+ 'description' => 'The comment on the IP CIDR block in the VPC that can access the private gateway over the internal network.'."\n",
+ 'type' => 'string',
+ 'example' => 'Test Entry',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"InternetAclPolicyList\\": [\\n {\\n \\"AclPolicyList\\": [\\n {\\n \\"Entry\\": \\"0.0.0.0/0\\",\\n \\"Comment\\": \\"default\\"\\n }\\n ]\\n }\\n ],\\n \\"IntranetVpcAclPolicyList\\": [\\n {\\n \\"VpcId\\": \\"vpc-uf66uio7md****\\",\\n \\"AclPolicyList\\": [\\n {\\n \\"Entry\\": \\"0.0.0.0/0\\\\n\\",\\n \\"Comment\\": \\"default\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListAclPolicy',
+ ],
+ 'DeleteAclPolicy' => [
+ 'summary' => 'Deletes an access control list (ACL) for a private gateway. The IP CIDR block that is deleted from the ACL cannot access the private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '225607',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '所在区域',
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关ID',
+ 'description' => 'The private gateway ID. To obtain the private gateway ID, see the private_gateway_id parameter in the response parameters of the ListResources operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the virtual private cloud (VPC). For more information about how to obtain the VPC ID, see DescribeVpcs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ ],
+ [
+ 'name' => 'AclPolicyList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The whitelisted IP CIDR blocks in the VPC that can access the private gateway.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The whitelisted IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Entry' => [
+ 'description' => 'The IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '10.23.XX.XX/32',
+ ],
+ 'Comment' => [
+ 'description' => 'The comment on the IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully delete acl policy for gateway',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully delete acl policy for gateway\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteAclPolicy',
+ ],
+ 'CreateAclPolicy' => [
+ 'summary' => 'Creates an access control list (ACL) for a private gateway. The IP CIDR blocks added to the ACL can access the private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/acl_policy',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '225604',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID. To obtain the private gateway ID, see the private_gateway_id parameter in the response parameters of the ListResources operation.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the virtual private cloud (VPC). For more information about how to obtain the VPC ID, see DescribeVpcs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ ],
+ [
+ 'name' => 'AclPolicyList',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The whitelisted IP CIDR blocks in the VPC that can access the private gateway.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The whitelisted IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Entry' => [
+ 'description' => 'The IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '10.23.XX.XX/32',
+ ],
+ 'Comment' => [
+ 'description' => 'The comment on the IP CIDR block in the VPC that can access the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'default',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully add acl policy for gateway',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully add acl policy for gateway\\"\\n}","type":"json"}]',
+ 'title' => 'CreateAclPolicy',
+ ],
+ 'CreateGateway' => [
+ 'summary' => 'Creates a gateway.',
+ 'path' => '/api/v2/gateways',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '191840',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The resource group ID. To obtain a resource group ID, see the ResourceId field in the response of the [ListResources](~~412133~~) operation.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'eas-r-4gt8twzwllfo******',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request body.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceType' => [
+ 'description' => 'The instance type used by the private gateway. Valid values:'."\n"
+ ."\n"
+ .'* 2c4g'."\n"
+ .'* 4c8g'."\n"
+ .'* 8c16g'."\n"
+ .'* 16c32g'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c6.4xlarge',
+ ],
+ 'EnableIntranet' => [
+ 'description' => 'Specifies whether to enable private access. Default value: true.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ 'EnableInternet' => [
+ 'description' => 'Specifies whether to enable Internet access. Default value: false.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'false',
+ ],
+ 'Name' => [
+ 'description' => 'The alias of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mygateway1',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of nodes in the private gateway.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'ChargeType' => [
+ 'description' => 'The billing method. Valid values:'."\n"
+ ."\n"
+ .'* PrePaid: subscription.'."\n"
+ .'* PostPaid: pay-as-you-go.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PostPaid',
+ ],
+ 'AutoRenewal' => [
+ 'description' => 'Specifies whether to enable auto-renewal. Valid values:'."\n"
+ ."\n"
+ .'* false (default)'."\n"
+ .'* true'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ ],
+ 'GatewayType' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The returned result.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'ClusterId' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully create gateway.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"ClusterId\\": \\"cn-wulanchabu\\",\\n \\"Message\\": \\"Successfully create gateway for user-managed resource\\"\\n}","type":"json"}]',
+ 'title' => 'CreateGateway',
+ ],
+ 'DescribeGateway' => [
+ 'summary' => 'Queries the details of a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191846',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. For more information about the private gateway ID, see the private_gateway_id parameter returned by [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'title' => '网关ID',
+ 'description' => 'The ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'GatewayName' => [
+ 'description' => 'The alias of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'mygateway1',
+ ],
+ 'CreateTime' => [
+ 'title' => '创建时间',
+ 'description' => 'The time when the private gateway was created. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2020-05-19T14:19:42Z',
+ ],
+ 'UpdateTime' => [
+ 'title' => '更新时间',
+ 'description' => 'The time when the private gateway was updated. The time is displayed in UTC.'."\n",
+ 'type' => 'string',
+ 'example' => '2021-02-24T11:52:17Z',
+ ],
+ 'IntranetDomain' => [
+ 'title' => '外部域名',
+ 'description' => 'The internal endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******-1801786532******-vpc.cn-hangzhou.pai-eas.aliyuncs.com',
+ ],
+ 'InternetEnabled' => [
+ 'description' => 'Indicates whether Internet access is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InternetDomain' => [
+ 'title' => '内部域名',
+ 'description' => 'The public endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******-1801786532******.cn-hangzhou.pai-eas.aliyuncs.com',
+ ],
+ 'InstanceType' => [
+ 'title' => '实例种类',
+ 'description' => 'The instance type used by the private gateway.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* 8c16g'."\n"
+ .'* 4c8g'."\n"
+ .'* 2c4g'."\n"
+ .'* 16c32g'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ '8c16g' => '8c16g',
+ '4c8g' => '4c8g',
+ '2c4g' => '2c4g',
+ '16c32g' => '16c32g',
+ ],
+ 'example' => 'ecs.c6.4xlarge',
+ ],
+ 'Status' => [
+ 'title' => '网关状态',
+ 'description' => 'The status of the private gateway.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ .'* Stopped'."\n"
+ .'* Failed'."\n"
+ .'* Running'."\n"
+ .'* Deleted'."\n"
+ .'* Deleting'."\n"
+ .'* Waiting'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => '',
+ 'Stopped' => '',
+ 'Failed' => '',
+ 'Running' => '',
+ 'Deleted' => '',
+ 'Deleting' => '',
+ 'Waiting' => '',
+ ],
+ 'example' => 'PrivateGatewayRunning',
+ ],
+ 'ExternalClusterId' => [
+ 'description' => 'The ID of the self-managed cluster.'."\n",
+ 'type' => 'string',
+ 'example' => 'c935eadf284c14c2da57a2a13ad6******',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of nodes in the private gateway.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'IsDefault' => [
+ 'description' => 'Indicates whether it is the default private gateway.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InternetStatus' => [
+ 'description' => 'Indicates whether Internet access is enabled.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating: Internet access is being enabled.'."\n"
+ .'* Failed: Internet access failed to be enabled or deleted.'."\n"
+ .'* Running: Internet access is running.'."\n"
+ .'* Deleted: Internet access is deleted.'."\n"
+ .'* Deleting: Internet access is being deleted.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => '',
+ 'Failed' => '',
+ 'Running' => '',
+ 'Deleted' => '',
+ 'Deleting' => '',
+ ],
+ 'example' => 'Running',
+ ],
+ 'SSLRedirectionEnabled' => [
+ 'description' => 'Indicates whether the HTTP to HTTPS redirection is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ChargeType' => [
+ 'type' => 'string',
+ ],
+ 'IntranetEnabled' => [
+ 'type' => 'boolean',
+ ],
+ 'Labels' => [
+ 'title' => '网关标签列表'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'title' => '网关标签对象',
+ 'type' => 'object',
+ 'properties' => [
+ 'LabelKey' => [
+ 'title' => '网关标签键',
+ 'type' => 'string',
+ 'example' => 'key1',
+ ],
+ 'LabelValue' => [
+ 'title' => '网关标签值',
+ 'type' => 'string',
+ 'example' => 'value1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"GatewayName\\": \\"mygateway1\\",\\n \\"CreateTime\\": \\"2020-05-19T14:19:42Z\\",\\n \\"UpdateTime\\": \\"2021-02-24T11:52:17Z\\",\\n \\"IntranetDomain\\": \\"gw-1uhcqmsc7x22******-1801786532******-vpc.cn-wulanchabu.pai-eas.aliyuncs.com\\",\\n \\"InternetEnabled\\": true,\\n \\"InternetDomain\\": \\"gw-1uhcqmsc7x22******-1801786532******.cn-wulanchabu.pai-eas.aliyuncs.com\\",\\n \\"InstanceType\\": \\"2c4g\\",\\n \\"Status\\": \\"Running\\",\\n \\"ExternalClusterId\\": \\"c935eadf284c14c2da57a2a13ad6******\\",\\n \\"Replicas\\": 2,\\n \\"IsDefault\\": true,\\n \\"InternetStatus\\": \\"Running\\",\\n \\"SSLRedirectionEnabled\\": true,\\n \\"ChargeType\\": \\"PrePaid\\",\\n \\"IntranetEnabled\\": true,\\n \\"Labels\\": [\\n {\\n \\"LabelKey\\": \\"key1\\",\\n \\"LabelValue\\": \\"value1\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeGateway',
+ ],
+ 'UpdateGateway' => [
+ 'summary' => 'Update a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '191842',
+ 'abilityTreeNodes' => [
+ 'FEATURElearn6PC7M4',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The request parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceType' => [
+ 'title' => '如果Alias不为空,则更新Alias,否则更新Spec',
+ 'description' => 'The instance type used by the private gateway. Valid values:'."\n"
+ ."\n"
+ .'* 2c4g'."\n"
+ .'* 4c8g'."\n"
+ .'* 8c16g'."\n"
+ .'* 16c32g'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ecs.c6.4xlarge',
+ ],
+ 'Name' => [
+ 'description' => 'The alias of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'mygateway1',
+ ],
+ 'EnableIntranet' => [
+ 'description' => 'Specifies whether to enable private access. Default value: true.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'true',
+ ],
+ 'EnableInternet' => [
+ 'description' => 'Specifies whether to enable Internet access. Default value: false.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* true'."\n"
+ .'* false'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'true' => 'true',
+ 'false' => 'false',
+ ],
+ 'example' => 'false',
+ ],
+ 'IsDefault' => [
+ 'description' => 'Specifies whether it is the default private gateway.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ 'Replicas' => [
+ 'description' => 'The number of nodes in the private gateway.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '2',
+ ],
+ 'EnableSSLRedirection' => [
+ 'description' => 'Specifies whether to enable HTTP to HTTPS redirection. Default value: false.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'VpcId' => [
+ 'type' => 'string',
+ ],
+ 'VSwitchIds' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '实例 ID。',
+ 'description' => 'The private gateway ID. For more information about how to query the ID of a private gateway, see the private_gateway_id parameter returned by [ListResources](~~412133~~).'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'GatewayId' => [
+ 'title' => '资源ID,如ECS实例的创建接口CreateInstance应返回InstanceId。',
+ 'description' => 'The ID of the gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Gateway is updated',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Gateway is updated\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateGateway',
+ ],
+ 'CreateGatewayIntranetLinkedVpc' => [
+ 'summary' => 'Creates an internal endpoint of a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '192211',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The virtual private cloud (VPC) ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The vSwitch ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-8vbqn2at0kljjxxxx****',
+ ],
+ ],
+ [
+ 'name' => 'EnableAuthoritativeDns',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'boolean',
+ ],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully add intranet linked vpc for gateway',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully add intranet linked vpc for gateway\\"\\n}","type":"json"}]',
+ 'title' => 'CreateGatewayIntranetLinkedVpc',
+ ],
+ 'ListGatewayIntranetLinkedVpc' => [
+ 'summary' => 'Queries a list of the internal endpoints of a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '192205',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'IntranetLinkedVpcList' => [
+ 'description' => 'The internal endpoints.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Ip' => [
+ 'description' => 'The IP address.'."\n",
+ 'type' => 'string',
+ 'example' => '192.168.10.11'."\n",
+ ],
+ 'Status' => [
+ 'description' => 'The state of the private gateway.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* Creating'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The private gateway is being created.'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .'* Running'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' :'."\n"
+ ."\n"
+ .' <!-- -->'."\n"
+ ."\n"
+ .' The private gateway is running.'."\n"
+ ."\n"
+ .' <!-- -->'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'Creating' => 'Creating',
+ 'Running' => 'Running',
+ ],
+ 'example' => 'Running',
+ ],
+ 'VpcId' => [
+ 'description' => 'The virtual private cloud (VPC) ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-2zetuli9ws0qgjd******',
+ ],
+ 'VSwitchId' => [
+ 'description' => 'The vSwitch ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'vsw-8vb2qjoiio6m9pg******',
+ ],
+ 'SecurityGroupId' => [
+ 'description' => 'The security group ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'sg-2ze4pgstgszvgq******',
+ ],
+ 'AuthoritativeDnsEnabled' => [
+ 'type' => 'boolean',
+ ],
+ 'AccountId' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"IntranetLinkedVpcList\\": [\\n {\\n \\"Ip\\": \\"192.168.10.11\\",\\n \\"Status\\": \\"Running\\",\\n \\"VpcId\\": \\"vpc-2zetuli9ws0qgjd******\\",\\n \\"VSwitchId\\": \\"vsw-8vb2qjoiio6m9pg******\\",\\n \\"SecurityGroupId\\": \\"sg-2ze4pgstgszvgq******\\",\\n \\"AuthoritativeDnsEnabled\\": true,\\n \\"AccountId\\": \\"161*******66\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListGatewayIntranetLinkedVpc',
+ ],
+ 'ListGatewayIntranetSupportedZone' => [
+ 'summary' => 'Obtains the zones supported by a gateway within an intranet.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_supported_zone',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '249662',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID. For more information about how to obtain the private gateway ID, see the GatewayId parameter in the response parameters of the [ListGateway](https://apiworkbench.aliyun-inc.com/document/eas/2021-07-01/ListGateway?spm=openapi-amp.newDocPublishment.0.0.765e281fL2IcjJ\\&ampEnv=online) operation.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Zones' => [
+ 'description' => 'The zones that are supported by the region.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The zone.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou-a',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Zones\\": [\\n \\"cn-hangzhou-a\\"\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListGatewayIntranetSupportedZone',
+ ],
+ 'DeleteGatewayIntranetLinkedVpc' => [
+ 'summary' => 'Deletes an internal endpoint of a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '所在区域',
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'title' => '网关ID',
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The virtual private cloud (VPC) ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ ],
+ [
+ 'name' => 'VSwitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the vSwitch.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vsw-8vbqn2at0kljjxxxx****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully delete intranet linked vpc for gateway',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully delete intranet linked vpc for gateway\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteGatewayIntranetLinkedVpc',
+ ],
+ 'DeleteGateway' => [
+ 'summary' => 'Deletes a private gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The private gateway ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Gateway is deleted.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Gateway gw-1uhcqmsc7x22****** is deleted\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteGateway',
+ ],
+ 'ListGatewayIntranetLinkedVpcPeer' => [
+ 'summary' => 'Obtains a list of all VPC peering connections on internal endpoint of a gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '245616',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see [ListGateway](~~2841911~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the associated VPC. To obtain the VPC ID, see [ListGatewayIntranetLinkedVpc](~~2621223~~).'."\n"
+ ."\n"
+ .'* If you specify a VPC ID, only VPC peers corresponding to the ID are queried.'."\n"
+ .'* Otherwise, all VPC peers are queried.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-2zetuli9ws0qgjd******',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'PeerVpcList' => [
+ 'description' => 'The VPC peers.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The VPC peer.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'The VPC ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-2zetuli9ws0qgjd******',
+ ],
+ 'PeerVpcs' => [
+ 'description' => 'The IDs of the VPC peers.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The ID of the VPC peer.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'The ID of the VPC peer.'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'Region' => [
+ 'description' => 'The region where the VPC peer resides.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'Status' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"PeerVpcList\\": [\\n {\\n \\"VpcId\\": \\"vpc-2zetuli9ws0qgjd******\\",\\n \\"PeerVpcs\\": [\\n {\\n \\"VpcId\\": \\"vpc-uf66uio7md****\\",\\n \\"Region\\": \\"cn-shanghai\\",\\n \\"Status\\": \\"\\"\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListGatewayIntranetLinkedVpcPeer',
+ ],
+ 'CreateGatewayIntranetLinkedVpcPeer' => [
+ 'summary' => 'Creates a VPC peering connection on an internal endpoint of a gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '245608',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see [ListGateway](~~2841911~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The VPC ID. To obtain the VPC ID, see [ListGatewayIntranetLinkedVpc](~~2621223~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-2zetuli9ws0qgjd******',
+ ],
+ ],
+ [
+ 'name' => 'PeerVpcs',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The list of VPC peers.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of VPC peers.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'The ID of the VPC peer. To obtain the VPC ID, see [DescribeVpcs](~~35739~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'Region' => [
+ 'description' => 'The region where the VPC peer resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The message that is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully add intranet linked vpc Peer for gateway',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully add intranet linked vpc Peer for gateway\\"\\n}","type":"json"}]',
+ 'title' => 'CreateGatewayIntranetLinkedVpcPeer',
+ ],
+ 'DeleteGatewayIntranetLinkedVpcPeer' => [
+ 'summary' => 'Deletes a VPC peering connection from an internal endpoint of a gateway.',
+ 'path' => '/api/v2/gateways/{ClusterId}/{GatewayId}/intranet_endpoint_linked_vpc_peer',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '245615',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnMC2VJP',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region where the private gateway resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-wulanchabu',
+ ],
+ ],
+ [
+ 'name' => 'GatewayId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The ID of the private gateway. To obtain the private gateway ID, see [ListGateway](~~2841911~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the associated VPC. To obtain the VPC ID, see [ListGatewayIntranetLinkedVpc](~~2621223~~).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-2zetuli9ws0qgjd******',
+ ],
+ ],
+ [
+ 'name' => 'PeerVpcs',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The VPC peer.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The VPC peer.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'The ID of the VPC peer.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'vpc-uf66uio7md****',
+ ],
+ 'Region' => [
+ 'description' => 'The region where the VPC peer resides.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The data returned.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'requestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'GatewayId' => [
+ 'description' => 'The ID of the private gateway.'."\n",
+ 'type' => 'string',
+ 'example' => 'gw-1uhcqmsc7x22******',
+ ],
+ 'Message' => [
+ 'description' => 'The message that is returned.'."\n",
+ 'type' => 'string',
+ 'example' => 'Successfully delete intranet linked vpc Peer for gateway',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"40325405-579C-4D82****\\",\\n \\"GatewayId\\": \\"gw-1uhcqmsc7x22******\\",\\n \\"Message\\": \\"Successfully delete intranet linked vpc Peer for gateway\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteGatewayIntranetLinkedVpcPeer',
+ ],
+ 'DescribeRegions' => [
+ 'summary' => 'Queries available regions.',
+ 'path' => '/api/v2/regions',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '133892',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Regions' => [
+ 'title' => '可用地域列表',
+ 'description' => 'The available regions.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RegionId' => [
+ 'title' => '地域Id',
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'RegionName' => [
+ 'description' => 'The region name.'."\n",
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Regions\\": [\\n {\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"RegionName\\": \\"华东 2(上海)\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'DescribeRegions',
+ ],
+ 'ReinstallTenantAddon' => [
+ 'summary' => 'Resets tenant configurations.',
+ 'path' => '/api/v2/tenantaddons/{ClusterId}/{TenantAddonName}/reinstall',
+ 'methods' => [
+ 'put',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '231056',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDNLWTG',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The region ID of the service.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'TenantAddonName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => 'The plug-in name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'prometheus_discovery',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'Addon prometheus_discovery is successfully reinstalled',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Addon prometheus_discovery is successfully reinstalled\\"\\n}","type":"json"}]',
+ 'title' => 'ReinstallTenantAddon',
+ ],
+ 'ListServiceInstanceFaultInjectionInfo' => [
+ 'summary' => '获取故障注入信息',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'e-xxxx***',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'FaultInfoList' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaultType' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DiskFillTask',
+ ],
+ 'FaultStatus' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaultStatus' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'FaultInjectedSuccess',
+ ],
+ 'FaultStatusMessage' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Network interface not found',
+ ],
+ ],
+ ],
+ 'FaultArgs' => [
+ 'description' => '',
+ 'type' => 'any',
+ 'example' => '{'."\n"
+ .' "FaultType": "DiskBurnTask",'."\n"
+ .' "FaultArgs": {'."\n"
+ .' "FaultAction": "burn",'."\n"
+ .' "Read": true,'."\n"
+ .' "Write": true,'."\n"
+ .' "Size": 100'."\n"
+ .' }'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"FaultInfoList\\": [\\n {\\n \\"FaultType\\": \\"DiskFillTask\\",\\n \\"FaultStatus\\": {\\n \\"FaultStatus\\": \\"FaultInjectedSuccess\\",\\n \\"FaultStatusMessage\\": \\"Network interface not found\\"\\n },\\n \\"FaultArgs\\": \\"{\\\\n \\\\\\"FaultType\\\\\\": \\\\\\"DiskBurnTask\\\\\\",\\\\n \\\\\\"FaultArgs\\\\\\": {\\\\n \\\\\\"FaultAction\\\\\\": \\\\\\"burn\\\\\\",\\\\n \\\\\\"Read\\\\\\": true,\\\\n \\\\\\"Write\\\\\\": true,\\\\n \\\\\\"Size\\\\\\": 100\\\\n }\\\\n}\\"\\n }\\n ]\\n}","type":"json"}]',
+ ],
+ 'CreateFaultInjection' => [
+ 'summary' => '创建故障注入任务',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'foo-69xxxx4f4-5w9r9',
+ ],
+ ],
+ [
+ 'name' => 'body',
+ 'in' => 'body',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaultType' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'MemLoadTask' => '',
+ 'CpuFullloadTask' => '',
+ 'NetworkTask' => '',
+ 'DiskFillTask' => '',
+ ],
+ 'example' => 'CpuFullloadTask',
+ ],
+ 'FaultArgs' => [
+ 'description' => '',
+ 'type' => 'any',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "FaultType": "DiskFillTask",'."\n"
+ .' "FaultArgs": {'."\n"
+ .' "FaultAction": "fill",'."\n"
+ .' "Percent": 80'."\n"
+ .' }'."\n"
+ .'}'."\n",
+ ],
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82***',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Addon prometheus_discovery is successfully reinstalled',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82***\\",\\n \\"Message\\": \\"Addon prometheus_discovery is successfully reinstalled\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteFaultInjection' => [
+ 'summary' => '删除故障注入任务',
+ 'path' => '/api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults/{FaultType}',
+ 'methods' => [
+ 'delete',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnN5R68Z',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '编排过于复杂',
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ClusterId',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'ServiceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'foo',
+ ],
+ ],
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'echo-da290ac8-7fckm',
+ ],
+ ],
+ [
+ 'name' => 'FaultType',
+ 'in' => 'path',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CpuFullloadTask',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Message' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'Successfully delete acl policy for gateway',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Message\\": \\"Successfully delete acl policy for gateway\\"\\n}","type":"json"}]',
+ ],
+ 'ListTenantAddons' => [
+ 'summary' => 'Queries a list of tenant plug-ins.',
+ 'path' => '/api/v2/tenantaddons',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '231065',
+ 'abilityTreeNodes' => [
+ 'FEATURElearnDNLWTG',
+ ],
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '40325405-579C-4D82****',
+ ],
+ 'Addons' => [
+ 'description' => 'The information about the plug-in.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => 'The name of the plug-in.'."\n",
+ 'type' => 'string',
+ 'example' => 'prometheus_discovery',
+ ],
+ 'Attributes' => [
+ 'description' => 'The attributes of the plug-in.'."\n",
+ 'type' => 'object',
+ 'additionalProperties' => [
+ 'type' => 'string',
+ 'description' => 'The description of the plug-in.'."\n",
+ 'example' => '{'."\n"
+ .' "AccessToken":"ld***.eY***.",'."\n"
+ .' "InternetEndpoint": "****.com/prometheus",'."\n"
+ .' "IntranetEndpoint": "****.vpc.com/prometheus"'."\n"
+ .'}',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"40325405-579C-4D82****\\",\\n \\"Addons\\": [\\n {\\n \\"Name\\": \\"prometheus_discovery\\",\\n \\"Attributes\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"AccessToken\\\\\\":\\\\\\"ld***.eY***.\\\\\\",\\\\n \\\\\\"InternetEndpoint\\\\\\": \\\\\\"****.com/prometheus\\\\\\",\\\\n \\\\\\"IntranetEndpoint\\\\\\": \\\\\\"****.vpc.com/prometheus\\\\\\"\\\\n}\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListTenantAddons',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'pai-eas.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'pai-eas.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'pai-eas.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'pai-eas.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'pai-eas.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'pai-eas.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'pai-eas.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'pai-eas.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'pai-eas.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'pai-eas.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'pai-eas.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'pai-eas.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'pai-eas.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'pai-eas.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'pai-eas.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'pai-eas.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'pai-eas.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'pai-eas.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'pai-eas.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'pai-eas.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'pai-eas.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-southeast-1',
+ 'endpoint' => 'pai-eas.us-southeast-1.aliyuncs.com',
+ ],
+ ],
+];